Creating VCS resources using cli?

From: Chris cc (lazyboy_2k@yahoo.com)
Date: Fri Jan 12 2007 - 15:49:42 EST


Hi All,

I'm newbie in vcs & trying to learn cli before switchover to learn hagui. If you dont mind, could you verify the below commands & their sequences?
 DiskGroup ora9idg (
                 DiskGroup = ora9idg
                 StartVolumes = 1
                 StopVolumes = 0
                  )
 IP ora9idg_IP (
                 Device = qfe3
                 Address = "192.168.1.2"
                 NetMask = "255.255.255.0"
                  )
  
 Netlsnr ora9idb_lsnr (
                 Owner = oracle
                 Home = "/oraclesw/product/9.2.0.1.0"
                 TnsAdmin = "/oraclesw/product/9.2.0.1.0/network/admin"
                 Listener = ora9idb_lsnr
                 MonScript = "./bin/Netlsnr/LsnrTest.pl"
                  )
 ..
  
 # haconf makerw
  
 # hares add ora9idg DiskGroup ora9idb-Group (assuming ora9idb-Group already exists)
 # hares add ora9idg_IP IP ora9idb-Group
 # hares add ora9idb_lsnr Netlsnr ora9idb-Group
  
 # hatype add DiskGroup
 # hatype add IP
 # hatype add Netlsnr
  
 # hares modify ora9idg DiskGroup ora9idg sys vcs-test-phys2
 # hares modify ora9idg StartVolumes 1 sys vcs-test-phys2
 # hares modify ora9idg StopVolumes 0 sys vcs-test-phys2
  
 # hares modify ora9idg_IP Device add qfe3 192.168.1.2 sys vcs-test-phys2
 # hares modify ora9idg_IP NetMask 255.255.255.0
  
 # hares modify ora9idb_lsnr Owner oracle sys vcs-test-phys2 -sys vcs-test-phys2
 # hares modify ora9idb_lsnr Home "/oraclesw/product/9.2.0.1.0" -sys vcs-test-phys2
 # hares modify ora9idb_lsnr TnsAdmin "/oraclesw/product/9.2.0.1.0/network/admin" -sys vcs-test-phys2
 # hares modify ora9idb_lsnr Listener ora9idb_lsnr -sys vcs-test-phys2
 # hares modify ora9idb_lsnr MonScript "./bin/Netlsnr/LsnrTest.pl" -sys vcs-test-phys2
  
   # haconf dump makero
  After that I can online either a service-group or each of a resource to make sure they are fine before I fails over? In that case, will it automatically copy the new resource entries in main.cf on 2nd node to the 1st node? Im trying to add & bring a new service-group online w/o disturbing a running cluster.
I also see a User s guide doc mentions that after creating a resource type, use haattr command to add its attributes. However, I see hares cli also has a capability to add attributes as well. So, Im wondering which one would you recommend? Any helps are appreciated. Thx.
TIA,
-Chris

 
---------------------------------
Never miss an email again!
Yahoo! Toolbar alerts you the instant new Mail arrives. Check it out.
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:41:27 EDT