Databases
cancel
Showing results for 
Search instead for 
Did you mean: 

Share disk status refelct on both server

Jack Hsia
Occasional Contributor

Share disk status refelct on both server

I've got 2 servers connect to storage sharing the same disk. (oracle R.A.C system)

Can some one tell me, what I can to do to let the changes I made on ServerA (add vg, add lv etc) to reflect on ServerB without having to stop my oracle services?

At moment I have to stop oracle, and do vgexport and vgimport to make both server recognize the change that i made.

Thanks
6 REPLIES
Prashanth Waugh
Esteemed Contributor

Re: Share disk status refelct on both server

Hi Jack,

have you installed the service guard for cluster. you have online jfs.
# swlist -l product |grep -i jfs
# swlist -l product |grep "guard"

Regards
Atul


For success, attitude is equally as important as ability
Steven E. Protter
Exalted Contributor

Re: Share disk status refelct on both server

Shalom,

What you need to do is activate the volume group of this disk in shared mode.

http://docs.hp.com/en/B5158-90001/ch05s09.html

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Jack Hsia
Occasional Contributor

Re: Share disk status refelct on both server

Steve,
just need some clarification, does that mean after doing vgchange -a s -p /dev/vgX on both server for the first time, and in the future whatever changes that i made on 1 particular server it will reflect on the 2nd server?
eg. create new lv in /dev/vgX in server1, it will be updated to server2.
Prashanth Waugh
Esteemed Contributor

Re: Share disk status refelct on both server

Hi Jack ,


Have you checked the whatever command i have given in above post.Give the clear picture what you want to do by giving the vg name.I think its not possible to reflect directly on second server.You must do vgexport/vgimport.Which oracle services are you stoping pls mention that.

Regards
Atul
For success, attitude is equally as important as ability
john123
Trusted Contributor

Re: Share disk status refelct on both server

For exporting and importing VG's no need to stop oracle, Just export the VGs in Preview mode( -p option with vgexport). But you may have to stop oracle for making the VG as cluster aware and shareable.Because adding LVs' can not be done when your VGs are activated in shared mode so right now i am assuming your VGs might be activated in normal mode.So after exporting in preview mode and importing it in server B you have to stop oracle in server A, decativate the VGs in server A and make the VGs cluster aware and shareable(vgchange -c y -S y VG) then activate the VGs in both the nodes by using 'vgchange -a s VG' on both nodes ('-a s' to be used to activate VG in Read write mode in both the nodes)


HTH
John
Jack Hsia
Occasional Contributor

Re: Share disk status refelct on both server

Prashant

Really sorry, i was not in the office for the pass couple of days, so can't have access to the system.

This is what I get from the swlist command you leave.

JFS B.11.23 The Base VxFS File System
PHKL_35241 1.0 JFS3.5 DIO performance; extent rollback
PHKL_35242 1.0 JFS3.5 bmap performance improvement

PHKL_35420 1.0 Overtemp shutdown / Serviceguard failover
SG-NMAPI A.11.18.00 SG-NMAPI Serviceguard Extension for RAC SD product
SG-RAC-Tool A.11.18.00 Serviceguard Extension for RAC Toolkit SD Product
SGManagerPI B.01.01 HP Serviceguard Manager
SGWBEMProviders A.02.00.00 HP Serviceguard WBEM Providers SD Product
ServiceGuard A.11.18.00 Serviceguard SD Product


If I have these software installed does that mean I can achieve what I intened?