23.07.2014 Views

Lustre 1.6 Operations Manual

Lustre 1.6 Operations Manual

Lustre 1.6 Operations Manual

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

15.1.3.1 Backing Up an MDS File<br />

To back up a file on the MDS:<br />

1. Make a mount point for the file system "mkdir /mnt/mds" and mount the file<br />

system at that location.<br />

■ For 2.4 kernels, run:<br />

■<br />

mount -t ext3 {dev} /mnt/mds<br />

For 2.6 kernels, run:<br />

mount -t ldiskfs {dev} /mnt/mds<br />

2. Change to the mount point being backed up "cd /mnt/mds"<br />

3. Back up the EAs, run:<br />

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

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

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

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

or contact us for assistance.<br />

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

Without this EA data, the backup is not useful. Look at this file with "more" or<br />

a text editor. It should have an item for each file like:<br />

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

trusted.lov=<br />

0s0AvRCwEAAABXoKUCAAAAAAAAAAAAAAAAAAAQAAEAAADD5QoAAAAAAAAAAAAAAAA<br />

AAAAAAAEAAAA=<br />

5. Back up all filesystem data, run:<br />

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

6. Change directory out of the mounted filesystem, run:<br />

cd -<br />

7. Unmount the filesystem, run:<br />

umount /mnt/mds<br />

Chapter 15 Backup and Restore 15-3

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

Saved successfully!

Ooh no, something went wrong!