LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 07-24-2015, 12:05 PM   #1
kaplan71
Member
 
Registered: Nov 2003
Posts: 809

Rep: Reputation: 39
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.
 
Old 07-24-2015, 12:55 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
Don't use fdisk unless you need DOS compatibility. It won't work with advanced format or very large disks. use parted.
 
Old 07-24-2015, 01:21 PM   #3
kaplan71
Member
 
Registered: Nov 2003
Posts: 809

Original Poster
Rep: Reputation: 39
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?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
From the command line What is the syntax syntax to import some data into mysql table Glenn D. Linux - Software 1 03-13-2015 09:26 AM
The db2icrt command failed because the specified command syntax was invalid. gio.cot Red Hat 0 11-17-2014 02:44 AM
Vgcreate zinny Linux - Newbie 6 02-25-2014 07:45 PM
[SOLVED] run ps|grep command by script/command line ... ERROR: Unsupported option (BSD syntax) masuch Programming 4 05-23-2012 04:13 AM
vgcreate command is changing /dev/mapper as PV Name in pvdisplay to /dev/dm-xx path neeravsingh Linux - Enterprise 6 03-23-2010 03:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 05:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration