Difference between revisions of "LVM2"
From Knoppix Documentation Wiki
(added how to mount a LVM volume) |
|||
Line 15: | Line 15: | ||
# vgscan | # vgscan | ||
# vgchange -a y | # vgchange -a y | ||
+ | |||
+ | To mount it, find the VG name, then find that name in /dev/ | ||
+ | |||
+ | # vgdisplay | head | ||
+ | --- Volume group --- | ||
+ | VG Name music2_vg | ||
+ | |||
+ | # ls /dev/music2_vg/* | ||
+ | /dev/music2_vg/lvol1 | ||
+ | |||
+ | # mount /dev/music2_vg/lvol1 /mnt/tmp | ||
+ | # ls /mnt/tmp | ||
+ | lost+found mp3 |
Revision as of 16:05, 6 September 2005
If you want to use LVM2 in Knoppix you have to load and install the kernel module and some programs. To activate it just type as root
# modprobe dm-mod # apt-get update # apt-get install lvm-common lvm2
Remember that the tools are in /lib/lvm-200 but if you don't want to type the complete path, you may link them into /usr/bin.
# lndir /lib/lvm-200/ /usr/sbin/
To use existing volume groups you have to activate them.
# vgscan # vgchange -a y
To mount it, find the VG name, then find that name in /dev/
# vgdisplay | head --- Volume group --- VG Name music2_vg
# ls /dev/music2_vg/* /dev/music2_vg/lvol1
# mount /dev/music2_vg/lvol1 /mnt/tmp # ls /mnt/tmp lost+found mp3