mr_t_has_a_van
2006-04-10 20:17:45 UTC
Hello,
I've thoroughly read both redbooks on this topic and googled and been
unable to fix this. I wonder now if calling IBM will even help? We
don't currently have software support and I'm not certain if we're
allowed (university) to get per hour support -- I think we have to
plunk down 1500 or so, which is big bucks for us. Here's what's going
on....
There was a hardware failure, and two of the four "disks" in the volume
group were completely trashed. The vg was reduced by two disks. Then
the ODM info was totally removed. No backups of any kind. At this point
I took over. The volume group was of course not in the ODM. I did
redefinevg -d hdisk3 vgdvd, etc. No vary on worked. (I'm condensing
enormously.) Since quorum value is "3", and only two disks remain, I
tried to "chvg -Q n vgdvd" and rebooting. Still, here's the problem:
# varyonvg -f vgdvd
PV Status: hdisk3 000c444d54876714 PVNOTINVG
hdisk4 000c444d5487695e PVNOTINVG
0516-013 varyonvg: The volume group cannot be varied on because
there are no good copies of the descriptor area.
Examining the vgdas with od, I can see the vgdvd volume group's id in
there, and things seem to be in the proper place, so I don't know why
it won't vary on. Now I wonder if I call IBM I'll get someone who's
basically going from the redbook, or might I get some hardcore person
who'll hack the VGDA by hand? My only clue is this from lvm.h:
/*
* PV status values which may be returned from lvm_varyonvg in the
* varyonvg output structure if a quorum is not obtained. (Error
return
* of LVM_NOQUORUM or LVM_NOVGDAS).
*/
#define LVM_PVNOTFND 10 /* physical volume could not be opened
*/
/* or its IPL record or LVM record
*/
/* could not be read
*/
#define LVM_PVNOTINVG 11 /* the PV's LVM record indicates it is
*/
/* not a member of the specified VG
*/
#define LVM_PVINVG 12 /* the PV's LVM record indicates it is
*/
/* a member of the specified VG
*/
But I can see the vgid in the vgda with od.
By way of providing all relevent info, the only lvm commands that will
give me meaningful information without vary on are:
# lsvg -o -n hdisk3
VOLUME GROUP: vgdvd VG IDENTIFIER:
000c444dcf17e567
VG STATE: inactive PP SIZE: 1024
megabyte(s)
VG PERMISSION: read/write TOTAL PPs: 3210 (3287040
megabytes)
MAX LVs: 256 FREE PPs: 0 (0
megabytes)
LVs: 5 USED PPs: 3210 (3287040
megabytes)
OPEN LVs: 0 QUORUM: 1
TOTAL PVs: 4 VG DESCRIPTORS: 4
STALE PVs: 0 STALE PPs: 0
ACTIVE PVs: 0 AUTO ON: yes
MAX PPs per PV: 1016 MAX PVs: 32
# lqueryvg -p hdisk3 -tA
Max LVs: 256
PP Size: 30
Free PPs: 0
LV count: 5
PV count: 4
Total VGDAs: 4
Conc Allowed 0
MAX PPs per 1016
MAX PVs: 32
Conc Autovar 0
Varied on Co 0
Logical: 000c444dcf17e567.1 data1 1
000c444dcf17e567.2 loglv02 1
000c444dcf17e567.3 data2 1
000c444dcf17e567.4 data3 1
000c444dcf17e567.5 data4 1
Physical: 00093560987bcfe0 1 0
00093560987bd3db 1 0
000c444d6e1c94f1 1 0
000c444da0462df9 1 0
Total PPs: 3210
# lquerypv -h /dev/hdisk3 80 10
00000080 000C444D 54876714 00000000 00000000 |..DMT.g.........|
# lspv hdisk3
0516-010 lspv: Volume group must be varied on; use varyonvg command.
PHYSICAL VOLUME: hdisk3 VOLUME GROUP: vgdvd
PV IDENTIFIER: 000c444d54876714 VG IDENTIFIER 000c444dcf17e567
PV STATE: ???????
STALE PARTITIONS: ??????? ALLOCATABLE: ???????
PP SIZE: ??????? LOGICAL VOLUMES: ???????
TOTAL PPs: ??????? VG DESCRIPTORS: ???????
FREE PPs: ???????
USED PPs: ???????
FREE DISTRIBUTION: ???????
USED DISTRIBUTION: ???????
I've thoroughly read both redbooks on this topic and googled and been
unable to fix this. I wonder now if calling IBM will even help? We
don't currently have software support and I'm not certain if we're
allowed (university) to get per hour support -- I think we have to
plunk down 1500 or so, which is big bucks for us. Here's what's going
on....
There was a hardware failure, and two of the four "disks" in the volume
group were completely trashed. The vg was reduced by two disks. Then
the ODM info was totally removed. No backups of any kind. At this point
I took over. The volume group was of course not in the ODM. I did
redefinevg -d hdisk3 vgdvd, etc. No vary on worked. (I'm condensing
enormously.) Since quorum value is "3", and only two disks remain, I
tried to "chvg -Q n vgdvd" and rebooting. Still, here's the problem:
# varyonvg -f vgdvd
PV Status: hdisk3 000c444d54876714 PVNOTINVG
hdisk4 000c444d5487695e PVNOTINVG
0516-013 varyonvg: The volume group cannot be varied on because
there are no good copies of the descriptor area.
Examining the vgdas with od, I can see the vgdvd volume group's id in
there, and things seem to be in the proper place, so I don't know why
it won't vary on. Now I wonder if I call IBM I'll get someone who's
basically going from the redbook, or might I get some hardcore person
who'll hack the VGDA by hand? My only clue is this from lvm.h:
/*
* PV status values which may be returned from lvm_varyonvg in the
* varyonvg output structure if a quorum is not obtained. (Error
return
* of LVM_NOQUORUM or LVM_NOVGDAS).
*/
#define LVM_PVNOTFND 10 /* physical volume could not be opened
*/
/* or its IPL record or LVM record
*/
/* could not be read
*/
#define LVM_PVNOTINVG 11 /* the PV's LVM record indicates it is
*/
/* not a member of the specified VG
*/
#define LVM_PVINVG 12 /* the PV's LVM record indicates it is
*/
/* a member of the specified VG
*/
But I can see the vgid in the vgda with od.
By way of providing all relevent info, the only lvm commands that will
give me meaningful information without vary on are:
# lsvg -o -n hdisk3
VOLUME GROUP: vgdvd VG IDENTIFIER:
000c444dcf17e567
VG STATE: inactive PP SIZE: 1024
megabyte(s)
VG PERMISSION: read/write TOTAL PPs: 3210 (3287040
megabytes)
MAX LVs: 256 FREE PPs: 0 (0
megabytes)
LVs: 5 USED PPs: 3210 (3287040
megabytes)
OPEN LVs: 0 QUORUM: 1
TOTAL PVs: 4 VG DESCRIPTORS: 4
STALE PVs: 0 STALE PPs: 0
ACTIVE PVs: 0 AUTO ON: yes
MAX PPs per PV: 1016 MAX PVs: 32
# lqueryvg -p hdisk3 -tA
Max LVs: 256
PP Size: 30
Free PPs: 0
LV count: 5
PV count: 4
Total VGDAs: 4
Conc Allowed 0
MAX PPs per 1016
MAX PVs: 32
Conc Autovar 0
Varied on Co 0
Logical: 000c444dcf17e567.1 data1 1
000c444dcf17e567.2 loglv02 1
000c444dcf17e567.3 data2 1
000c444dcf17e567.4 data3 1
000c444dcf17e567.5 data4 1
Physical: 00093560987bcfe0 1 0
00093560987bd3db 1 0
000c444d6e1c94f1 1 0
000c444da0462df9 1 0
Total PPs: 3210
# lquerypv -h /dev/hdisk3 80 10
00000080 000C444D 54876714 00000000 00000000 |..DMT.g.........|
# lspv hdisk3
0516-010 lspv: Volume group must be varied on; use varyonvg command.
PHYSICAL VOLUME: hdisk3 VOLUME GROUP: vgdvd
PV IDENTIFIER: 000c444d54876714 VG IDENTIFIER 000c444dcf17e567
PV STATE: ???????
STALE PARTITIONS: ??????? ALLOCATABLE: ???????
PP SIZE: ??????? LOGICAL VOLUMES: ???????
TOTAL PPs: ??????? VG DESCRIPTORS: ???????
FREE PPs: ???????
USED PPs: ???????
FREE DISTRIBUTION: ???????
USED DISTRIBUTION: ???????