Wednesday, 4 December 2013

Solaris cluster VS VCS (creating NFS SG)

TASK Solaris CLUSTERSymantec Cluster
To Add Resource/Service Group#clrg create  <resource Group Name>                                                                                                     # hagrp -add testsg
VCS NOTICE V-16-1-10136 Group added; populating SystemList and setting the Parallel attribute recommended before adding resources                                                                                # hagrp -modify testsg SystemList Z10DB 0 Z10CI 1
# hagrp -modify testsg AutoStartList Z10DB Z10CI
# hagrp -modify testsg Parallel 0
To Register Resource Types#clrt register  <TYPE>No need to register by default all bundel agents are available
1.F/s or Pools---> HAStoragePlus1)Bundeled agents(NFS,Disk,DiskGroup,Volume,MountPoint,IP,NIC,Share,……..
2. for NFS ---->SUNW.nfs2)enter prise agents (SAP agenet (SAPNW04)/oracle (Netlsnr/Oracle)
3.for Oracle --->SUNW.oracle_server3)Custom agents
4.for Listener --->SUNW.oracle_listener 
5.for SAP ASCS --->ORCL.sapstartsrv & ORCL.sapcenter 
6.for SAP ERS ----->ORCL.sapstartsrv & ORCL.saprepenq 
To create sample resources NoT supported# hares -add dgres DiskGroup testsg
Disk Group ResourcesVCS NOTICE V-16-1-10242 Resource added. Enabled attribute must be set before agent monitors
# hares -modify dgres Critical 1
# hares -modify dgres Enabled 1
# hares -modify dgres DiskGroup testdg
Volume Resource NoT supported# hares -add volres Volume testsg
VCS NOTICE V-16-1-10242 Resource added. Enabled attribute must be set before agent monitors
# hares -modify volres Critical 1
# hares -modify volres Enabled 1
# hares -modify volres DiskGroup testdg
# hares -modify volres Volume convol
Mountresource NoT supported# hares -add mountres Mount testsg
VCS NOTICE V-16-1-10242 Resource added. Enabled attribute must be set before agent monitors
# hares -modify mountres Critical 1
# hares -modify mountres MountPoint /test
# hares -modify mountres BlockDevice /dev/vx/dsk/testdg/convol
# hares -modify mountres FsckOpt %-y
# hares -modify mountres FSType vxfs
Ipres add nic resource
#clrs create –g <rgname> –h <virhostname> ersipres                                                         NOTE:- first we make an entry in /etc/hosts <ip> <hostname># hares -add nicres NIC testsg
VCS NOTICE V-16-1-10242 Resource added. Enabled attribute must be set before agent monitors
# hares -modify nicres Critical 1
# hares -modify nicres Enabled 1
add IP resource
# hares -add ipres IP testsg
VCS NOTICE V-16-1-10242 Resource added. Enabled attribute must be set before agent monitors
# hares -modify ipres Critical 1
# hares -modify ipres Enabled 1
# hares -modify ipres Address "10.66.10.111"
# hares -modify ipres Device net0
# hares -modify ipres NetMask 255.255.255.0
share resource  
#clrt register SUNW.nfscreate NFS service Resource
# cd /global/# hares -add nfsres NFS testsg
#mkdir  testrgVCS NOTICE V-16-1-10242 Resource added. Enabled attribute must be set before agent monitors
#cd testrg# hares -modify nfsres Critical 1
#cat > SUNW.nfs# hares -modify nfsres Enabled 1
share -F nfs -o anon=0,rw /test# hares -modify nfsres UseSMF 1
#clrg set –p PathPrefix=/global/testrgadd Share resource
#clrs create  –g  Z10ASCS_RG  –t  SUNW.nfs  –p  resource_dependences= mountpointres,ipres  nfsres# hares -add shareres Share testsg
 VCS NOTICE V-16-1-10242 Resource added. Enabled attribute must be set before agent monitors
 # hares -modify shareres Enabled 1
 # hares -modify shareres Critical 1
 # hares -modify shareres PathName /test
To make Resource Dependencies  
while creation of resource it self dependencies are defined# hares -link shareres ipres
# hares -link shareres mountres
# hares -link shareres nfsres
# hares -link mountes volres
# hares -link mountres volres
# hares -link volres dgres
to make online of rg/sg#clrg online  –n node1   testrg# hagrp -online testsg -sys <hostname>
to make offline of rg/sg#clrg offline   –n node1 testrg#hagrp -offline testsg -sys <hostname>
to switch  rg/sg#clrg switch -n node2 testrg# hagrp -switch testsg -to <failover node>

No comments:

Post a Comment