From: Harald W. <hwe...@gm...> - 2008-05-20 06:47:18
|
Hello Henry, Henry Nestler <Hen...@Ar...>: >I have one free partition. How can I setup it as "Linux LVM"? >Short steps or a link to any simple help side would help me, please. The only thing you need to do to reproduce the behavior is to set the partition type to 8e ("Linux LVM / Solaris") with fdisk. If you want to make further experiments with LVM, you should boot a diskless Linux (e.g. Knoppix) and set the partition type to 8e. Then: create a LVM physical volume on the partition: pvcreate /dev/hda8 create a volume group: vgcreate test /dev/hda8 create a logical volume within the volume group lvcreate -n vol1 -L 1G test The volume group's device is now visible under /dev/test/vol1 , which is a symbolic link to /dev/mapper/test-vol1 . You can handle it like an ordinary partition, e.g. mkfs.ext3 /dev/test/vol1 mount -t ext3 /dev/test/vol1 /mnt/volume1 Use the commands pvs, vgs, and lvs to list the physical volumes, volume groups, and logical volumes on your system. Use pvscan, vgscan, and lvscan to rescan the LVM configuration after attaching a device or making externally changes. Thank you for your support! Regards, Harald |