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.

Can I change the striping of a file or directory after it is created?<br />

You cannot change the striping of a file after it is created. If this is important (e.g.,<br />

performance of reads on some widely-shared large input file) you need to create a<br />

new file with the desired striping and copy the data into the old file. It is possible to<br />

change the default striping on a directory at any time, although you must have write<br />

permission on this directory to change the striping parameters.<br />

How do I replace an OST or MDS?<br />

The OST filesystem is simply a normal ext3 filesystem, so you can use any number<br />

of methods to copy the contents to the new OST.<br />

If possible, connect both the old OST disk and new OST disk to a single machine,<br />

mount them, and then use rsync to copy all of the data between the OST filesystems.<br />

For example:<br />

mount -t ext3 /dev/old /mnt/ost_old<br />

mount -t ext3 /dev/new /mnt/ost_new<br />

rsync -aSv /mnt/ost_old/ /mnt/ost_new<br />

ost_old/<br />

# note trailing slash on<br />

If you are unable to connect both sets of disk to the same computer, use:<br />

rsync to copy over the network using rsh (or ssh with "-e ssh"):<br />

rsync -aSvz /mnt/ost_old/ new_ost_node:/mnt/ost_new<br />

The same can be done for the MDS, but it needs an additional step:<br />

cd /mnt/mds_old; getfattr -R -e base64 -d . > /tmp/mdsea;<br />

; cd /mnt/mds_new; setfattr \<br />

--restore=/tmp/mdsea<br />

D-10 <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!