1748208 Members
2804 Online
108759 Solutions
New Discussion юеВ

Re: vgscan errors

 
Patrick Wallek
Honored Contributor

Re: vgscan errors

What does a 'vgdisplay -v vg00' show? Is there a phantom disk for vg00?

Post the results back, please.
Todd McDaniel_1
Honored Contributor

Re: vgscan errors

There are no phantom disks in vg00 when I run vgdisplay. It has normal output.


vgscan output below. I have recreated the disk devices from backup and by rmsf and recreating them with insf -e.

===============================
# vgscan -av
Creating "/etc/lvmtab".

vgscan: has no correspoding valid raw device file under /dev/rdsk.
Verification of unique LVM disk id on each disk in the volume group
/dev/vg00 failed.
Unix, the other white meat.
Alzhy
Honored Contributor

Re: vgscan errors

Run ioscan;insf -e

It should rebuild all your RAW devices that are missing...

Hakuna Matata.
Todd McDaniel_1
Honored Contributor

Re: vgscan errors

yep already done that multiple times and even restored them from a backup.
Unix, the other white meat.
Alex Georgiev
Regular Advisor

Re: vgscan errors

Well, looks like you've tried a lot of things, so that kind of leaves patches as a suspicion.

How recent are your LVM patches; specifically the LVM commands cumulative patches? Are you running 11.0 or 11i?

Also, can you show us the output of 'strings /etc/lvmtab' and 'strings /etc/lvmtab.1'?

Also, I know you say that there are no ghost disks, but have you run 'lvdisplay -kv' on one (or all) of the mirrored LVs?

Now that I think about it, what I might do in your situation is to reduce LVs in vg00 to a single copy (no mirrored LVs). Then I would remove the newly installed PV from vg00.

I would also do 'pvremove /dev/rdsk/c?t8d0'.

Then try another vgscan.

I would also dust off the ignite tapes just in case. :-(
Alex Georgiev
Regular Advisor

Re: vgscan errors

Todd, did you find a solution? I'd like to know how this turned out, and what the problem was.
Bernhard Mueller
Honored Contributor

Re: vgscan errors

Todd,

I think you did not remove the broken disk from vg00, but used the replacement disk with the same device file to add a mirror, right?

vgdisplay vg00 then tells you you have 3 disks but only 2 active.

so for each lvol you run lvdisplay -v -k
the -k gives you the "key" which you have to use in order to remove the old disk and lvol extents from the LVM header (since the device file is not unique) the extents will be displayed with "????" instead of current or stale.

i.e you need to use lvreduce -k to remove all those mirrors and when you are through you can just vgreduce -f vg00 to get rid of the dead PV.

that should settle it.

Regards
Bernhard
Prashanth.D.S
Honored Contributor

Re: vgscan errors

Hi Todd,

Am not a champion in LVM but as i understand this error occurs when a group files are not removed from the non-existant vg's can you please check that once.

Best Regards,
Prashanth