Operating System - HP-UX
1830963 Members
2731 Online
110017 Solutions
New Discussion

Problem removing a LV located in disks that were removed from an EVA

 
SOLVED
Go to solution
compiler
Frequent Advisor

Problem removing a LV located in disks that were removed from an EVA


Hi,

By mistake, an EVA-exported disk was removed before lvremoving & vgreducing it in the O.S. (HP-UX 11v23).

When we tried to remove the logical volume that contained that physical disk, we got the following error:

# lvremove /dev/vg06/lvol1
Current path "/dev/dsk/c3t0d2" is an alternate link, skip.
Current path "/dev/dsk/c4t0d2" is an alternate link, skip.
Current path "/dev/dsk/c5t0d2" is an alternate link, skip.
Current path "/dev/dsk/c6t0d2" is an alternate link, skip.
Current path "/dev/dsk/c7t0d2" is an alternate link, skip.
Current path "/dev/dsk/c8t0d2" is an alternate link, skip.
Current path "/dev/dsk/c9t0d2" is an alternate link, skip.
Current path "/dev/dsk/c4t1d2" is an alternate link, skip.
Current path "/dev/dsk/c6t1d2" is an alternate link, skip.
Current path "/dev/dsk/c8t1d2" is an alternate link, skip.
The logical volume "/dev/vg06/lvol1" is not empty;
do you really want to delete the logical volume (y/n) : y
Logical volume "/dev/vg06/lvol1" has been successfully removed.
vgcfgbackup: Unable to read the physical volume.: Device busy
vgcfgbackup: Invalid LVMREC on Physical Volume /dev/rdsk/c2t0d2

If I do an "vgdisplay", I can see that the LV has been removed, but I can still see the old "Physical Volumes" (the PVs of the EVA disk that was removed from the EVA).

Is it safe to do an "vgreduce" command for the missing disk and its alternate paths and the "rmsf -a" of the device files?

How do I fix the "vgcfgbackup" error?

4 REPLIES 4
Ganesan R
Honored Contributor
Solution

Re: Problem removing a LV located in disks that were removed from an EVA

Hi,

Yes. You can safely remove the missing PV's using -f option.

#vgreduce -f /dev/vg01
Best wishes,

Ganesh.
compiler
Frequent Advisor

Re: Problem removing a LV located in disks that were removed from an EVA


I didn't work. I did "vgreduce -f vg06" and the PV still appear in vgdisplay, although they are marked as "Unavailable".

"vgreducing" all the /dev/dsk/xxxxx files worked for the "alternate paths" and the primary path.

Thanks a lot for your help.
Ganesan R
Honored Contributor

Re: Problem removing a LV located in disks that were removed from an EVA

Hi,

Try this,

# vgreduce -l

# vgreduce -l /dev/vg01 /dev/dsk/c1t2d0
Best wishes,

Ganesh.
compiler
Frequent Advisor

Re: Problem removing a LV located in disks that were removed from an EVA


"vgreducing" all the physical paths from the VG solved the problem.