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.3 LVM Snapshots on <strong>Lustre</strong> Target Disks<br />

Another disk-based backup option is to leverage the Linux LVM snapshot<br />

mechanism to maintain multiple incremental backups of a <strong>Lustre</strong> filesystem. But<br />

LVM snapshots cost CPU cycles as new files are written, so taking snapshots of the<br />

main <strong>Lustre</strong> filesystem will probably result in unacceptable performance losses.<br />

To get around this problem, create a new, backup filesystem and periodically back<br />

up new/changed files. Take periodic snapshots of this backup filesystem to create a<br />

series of compact "full" backups.<br />

15.3.1 Creating LVM-based <strong>Lustre</strong> Filesystem As a<br />

Backup<br />

To create an LVM-based backup <strong>Lustre</strong> filesystem.<br />

1. Create LVM volumes for the MDT and OSTs.<br />

First, create LVM devices for your MDT and OST targets. Do not use the entire<br />

disk for the targets, as some space is required for the snapshots. The snapshots<br />

size start out as 0, but they increase in size as you make changes to the backup<br />

filesystem. In general, if you expect to change 20% of your filesystem between<br />

backups, then the most recent snapshot will be 20% of your target size, the next<br />

older one will be 40%, and so on.<br />

cfs21:~# pvcreate /dev/sda1<br />

Physical volume "/dev/sda1" successfully created<br />

cfs21:~# vgcreate volgroup /dev/sda1<br />

Volume group "volgroup" successfully created<br />

cfs21:~# lvcreate -L200M -nMDT volgroup<br />

Logical volume "MDT" created<br />

cfs21:~# lvcreate -L200M -nOST0 volgroup<br />

Logical volume "OST0" created<br />

cfs21:~# lvscan<br />

ACTIVE<br />

'/dev/volgroup/MDT' [200.00 MB] inherit<br />

ACTIVE<br />

'/dev/volgroup/OST0' [200.00 MB] inherit<br />

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