1753419 Members
4754 Online
108793 Solutions
New Discussion юеВ

Re: vgcreate error

 
amir syafiq
Advisor

vgcreate error

Im using RP3410 with HPUX 11.11.

Command that I used to create VG:-

#ioscan тАУfnC disk
Class I H/W Path Driver S/W State H/W Type Description
=========================================================================
disk 0 0/0/2/0.0.0.0 sdisk CLAIMED DEVICE TEAC DV-28E-B
/dev/dsk/c0t0d0 /dev/rdsk/c0t0d0
disk 1 0/1/1/0.0.0 sdisk CLAIMED DEVICE HP 73.4GST373453LC
/dev/dsk/c2t0d0 /dev/rdsk/c2t0d0
disk 2 0/1/1/0.1.0 sdisk CLAIMED DEVICE HP 73.4GST373453LC
/dev/dsk/c2t1d0 /dev/rdsk/c2t1d0
disk 3 0/1/1/1.2.0 sdisk CLAIMED DEVICE HP 300 GST3300655LC

#insf тАУe
#ioscan тАУfnC disk
Class I H/W Path Driver S/W State H/W Type Description
=========================================================================
disk 0 0/0/2/0.0.0.0 sdisk CLAIMED DEVICE TEAC DV-28E-B
/dev/dsk/c0t0d0 /dev/rdsk/c0t0d0
disk 1 0/1/1/0.0.0 sdisk CLAIMED DEVICE HP 73.4GST373453LC
/dev/dsk/c2t0d0 /dev/rdsk/c2t0d0
disk 2 0/1/1/0.1.0 sdisk CLAIMED DEVICE HP 73.4GST373453LC
/dev/dsk/c2t1d0 /dev/rdsk/c2t1d0
disk 3 0/1/1/1.2.0 sdisk CLAIMED DEVICE HP 300 GST3300655LC
/dev/dsk/c3t2d0 /dev/rdsk/c3t2d0

#pvcreate /dev/rdsk/c3t2d0
pvcreate: The physical volume already belongs to a volume group

#pvdisplay тАУv /dev/dsk/c3t2d0
pvdisplay: Couldn't find the volume group to which
physical volume "/dev/dsk/c3t2d0" belongs.
pvdisplay: Cannot display physical volume "/dev/dsk/c3t2d0".

# vgscan -v
vgscan: The physical volume "/dev/dsk/c2t0d0" is already recorded in the "/etc/lvmtab" file.
vgscan: The physical volume "/dev/dsk/c2t1d0" is already recorded in the "/etc/lvmtab" file.
Couldn't stat physical volume "/dev/dsk/c0t0d0":
Invalid argument


/dev/vg00
/dev/dsk/c2t0d0
/dev/dsk/c2t1d0

#vgdisplay тАУv vg01
vgdisplay: Volume group "/dev/vg01" does not exist in the "/etc/lvmtab" file.
vgdisplay: Cannot display volume group "vg01".

ALL look ok

Then I used pvcreate with option f (force)

# pvcreate -f /dev/rdsk/c3t2d0
Physical volume "/dev/rdsk/c3t2d0" has been successfully created.

#mkdir /dev/vg01
#mknod /dev/vg01/group c 64 0x010000

# vgcreate /dev/vg01 /dev/dsk/c3t2d0
Warning: Max_PE_per_PV for the volume group (65535) too small for this PV (71525).
Using only 65535 PEs from this physical volume.
Increased the number of physical extents per physical volume to 65535.
vgcreate: Volume group "/dev/vg01" could not be created:
VGRA for the disk is too big for the specified parameters. Increase the
extent size or decrease max_PVs/max_LVs and try again.

# vgcreate -s 32 /dev/vg01 /dev/dsk/c3t2d0
Increased the number of physical extents per physical volume to 8940.
vgcreate: Volume group "/dev/vg01" could not be created:
The path does not specify a valid physical volume.

That the error, try remove the device file using command rmsf , delete the vg01 folder, rename lvmtab file to lvmtab.bak, vgscan тАУv and etc. the error still same.
24 REPLIES 24
amir syafiq
Advisor

Re: vgcreate error

I try dd and diskinfo command and look ok to me:-

# dd if=/dev/rdsk/c3t2d0 of=/dev/null bs=1024k
8046+0 records in
8046+0 records out

# diskinfo /dev/rdsk/c3t2d0
SCSI describe of /dev/rdsk/c3t2d0:
vendor: HP 300 G
product id: ST3300655LC
type: direct access
size: 292968750 Kbytes
bytes per sector: 512

# cd /etc/lvmconf
# ls
lvm_lock vg00.conf

# strings vg00.conf
CONFIG01
/dev/vg00
/dev/rdsk/c2t0d0
/dev/rdsk/c2t1d0
LVMREC01<
HPLVMBDRI
LVMREC01<
HPLVMBDRI
~V4VGDA0001
VGSA0001I
Sharma Sanjeev
Respected Contributor

Re: vgcreate error

Hi

Please repeat pvcreate -f /dev/rdsk/c3t2d0 again
mkdir /dev/vg01
ll /dev/*/group
if you found group file for vg02 remove that
mknod /dev/vg01/group c 64 0x010000
vgcreate -s 32 /dev/vg01 /dev/dsk/c3t2d0

Regards
Sanjeev
Everything is Possible as " IMPOSSIBLE" word itself says I M POSSIBLE
Ganesan R
Honored Contributor

Re: vgcreate error

Hi,

Where is group file for vg01?

After creating the /dev/vg01 directory create group file before create the vg

#mknod /dev/vg01/group c 64 0x010000

Best wishes,

Ganesh.
Jeeshan
Honored Contributor

Re: vgcreate error

hi amir

>>Warning: Max_PE_per_PV for the volume group (65535) too small for this PV (71525).
Using only 65535 PEs from this physical volume.

here is your problem. Because of your max pe parameter is set to low, it can't be expecting more than its setting value.

try to create another vg and create the file systems.
a warrior never quits
amir syafiq
Advisor

Re: vgcreate error

now creating new volume group no problem. but after create the VG:-

# vgcreate -s 16 /dev/vg01 /dev/dsk/c3t2d0
Increased the number of physical extents per physical volume to 17881.
Volume group "/dev/vg01" has been successfully created.
VGRA appears corrupted


when i try to deactivate or reboot the VG01 can't start.

# pvcreate -f /dev/rdsk/c3t2d0
Physical volume "/dev/rdsk/c3t2d0" has been successfully created.

#vgcreate ├в s 16 /dev/vg01 /dev/dsk/c3t2d0
Volume group /dev/vg01 succerfully created
VGRA corrupted

# vgchange -a n vg01
Volume group "vg01" has been successfully changed.

# vgchange -a y vg01
vgchange: Couldn't activate volume group "vg01":
Quorum not present, or some physical volume(s) are missing.
Sharma Sanjeev
Respected Contributor

Re: vgcreate error

Hi Amir

Activate your VG with no quoram

vgchange -a y -q n /dev/vgname....

than check vgdisplay -v vgname and look for the disks in this VG.

Regards
Sanjeev
Everything is Possible as " IMPOSSIBLE" word itself says I M POSSIBLE
Ganesan R
Honored Contributor

Re: vgcreate error

Hi,

Better remove the VG and recreate it to get out of the mess.

Just export the VG to remove the configuration entirely from the system

#vgexport -v vgname

Now create freshly.
Best wishes,

Ganesh.
amir syafiq
Advisor

Re: vgcreate error

i remove all vg01 config, device file c3t2d0,rename /etc/lvmtab file and create vg again.

# pvcreate -f /dev/rdsk/c3t2d0
Physical volume "/dev/rdsk/c3t2d0" has been successfully created.

#mkdir /dev/vg01

#mknod /dev/vg01 /dev/dsk/c3t2d0

#vgcreate ├в s 16 ├в p 126 ├в e 65535 /dev/vg01 /dev/dsk/c3t2d0
Volume group /dev/vg01 succerfully created
VGRA corrupted

# vgchange -a n vg01
Volume group "vg01" has been successfully changed.

# vgchange -a y vg01
vgchange: Couldn't activate volume group "vg01":
Quorum not present, or some physical volume(s) are missing.

# vgchange -a y -q n vg01
vgchange: Couldn't activate volume group "vg01":
Quorum not present, or some physical volume(s) are missing.


amir syafiq
Advisor

Re: vgcreate error

attach log