Operating System - HP-UX
1834624 Members
2503 Online
110069 Solutions
New Discussion

Building VG's with AutoRaid12H

 
SOLVED
Go to solution
John Love_3
Regular Advisor

Building VG's with AutoRaid12H

Any secret to making sure I don't screw this up?

I need 3 VG's using 6 drives in an AutoRaid 12H.

I also need to clear out 3 bad VG's and clean up my lvmtab file.

I can't seem to remove vg03.

Basically I need to totally wipe out vg01 vg02 and vg03 (all references to those VG's) so I can start over.

Thanks again!

John
4 REPLIES 4
James R. Ferguson
Acclaimed Contributor

Re: Building VG's with AutoRaid12H

Hi John:

1. For each logical volume in the volume group, 'lvremove' it. For example:

# lvremove /dev/vg??/lvol?

2. 'vgreduce' each physical volume constituting the volume group, BUT LEAVE ONE. For example:

# vgreduce /dev/vg?? /dev/dsk/c?t?d?

3. 'vgremove' the volume group. For example:

# vgremove /dev/vg??

...JRF...
John Love_3
Regular Advisor

Re: Building VG's with AutoRaid12H

I can't remove VG03 and VG02.
My lvmtab file is messed up. It keeps stating this when I do a vgscan:
Warning: couldn't query physical volume "/dev/dsk/disk_query"

What is disk_query and how do I get it out of my lvmtab file (I don't think it belongs in there)

Also now my vgremove /dev/vg02 (/dev/vg03) commands fail because they are not active. I'm in over my head here.

More help required.

Thanks again!
James R. Ferguson
Acclaimed Contributor
Solution

Re: Building VG's with AutoRaid12H

Hi John:

Preserve what you have and then vgscan again:

# mv /etc/lvmtab /etc/lvmtab.old
# vgscan -a -v
# vgchange /dev/vg?? -a y
# vgdisplay -v /dev/vg?? #...to see what's there...
# lvremove, vgreduce & vgremove as noted in first post.

Take a look at the man pages for 'vgscan'. You will need to do 'lvlnboot -R' to correct boot information and may need to correct alternate links.

...JRF...
John Love_3
Regular Advisor

Re: Building VG's with AutoRaid12H

I got it.
I'm a moron. I figured out what happened in the first place.

The key was the AutoRaid 12H.
A CE setup this system in the first place. s/he created 3 LV's on the autoraid hardware.

Sam showed me all devices in the AutoRaid. So, I had 6 devices (but they were already partitioned into 3 logical devices)

So, I'm on my way.

Thank you ALL for your help with this and the other post. You've all been extremely helpful

John