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.

Client mount for foo:<br />

mount -t lustre mgsnode@tcp0:/foo /mnt/work<br />

Client mount for bar:<br />

mount -t lustre mgsnode@tcp0:/bar /mnt/scratch<br />

4.2.3 Other Configuration Tasks<br />

This section describes other <strong>Lustre</strong> configuration tasks.<br />

4.2.3.1 Removing an OST<br />

In <strong>Lustre</strong> <strong>1.6</strong>, an OST can be permanently removed from a filesystem. Any files that<br />

have stripes on the removed OST will, in the future, return EIO.<br />

$ mgs> lctl --device conf_param testfs-OST0001.osc.active=0<br />

This tells any clients of the OST that it should not be contacted; the OSTs current<br />

state is irrelevant.<br />

To remove an OST:<br />

1. Deactivate the OST (make it read-only) on the MDS so no new objects are<br />

allocated to it.<br />

Use lctl --device to deactivate on the MDS and clients to<br />

deactivate an OST temporarily. 2<br />

2. Use lfs find to discover all files that have objects residing on the<br />

deactivated OST.<br />

3. Copy these files to a new location and then move them back to their original<br />

location to force their object re-creation on the active OSTs and the object<br />

deletion on the OST to be removed.<br />

To restore the OST:<br />

1. Make sure the OST is running.<br />

2. Run this command:<br />

$ mgs> lctl --device conf_param testfs-OST0001.osc.active=1<br />

2. Do not use lctl conf_param to deactivate the OST. It permanently sets a parameter in the filesystem<br />

configuration.<br />

Chapter 4 <strong>Lustre</strong> Installation 4-13

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

Saved successfully!

Ooh no, something went wrong!