2 .\" Copyright 2008 by Sun Microsystems. All Rights Reserved.
3 .\" This file may be copied under the terms of the GNU Public License.
5 .TH mkfs.lustre 8 "2008 Mar 15" Lustre "configuration utilities"
7 mkfs.lustre \- format a disk for a Lustre service
10 .BR mkfs.lustre { --ost | --mdt | --mgs }
21 metadata storage target
24 configuration management service - one per site. This service can be
27 service by specifying both types
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.
36 .BI \--backfstype= fstype
37 Force a particular format for the backing fs (ext3, ldiskfs)
39 .BI \--comment= comment
40 Set user comment about this disk, ignored by Lustre.
42 .BI \--device-size= KB
43 Set device size for loop devices
46 Only print what would be done; does not affect the disk
48 .BI \--failnode= nid,...
49 Set the NID(s) of a failover partner. This option can be repeated as desired.
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'
56 Force a particular OST or MDT index
58 .BI \--mkfsoptions= opts
59 Format options for the backing fs. For example, ext3 options could be set here.
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,iopen_nopriv,user_xattr\fR.
69 \fBDO NOT\fR alter the default mount options unless you know what you are doing.
71 .BI \--network= net,...
72 Network(s) to restrict this ost/mdt to. This option can be repeated as desired.
74 .BI \--mgsnode= nid,...
75 Set the NID(s) of the MGS node, required for all targets other than the MGS.
77 .BI \--param " key=value"
78 Set permanent parameter
82 This option can be repeated as desired. Typical options might include:
84 .I \--param sys.timeout=40
88 .I \--param lov.stripesize=2M
92 .I \--param lov.stripecount=2
96 .I \--param failover.mode=failout
98 Return errors instead of waiting for recovery
103 Print less information.
106 Reformat an existing Lustre disk
108 .BI \--stripe-count-hint= stripes
109 Used for optizing MDT inode size
112 Print more information.
116 .B mkfs.lustre --fsname=testfs --mdt --mgs /dev/sda1
117 Combined MGS and MDT for filesystem 'testfs' on node e.g. cfs21
119 .B mkfs.lustre --fsname=testfs --ost --mgsnode=cfs21@tcp0 /dev/sdb
120 OST for filesystem 'testfs' on any node using the above MGS.
122 .B mkfs.lustre --mgs /dev/sda1
123 Standalone MGS on e.g. node cfs22
125 .B mkfs.lustre --fsname=myfs1 --mdt --mgsnode=cfs22@tcp0 /dev/sda2
126 MDT for filesystem 'myfs1' on any node, using the above MGS
129 Please report all bugs to Sun Microsystems via http://bugzilla.lustre.org/
134 filesystem package and is available from Sun Microsystems via
136 http://downloads.lustre.org/
139 .BR mount.lustre (8),
140 .BR tunefs.lustre (8),