Operating System - HP-UX
1833757 Members
2606 Online
110063 Solutions
New Discussion

Can't activate a volume group

 
SOLVED
Go to solution
Cristian_4
Regular Advisor

Can't activate a volume group

i gotta a problem with a hpux server and a raid

i cant activate a volume group

bash# vgdisplay -v /dev/myvg
vgdisplay: Volume group not activated.
vgdisplay: Cannot display volume group "/dev/myvg".
bash#

bash# vgchange -a y /dev/myvg
vgchange: Warning: Couldn't attach to the volume group physical volume "/dev/dsk/c4t5d1":
Cross-device link
vgchange: Warning: Couldn't attach to the volume group physical volume "/dev/dsk/c5t5d1":
Cross-device link
vgchange: Warning: couldn't query physical volume "/dev/dsk/c4t5d1":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Warning: couldn't query physical volume "/dev/dsk/c5t5d1":
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/myvg":
Quorum not present, or some physical volume(s) are missing.

if i execute a diskinfo /dev/rdsk/c4t5d1 o c5t5d1 the disk is there, and it's not zero byte

any clue ?
6 REPLIES 6
Sundar_7
Honored Contributor
Solution

Re: Can't activate a volume group

hmm..try restoring the LVM headers to the disk and try again

# vgcfgrestore -n /dev/myvg /dev/rdsk/c4t5d1
# vgcfgrestore -n /dev/myvg /dev/rdsk/c5t5d1

If it doesnt help then try rebuilding /etc/lvmtab file

# mv /etc/lvmtab /etc/lvmtab.OLD
# vgscan -av

- Sundar
Learn What to do ,How to do and more importantly When to do ?
Kent Ostby
Honored Contributor

Re: Can't activate a volume group

Cristian --

If those don't help then try :

diskinfo /dev/rdsk/c4t5d1

If that fails then you may have a bad disk drive at that location.

In the meantime, if activating the VG without that particular disk would be helpful, you can do:

vgchange -a y -q n /dev/myvg

Best regards,

Kent M. Ostby
"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"
Sundar_7
Honored Contributor

Re: Can't activate a volume group

dd can better tell you if something is wrong with the disk

# dd if=/dev/rdsk/c4t5d1 of=/dev/null bs=1024k

If the above command succeeds without any error message, then your disks are fine.
Learn What to do ,How to do and more importantly When to do ?
Geoff Wild
Honored Contributor

Re: Can't activate a volume group

Check this post:

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

Dietmar says "a cross-device link error is typically issued if the PVID on disk does not match the one stored in lvmtab"

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.
Cristian_4
Regular Advisor

Re: Can't activate a volume group

Sundar, thanks!

the vgcfgrestore did the job, now everything looks ok =)


i still dont get why did i lost the conf. in the disk
Prashant Zanwar_4
Respected Contributor

Re: Can't activate a volume group

Just check I/O timeout on your PV if it is similar to other PV's.
Thanks
Prashant
"Intellect distinguishes between the possible and the impossible; reason distinguishes between the sensible and the senseless. Even the possible can be senseless."