1.创建一个名为data的lv并挂载
mount /dev/vg1/data /data

2.为lv创建快照
lvcreate -L 16m -p r -s -n data-backup /dev/vg1/data

3.挂载快照
mkdir /mnt/data-backup
mount -o ro /dev/vg1/data-backup /mnt/data-backup

4.备份快照
dump -0u -f /tmp/data-backup.dump /mnt/data-backup

5.删除快照
umount /mnt/data-backup
lvremove /dev/vg1/data-backup

6.清空data内的内容
umount /data
mkfs.ext3 /dev/vg1/data
mount /dev/vg1/data /data

7.恢复快照中的内容
cd /data
restore -rf /tmp/data-backup.dump