Thursday, 27 October 2011

CentOS 6.0 -- how to create two logical volumes

CentOS 6.0 -- how to create two logical volumes

Dear All,
I tried to install CentOS 6.0 and couldn't create two logical volumes during the OS installation period. There are 4 hard drives (2*2TB, 2*3TB) in total for the server and I want to create two LV, one LV with one 2TB and the other LV with 3 HDs but couldn't find a way to do so. Eventually I installed OS with 4 stand alone physical HDs and used the commands listed below to create a logical volume which contained 3 HDs, but couldn't find the command gfs_mkfs. My questions are:
1) Is there any gui way to do so
2) Does the methods I used by following the link work or not, where can I find gfs_mkfs?

thanks a lot for the help -- Annie

pvcreate /dev/sda1 /dev/sdb1 /dev/sdc1

vgcreate new_vol_group /dev/sda1 /dev/sdb1 /dev/sdc1

lvcreate -L2G -n new_logical_volume new_vol_group

gfs_mkfs -plock_nolock -j 1 /dev/new_vol_group/new_logical_volume)

No comments:

Post a Comment