Operating System - HP-UX
1825795 Members
2229 Online
109687 Solutions
New Discussion

removing old alternate link (LVM)

 
SOLVED
Go to solution
Roberto Volsa
Frequent Advisor

removing old alternate link (LVM)

Hello,
i have to reduce a VG of an alternate link that is no more visible.
Simply vgreducing does not work, and also vgreduce - f does not work (-i redice an old disk not available, not an alternate link not available).

Is there any other way to reduce that link without vgexport/vgimport?

thanks and regards
RV
6 REPLIES 6
Yang Qin_1
Honored Contributor

Re: removing old alternate link (LVM)

Hi, can you post vgdisplay error, vgreduce error, "strings /etc/lvmtab" output for that vg. So that we can have a little bit more information. I assume that alternate link is marked as "NO_HW" in output of "ioscan -fnCdisk" or it is not there any more?

Did you tried to recreate lvmtab (mv /etc/lvmtab ot lvmtab.orig then vrscan -a) and run "vgreduce -f vg##"?


Yang
Roberto Volsa
Frequent Advisor

Re: removing old alternate link (LVM)

Hi,
here are the outputs:
#strings /etc/lvmtab
/dev/vg_dstage
/dev/dsk/c2t4d0
/dev/dsk/c14t4d0
/dev/dsk/c16t4d0

#ioscan -fnCdisk
the disk is not shown (maybe a reboot has been performed after the link gone away)

#vgreduce vg_dstage /dev/dsk/c2t4d0
vgreduce: Couldn't query physical volume "/dev/dsk/c2t4d0":
The specified path does not correspond to physical volume attached to
this volume group

#vgdisplay -v vg_dstage
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c2t4d0":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query all of the physical volumes.
--- Volume groups ---
VG Name /dev/vg_dstage
VG Write Access read/write
VG Status available, exclusive
Max LV 255
Cur LV 1
Open LV 1
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 3473
VGDA 2
PE Size (Mbytes) 4
Total PE 3472
Alloc PE 3472
Free PE 0
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c2t4d0":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query all of the physical volumes.
--- Logical volumes ---
LV Name /dev/vg_dstage/lvol1
LV Status available/syncd
LV Size (Mbytes) 13888
Current LE 3472
Allocated PE 3472
Used PV 1


--- Physical volumes ---
PV Name /dev/dsk/c14t4d0
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c2t4d0":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query all of the physical volumes.
PV Name /dev/dsk/c16t4d0 Alternate Link
PV Status available
Total PE 3472
Free PE 0
Autoswitch On




I would like to avoid using vgscan -a because there are a lot of other VG i want leave there.

thanks
Yang Qin_1
Honored Contributor

Re: removing old alternate link (LVM)

Did you run "vgredice -f /dev/vg_dstage" without /dev/dsk/c2t4d0 and what was the result?

Yang
Roberto Volsa
Frequent Advisor

Re: removing old alternate link (LVM)

the result was nothing, also in output: simply vgreduce -f works only with disk no more available, not with alternate link no more available.
Yang Qin_1
Honored Contributor
Solution

Re: removing old alternate link (LVM)

If you don't want to run vgscan -a to recreate lvmtab, did you already run "vgreduce -l /dev/vg_dstage /dev/dsk/c2t4d0"? this will normally remove /dev/dsk/c2t4d0" from lvmtab. If the alternate link is no longer in lvmtab, hopefully, after next reboot, it will be removed from vg_dstage.


Yang
Roberto Volsa
Frequent Advisor

Re: removing old alternate link (LVM)

it works, i missed the -l option