LVM: Difference between revisions

From DWIKI
mNo edit summary
mNo edit summary
Line 7: Line 7:
*http://blog.gadi.cc/better-lvm-for-kvm/
*http://blog.gadi.cc/better-lvm-for-kvm/


NOTE: remember to add snapshot support when calling lvcreate  
NOTE: remember to add snapshot support when calling lvcreate
 
=FAQ=
==Access logcal volumes within logical volume==
partprobe /dev/mapper/vg-mydata
lsblk
This will show the (sub) partitions/volumes, then edit /etc/lvm/lvm.conf
filter = [ "a|.*/|", "a|mydata|","r|.*|" ]
Then run:
vgscan
lvscan
vgs
Now you should see the names of the volumes you're looking for, so now:
vgchange -a y guestsname_mydata-home
and then you should be able to
mount /dev/mapper/guestsname_mydata-home
 
When done, remember to change back the filter in lvm.conf, default is
filter = [ "a|.*/|" ]
 
 
 
 


[[Category: System Administration]]
[[Category: System Administration]]
[[Category: Linux]]
[[Category: Linux]]

Revision as of 09:35, 26 August 2016

Logical Volume Management on Linux

NOTE: remember to add snapshot support when calling lvcreate

FAQ

Access logcal volumes within logical volume

partprobe /dev/mapper/vg-mydata
lsblk

This will show the (sub) partitions/volumes, then edit /etc/lvm/lvm.conf

filter = [ "a|.*/|", "a|mydata|","r|.*|" ]

Then run:

vgscan
lvscan
vgs

Now you should see the names of the volumes you're looking for, so now:

vgchange -a y guestsname_mydata-home

and then you should be able to

mount /dev/mapper/guestsname_mydata-home

When done, remember to change back the filter in lvm.conf, default is

filter = [ "a|.*/|" ]