Operating System - HP-UX
1837394 Members
3012 Online
110116 Solutions
New Discussion

Re: Adding spare disk to a VG.

 
SOLVED
Go to solution
Dee Jacobs
Advisor

Adding spare disk to a VG.

I added a spare disk to a VG on node 1 of a 2 node system using instructions in the sys admin guide: LVM p. 77. HPUX  B.11.31. The spare is reported in vgdisplay. It's also recorded in lvmtab.

 

How do I get it to show on node 2? I deactivated on node1 then went to node2 and activated. It was not there. There are no more instructions in that section of the book. As usual, it must be hidden somewhere else with no link to it.

2 REPLIES 2
Patrick Wallek
Honored Contributor
Solution

Re: Adding spare disk to a VG.

I believe you need to treat this exactly as would if you added any disk to a MC/SG VG.

 

On the Primary node

1) Run 'vgexport -p -v -s -m /tmp/vgname.map vgname'

2) Copy the /tmp/vgname.map file to the secondary node.

 

On the secondary node

3) remove the vg via 'vgexport vgname' (vgexport vg01)

4) Recreate the /dev/vgname directory and /dev/vgname/group file (mkdir & mknod respectively)

5) Import the VG via 'vgimport -v -s -m /tmp/vgname.map vgname'

 

Use the appropriate VG name (vg01, vgora, vgme, etc) in the commands above where I have 'vgname'.

 

Now your VG configuration should be the same on both nodes.

Dee Jacobs
Advisor

Re: Adding spare disk to a VG.

Thanks again, Patrick.
Very good solution.