Operating System - HP-UX
1837097 Members
2231 Online
110112 Solutions
New Discussion

how to extend vg if it's in shared mode

 
Valik_1
Advisor

how to extend vg if it's in shared mode

hi there!
How is it possible to extend VG if it;s activeted in shared mode??

Thank you.
6 REPLIES 6
TTr
Honored Contributor

Re: how to extend vg if it's in shared mode

Ahhh, the infamous message "... can not be performed if the volume group is activated in shared mode"

Search this forum for the message, many good threads, good answers. The bad news is that you will need downtime.
Torsten.
Acclaimed Contributor

Re: how to extend vg if it's in shared mode

One of the very first lines in the man page:

vgextend cannot be performed if the volume group is activated in shared mode

http://docs.hp.com/en/B2355-60105/vgextend.1M.html

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Valik_1
Advisor

Re: how to extend vg if it's in shared mode

Trosten: I know :) that's why I'm asking ..
vinodan
Advisor

Re: how to extend vg if it's in shared mode

Hi Valik,

In shared mode u can .But you have halt the application/Db on another node .Suppose VG vg_main_db is activated in two nodes A and B. U have to de-activate the VG from node B after shutting down the DB instance / or halting the respective application on node B. then in node A you can issue the below mentioned commands

# vgchange -a e -x vg_main_db

This will do a exclusive activation on node a.

Then carry out VG extention .

Once extention process is over on node A ,issue

# vgchange -a s -x vg_main_db (Node A
)

This will put the Vg back in shared mode .

Take the map file with VG-ID (
# vgexport -p -v -s -m vg_main_db.map vg_main_db
and copy to node B and import using

# vgimport -v -s -m vg_main_db.map vg_main_db .

Then issue

# vgchange -a s vg_main_db in node B

Regards
Vinod
Sajjad Sahir
Honored Contributor

Re: how to extend vg if it's in shared mode

1. stop application on both side.

2.stop the cluster on both side


3. vgchange -a n vg## on second node.



4.vgexport -m /tmp/vg##.map.old /dev/vg##



That prepare second node as disassociated the vg## there.



5. vgchange -a n vg## on first node. Volume group deactivated



6. vgchange -s n â c n vg## on first node



7. vgchnage â a y vg## on first node side



Now is ready to start your changes (vg is active on one node side and no-sharable)

for vgextend


8. vgchnage â a n vg## on first node side



9. vgexport -p -s -m /tmp/vg##.map /dev/vg##



10. rcp /tmp/vg##.map hp_data2:/tmp/



on second node.



11. ll /dev/vg##/group ( note group minor number . let say 0x0?0000 and used in next step the next after last one)



12. mkdir /dev/vg##



13. mknod /dev/vg##/group c 64 0x0?000 ( previously noted minor number )



14. vgimport -v -m /tmp/vg##.map /dev/vg##



15. Activate the volume group in shared mode by issuing the following command on both nodes:



check the activation the VG on second node



16. vgchange -a y /dev/vg##


17.start the cluster


18. start the application








Valik_1
Advisor

Re: how to extend vg if it's in shared mode

Many thx to all of your response!