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.
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.
50 Cannot be used with --servicenode.
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.
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'
61 Force a particular OST or MDT index
63 .BI \--mkfsoptions= opts
64 Format options for the backing fs. For example, ext3 options could be set here.
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.
76 .BI \--network= net,...
77 Network(s) to restrict this ost/mdt to. This option can be repeated as desired.
79 .BI \--mgsnode= nid,...
80 Set the NID(s) of the MGS node, required for all targets other than the MGS.
82 .BI \--param " key=value"
83 Set permanent parameter
87 This option can be repeated as desired. Typical options might include:
89 .I \--param sys.timeout=40
93 .I \--param lov.stripesize=2M
97 .I \--param lov.stripecount=2
101 .I \--param failover.mode=failout
103 Return errors instead of waiting for recovery
108 Print less information.
111 Reformat an existing Lustre disk
113 .BI \--stripe-count-hint= stripes
114 Used for optizing MDT inode size
117 Print more information.
121 .B mkfs.lustre --fsname=testfs --mdt --mgs /dev/sda1
122 Combined MGS and MDT for filesystem 'testfs' on node e.g. cfs21
124 .B mkfs.lustre --fsname=testfs --ost --mgsnode=cfs21@tcp0 /dev/sdb
125 OST for filesystem 'testfs' on any node using the above MGS.
127 .B mkfs.lustre --mgs /dev/sda1
128 Standalone MGS on e.g. node cfs22
130 .B mkfs.lustre --fsname=myfs1 --mdt --mgsnode=cfs22@tcp0 /dev/sda2
131 MDT for filesystem 'myfs1' on any node, using the above MGS
134 Please report all bugs to Sun Microsystems via http://bugzilla.lustre.org/
139 filesystem package and is available from Sun Microsystems via
141 http://downloads.lustre.org/
144 .BR mount.lustre (8),
145 .BR tunefs.lustre (8),