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.

cfs21:~# mount -t lustre /dev/volgroup/OST0 /mnt/ost<br />

cfs21:~# mount -t lustre cfs21:/main /mnt/main<br />

15.3.2 Backing Up New Files to the Backup Filesystem<br />

This is your nightly backups of your real on-line <strong>Lustre</strong> filesystem.<br />

cfs21:~# cp /etc/passwd /mnt/main<br />

cfs21:~# cp /etc/fstab /mnt/main<br />

cfs21:~# ls /mnt/main<br />

fstab passwd<br />

15.3.3 Creating LVM Snapshot Volumes<br />

Whenever you want to make a "checkpoint" of your <strong>Lustre</strong> filesystem, you create<br />

LVM snapshots of all the target disks in "main". You must decide the maximum size<br />

of a snapshot ahead of time,however you can dynamically change this later. The size<br />

of a daily snapshot is dependent on the amount of data you change daily in your online<br />

filesystem. It is also likely that a two-day old snapshot will be twice as big as a<br />

one-day old snapshot.<br />

You can create as many snapshots as you have room for in your volume group. You<br />

can also dynamically add disks to the volume group if needed.<br />

The snapshots of the target disks (MDT, OSTs) should be taken at the same point in<br />

time, making sure that cronjob updating "main" is not running, since that is the only<br />

job writing to the disks.<br />

cfs21:~# modprobe dm-snapshot<br />

cfs21:~# lvcreate -L50M -s -n MDTb1 /dev/volgroup/MDT<br />

Rounding up size to full physical extent 52.00 MB<br />

Logical volume "MDTb1" created<br />

cfs21:~# lvcreate -L50M -s -n OSTb1 /dev/volgroup/OST0<br />

Rounding up size to full physical extent 52.00 MB<br />

Logical volume "OSTb1" created<br />

After the snapshots are taken, you can continue to back up new/changed files to<br />

"main". The snapshots will not contain the new files.<br />

cfs21:~# cp /etc/termcap /mnt/main<br />

cfs21:~# ls /mnt/main<br />

fstab passwd termcap<br />

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