Operating System - HP-UX
1838250 Members
4395 Online
110125 Solutions
New Discussion

PV falsley showing allocated PE's

 
Byron Myers
Trusted Contributor

PV falsley showing allocated PE's

L2000, SCSI disk.
pvdisplay /dev/dsk/c4t0d0 shows Allocated PE 334. But ALL extends are FREE! I cannot vgreduce this disk out - vgreduce says PE's are still in use. Help!
If you can focus your eyes far and straight enough ahead of yourself, you can see the back of your head.
7 REPLIES 7
Oleg Zieaev_1
Regular Advisor

Re: PV falsley showing allocated PE's

Hello

How do you see it is free?
run pvdisplay -v /dev/dsk/c4t0d0 to list all extends first and to confirm.

Hope this helps,
0leg
Professionals will prevail ...
Byron Myers
Trusted Contributor

Re: PV falsley showing allocated PE's

Yes, I ran the pvdisplay -v, every extent shows "free".
If you can focus your eyes far and straight enough ahead of yourself, you can see the back of your head.
Sridhar Bhaskarla
Honored Contributor

Re: PV falsley showing allocated PE's

Hi,

1. Did you see any messages in dmesg or syslog corresponding to disk errors?.

2. Run vgchange -a y on the volume group containing the PV and see if it is successful.

3. Use vgcfgrestore command on the PV followed by vgchange -a y and see if you can see the used PEs show up.

4. At the last resort when you get time, export the volume group with a map file and import it back. You may get errors taht it could not import logical volumes due to missing PVs. Probably it may let you take it out of the VG.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
S.K. Chan
Honored Contributor

Re: PV falsley showing allocated PE's

I've seen the "???" status before in a pvdisplay output which is caused by stale extents but not the symptom you've just described. Have you tried vgreduce with the "-f" option to force it ? My guess is it probably would not work either. In this situation I would vgexport and vgimport the volume group, something like so ..
# cd /
# vgchange -a n vgXX
# vgexport -s -m vgXX.map -v /dev/vgXX
# mkdir /dev/vgXX
# mknod /dev/vgXX/group c 64 0x0X0000
# vgimport -s -m vgXX.map
# vgchange -a y vgXX
.. if all else fails. Are you up-to-date on LVM patches ?


Byron Myers
Trusted Contributor

Re: PV falsley showing allocated PE's

Yeh, I was trying to fix this online. I will have to schedule outage time to take the VG offline. I tried everything suggested - no luck. The root vg has a failed disk in it, c4t0d0 is in another VG. the Root VG is running off its mirror. Maybe related?
If you can focus your eyes far and straight enough ahead of yourself, you can see the back of your head.
Byron Myers
Trusted Contributor

Re: PV falsley showing allocated PE's

A reboot cleared this problem. I will apply the latest quality patches - hoping that one of the LVM patches addresses this problem.
If you can focus your eyes far and straight enough ahead of yourself, you can see the back of your head.
George Abraham_1
Regular Advisor

Re: PV falsley showing allocated PE's


hi,

The hardware patches should fix the problem..Always good to be update on patches

keep smiling
george
keep smiling