1825775 Members
1982 Online
109687 Solutions
New Discussion

missing vg

 
mit_3
Advisor

missing vg

I use an rp3440 attached to MSA30 Disk array of 8 Disks, mirrored 4-4. After a power failure on the MSA, the machine can boot normaly but can not mount the volumegroups vg01 and vg02 which reside on the Disk array. Physiscaly the disks are fine and i can see them with ioscan command. I have oracle database on them and i don't want to lose any of the data. How can I reattach these vg's?
20 REPLIES 20
Rick Garland
Honored Contributor

Re: missing vg

Are these VGs not activated? If you run the 'vgdisplay -v' command do these VGs show in the output?

mit_3
Advisor

Re: missing vg

When I do vgdisplay -v they do not show for both vg's. The message is:
Vgdisplay: volume group not activated
Can not display volume group /dev/vg01


Geoff Wild
Honored Contributor

Re: missing vg

vgchange -a y vg01
vgchange -a y vg02

Then

mount -a

Your server may have come up before the array did.

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Peter Nikitka
Honored Contributor

Re: missing vg

Hi,

to activate a VG, use

vgchange -a y /dev/vgXX

mfG Peter
The Universe is a pretty big place, it's bigger than anything anyone has ever dreamed of before. So if it's just us, seems like an awful waste of space, right? Jodie Foster in "Contact"
Rick Garland
Honored Contributor

Re: missing vg

If the VGs are not active, you will need to activate with the commands listed above.

Then you can mount them.

mit_3
Advisor

Re: missing vg

Trying to activate i get this
# vgchange -a y /dev/vg01
vgchange: Warning: Couldn't attach to the volume group physical volume "/dev/dsk
/c4t0d0":
Unknown error
vgchange: Warning: couldn't query physical volume "/dev/dsk/c4t0d0":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Warning: couldn't query all of the physical volumes.
vgchange: Couldn't activate volume group "/dev/vg01":
Quorum not present, or some physical volume(s) are missing.


Torsten.
Acclaimed Contributor

Re: missing vg

Hi,

try

vgchange -a y -q n vg01

to activate the VG. Investigate the missing disk - could be broken.

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!   
Rick Garland
Honored Contributor

Re: missing vg

Missing disks? Incorrect device names?

Further investigation is needed.

Did the device names change for the disks on the reboot?
mit_3
Advisor

Re: missing vg

hi
followin the instructions I entered:

# vgchange -a y -q n vg01
vgchange: Warning: Couldn't attach to the volume group physical volume "/dev/dsk
/c4t0d0":
Unknown error
vgchange: Warning: couldn't query physical volume "/dev/dsk/c4t0d0":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Warning: couldn't query all of the physical volumes.
vgchange: Couldn't activate volume group "vg01":
Quorum not present, or some physical volume(s) are missing.
Geoff Wild
Honored Contributor

Re: missing vg

I would do a diskinfo on the /dev/rdsk/ of all the disks in vg01 and vg02 in strings /etc/lvmtab

Any errors?

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
mit_3
Advisor

Re: missing vg

Thanks for response. The output is
ABCHPUX[267] / #strings /etc/lvmtab
/dev/vg00
/dev/dsk/c2t0d0
/dev/dsk/c2t1d0
/dev/vg01
/dev/dsk/c4t0d0
/dev/vg02
/dev/dsk/c4t0d1
ABCHPUX[268] / #diskinfo -v /dev/rdsk/c4t0d0
SCSI describe of /dev/rdsk/c4t0d0:
vendor: HP
product id: LOGICAL VOLUME
type: direct access
size: 430110296 Kbytes
bytes per sector: 512
rev level: 2.34
blocks per disk: 860220592
ISO version: 0
ECMA version: 0
ANSI version: 2
removable media: no
response format: 2
(Additional inquiry bytes: (32)2e (33)30 (34)0 (35)0 (36)0 (37)0 (38)0 (39)0
(40)0 (41)0 (42)0 (43)0 (44)0 (45)0 (46)0 (47)0 (48)0 (49)0 (50)0 )
ABCHPUX[269] / #diskinfo -v /dev/rdsk/c4t0d1
SCSI describe of /dev/rdsk/c4t0d1:
vendor: HP
product id: LOGICAL VOLUME
type: direct access
size: 430110296 Kbytes
bytes per sector: 512
rev level: 2.34
blocks per disk: 860220592
ISO version: 0
ECMA version: 0
ANSI version: 2
removable media: no
response format: 2
(Additional inquiry bytes: (32)2e (33)31 (34)0 (35)0 (36)0 (37)0 (38)0 (39)0
(40)0 (41)0 (42)0 (43)0 (44)0 (45)0 (46)0 (47)0 (48)0 (49)0 (50)0 )
ABCHPUX[270] / #
Geoff Wild
Honored Contributor

Re: missing vg

Okay - let us try something new:

ioscan -fnC disk
mv /etc/lvmtab /etc/lvmtab.bak
vgscan
insf -eC disk
vgchange -a y vg01

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
mit_3
Advisor

Re: missing vg

Geoff, thank you for assisting...
The output of the the istruction you gave:
ABCHPUX[439] / #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-C
/dev/dsk/c0t0d0 /dev/rdsk/c0t0d0
disk 1 0/1/1/0.0.0 sdisk CLAIMED DEVICE HP 146 GMAT3147NC
/dev/dsk/c2t0d0 /dev/rdsk/c2t0d0
disk 2 0/1/1/0.1.0 sdisk CLAIMED DEVICE HP 146 GMAW3147NC
/dev/dsk/c2t1d0 /dev/rdsk/c2t1d0
disk 3 0/3/1/0/4/0.0.0 sdisk CLAIMED DEVICE HP LOGICAL
VOLUME
/dev/dsk/c4t0d0 /dev/rdsk/c4t0d0
disk 4 0/3/1/0/4/0.0.1 sdisk CLAIMED DEVICE HP LOGICAL
VOLUME
/dev/dsk/c4t0d1 /dev/rdsk/c4t0d1
ABCHPUX[440] / #mv /etc/lvmtab /etc/lvmtab.old
ABCHPUX[441] / #vgscan
Creating "/etc/lvmtab".
vgscan: Couldn't access the list of physical volumes for volume group "/dev/vg00
".
vgscan: Couldn't access the list of physical volumes for volume group "/dev/vg01
".
vgscan: Couldn't access the list of physical volumes for volume group "/dev/vg02
".
mit_3
Advisor

Re: missing vg

Doing a vgscan -v gives this:

ABCHPUX[435] /etc #vgscan -v
vgscan: Warning: couldn't query physical volume "/dev/dsk/c4t0d0":
The specified path does not correspond to physical volume attached to
this volume group
vgscan: Warning: couldn't query all of the physical volumes.
vgscan: Warning: couldn't query physical volume "/dev/dsk/c4t0d1":
The specified path does not correspond to physical volume attached to
this volume group
vgscan: Warning: couldn't query all of the physical volumes.
vgscan: The physical volume "/dev/dsk/c2t0d0" is already recorded in the "/etc/l
vmtab" file.
vgscan: The physical volume "/dev/dsk/c2t1d0" is already recorded in the "/etc/l
vmtab" file.
vgscan: The physical volume "/dev/dsk/c4t0d0" is already recorded in the "/etc/l
vmtab" file.
vgscan: The physical volume "/dev/dsk/c4t0d1" is already recorded in the "/etc/l
vmtab" file.
Victor BERRIDGE
Honored Contributor

Re: missing vg

Hi mit,

Lets start from the begining, to solve an issue like this one, the whole history has to be give n for a correct understanding and lay down of all the possible issues, once that is know can you start to solve....
So,
1 - you had a power failure on a disk subsystem
mirrored 4-4 (should I understand srtiped on 4 disks and mirrored after?)
How is vg00 configured (internal with mirroring?)
How was the sub-system connected? etc...

2 - What happend? (understand chronological events)

3 - what did you do next?


4 - what is in or OLDsyslog.log and what is is the syslog now (no sence if you rebooted a few times, your Old would have been replaced...), is there anything in /var/adm/crash?

All the best
Victor
Torsten.
Acclaimed Contributor

Re: missing vg

OK, your missing device is a LUN presented by a smart array controller installed in slot 2 (second from top), right?

You need to run an "ioscan -fn" and locate the array controller device (e.g. /dev/ciss4).

Now run

sautil /dev/ciss4

and post the results. This will show the status of the array.

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!   
Torsten.
Acclaimed Contributor

Re: missing vg

to add this: there is only a single path to the volumes (via the smart array controller).
This is also the reason why the quorum override cannot work.

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!   
mit_3
Advisor

Re: missing vg

Hi,

I have run the sautil on ciss4, then activated the vg's , run a fsck on the filesystems as they were corrup after trying to mount.

The array is now back online and i managed to start the oracle db wich and all is fine now.

Thanks for assisting!
mit_3
Advisor

Re: missing vg

This issue has been solved.
Peter Nikitka
Honored Contributor

Re: missing vg

Hi,

since you are new to this forum, I wont to put your attention to

http://forums1.itrc.hp.com/service/forums/helptips.do?#28

mfG Peter
The Universe is a pretty big place, it's bigger than anything anyone has ever dreamed of before. So if it's just us, seems like an awful waste of space, right? Jodie Foster in "Contact"