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.

3. Mount the filesystem.<br />

■<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 />

4. Change to the new filesystem mount point, run:<br />

cd /mnt/mds<br />

5. Restore the filesystem backup, run:<br />

tar xzvpf {backup file}<br />

6. Restore the filesystem EAs, run:<br />

setfattr --restore=ea.bak (not required for OST devices)<br />

7. Remove the recovery logs (now invalid), run:<br />

rm OBJECTS/* CATALOGS<br />

Note – If the filesystem is in use during the restore process, run the lfsck tool (part<br />

of e2fsprogs) to ensure that the filesystem is coherent.<br />

It is not necessary to run this tool if the backup of all device filesystems occurs at the<br />

same time after stopping the entire <strong>Lustre</strong> filesystem. After completing the<br />

filesystem should be immediately usable without running lfsck. There may be few<br />

I/O errors reading from files that are present on the MDS, but not on the OSTs.<br />

However, the files that are created after the MDS backup are not visible or accessible.<br />

Chapter 15 Backup and Restore 15-5

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

Saved successfully!

Ooh no, something went wrong!