Setting up LVM in suse
Following is the procedure to setup LVM on SUSE LINUX
1 . First create physical volume
# pvcreate /dev/device [/dev/devices] …
This command initilize physical devices as physical volumes (PV)
2. Next is to create Volume group (VG)
# vgcreate vg-name /dev/device [/dev/device] …
This will create volume group name vg-name.
3. Next step is to create Logical volume (LV)
# lvcreate -L size [K|M|G|T] -n lv-name vg-name
This command will create lv name on vg-name volume .
4. Next is to create file system on logical volume
# mkfs.ext2 /dev/vg-name/lv-name
This will create file system of type ext2
5. Mount the file system
# mount /dev/vg-name/lv-name /mount-point
Now in future you want to resize it , type the following command
# lvextend -L +512M /dev/vg-name/lv-name

Leave a Reply