« HOWTO: Setup read/write access to local NTFS drives.HOWTO: Create a partition on LVM. »

HOWTO: Create a Snapshot on LVM.

11/07/08

HOWTO: Create a Snapshot on LVM.

With Hardy all the software should already be installed.

Create a snapshot from the shell prompt. We are going to make a

  • 10Gb snapshot
  • called lv_snap
  • of the real partition /dev/vg01/lv_home

...

We will then mount it at /mnt/snapshot

sudo  lvcreate -L10G -s -n lv_snap /dev/vg01/lv_home
Ouput from lvcreate
Logical volume "lv_snap" created

sudo mkdir /mnt/snapshot  


sudo mount /dev/vg01/lv_snap /mnt/snapshot  

Do your backups or whatever it was you wanted to do.

sudo umount /mnt/snapshot  


sudo lvremove /dev/vg01/lv_snap
Output from lvremove

Do you really want to remove active logical volume "lv_snap"? [y/n]: y 


Logical volume "lv_snap" successfully removed  

All done :D

No feedback yet

Here are a collection of Mini-HOWTOs some of which are too short even for that grand title. I keep them around as it is easier to remember where to look these up that to remember the content of the mini-HOWTO

Search

Contents

powered by b2evolution