Benutzer-Werkzeuge

Webseiten-Werkzeuge


lvm

LVM Logical Volume Manager

  • Physical volume:
pvdisplay
  • Volume group:
vgdisplay
  • Logical volume:
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
lvm.txt · Zuletzt geändert: 2011/10/26 10:05 von admin