Whamcloud - gitweb
b=16098
[fs/lustre-release.git] / lustre / doc / mkfs.lustre.8
1 .\" -*- nroff -*-
2 .\" Copyright 2008 by Sun Microsystems.  All Rights Reserved.
3 .\" This file may be copied under the terms of the GNU Public License.
4 .\"
5 .TH mkfs.lustre 8 "2008 Mar 15" Lustre "configuration utilities"
6 .SH NAME
7 mkfs.lustre \- format a disk for a Lustre service
8 .SH SYNOPSIS
9 .br
10 .BR mkfs.lustre { --ost | --mdt | --mgs }
11 .I [options] 
12 .I device
13 .br
14 .B <target_type>
15 is one of
16 .TP
17 .BI \--ost
18 object storage target
19 .TP
20 .BI \--mdt
21 metadata storage target
22 .TP
23 .BI \--mgs
24 configuration management service - one per site.  This service can be
25 combined with one 
26 .BI \--mdt
27 service by specifying both types
28 .SH DESCRIPTION
29 .B mkfs.lustre
30 is used to format a disk device for use as part of a Lustre
31 filesystem. After formatting, a disk can be mounted to start the Lustre
32 service defined by this command.
33
34 .SH OPTIONS
35 .TP
36 .BI \--backfstype= fstype
37 Force a particular format for the backing fs (ext3, ldiskfs)
38 .TP
39 .BI \--comment= comment
40 Set user comment about this disk, ignored by Lustre.
41 .TP
42 .BI \--device-size= KB
43 Set device size for loop devices
44 .TP
45 .BI \--dryrun
46 Only print what would be done; does not affect the disk
47 .TP
48 .BI \--failnode= nid,...  
49 Set the NID(s) of a failover partner. This option can be repeated as desired.
50 .TP
51 .BI \--fsname= filesystem_name  
52 The Lustre filesystem this service will be part of.  The maximum
53 filesystem_name length is 8 characters. Default is 'lustre'
54 .TP
55 .BI \--index= index
56 Force a particular OST or MDT index 
57 .TP
58 .BI \--mkfsoptions= opts
59 Format options for the backing fs. For example, ext3 options could be set here.
60 .TP
61 .BI \--mountfsoptions= opts
62 Set permanent mount options, equivalent to setting in /etc/fstab
63 .TP
64 .BI \--mgsnode= nid,...  
65 Set the NID(s) of the MGS node, required for all targets other than the MGS.
66 .TP
67 .BI \--param " key=value"
68 Set permanent parameter 
69 .I key 
70 to value 
71 .IR value .
72 This option can be repeated as desired.  Typical options might include:
73 .RS
74 .I \--param sys.timeout=40
75 .RS
76 System obd timeout
77 .RE
78 .I \--param lov.stripesize=2M
79 .RS
80 Default stripe size
81 .RE
82 .I \--param lov.stripecount=2       
83 .RS
84 Default stripe count
85 .RE
86 .I \--param failover.mode=failout    
87 .RS
88 Return errors instead of waiting for recovery
89 .RE
90 .RE
91 .TP
92 .BI \--quiet
93 Print less information.
94 .TP
95 .BI \--reformat 
96 Reformat an existing Lustre disk
97 .TP
98 .BI \--stripe-count-hint= stripes
99 Used for optizing MDT inode size
100 .TP
101 .BI \--verbose
102 Print more information.
103
104 .SH EXAMPLES
105 .TP
106 .B mkfs.lustre --fsname=testfs --mdt --mgs /dev/sda1
107 Combined MGS and MDT for filesystem 'testfs' on node e.g. cfs21
108 .TP
109 .B mkfs.lustre --fsname=testfs --ost --mgsnode=cfs21@tcp0 /dev/sdb
110 OST for filesystem 'testfs' on any node using the above MGS.
111 .TP
112 .B mkfs.lustre --mgs /dev/sda1
113 Standalone MGS on e.g. node cfs22
114 .TP
115 .B mkfs.lustre --fsname=myfs1 --mdt --mgsnode=cfs22@tcp0 /dev/sda2
116 MDT for filesystem 'myfs1' on any node, using the above MGS
117
118 .SH BUGS
119 Please report all bugs to Sun Microsystems via http://bugzilla.lustre.org/
120 .SH AVAILABILITY
121 .B mkfs.lustre
122 is part of the 
123 .BR Lustre (7) 
124 filesystem package and is available from Sun Microsystems via
125 .br
126 http://downloads.lustre.org/
127 .SH SEE ALSO
128 .BR lustre (7),
129 .BR mount.lustre (8),
130 .BR tunefs.lustre (8),
131 .BR lctl (8),
132 .BR lfs (1)