1834756 Members
3157 Online
110070 Solutions
New Discussion

Re: vgreduce failed

 
John Bardin
New Member

vgreduce failed

I am trying to remove an old volume group (/dev/vg11) on a SCSI attached EMC Symmetrix. Everytime I try to remove it it errors out because it sees /dev/dsk/disk_query in the /etc/lvmtab. How can I get past this with no downtime. I am contemplating running vgscan to see if that will clear it but I have not run into this before and wnated to see if any had.
Output of strings /etc/lvmtab:
# strings /etc/lvmtab
/dev/vg00
/dev/dsk/c1t6d0
/dev/dsk/c2t6d0
/dev/vg11
/dev/dsk/c3t0d2
/dev/dsk/disk_query
/dev/vg20
/dev/dsk/c15t10d0
/dev/dsk/c15t10d1
/dev/dsk/c17t10d0
/dev/dsk/c17t10d1
/dev/vg21
/dev/dsk/c15t10d2
/dev/dsk/c15t10d3
/dev/dsk/c17t10d2
/dev/dsk/c17t10d3
/dev/vg22
/dev/dsk/c15t10d4
/dev/dsk/c15t10d5
/dev/dsk/c17t10d4
/dev/dsk/c17t10d5
5 REPLIES 5
Jeff Schussele
Honored Contributor

Re: vgreduce failed

Hi John,

Yes, I'd mv lvmtab out & run vgscan -av to recreate.
And you can just vgexport the old VG to remove it.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Pete Randall
Outstanding Contributor

Re: vgreduce failed

John,

Try vgexport.

Pete

Pete
Ashwani Kashyap
Honored Contributor

Re: vgreduce failed

Deactivate Vg11 . Then vgexport vg11 .
Try also removing the HW path against disk_query using rmsf -H .

If everything fails then vgscan should help . But before running vgscan make a copy of your /etc/lvmtab file .
Anil Sedha
Advisor

Re: vgreduce failed

Hi

You can try this out

vgchange -a n /dev/vg11

Remove corresponding device file against /dev/dsk/disk_query

Also, before doing this, do you see disk_query in vgdisplay -v /dev/vg11

If not, then above step can be performed.

activate vg11 using
vgchange -a y /dev/vg11

remove the volume group
vgremove /dev/vg11

Live, love and let live
Dewa Negara_1
Advisor

Re: vgreduce failed

Hi,

No down time needed. It would be :

# vgscan -pv
if no error, continue
# vgscan -av
# vgreduce vg11 /dev/dsk/c3t0d2
# vgremove vg11

Hope this can help.

Rgrds,
Dewa
log all your daily activities on syslog.log every time...