2 .\" Copyright 2006 by Cluster FileSystems. All Rights Reserved.
3 .\" This file may be copied under the terms of the GNU Public License.
5 .TH mkfs.lustre 8 "2006 Jun 15" Lustre "configuration utilities"
7 mkfs.lustre \- format a disk for a Lustre service
11 <target_type> [options]
22 metadata storage target
25 configuration management service - one per site. This service can be
28 service by specifying both types
31 is used to format a disk device for use as part of a Lustre
32 filesystem. After formatting, a disk can be mounted to start the Lustre
33 service defined by this command.
37 .BI \--backfstype= fstype
38 Force a particular format for the backing fs (ext3, ldiskfs)
40 .BI \--comment= comment
41 Set user comment about this disk, ignored by Lustre.
43 .BI \--device-size= KB
44 Set device size for loop devices
46 .BI \--failnode= nid,...
47 Set the NID(s) of a failover partner. This option can be repeated as desired.
49 .BI \--fsname= filesystem_name
50 The Lustre filesystem this service will be part of. Default is 'lustre'
53 Force a particular OST or MDT index
55 .BI \--mkfsoptions= opts
56 Format options for the backing fs. For example, ext3 options could be set here.
58 .BI \--mountfsoptions= opts
59 Set permanent mount options, equivalent to setting in /etc/fstab
61 .BI \--mgsnode= nid,...
62 Set the NID(s) of the MGS node, required for all targets other than the MGS.
65 Only print what would be done; does not affect the disk
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.stripe.size=2097152
82 .I \--param lov.stripe.count=2
86 .I \--param failover.mode=failout
88 Return errs 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 Cluster FileSystems, support@clusterfs.com
124 filesystem package and is available from CFS
129 .BR mount.lustre (8),
130 .BR tunefs.lustre (8),