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.

1. Make a mountpoint for the mkdir /mnt/mds filesystem.<br />

2. Mount the filesystem there.<br />

■ For 2.4 kernels use: mount -t ext3 {dev} /mnt/mds<br />

■ For 2.6 kernels use: mount -t ldiskfs {dev} /mnt/mds<br />

3. Change to the mount point being backed up. Type:<br />

cd /mnt/mds<br />

4. Back up the EAs. Type:<br />

getfattr -R -d -m '.*' -P . > ea.bak<br />

The getfattr command is part of the "attr" package in most distributions.<br />

If the getfattr command returns errors like "Operation not supported" then your<br />

kernel does not support EAs correctly. STOP and use a different backup method,<br />

or contact us for assistance.<br />

5. Verify that the ea.bak file has properly backed up your EA data on the MDS.<br />

Without this EA data your backup is not useful. You can look at this file with "more"<br />

or a text editor, and it should have an item for each file like:<br />

# file: ROOT/mds_md5sum3.txt<br />

trusted.lov0s0AvRCwEAAABXoKUCAAAAAAAAAAAAAAAAAAAQAAEAAADD5QoAAAAA<br />

AAAAAAAAAAAAAAAAAAEAAAA=<br />

6. Back up all filesystem data. Type:<br />

tar czvf {backup file}.tgz<br />

7. Change out of the mounted filesystem. Type.<br />

cd -<br />

8. Unmount the filesystem. Type:<br />

umount /mnt/mds<br />

Follow the same process on each of the OST device filesystems. The backup of the<br />

EAs (described in Step 4), is not currently required for OST devices, but this may<br />

change in the future.<br />

To restore the file-level backup you need to format the device, restore the file data,<br />

and then restore the EA data.<br />

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