Setting up LVM in suse

This entry was posted in Linux and tagged on June 17, 2012, by

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

Your email address will not be published. Required fields are marked *

Copyright 2017 ©Aceadmins. All rights reserved.