1833748 Members
2717 Online
110063 Solutions
New Discussion

Re: Cannot vgchange -a y

 
SOLVED
Go to solution
Lai Nee Shyang_1
Frequent Advisor

Cannot vgchange -a y

Hi there,

I got this error message while I try to do vgchange -a y for a vg :
DWPRD:/home/smolns # vgchange -a y vg01
vgchange: Warning: Couldn't attach to the volume group physical volume "/dev/dsk
/c6t8d0":
Cross-device link
vgchange: Warning: couldn't query physical volume "/dev/dsk/c6t8d0":
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.

I did ioscan and the device is still can be detected.
Any suggestions ?

Thanks

Lai
If it doesn't work, We'll make it work. If it works, We'll make it work better.
9 REPLIES 9
S.K. Chan
Honored Contributor

Re: Cannot vgchange -a y

Try activatiing it by setting the quorum check OFF.

# vgchange -a y -q n /dev/vg01

.. ses if it's ok. When it comes up verify if the disk is ok ..

# /etc/diskinfo /dev/rdsk/c6t8d0

.. does that respond with anything ?

Sukant Naik
Trusted Contributor

Re: Cannot vgchange -a y

Hi Lai,

Looks like the server is not able to read the contents of the disk. There are two possibilities.


1. Disk is loosely connected:
The best way is to shutdown the server. Pull the disk out and plug it in, provided it is a pluggable device. OR check the SCSI cables of the disk.

Then reboot. It will be fine.

2. Disk has gone bad
After the reboot is over do
# dd if=/dev/rdsk/c6t8d0 of=/dev/null bs=4k

-Sukant
Who dares he wins
Michael Tully
Honored Contributor

Re: Cannot vgchange -a y

Hi,

Sounds like you've tried to import a volume group? In any case you can't activate a volume group unless it has at 50% of the physical volumes available.

There are two suggestions that come readily to mind.

# diskinfo /dev/rdsk/c6t8d0

# dd if=/dev/dsk/c6t8d0 of=/dev/null

If either give errors, it could your disk is no good.

HTH
~Michael~
Anyone for a Mutiny ?
Patrick Wallek
Honored Contributor

Re: Cannot vgchange -a y

I think the key here is the 'cross-device link' error message. Are you trying to mount a bcv from an EMC array by chance?

Have a look at document 2200144037 from the TKB. I have attached it for your convenience.
S.K. Chan
Honored Contributor

Re: Cannot vgchange -a y

Another possible reason (apart from suspected faulty disk) is that you got VGs claiming the same PV (disk). To verify this look at /etc/lvmtab file.
# strings /etc/lvmtab
==> Do you see c6t8d0 belonging to 2 different VGs? If the anser is yes do this to rebuild the lvmtab file ..

# cd /etc
# mv lvmtab lvmtab.org
# vgscan -v
# strings lvmtab
==> check again

Now try ..

# vgchange -a y vg01
Lai Nee Shyang_1
Frequent Advisor

Re: Cannot vgchange -a y

Hi this is what I get from diskinfo and vgchange

DWPRD:/home/smolns # vgchange -a y -q n /dev/vg01
vgchange: Warning: Couldn't attach to the volume group physical volume "/dev/dsk
/c6t8d0":
Cross-device link
vgchange: Warning: couldn't query physical volume "/dev/dsk/c6t8d0":
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.

DWPRD:/home/smolns # diskinfo /dev/rdsk/c6t8d0
SCSI describe of /dev/rdsk/c6t8d0:
vendor: EMC
product id: SYMMETRIX
type: direct access
size: 8838720 Kbytes
thanks
If it doesn't work, We'll make it work. If it works, We'll make it work better.
T G Manikandan
Honored Contributor
Solution

Re: Cannot vgchange -a y

Hello
I assume that the vg info was lost.

Can you do a
#vgcfgrestore -n /dev/vg01 /dev/rdsk/c6t8d0

check for the man pages of the vgcfgrestore.


Thanks
G Manikandan
T G Manikandan
Honored Contributor

Re: Cannot vgchange -a y

Lai Nee Shyang_1
Frequent Advisor

Re: Cannot vgchange -a y

Yess!! Thank you Mr. T G Manikandan . The vgcfgrestore fix the vg and now I can activate it.

Thank you sir !

Lai
If it doesn't work, We'll make it work. If it works, We'll make it work better.