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.3.2 Backing Up an OST File<br />

Follow the same procedure as Backing Up an MDS File (except skip Step 4) and, for<br />

each OST device filesystem, replace mds with ost in the commands.<br />

15.2 Restoring from a File-level Backup<br />

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

file data and then restore the EA data.<br />

1. Format the device. To get the optimal ext3 parameters, run:<br />

$ mkfs.lustre --fsname {fsname} --reformat --mgs|mdt|ost /dev/sda<br />

Caution – Only reformat the node which is being restored. If there are multiple<br />

services on the node, do not perform this step as it can cause all devices on the node<br />

to be reformatted. In that situation, follow these steps:<br />

For MDS filesystems, run:<br />

mke2fs -j -J size=400 -I {inode_size} -i 4096 {dev}<br />

where {inode_size} is at least 512 and possibly larger if the default stripe count is<br />

> 10 (inode_size = power_of_2_>=_than(384 + stripe_count * 24)) 2<br />

For OST filesystems, run:<br />

mke2fs -j -J size=400 -I 256 -i 16384 {dev}”<br />

2. Enable ext3 filesystem directory indexing.<br />

tune2fs -O dir_index {dev}<br />

2. In the mke2fs command, the -I option is the size of the inode and the -i option is the ratio of inodes to space in<br />

the filesystem: inode_count = device_size / inode_ratio. Set the -i option to 4096 so Extended Attributes<br />

(EAs) can fit on the inode as well. Otherwise, you have to make an indirect allocation to hold the EAs, which<br />

impacts performance owing to the additional seeks.<br />

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