Operating System - HP-UX
1834007 Members
1822 Online
110063 Solutions
New Discussion

Cant create a new volume group

 
machaya chivaviro_2
Occasional Advisor

Cant create a new volume group

I am using an HP machine 9000 with HPUX 11.0
The sysstem has disk drives mirrored at volume group level. One of the drives which was mirrored for the file system /Vg00 crushed and was never replaced. We then had an upgrade and changed the system board and new paths were created. Right now I get this error 'Volume group could not be created" when I try to create a new volume group using any number.

If i try to recreate the lmvtab my volume group vg00 disappears and I will be able to add a new volume group but my system files are in vg00.
10 REPLIES 10
Stuart Abramson
Trusted Contributor

Re: Cant create a new volume group

So, you have your vg00 on the disk that was one half of the original vg00 mirror, is that right? Did you reboot your system from that disk?

Where are you trying to vgcreate the new VG? On the old mirrored drive that was replaced, or on another drive? What minor number are you using for the new VG?
Pat Lieberg
Valued Contributor

Re: Cant create a new volume group

If you run a 'strings /etc/lvmtab' are there any other vg's listed besides vg00?

Also, are there any other vg's besides vg00 listed in the /dev directory?
Marvin Strong
Honored Contributor

Re: Cant create a new volume group

my guess is the numbers you are picking are larger than you maxvgs kernel parameter.

check your maxvgs kernel parameter, if its 10 make sure that your using a hex number smaller than a. 0x010000 - 0x0a0000



baiju_3
Esteemed Contributor

Re: Cant create a new volume group

Please post the vgcreate command and command out put .

You can try to reduce the mirror copy to 0 , ie unmirrir and then vgreduce with -f option and get rid of the failed PV .


Once this is done pls try again and post your observations.

thx,
bl.


Good things Just Got better (Plz,not stolen from advertisement -:) )
Howard Marshall
Regular Advisor

Re: Cant create a new volume group

It sounds to me like you have more than one problem. It depends on how each of those previous things were handled at the time.

Sense you have different paths now, you may have to use vgscan -av to get it to scan the disks. If you still have a phantom disk (the crashed one that was removed) in the vg you can remove it with vgreduce -f and it may come down to you having to boot in lvm management mode and exporting and importing the root vg.

You didn't specify why it wouldn't let you create a new vg so I will just list some obvious things to check till you can post back with the specific error messages and such.

Vgcreate from the command line requires you to create the vg directory /dev/vgyy and to create the group node mknod /dev/vgyy/group c 64 0x0y0000 then create the vg.

You should also run pvcreate on the new disk that you want to create the vg from to make sure its formatted correctly.

I hope that helps some

Howard
machaya chivaviro_2
Occasional Advisor

Re: Cant create a new volume group

vg00 is on this drive
SEAGATE ST318404LC 0/0/1/1.2.0 vg00

/ :># strings /etc/lvmtab
/dev/vg00
o=9,M
/dev/dsk/c1t2d0
/dev/dsk/c6t8d0
/dev/vg01
o=9Y
/dev/dsk/c2t2d0
/dev/dsk/c7t8d0
/dev/vg02
o=9Y
/dev/dsk/c6t9d0
/dev/dsk/c7t9d0
/dev/vg03
o=9Y
/dev/dsk/c6t10d0
/dev/dsk/c7t10d0
/dev/vg04
/dev/dsk/c6t11d0
/dev/dsk/c7t11d0
/dev/vg05
/dev/dsk/c6t12d0
/dev/dsk/c7t12d0

/#vgdisplay -v
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 10
Open LV 10
Max PV 16
Cur PV 2
Act PV 1
Max PE per PV 4350
VGDA 2
PE Size (Mbytes) 4
Total PE 4340
Alloc PE 4335
Free PE 5
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

--- Logical volumes ---
LV Name /dev/vg00/lvol1
LV Status available/syncd
LV Size (Mbytes) 84
Current LE 21
Allocated PE 21
Used PV 1

LV Name /dev/vg00/lvol2
LV Status available/syncd
LV Size (Mbytes) 1024
Current LE 256
Allocated PE 256
Used PV 1

LV Name /dev/vg00/lvol3
LV Status available/stale
LV Size (Mbytes) 140
Current LE 35
Allocated PE 70
Used PV 1

LV Name /dev/vg00/lvol4
LV Status available/stale
LV Size (Mbytes) 500
Current LE 125
Allocated PE 250
Used PV 1

LV Name /dev/vg00/lvol5
LV Status available/stale
LV Size (Mbytes) 1000
Current LE 250
Allocated PE 500
Used PV 1

LV Name /dev/vg00/lvol6
LV Status available/stale
LV Size (Mbytes) 552
Current LE 138
Allocated PE 276
Used PV 1

LV Name /dev/vg00/lvol7
LV Status available/stale
LV Size (Mbytes) 1064
Current LE 266
Allocated PE 532
Used PV 1

LV Name /dev/vg00/lvol8
LV Status available/stale
LV Size (Mbytes) 976
Current LE 244
Allocated PE 488
Used PV 1

LV Name /dev/vg00/lvol9
LV Status available/stale
LV Size (Mbytes) 6000
Current LE 1500
Allocated PE 3000
Used PV 1

LV Name /dev/vg00/lvol10
LV Status available/stale
LV Size (Mbytes) 6000
Current LE 1500
Allocated PE 3000
Used PV 1


--- Physical volumes ---
PV Name /dev/dsk/c1t2d0
PV Status available
Total PE 4340
Free PE 5
Autoswitch On



VG Name /dev/vg01
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 9
Open LV 9
Max PV 16
Cur PV 2
Act PV 2
Max PE per PV 4342
VGDA 4
PE Size (Mbytes) 4
Total PE 8680
Alloc PE 7168
Free PE 1512
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

--- Logical volumes ---
LV Name /dev/vg01/lvol1
LV Status available/syncd
LV Size (Mbytes) 1024
Current LE 256
Allocated PE 256
Used PV 1

LV Name /dev/vg01/lvol2
LV Status available/syncd
LV Size (Mbytes) 1024
Current LE 256
Allocated PE 256
Used PV 1

LV Name /dev/vg01/lvol3
LV Status available/syncd
LV Size (Mbytes) 2048
Current LE 512
Allocated PE 512
Used PV 1

LV Name /dev/vg01/lvol4
LV Status available/syncd
LV Size (Mbytes) 2048
Current LE 512
Allocated PE 1024
Used PV 2

LV Name /dev/vg01/lvol5
LV Status available/syncd
LV Size (Mbytes) 2048
Current LE 512
Allocated PE 1024
Used PV 2

LV Name /dev/vg01/lvol6
LV Status available/syncd
LV Size (Mbytes) 2048
Current LE 512
Allocated PE 1024
Used PV 2

LV Name /dev/vg01/lvol7
LV Status available/syncd
LV Size (Mbytes) 2048
Current LE 512
Allocated PE 1024
Used PV 2

LV Name /dev/vg01/lvol8
LV Status available/syncd
LV Size (Mbytes) 2048
Current LE 512
Allocated PE 1024
Used PV 2

LV Name /dev/vg01/lvol9
LV Status available/syncd
LV Size (Mbytes) 2048
Current LE 512
Allocated PE 1024
Used PV 2


--- Physical volumes ---
PV Name /dev/dsk/c2t2d0
PV Status available
Total PE 4340
Free PE 244
Autoswitch On

PV Name /dev/dsk/c7t8d0
PV Status available
Total PE 4340
Free PE 1268
Autoswitch On



VG Name /dev/vg02
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 8
Open LV 8
Max PV 16
Cur PV 2
Act PV 2
Max PE per PV 4342
VGDA 4
PE Size (Mbytes) 4
Total PE 8680
Alloc PE 8192
Free PE 488
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

--- Logical volumes ---
LV Name /dev/vg02/lvol1
LV Status available/syncd
LV Size (Mbytes) 2048
Current LE 512
Allocated PE 1024
Used PV 2

LV Name /dev/vg02/lvol2
LV Status available/syncd
LV Size (Mbytes) 2048
Current LE 512
Allocated PE 1024
Used PV 2

LV Name /dev/vg02/lvol3
LV Status available/syncd
LV Size (Mbytes) 2048
Current LE 512
Allocated PE 1024
Used PV 2

LV Name /dev/vg02/lvol4
LV Status available/syncd
LV Size (Mbytes) 2048
Current LE 512
Allocated PE 1024
Used PV 2

LV Name /dev/vg02/lvol5
LV Status available/syncd
LV Size (Mbytes) 2048
Current LE 512
Allocated PE 1024
Used PV 2

LV Name /dev/vg02/lvol6
LV Status available/syncd
LV Size (Mbytes) 2048
Current LE 512
Allocated PE 1024
Used PV 2

LV Name /dev/vg02/lvol7
LV Status available/syncd
LV Size (Mbytes) 2048
Current LE 512
Allocated PE 1024
Used PV 2

LV Name /dev/vg02/lvol8
LV Status available/syncd
LV Size (Mbytes) 2048
Current LE 512
Allocated PE 1024
Used PV 2


--- Physical volumes ---
PV Name /dev/dsk/c6t9d0
PV Status available
Total PE 4340
Free PE 244
Autoswitch On

PV Name /dev/dsk/c7t9d0
PV Status available
Total PE 4340
Free PE 244
Autoswitch On



VG Name /dev/vg03
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 8
Open LV 8
Max PV 16
Cur PV 2
Act PV 2
Max PE per PV 4342
VGDA 4
PE Size (Mbytes) 4
Total PE 8680
Alloc PE 8192
Free PE 488
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

--- Logical volumes ---
LV Name /dev/vg03/lvol1
LV Status available/syncd
LV Size (Mbytes) 2048
Current LE 512
Allocated PE 1024
Used PV 2

LV Name /dev/vg03/lvol2
LV Status available/syncd
LV Size (Mbytes) 2048
Current LE 512
Allocated PE 1024
Used PV 2

LV Name /dev/vg03/lvol3
LV Status available/syncd
LV Size (Mbytes) 2048
Current LE 512
Allocated PE 1024
Used PV 2

LV Name /dev/vg03/lvol4
LV Status available/syncd
LV Size (Mbytes) 2048
Current LE 512
Allocated PE 1024
Used PV 2

LV Name /dev/vg03/lvol5
LV Status available/syncd
LV Size (Mbytes) 2048
Current LE 512
Allocated PE 1024
Used PV 2

LV Name /dev/vg03/lvol6
LV Status available/syncd
LV Size (Mbytes) 2048
Current LE 512
Allocated PE 1024
Used PV 2

LV Name /dev/vg03/lvol7
LV Status available/syncd
LV Size (Mbytes) 2048
Current LE 512
Allocated PE 1024
Used PV 2

LV Name /dev/vg03/lvol8
LV Status available/syncd
LV Size (Mbytes) 2048
Current LE 512
Allocated PE 1024
Used PV 2


--- Physical volumes ---
PV Name /dev/dsk/c6t10d0
PV Status available
Total PE 4340
Free PE 244
Autoswitch On

PV Name /dev/dsk/c7t10d0
PV Status available
Total PE 4340
Free PE 244
Autoswitch On



VG Name /dev/vg04
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 17
Open LV 17
Max PV 16
Cur PV 2
Act PV 1
Max PE per PV 8683
VGDA 2
PE Size (Mbytes) 4
Total PE 8681
Alloc PE 8500
Free PE 181
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

--- Logical volumes ---
LV Name /dev/vg04/lvol1
LV Status available/stale
LV Size (Mbytes) 2000
Current LE 500
Allocated PE 1000
Used PV 1

LV Name /dev/vg04/lvol2
LV Status available/stale
LV Size (Mbytes) 2000
Current LE 500
Allocated PE 1000
Used PV 1

LV Name /dev/vg04/lvol3
LV Status available/stale
LV Size (Mbytes) 2000
Current LE 500
Allocated PE 1000
Used PV 1

LV Name /dev/vg04/lvol4
LV Status available/stale
LV Size (Mbytes) 2000
Current LE 500
Allocated PE 1000
Used PV 1

LV Name /dev/vg04/lvol5
LV Status available/stale
LV Size (Mbytes) 2000
Current LE 500
Allocated PE 1000
Used PV 1

LV Name /dev/vg04/lvol6
LV Status available/stale
LV Size (Mbytes) 2000
Current LE 500
Allocated PE 1000
Used PV 1

LV Name /dev/vg04/lvol7
LV Status available/stale
LV Size (Mbytes) 2000
Current LE 500
Allocated PE 1000
Used PV 1

LV Name /dev/vg04/lvol8
LV Status available/stale
LV Size (Mbytes) 2000
Current LE 500
Allocated PE 1000
Used PV 1

LV Name /dev/vg04/lvol9
LV Status available/stale
LV Size (Mbytes) 2000
Current LE 500
Allocated PE 1000
Used PV 1

LV Name /dev/vg04/lvol10
LV Status available/stale
LV Size (Mbytes) 2000
Current LE 500
Allocated PE 1000
Used PV 1

LV Name /dev/vg04/lvol11
LV Status available/stale
LV Size (Mbytes) 2000
Current LE 500
Allocated PE 1000
Used PV 1

LV Name /dev/vg04/lvol12
LV Status available/stale
LV Size (Mbytes) 2000
Current LE 500
Allocated PE 1000
Used PV 1

LV Name /dev/vg04/lvol13
LV Status available/stale
LV Size (Mbytes) 2000
Current LE 500
Allocated PE 1000
Used PV 1

LV Name /dev/vg04/lvol14
LV Status available/stale
LV Size (Mbytes) 2000
Current LE 500
Allocated PE 1000
Used PV 1

LV Name /dev/vg04/lvol15
LV Status available/stale
LV Size (Mbytes) 2000
Current LE 500
Allocated PE 1000
Used PV 1

LV Name /dev/vg04/lvol16
LV Status available/stale
LV Size (Mbytes) 2000
Current LE 500
Allocated PE 1000
Used PV 1

LV Name /dev/vg04/lvol17
LV Status available/stale
LV Size (Mbytes) 2000
Current LE 500
Allocated PE 1000
Used PV 1


--- Physical volumes ---
PV Name /dev/dsk/c6t11d0
PV Status available
Total PE 8681
Free PE 181
Autoswitch On
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c6t8d0":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query all of the physical volumes.
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c7t11d0":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query all of the physical volumes.
vgdisplay: Volume group not activated.
vgdisplay: Cannot display volume group "/dev/vg05".
Muthukumar_5
Honored Contributor

Re: Cant create a new volume group

Refer this:

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=422226

Your lvmtab entry for /dev/vg00 is corrupted.

hth.
Easy to suggest when don't know about the problem!
CAS_2
Valued Contributor

Re: Cant create a new volume group

Run

ioscan -fnC disk

and check its output in order to find bad disks.
machaya chivaviro_2
Occasional Advisor

Re: Cant create a new volume group

# ioscan -fnC disk

Class I H/W Path Driver S/W State H/W Type Description
=======================================================================
disk 25 0/0/1/1.0.0 sdisk CLAIMED DEVICE SEAGATE ST336607LC
/dev/dsk/c1t0d0 /dev/rdsk/c1t0d0
disk 0 0/0/1/1.2.0 sdisk CLAIMED DEVICE SEAGATE ST318404LC
/dev/dsk/c1t2d0 /dev/rdsk/c1t2d0
disk 26 0/0/2/0.0.0 sdisk CLAIMED DEVICE FUJITSU MAJ3364MC
/dev/dsk/c2t0d0 /dev/rdsk/c2t0d0
disk 1 0/0/2/0.2.0 sdisk CLAIMED DEVICE SEAGATE ST318404LC
/dev/dsk/c2t2d0 /dev/rdsk/c2t2d0
disk 2 0/0/2/1.2.0 sdisk CLAIMED DEVICE HP DVD-ROM 304
/dev/dsk/c3t2d0 /dev/rdsk/c3t2d0
disk 16 0/10/0/0.9.0 sdisk CLAIMED DEVICE SEAGATE ST318203LC
/dev/dsk/c6t9d0 /dev/rdsk/c6t9d0
disk 17 0/10/0/0.10.0 sdisk CLAIMED DEVICE SEAGATE ST318203LC
/dev/dsk/c6t10d0 /dev/rdsk/c6t10d0
disk 21 0/10/0/0.11.0 sdisk CLAIMED DEVICE FUJITSU MAJ3364MC
/dev/dsk/c6t11d0 /dev/rdsk/c6t11d0
disk 22 0/10/0/0.12.0 sdisk CLAIMED DEVICE SEAGATE ST336704LC
/dev/dsk/c6t12d0 /dev/rdsk/c6t12d0
disk 18 0/12/0/0.8.0 sdisk CLAIMED DEVICE SEAGATE ST318203LC
/dev/dsk/c7t8d0 /dev/rdsk/c7t8d0
disk 19 0/12/0/0.9.0 sdisk CLAIMED DEVICE SEAGATE ST318203LC
/dev/dsk/c7t9d0 /dev/rdsk/c7t9d0
disk 20 0/12/0/0.10.0 sdisk CLAIMED DEVICE SEAGATE ST318203LC
/dev/dsk/c7t10d0 /dev/rdsk/c7t10d0
disk 23 0/12/0/0.11.0 sdisk CLAIMED DEVICE SEAGATE ST336607LC
/dev/dsk/c7t11d0 /dev/rdsk/c7t11d0
disk 24 0/12/0/0.12.0 sdisk CLAIMED DEVICE SEAGATE ST336704LC
/dev/dsk/c7t12d0 /dev/rdsk/c7t12d0
Devender Khatana
Honored Contributor

Re: Cant create a new volume group

Hi,

The problem is that one disk of vg00 is missing and one disk of vg04 has been replaced but not put back to the VG.

Have you replaced /dev/dsk/c7t11d0?

Where is /dev/dsk/c6t8d0 gone?

There were extents allocated to these disks.

You can do a vgcfgrestore to /dev/c7t11d0 if you replaced it and want it to be put back in vg04.

#vgcfgrestore -n /dev/vg04 /dev/dsk/c7t11d0

Or use -R option if you wish to do this when vg is active.

Now use vgsync to sync the stale PE's.
#vgsync

Repeat to see the details.

#vgdisplay -v /dev/vg04

The same thing can be repeated slight differently for rootvg also but your disk at the path is missing still.


HTH,
Devender
Impossible itself mentions "I m possible"