LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   vgcreate command syntax (https://www.linuxquestions.org/questions/red-hat-31/vgcreate-command-syntax-4175548841/)

kaplan71 07-24-2015 12:05 PM

vgcreate command syntax
 
Hello --

We are running the Red Hat Enterprise Linux 4.7 64-bit distribution on a Proliant 380 G5 system that is attached to a StorageWorks M60 disk array. The disk array contains six disks configured as a two terabyte RAID 5 partition. The fdisk readout of the partition is the following:

Quote:

Disk /dev/cciss/c1d0: 2250.3 GB, 2250322797056 bytes
255 heads, 32 sectors/track, 538622 cylinders
Units = cylinders of 8160 * 512 = 4177920 bytes

Device Boot Start End Blocks Id System
/dev/cciss/c1d0p1 1 12278 50094096 83 Linux
We are in the process of setting up the partition to be recognized by the filesystem. The pvcreate command was run using the following syntax:

Quote:

pvcreate -M2 /dev/cciss/c1d0p1
We then ran the vgcreate command using the following syntax:

Quote:

vgcreate -s 256 VolGroup01 /dev/cciss/c1d0p1
To check the volume that was created, we next ran the vgdisplay command with the following results:

Quote:

--- Volume group ---
VG Name VolGroup01
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 1
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 0
Open LV 0
Max PV 0
Cur PV 1
Act PV 1
VG Size 47.75 GB
PE Size 256.00 MB
Total PE 191
Alloc PE / Size 0 / 0
Free PE / Size 191 / 47.75 GB
VG UUID utrFqS-M4AH-qOJa-KSan-xT2a-TA5P-8yQAVv
The output indicates the volume group size at 47.75 GB instead of the the intended two terabytes. What step(s) and/or command syntax need to be run in order to correct this?

Thanks.

smallpond 07-24-2015 12:55 PM

Don't use fdisk unless you need DOS compatibility. It won't work with advanced format or very large disks. use parted.

kaplan71 07-24-2015 01:21 PM

Hello --

I am not familiar with parted, so before I start entering commands, I wanted to run them by the forum for verification.

For starters, I will go into fdisk, and remove the existing partition that was created using that utility.

To access the physical device, the command syntax that will be entered is the following:

Quote:

parted /dev/cciss/c1d0p1
I am not sure what the correct syntax is in order to create the partition, can someone provide that information?

After that, can I proceed with the vgcreate and subsequent commands?


All times are GMT -5. The time now is 12:46 PM.