First identify the disk part where you want to setup LVM
Secondly you need to install LVM package in your system.
Assuming here
1. /dev/sda10 - disk partition
2. Disk space is 200G
3. mount point is /home
Now follow the commands
pvcreate /dev/sda10
pvscan
vgscan
Create a volume group
vgcreate -s 16M vol_grp_1 /dev/sda10
vgdisplay
lvcreate -l 200G -n lv_1 vol_grp_1
lvdisplay
mke2fs -j /dev/vol_grp_1/lv_1
mount /dev/vol_grp_1/lv_1 /home
add to /etc/fstab
/dev/vol_grp_1/lv_1 /home ext3 defaults 0 2
No comments:
Post a Comment