1827783 Members
2788 Online
109969 Solutions
New Discussion

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

Re: vgcreate error

at this stage I would be thinking:

a) patches - do you have all the latest LVM patches installed?
b) bad disk? do you have another disk you can try the operation on?

HTH

Duncan

I am an HPE Employee
Accept or Kudo
Sharma Sanjeev
Respected Contributor

Re: vgcreate error

Hi Amir

Just looked at you previous reply

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


Here it created VG but error is there
VGRA Corrupted

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

Re: vgcreate error

did you check the latest patch?

a warrior never quits
amir syafiq
Advisor

Re: vgcreate error

that the issues, before this i try to create vg but unsuccesful. Then download new LVM cumulative patch and install to the system with no error, after taht try to create the VG. succesfull but come with error VGRA corrupted.

same error if I create new LV, after reboot or vgchange system unable to activate the VG and mount the LV.

New patch:- PHKL_35970 - s700_800 11.11 LVM Cumulative Patch

http://www13.itrc.hp.com/service/patch/patchDetail.do?patchid=PHKL_35970&sel={hpux:11.11,}&BC=main|search|<>
Sharma Sanjeev
Respected Contributor

Re: vgcreate error

Hi Amir

U can give One try for below

vgexport vg01
delete group file
dd if=/dev/null of=/dev/dsk/c3t2d0
pvcreate -f /dev/rdsk/c3t2d0
mkdir /dev/vg01
mknod /dev/group/vg01 c 64 0x20000
vgcreate -s 32 /dev/vg01 /dev/dsk/c3t2d0


I have assigned points to 0 of 8 responses to my questions and please see rules of ITRC and assign points :-)

Regards
Sanjeev


Everything is Possible as " IMPOSSIBLE" word itself says I M POSSIBLE
Torsten.
Acclaimed Contributor

Re: vgcreate error

Do you have any external devices connected to this servers built-in SCSI port?

Please post a full "ioscan -fn".

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   

Re: vgcreate error

I always worry when people indicate they installed just a single patch... Did you installl all the patch dependencies that go with the patch you mentioned?

HTH

Duncan

I am an HPE Employee
Accept or Kudo
amir syafiq
Advisor

Re: vgcreate error

Thanks all for the guide.
I Already do that step 3 times, at last same thing happen VGRA corrupted. Is they a way to fix VGRA?
Torsten.
Acclaimed Contributor

Re: vgcreate error

Please keep this in mind:

On this server the built-in SCSI port and the upper internal disk slot is the same bus.

It is recommended to have devices only on 1 side - internal or external.

Otherwise you will have very unpredictable behavior, I have seen very similar symptoms on a server with an "open" scsi cable connected to the external port - no devices, no termination - just an open bus.

Please check this.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
amir syafiq
Advisor

Re: vgcreate error

Hi Torsten
I will find the scsi device and connect to built-in scsi port, after that i'll post the ioscan -fn output.

Hi Duncan
Yes, I download with all dependency and install with default option. Patch installed with no error.

Amir
amir syafiq
Advisor

Re: vgcreate error

Hi Torsten,

I check the hardware several times, no external scsi device connected to the build-in scsi port. The only thing wire came from the server is utp cable and power cable
amir syafiq
Advisor

Re: vgcreate error

# ioscan -fn
Class I H/W Path Driver S/W State H/W Type Description
=============================================================================
root 0 root CLAIMED BUS_NEXUS
ioa 0 0 sba CLAIMED BUS_NEXUS System Bus Adapter (880)
ba 0 0/0 lba CLAIMED BUS_NEXUS Local PCI-X Bus Adapter (783)
usb 0 0/0/1/0 hcd CLAIMED INTERFACE NEC USB Interface
usbhub 0 0/0/1/0.1 hub CLAIMED DEVICE USB Root Hub
usb 1 0/0/1/1 hcd CLAIMED INTERFACE NEC USB Interface
usbhub 1 0/0/1/1.1 hub CLAIMED DEVICE USB Root Hub
/dev/hub
usb 2 0/0/1/2 ehci CLAIMED INTERFACE NEC USB Interface
sideba 0 0/0/2/0 side_ba CLAIMED INTERFACE CMD IDE controller
ext_bus 0 0/0/2/0.0 side CLAIMED INTERFACE IDE Primary Channel
target 0 0/0/2/0.0.0 tgt CLAIMED DEVICE
disk 0 0/0/2/0.0.0.0 sdisk CLAIMED DEVICE TEAC DV-28E-B
/dev/dsk/c0t0d0 /dev/rdsk/c0t0d0
target 1 0/0/2/0.0.7 tgt CLAIMED DEVICE
ctl 0 0/0/2/0.0.7.0 sctl CLAIMED DEVICE Initiator
/dev/rscsi/c0t7d0
ext_bus 1 0/0/2/0.1 side CLAIMED INTERFACE IDE Secondary Channel
target 2 0/0/2/0.1.7 tgt CLAIMED DEVICE
ctl 1 0/0/2/0.1.7.0 sctl CLAIMED DEVICE Initiator
/dev/rscsi/c1t7d0
ba 1 0/1 lba CLAIMED BUS_NEXUS Local PCI-X Bus Adapter (783)
ext_bus 2 0/1/1/0 c8xx CLAIMED INTERFACE SCSI C1010 Ultra160 Wide LVD
target 3 0/1/1/0.0 tgt CLAIMED DEVICE
disk 1 0/1/1/0.0.0 sdisk CLAIMED DEVICE HP 73.4GST373453LC
/dev/dsk/c2t0d0 /dev/rdsk/c2t0d0
target 4 0/1/1/0.1 tgt CLAIMED DEVICE
disk 2 0/1/1/0.1.0 sdisk CLAIMED DEVICE HP 73.4GST373453LC
/dev/dsk/c2t1d0 /dev/rdsk/c2t1d0
target 5 0/1/1/0.7 tgt CLAIMED DEVICE
ctl 2 0/1/1/0.7.0 sctl CLAIMED DEVICE Initiator
/dev/rscsi/c2t7d0
ext_bus 3 0/1/1/1 c8xx CLAIMED INTERFACE SCSI C1010 Ultra160 Wide LVD
target 6 0/1/1/1.2 tgt CLAIMED DEVICE
disk 3 0/1/1/1.2.0 sdisk CLAIMED DEVICE HP 300 GST3300655LC
/dev/dsk/c3t2d0 /dev/rdsk/c3t2d0
target 7 0/1/1/1.7 tgt CLAIMED DEVICE
ctl 3 0/1/1/1.7.0 sctl CLAIMED DEVICE Initiator
/dev/rscsi/c3t7d0
lan 0 0/1/2/0 igelan CLAIMED INTERFACE HP PCI 1000Base-T Core
ba 2 0/2 lba CLAIMED BUS_NEXUS Local PCI-X Bus Adapter (783)
ba 3 0/3 lba CLAIMED BUS_NEXUS Local PCI-X Bus Adapter (783)
ba 4 0/4 lba CLAIMED BUS_NEXUS Local PCI-X Bus Adapter (783)
lan 1 0/4/1/0 igelan CLAIMED INTERFACE HP A6825-60101 PCI 1000Base-T Adapter
ba 5 0/6 lba CLAIMED BUS_NEXUS Local PCI-X Bus Adapter (783)
ba 6 0/7 lba CLAIMED BUS_NEXUS Local PCI-X Bus Adapter (783)
tty 0 0/7/1/0 asio0 CLAIMED INTERFACE PCI SimpleComm (103c1290)
/dev/diag/mux0 /dev/mux0 /dev/tty0p0
tty 1 0/7/1/1 asio0 CLAIMED INTERFACE PCI Serial (103c1048)
/dev/GSPdiag1 /dev/mux1 /dev/tty1p2
/dev/diag/mux1 /dev/tty1p0 /dev/tty1p4
unknown -1 0/7/2/0 UNCLAIMED UNKNOWN PCI Display (10025159)
memory 0 8 memory CLAIMED MEMORY Memory
ipmi 0 16 ipmi CLAIMED INTERFACE IPMI Controller
/dev/ipmi
processor 0 128 processor CLAIMED PROCESSOR Processor
#
Suraj K Sankari
Honored Contributor

Re: vgcreate error

Hi,

Please assign some points who give there valuable time for your problem.

go through the below link to see how to assign points

http://forums13.itrc.hp.com/service/forums/helptips.do?#33

Suraj
amir syafiq
Advisor

Re: vgcreate error

case close, problem just because of scsi terminator which
normally automatic terminate by server itself, but in this case
don't know why the automatic terminator didn't work properly.
solution just put hardware terminator and problem solve. suspect
maybe firmware to old.
amir syafiq
Advisor

Re: vgcreate error

case close, problem just because of scsi terminator which
normally automatic terminate by server itself, but in this case
don't know why the automatic terminator didn't work properly.
solution just put hardware terminator and problem solve. suspect
maybe firmware to old.