Inhaltsverzeichnis

LVM Logical Volume Manager

pvdisplay
vgdisplay
lvdisplay

Back Up LVM Partitions With LVM Snapshots

pvcreate /dev/sdb1
vgextend server1 /dev/sdb1
lvcreate --name backups --size 30G server1
mkfs.ext3 /dev/mapper/server1-backups
mkdir /backups
mount /dev/mapper/server1-backups /backups

Create An LVM Snapshot Of /

lvcreate -L10G -s -n rootsnapshot /dev/server1/root
mkdir -p /mnt/server1/rootsnapshot
mount /dev/server1/rootsnapshot /mnt/server1/rootsnapshot
rsync -av -P --delete /mnt/server1/rootsnapshot/ /backup/.
umount /mnt/server1/rootsnapshot
lvremove /dev/server1/rootsnapshot