Operating System - HP-UX
1834679 Members
2671 Online
110069 Solutions
New Discussion

vgremove on a NIKE RAID 5

 
SOLVED
Go to solution

vgremove on a NIKE RAID 5

I want to remove vg03 on from a NIKE RAID 5.
I did lvremove -f on all lvols, vgreduce on all alternate links, all but the last disk.
Now I know, I missed one disk!
vgremove told me:
Couldn't remove the entry "/dev/vg03" from "./etc/lvmtab".
strings /etc/lvmtab finds only /dev/dsk/c1t3d0 but strings on strings /etc/lvmconf/vg03.conf tells me there is still another disk /dev/rdsk/c0t2d0

How can I cleanup?

Clemens
always look on the bright side of life
6 REPLIES 6
Helen French
Honored Contributor
Solution

Re: vgremove on a NIKE RAID 5

Hi Clemens:

You can just export it:

# vgexport /dev/vg03

This will remove entries from /etc/lvmtab and the lvmconf directory.

HTH,
Shiju
Life is a promise, fulfill it!
Jeff Schussele
Honored Contributor

Re: vgremove on a NIKE RAID 5

Hi Clemens,

You can do a vgexport /dev/vg03
That will get rid of the /dev/vg03 info
Then do a
pvcreate -f /dev/rdsk/c0t2d0
to wipe the LV info on the disk
Then if still in lvmtab do
mv /etc/lvmtab /etc/lvmtab.oldThen do a
vgscan -av
to recreate the /etc/lvmtab

Think that will achieve your goal.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
S.K. Chan
Honored Contributor

Re: vgremove on a NIKE RAID 5

# vgexport /dev/vg03

will do the job here.
ashish nanjiani
Frequent Advisor

Re: vgremove on a NIKE RAID 5

1) do vxexport on vg03
2) check if /dev/vg03 is still there. If exists than rm /dev/vg03

ashish
Victor_5
Trusted Contributor

Re: vgremove on a NIKE RAID 5

vgexport /dev/vg03

It will remove vg03 from the system, without modifying the lv info found on the pv.

Re: vgremove on a NIKE RAID 5

thanks a lot to all!
This answer was to easy to think about.
I thought I'd learn something about vgcfgrestore... :-)

Clemens
always look on the bright side of life