1748214 Members
3334 Online
108759 Solutions
New Discussion юеВ

Re: Pb with vgchange

 
Christian LE-HUEROU_1
Occasional Contributor

Pb with vgchange

Hello, we have a Reboot of a server and an environnment has disappear :

/dev/dsk#vgchange -a y /dev/vgESSAI
vgchange: Warning: Couldn't attach to the volume group physical volume "/dev/dsk/c11t2d1":
Cross-device link
vgchange: Warning: couldn't query physical volume "/dev/dsk/c11t2d1":
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/vgESSAI":
Quorum not present, or some physical volume(s) are missing.

I tried to recreate lvmtab :
/dev/dsk#vgscan -p -a -v
Creating "/etc/lvmtab".
Couldn't stat physical volume "/dev/dsk/c11t0d0":
Invalid argument
.....
Couldn't stat physical volume "/dev/dsk/c14t2d0":

/dev/vgPREMS
/dev/dsk/c11t2d0
/dev/dsk/c11t2d4
/dev/dsk/c23t2d1
/dev/dsk/c23t2d4

...

Vgscan doesn't see my vg --> vgESSAI :
Following Physical Volumes belong to one Volume Group.
Unable to match these Physical Volumes to a Volume Group.
Use the vgimport command to complete the process.
/dev/dsk/c11t2d1
/dev/dsk/c24t2d1
/dev/dsk/c25t2d1
/dev/dsk/c2t2d1
/dev/dsk/c21t2d1
/dev/dsk/c22t2d1

And the end tells me :
The Volume Group /dev/vgESSAI was not matched with any Physical Volumes.
*** LVMTAB has been created successfully.
*** If PV links are configured in the system.
*** Do the following to resync information on disk.
*** #1. vgchange -a y
*** #2. lvlnboot -R

Pb : I CAN'T DO VGCHANGE -A Y.

I try to do :
- vgcfgrestore
- vgexsport/vgimport
- remove and recreate lvmtab... But nothing permitt me to retrieve my environment.

The other pb is all the disk on the beginning of my vgscan :
couldn't query physical volume ....

If someone could help me ?????

Thanks in advance...

4 REPLIES 4
Rita C Workman
Honored Contributor

Re: Pb with vgchange

I generally see this type of error when something has disrupted BCV mounts...

...were these BCV mounts ?

If they were, could you share more details on what your running..

You can also do a SEARCH on cross-device link and you'll see a number of threads (including one when I hit this...) to help you also

HTH,
Rita
Steven E. Protter
Exalted Contributor

Re: Pb with vgchange

run and ioscan and try and get a handle as to what disks are present. You may have a bad one.

Then consider restoring the lvmtab file and using vgreduce -f to force disks out of the volume group.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Sundar_7
Honored Contributor

Re: Pb with vgchange

Could be becoz of bad drives. How are the disks connected to the system ?

do a ioscan first and make sure all the disks are in the CLAIMED state

# ioscan -fnC disk

try a diskinfo command on the disk

# diskinfo /dev/rdsk/c11t0d0

Even if the LVM headers are lost in the disk, I dont believe there will be a "cannot stat" error message from vgscan.

"Cannot stat" indicates the command was not able to open the device file for reading at all.

I will start with ioscan command. If the system is connected to a SAN environment, will be a good idea to check with your SAN admin of any zoning changes. Also make sure the there are no broken connections from the HBA to the disks :-)
Learn What to do ,How to do and more importantly When to do ?
Prashant Zanwar_4
Respected Contributor

Re: Pb with vgchange

I hope you have got the solution on it by now.
You can do a diskinfo on desired device and see if the device is okay.
Check syslog for particular errors on disks.
DO
cstm << EOF > /tmp/disk$$
map
selclass type
infolog
info
EOF

check in /tmp/disk$$ for errors.

Hope above helps.
Prashant

"Intellect distinguishes between the possible and the impossible; reason distinguishes between the sensible and the senseless. Even the possible can be senseless."