Whamcloud - gitweb
LU-140 Remove leftovers of iopen
[fs/lustre-release.git] / lustre / doc / mkfs.lustre.8
1 .\" -*- nroff -*-
2 .\" Copyright (c) 2007, 2010, Oracle and/or its affiliates. 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 the mount options that will be used when mounting the backing fs.
63 WARNING: unlike earlier versions of \fBmkfs.lustre\fR, this version completely
64 replaces the default mount options with those specified on the command line,
65 issuing a warning on stderr if any of the default mount options are omitted.
66 The defaults for \fIldiskfs\fR are
67 OST: \fIerrors=remount-ro,mballoc,extents\fR;
68 MGS/MDT: \fIerrors=remount-ro,user_xattr\fR.
69 \fBDO NOT\fR alter the default mount options unless you know what you are doing.
70 .TP
71 .BI \--network= net,...
72 Network(s) to restrict this ost/mdt to. This option can be repeated as desired.
73 .TP
74 .BI \--mgsnode= nid,...  
75 Set the NID(s) of the MGS node, required for all targets other than the MGS.
76 .TP
77 .BI \--param " key=value"
78 Set permanent parameter 
79 .I key 
80 to value 
81 .IR value .
82 This option can be repeated as desired.  Typical options might include:
83 .RS
84 .I \--param sys.timeout=40
85 .RS
86 System obd timeout
87 .RE
88 .I \--param lov.stripesize=2M
89 .RS
90 Default stripe size
91 .RE
92 .I \--param lov.stripecount=2       
93 .RS
94 Default stripe count
95 .RE
96 .I \--param failover.mode=failout    
97 .RS
98 Return errors instead of waiting for recovery
99 .RE
100 .RE
101 .TP
102 .BI \--quiet
103 Print less information.
104 .TP
105 .BI \--reformat 
106 Reformat an existing Lustre disk
107 .TP
108 .BI \--stripe-count-hint= stripes
109 Used for optizing MDT inode size
110 .TP
111 .BI \--verbose
112 Print more information.
113
114 .SH EXAMPLES
115 .TP
116 .B mkfs.lustre --fsname=testfs --mdt --mgs /dev/sda1
117 Combined MGS and MDT for filesystem 'testfs' on node e.g. cfs21
118 .TP
119 .B mkfs.lustre --fsname=testfs --ost --mgsnode=cfs21@tcp0 /dev/sdb
120 OST for filesystem 'testfs' on any node using the above MGS.
121 .TP
122 .B mkfs.lustre --mgs /dev/sda1
123 Standalone MGS on e.g. node cfs22
124 .TP
125 .B mkfs.lustre --fsname=myfs1 --mdt --mgsnode=cfs22@tcp0 /dev/sda2
126 MDT for filesystem 'myfs1' on any node, using the above MGS
127
128 .SH BUGS
129 Please report all bugs to Sun Microsystems via http://bugzilla.lustre.org/
130 .SH AVAILABILITY
131 .B mkfs.lustre
132 is part of the 
133 .BR Lustre (7) 
134 filesystem package and is available from Sun Microsystems via
135 .br
136 http://downloads.lustre.org/
137 .SH SEE ALSO
138 .BR lustre (7),
139 .BR mount.lustre (8),
140 .BR tunefs.lustre (8),
141 .BR lctl (8),
142 .BR lfs (1)