23.07.2014 Views

Lustre 1.6 Operations Manual

Lustre 1.6 Operations Manual

Lustre 1.6 Operations Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

4.2.3.2 Running the Writeconf Command<br />

To run writeconf, first remove all existing configuration files for a filesystem. Use<br />

the writeconf command on an MDT to erase all the configuration logs for the<br />

filesystem. The logs are regenerated only as servers restart; therefore all servers must<br />

be restarted before clients can access filesystem data. The logs are regenerated as in<br />

a new filesystem; old settings from lctl conf_param are lost, and current server NIDs<br />

are used. Only use the writeconf command if:<br />

■<br />

■<br />

The configuration logs are into a state where the filesystem cannot start; or<br />

You are changing the NIDs of one of the servers.<br />

To run the writeconf command:<br />

1. Unmount all the clients and servers.<br />

2. With every server disk, run:<br />

$ mdt> tunefs.lustre --writeconf /dev/sda1<br />

3. Remount all servers. You must mount the MDT first.<br />

Caution – Running the writeconf command on the MDS will erase all pools<br />

information (as well as any other parameters set via lctl conf_param). We<br />

recommend that the pools definitions (and conf_param settings) be executed via a<br />

script, so they can be reproduced easily after a writeconf is performed.<br />

4.2.3.3 Changing a Server NID<br />

To change a server NID:<br />

1. Update the LNET configuration in /etc/modprobe.conf so the lctl list_nids is<br />

correct.<br />

2. Regenerate the configuration logs for every affected filesystem using the --<br />

writeconf flag to tunefs.lustre, as shown in the second step of the section.<br />

3. If the MGS NID is also changing, communicate the new MGS location to each<br />

server. Type:<br />

tunefs.lustre --erase-param --mgsnode= --writeconf \<br />

/dev/...<br />

4.2.3.4 Aborting Recovery<br />

When starting a target, abort the recovery process. Type:<br />

4-14 <strong>Lustre</strong> <strong>1.6</strong> <strong>Operations</strong> <strong>Manual</strong> • September 2008

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!