LVM |
These notes are my personal online notebook of useful commands and "how-to's". You are welcome to make use of them if you find them helpful. They obviously don't come with any warranty! Click on one of the category tags above for the notes in any category. |
|||
#first stop VM |
|||
|
|||
|
|||
I would recommend not using LVM within a VM because it makes it harder to back up the files within the VM |
|||
It is confusing that a logical volume can contain either a partitioned drive or a single file-system with no partition table. Doing an fdisk -lu will determine which. A partition can contain several file-systems, such as boot and a “nested” LVM partition. The link at the bottom gives examples of how to access this. Create and mount a LV/usr/sbin/lvcreate -L 20G -n jessica VolGroup00 /sbin/mkfs -j /dev/VolGroup00/jessica -L jessica #format jessica as ext3 mkfs.ext4 -L ext4volname /dev/vg/newvol # or ext4 mount /dev/VolGroup00/jessica /home/jessica/backup |
|||
My default Zimbra VM install uses LVM within its own virtual machine. This makes it harder to get at the data from outside the VM, and so complicates backup. The following steps need to be taken |
|||
