Mounting a logical volume from a volume group
I normally don't use logical volumes (just another layer between me and the disk..), but one day I had to mount one on a spare harddisk that I had hooked up to my main machine.
Some pointers:
- lvdisplay shows you the available volume groups
- if it only says "No volume groups found", run lvmdiskscan first
- if the one you want to mount is labelled
not available
use:
vgchange -ay VolGroup00
(replace with the name of the group you want to use) - to mount:
mount /dev/VolGroup00/LogVol00 /mnt/temp
(again, replace with volume you want to mount, and put your desired mount point instead of /mnt/temp)
Another path to a successful mount, this time on Fedora 13. I had invalid entries in my /etc/fstab after having removed a second IDE harddisk, and had to boot from the Fedora 13 CD ROM to be able to edit it. Then (as root):
- vgchange -ay
which gave:
3 logical volume(s) in volume group "vg_kryten" now active
(obviously it most likely will show a different group name on your system) - ls -l /dev/vg_kryten
which gave:
lv_home → ../dm-3
lv_root → ../dm-2
lv_swap → ../dm-4 - I wanted to mount the root partition, so:
mount /dev/vg_kryten/lv_root ./temp
(./temp a temporary mount point created with mkdir ./temp)
Send me your comments!
Something didn't work as expected? You'd like to add some useful info to this tip? Use the form below to send me your comments. (Don't forget to fill out the super-lame CAPTCHA below..)