1849119 Members
7362 Online
104041 Solutions
New Discussion

Re: vgchange

 
Iqbal Khan_2
Advisor

vgchange

Hello all,
I am on a HP K460 box running 10.20. I am trying to deactivate a volume group and vgchange hangs.
please help.
thanks
Iqbal
5 REPLIES 5
Thomas J. Harrold
Trusted Contributor

Re: vgchange

Hi.

Try running vgdisplay -v | more.
At the bottom of the output, look for any physical devices that may be hung, not responding, offline, etc. Check the syslog and/or dmesg output to see if any devcices are producing errors.

If you have a problem device, you can vgreduce the volume group, and then try to export.

-tjh
I learn something new everyday. (usually because I break something new everyday)
Darrel Louis
Honored Contributor

Re: vgchange

Hi,

If you perform vgchange on another volume Group, is this hanging aswell, if yes,
Did you install Mirror/UX after the LVM patches.
If so try installing the latetst LVM patch.
check the following:
- what vgchange
Is the vgchange from a patch or mirror/ux?

If not,
perform a dd, to check if the disk is oke:
dd if=/dev/rdsk/c?t?d? of=/dev/null bs=64k

Good luck
Bob Helferich
Occasional Advisor

Re: vgchange

See if any of these ideas help:

1) Make sure there are no users/processes accessing that volume group. Do a "fuser -ku /dev/vgXX/lvolY" of each logical volume in the volume group to kill anything accessing it.

2) Do an "lvdisplay -v" of each logical volume in the volume group to see if there are any stale extents.

3) Do a "vgsync."

Hope this helps!
Give me a minute...
Seth Patterson
Advisor

Re: vgchange

hi,

If you have unmounted all of the LV's and the disk appear ok and it still hangs, you may also have an issue with your lvmtab. If that is the case you may want to save /etc/lvmtab to lvmtab.save and run a vgscan -v.

just one more possibility!
Iqbal Khan_2
Advisor

Re: vgchange

Thanks to all for your responses. it had to retrace the disk from the vg.
happy new year's
Iqbal