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