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.

How do I resize an MDS / OST filesystem?<br />

This is a method to back up the MDS, including the extended attributes containing<br />

the striping data. If something goes wrong, you can restore it to a newly-formatted<br />

larger filesystem, without having to back up and restore all OSS data.<br />

Caution – If this data is very important to you, we strongly recommend that you<br />

try to back it up before you proceed.<br />

It is possible to run out of space or inodes in both the MDS and OST filesystems. If<br />

these filesystems reside on some sort of virtual storage device (e.g., LVM Logical<br />

Volume, RAID, etc.) it may be possible to increase the storage device size (this is<br />

device-specific) and then grow the filesystem to use this increased space.<br />

1. Prior to doing any sort of low-level changes like this, back up the filesystem<br />

and/or device. See How do I backup / restore a <strong>Lustre</strong> filesystem?<br />

2. After the filesystem or device has been backed up, increase the size of the<br />

storage device as necessary. For LVM this would be:<br />

lvextend -L {new size} /dev/{vgname}/{lvname}<br />

or<br />

lvextend -L +{size increase} /dev/{vgname}/{lvname}<br />

3. Run a full e2fsck on the filesystem, using the <strong>Lustre</strong> e2fsprogs (available at the<br />

<strong>Lustre</strong> download site or http://downloads.clusterfs.com/public/tools/e2fsprogs/.<br />

Run:<br />

e2fsck -f {dev}<br />

4. Resize the filesystem to use the increased size of the device. Run:<br />

resize2fs -p {dev}<br />

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