![]() ![]() To restore the snapshot, we need to un-mount the file system first. This means that Size or amount of changes since the point of snapshot creation is is 4G. ![]() But after a week you see that the snapshot is using 4GB of storage. So, let's say that you have a 30GB volume and you take a snapshot. Snapshots are used to store changes in an LVM from the point it was created. Lvconvert -merge /dev/vg_apps/lv_apps_backup Lvcreate -L 1GB -s -n my_apps_backup /dev/vg_apps/lv_apps /dev/vg_apps/lv_apps_backup #create a snapshot of LV: lv_apps with size 1G Lvextend -l +100%FREE /dev/mapper/vg_apps-lv_apps #Extends LV with all available space in vg_apps Lvextend -L +100G /dev/mapper/vg_apps-lv_apps #Extends VG with a new Disk (after pvcreate command has been run the disk eg: pvcreate /dev/sdj1) Other FS-TYPES: ext2,ext3,ext4,xfs,btrfs,cramfs,minix #create LV with all available space from vg_apps This is mostly what one will need to manage Logical Volumes in Linux since this covers commands ranging from LVM creation and extension to LVM snapshots and LVM metadata recovery. This will serve you as a quick reference to LVM commands. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |