2 .\" Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
4 .\" Copyright (c) 2011, 2017, Intel Corporation.
6 .\" This file may be copied under the terms of the GNU Public License, v2.
8 .TH tunefs.lustre 8 "2008 Mar 15" Lustre "configuration utilities"
10 tunefs.lustre \- modify the Lustre configuration information on a disk
19 is used to modify the configuration information on a Lustre target
20 disk. This includes upgrading old (pre-Lustre 1.6) disks. This does not
21 reformat the disk or erase the target information, but modifying the
22 configuration information can result in an unusable filesystem. You have
25 Changes made here will affect a filesystem only when the target is next
30 .BI \--comment= comment
31 Set user comment about this disk, ignored by Lustre.
34 Only print what would be done; does not affect the disk.
36 .BI \--erase-param " param"
37 Remove all previously stored instances of the parameter \fIparam\fR. Attempts
38 to remove a non-existing parameter appear as successful ones.
41 Remove all previously stored parameter info.
43 .BI \--failnode= nid,...
44 Set the NID(s) of a failover partner. This option can be repeated as desired.
45 Cannot be used with --servicenode.
47 .BI \--servicenode= nid,....
48 Set the NID(s) of all service partner. This option treats all nodes as equal
49 service nodes. Cannot be used with --failnode.
51 .BI \--fsname= filesystem_name
52 The Lustre filesystem this service will be part of. Default is 'lustre'.
55 Force a particular OST or MDT index.
57 .BI \--mountfsoptions= opts
58 Set the persistent mount options that will be used when Lustre fs.
59 WARNING: unlike earlier versions of \fBtunefs.lustre\fR, this version
60 completely replaces the existing mount options with those specified on
61 the command line, issuing a warning on stderr if any of the default
62 mount options are omitted. The defaults for ldiskfs are
63 OST: \fIerrors=remount-ro,mballoc,extents\fR;
64 MGS/MDT: \fIerrors=remount-ro,user_xattr\fR.
65 \fBDO NOT\fR alter the default mount options unless you know what you are doing.
67 .BI \--backfs-mount-opts=opts
68 Use these options for mounting backing fs while tune.lustre is working.
70 .BI \--network= net,...
71 Network(s) to restrict this ost/mdt to. This option can be repeated as desired.
74 Add a configuration management service to this target.
76 .BI \--mgsnode= nid,...
77 Set the NID(s) of the MGS node, required for all targets other than the MGS.
80 Remove a configuration management service to this target.
82 .BI \--param " key=value"
83 Set permanent parameter
87 This option can be repeated as desired. All previously stored instances of
89 are removed, and new instances specified in the command line are added.
90 Typical options might include:
92 .I \--param sys.timeout=40
96 .I \--param lov.stripesize=2M
100 .I \--param lov.stripecount=2
104 .I \--param failover.mode=failout
106 Return errors instead of waiting for recovery
110 .BI \--force-nohostid
111 Ignore unset hostid for ZFS import protection. To set hostid either set
112 spl_hostid option for spl.ko or set /etc/hostid, see zgenhostid(8).
115 Print less information.
118 Print more information.
121 Erase the configuration logs for the filesystem that this server is part of, and regenerate them. This is very dangerous. All clients must be unmounted and servers for this filesystem should be stopped.
122 All targets (OSTs/MDTs) must then be restarted to regenerate the logs.
123 No clients should be started until all targets have restarted.
125 Correct order of operations is:
127 * Unmount all clients of this filesystem.
129 * Unmount MDT and all OSTs of this filesystem.
131 * Run \fBtunefs.lustre --writeconf <device>\fR on every server.
133 * Mount MDT and OSTs.
138 Use configuration logs from the MGS, not local ones.
140 There is feature that starts a target with a local copy of
141 the config log in order to avoid a delay in communicating with
142 the MGS and to load MGS log updates later on.
143 However, that feature is not always useful.
145 replace_nids changes config logs on the server side and local copies
146 become invalid. --nolocallogs sets the nolocallogs mount flag,
147 which causes the local copy of the config log to be ignored.
148 The flag is reset once new logs are downloaded from MGS.
151 Enable space accounting on old 2.x devices.
155 .B tunefs.lustre --erase-params --mgsnode=<new_nid> --writeconf /dev/sda
156 Change the MGS NID address. (This should be done on every target disk,
157 since they should all be contacting the same MGS.)
159 .B tunefs.lustre --param "failover.node=192.168.0.13@tcp0" /dev/sda
160 +Remove all previous failover NID locations for this target, and add a new
161 +failover NID location for this target.
163 +.B tunefs.lustre --erase-param failover.node /dev/sda
164 +Remove all failover NID locations for this target.
166 .B tunefs.lustre --mgs --mdt --fsname=testfs /dev/sda
167 Upgrade an old 1.4.X Lustre MDT to 1.6. The new filesystem name is "testfs".
169 .B tunefs.lustre --writeconf --mgs --mdt --fsname=testfs /dev/sda1
170 Upgrade an old 1.4.X Lustre MDT to 1.6, and start with brand-new 1.6
171 configuration logs. All old servers and clients must be stopped.
181 .BR mount.lustre (8),