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, v2.
5 .TH tunefs.lustre 8 "2008 Mar 15" Lustre "configuration utilities"
7 tunefs.lustre \- modify the Lustre configuration information on a disk
16 is used to modify the configuration information on a Lustre target
17 disk. This includes upgrading old (pre-Lustre 1.6) disks. This does not
18 reformat the disk or erase the target information, but modifying the
19 configuration information can result in an unusable filesystem. You have
22 Changes made here will affect a filesystem only when the target is next
27 .BI \--comment= comment
28 Set user comment about this disk, ignored by Lustre.
31 Only print what would be done; does not affect the disk
34 Remove all previous parameter info
36 .BI \--failnode= nid,...
37 Set the NID(s) of a failover partner. This option can be repeated as desired.
38 Cannot be used with --servicenode.
40 .BI \--servicenode= nid,....
41 Set the NID(s) of all service partner. This option treats all nodes as equal
42 service nodes. Cannot be used with --failnode.
44 .BI \--fsname= filesystem_name
45 The Lustre filesystem this service will be part of. Default is 'lustre'
48 Force a particular OST or MDT index
50 .BI \--mountfsoptions= opts
51 Set the mount options that will be used when mounting the backing fs.
52 WARNING: unlike earlier versions of \fBtunefs.lustre\fR, this version
53 completely replaces the existing mount options with those specified on
54 the command line, issuing a warning on stderr if any of the default
55 mount options are omitted. The defaults for ldiskfs are
56 OST: \fIerrors=remount-ro,mballoc,extents\fR;
57 MGS/MDT: \fIerrors=remount-ro,user_xattr\fR.
58 \fBDO NOT\fR alter the default mount options unless you know what you are doing.
60 .BI \--network= net,...
61 Network(s) to restrict this ost/mdt to. This option can be repeated as desired.
64 Add a configuration management service to this target
66 .BI \--mgsnode= nid,...
67 Set the NID(s) of the MGS node, required for all targets other than the MGS.
70 Remove a configuration management service to this target
73 Print less information.
76 Print more information.
79 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.
80 All targets (OSTs/MDTs) must then be restarted to regenerate the logs.
81 No clients should be started until all targets have restarted.
83 Correct order of operations is:
85 * Unmount all clients of this filesystem
87 * Unmount MDT and all OSTs of this filesystem
89 * Run \fBtunefs.lustre --writeconf <device>\fR on every server
96 .B tunefs.lustre --erase-param --mgsnode=<new_nid> --writeconf /dev/sda
97 Change the MGS NID address. (This should be done on every target disk,
98 since they should all be contacting the same MGS.)
100 .B tunefs.lustre --param="failover.node=192.168.0.13@tcp0" /dev/sda
101 Add a failover NID location for this target
103 .B tunefs.lustre --mgs --mdt --fsname=testfs /dev/sda
104 Upgrade an old 1.4.X Lustre MDT to 1.6. The new filesystem name is "testfs".
106 .B tunefs.lustre --writeconf --mgs --mdt --fsname=testfs /dev/sda1
107 Upgrade an old 1.4.X Lustre MDT to 1.6, and start with brand-new 1.6
108 configuration logs. All old servers and clients must be stopped.
111 Please report all bugs to Sun Microsystems using http://bugzilla.lustre.org/
116 filesystem package and is available from Sun Microsystems, Inc via
118 http://downloads.lustre.org
122 .BR mount.lustre (8),