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.

15.1.2 Performing Device-level Backups<br />

In some situations, you may need a full, device-level backup of an individual MDS<br />

or OST storage device (before replacing hardware, performing maintenance, etc.). A<br />

full device-level backup is the easiest backup method and it ensures preservation of<br />

the original data.<br />

In case of hardware replacement, if the spare storage device is available, then it is<br />

possible to take a raw copy of the MDS or OST from one block device to the other, as<br />

long as the new device is at least as large as the original device. To do this, run:<br />

dd if=/dev/{original} of=/dev/{new} bs=1M<br />

If there are problems while reading the data on the original device due to hardware<br />

errors, then run the following command to read the data and skip sections with<br />

errors.<br />

dd if=/dev/{original} of=/dev/{new} bs=4k conv=sync,noerror<br />

In spite of hardware errors, the ext3 file system is very robust and it may be possible<br />

to recover the file system data after running e2fsck on the new device.<br />

15.1.3 Performing File-level Backups<br />

In some situations, you may want to back up data from a single file on the MDS or<br />

an OST file system, rather than back up the entire device. This may be a preferred<br />

backup strategy if the storage device is large but has relatively little data, parameter<br />

configurations on the ext3 file system need to be changed, or to use less space for<br />

backup.<br />

You can mount the ext3 file system directly from the storage device and do a filelevel<br />

backup. However you MUST STOP <strong>Lustre</strong> on that node.<br />

To do this, back up the Extended Attributes (EAs) 1 stored in the file system. As the<br />

current backup tools do not properly save this data, perform the following<br />

procedure.<br />

1. <strong>Lustre</strong> uses EAs to store striping information (location of file data on OSTs).<br />

15-2 <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!