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 permanent mount options, equivalent to setting in /etc/fstab
64 .BI \--mgsnode= nid,...
65 Set the NID(s) of the MGS node, required for all targets other than the MGS.
67 .BI \--param " key=value"
68 Set permanent parameter
72 This option can be repeated as desired. Typical options might include:
74 .I \--param sys.timeout=40
78 .I \--param lov.stripesize=2M
82 .I \--param lov.stripecount=2
86 .I \--param failover.mode=failout
88 Return errors instead of waiting for recovery
93 Print less information.
96 Reformat an existing Lustre disk
98 .BI \--stripe-count-hint= stripes
99 Used for optizing MDT inode size
102 Print more information.
106 .B mkfs.lustre --fsname=testfs --mdt --mgs /dev/sda1
107 Combined MGS and MDT for filesystem 'testfs' on node e.g. cfs21
109 .B mkfs.lustre --fsname=testfs --ost --mgsnode=cfs21@tcp0 /dev/sdb
110 OST for filesystem 'testfs' on any node using the above MGS.
112 .B mkfs.lustre --mgs /dev/sda1
113 Standalone MGS on e.g. node cfs22
115 .B mkfs.lustre --fsname=myfs1 --mdt --mgsnode=cfs22@tcp0 /dev/sda2
116 MDT for filesystem 'myfs1' on any node, using the above MGS
119 Please report all bugs to Sun Microsystems via http://bugzilla.lustre.org/
124 filesystem package and is available from Sun Microsystems via
126 http://downloads.lustre.org/
129 .BR mount.lustre (8),
130 .BR tunefs.lustre (8),