Doc:
14.5 Changing a Server NID
If you need to change the NID on the MDT or an OST, a special command must be issued with all Lustre servers and clients down, except for the MGS.
Change a server NID in these situations:
■ New server hardware is added to the file system, and the MDS or an OSS is being moved to the new machine
■ New network card is installed in the server
■ You want to reassign IP addresses
The replace_nids command differs from tunefs.lustre --writeconf in that it does not erase the entire configuration log, precluding the need to "writeconf" all servers and re-specify all permanent parameter settings. However, the "writeconf" method can still be used if desired.
To change a server NID:
- Update the LNET configuration in the /etc/modprobe.conf file so the list of server NIDs (lctl list_nids) is correct.
The lctl list_nids command indicates which network(s) are configured to work with Lustre.
Chapter 14 Lustre Maintenance 14-5
- Shut down the file system in this order.
a. Unmount the clients.
b. Unmount the MDT.
c. Unmount all OSTs.
- If the MGS and MDS share a partition, start the MGS only:
mount -t lustre <MDT partition> -o nosvc <mount point>
- Run the replace_nids command on the MGS.
lctl replace_nids <devicename> <nid1>[,nid2,nid3 ...]
where <devicename> is the Lustre target name, e.g. myfs-OST0013
- If the MGS and MDS share a partition, stop the MGS:
- Restart the file system in this order.
a. Mount the MDT (or the combined MGS/MDT).
b. Mount the OSTs.
c. Mount the clients.
Note: The replace_nids command also cleans all old, invalidated records out of the configuration log, while preserving all other current settings.
Note: The previous configuration log is backed up on the MGS disk with the suffix '.bak'.
Artem, could you please submit a patch to the Lustre manual with the text that Nathan pasted above. Please see the following pages for details:
http://wiki.hpdd.intel.com/display/PUB/Making+changes+to+the+Lustre+Manual
http://wiki.hpdd.intel.com/display/PUB/Making+changes+to+the+Lustre+Manual+source