Sunday, 29 December 2013

TO CREATE ASCS RG IN SCS 4.X ON SOLARIS 11

NOTE:-
IN SCS ZFS WE CAN NOT CREATE SHARED FILE SYSTEM
IN SCS CFS IS UFS ONLY NOT ZFS

1)creating cluster file system for ASCS resource Group.
# metaset -s Z10ASCSset -a -h Z10DB Z10CI
#metaset -s Z10ASCSset  -a /dev/did/rdsk/d14
#metaset -s Z10ASCSset  -a /dev/did/rdsk/d15
#metainit -s Z10ASCSset d51 1 2 /dev/did/rdsk/d14s0  /dev/did/rdsk/d15s0
# metainit -s Z10ASCSset d52 -p d51 50G
#metainit -s Z10ASCSset d53 -p d51 20G
#metainit -s Z10ASCSset d54 -p d51 10G
2.creating file system
#newfs /dev/md/ Z10ASCSset/rdsk/d52
#newfs /dev/md/ Z10ASCSset/rdsk/d53
#newfs /dev/md/ Z10ASCSset/rdsk/d54
3.make entries in cat /etc/vfstab file
# cat /etc/vfstab
#device         device          mount           FS      fsck    mount   mount
#to mount       to fsck         point           type    pass    at boot options
#
/devices        -               /devices        devfs   -       no      -
/proc           -               /proc           proc    -       no      -
ctfs            -               /system/contract ctfs   -       no      -
objfs           -               /system/object  objfs   -       no      -
sharefs         -               /etc/dfs/sharetab       sharefs -       no      -
fd              -               /dev/fd         fd      -       no      -
swap            -               /tmp            tmpfs   -       yes     -
/dev/zvol/dsk/rpool/swap        -               -               swap    -       no      -
/dev/md/Z10ASCSset/dsk/d52 /dev/md/Z10ASCSset/rdsk/d52 /usr/sap/trans ufs 5 yes global,logging
/dev/md/Z10ASCSset/dsk/d53 /dev/md/Z10ASCSset/rdsk/d53 /usr/sap/Z10/ASCS00  ufs 5 yes global,logging
/dev/md/Z10ASCSset/dsk/d54 /dev/md/Z10ASCSset/rdsk/d54  /sapmnt/Z10 ufs 5 yes global,logging
4.Create ASCS resource Group
#clrg create Z10ASCS_RG
5.create cluster file system resource
# clrs "create" -g "Z10ASCS_RG" -t "SUNW.HAStoragePlus" -p "filesystemmountpoints=/usr/sap/trans,/usr/sap/Z10/ASCS00,/sapmnt/Z10" ascsdatares
6.create ipresource
#clrslh create –g Z10ASCS_RG –h Z10ASCS-VIP  ascsipres
7.create nfs resource
# cd /global/
root@Z10CI:/global# ls
Z10ASCS_RG
root@Z10CI:/global# cd Z10ASCS_RG/
root@Z10CI:/global/Z10ASCS_RG# ls
SUNW.nfs
root@Z10CI:/global/Z10ASCS_RG# cd SUNW.nfs/
root@Z10CI:/global/Z10ASCS_RG/SUNW.nfs# ls
dfstab.ascsnfsres  dfstab.Z10nfsres   statmon            v4_oldstate        v4_state
root@Z10CI:/global/Z10ASCS_RG/SUNW.nfs# cat dfstab.ascsnfsres
share -F nfs -o anon=0,rw /usr/sap/trans
share -F nfs -o anon=0,rw /sapmnt/Z10
#clrt register SUNW.nfs
#clrg set –p PathPrefix=/global/Z10ASCS_RG
#clrs create –g Z10ASCS_RG –t SUNW.nfs –p resource_dependences= ascsdatares, ascsipres  ascsnfsres

8.create ASCS start service [or] Central SAP start service:-
#clrg set -p rg_affinities=+Z10ERS_RG Z10ASCS_RG
#clrg show -p RG_affinities Z10ASCS_RG
#clrt register ORCL.sapstartsrv
#clrs create -d -g Z10ASCS_RG -t ORCL.sapstartsrv
-p sid=Z10
-p sap_user=z10adm
-p instance_number=00
-p instance_name=ASCS00
-p host=Z10ASCS-VIP
-p timeout_return=20
-p debug_level=0
-p resource_dependencies_offline_restart=ascsdatares ascssapstartres
9.To create Central SAP Resource:-
#clrt register ORCL.sapcentr
#clrs create -d -g Z10ASCS_RG  -t ORCL.sapcentr
-p sid=Z10
-p sap_user=z10adm
-p instance_number=00
-p instance_name=ASCS00
-p host=Z10ASCS-VIP
-p yellow=20
-p debug_level=0
-p resource_dependencies_offline_restart=ascsdatares 
-p resource_dependencies=Z10dbres,ascssapstartres ascscsrs
10.Trouble shoot notes:-
on Z10DB it is not started  we see logs and check and copy following system
root@Z10CI:/usr/sap# scp -rp sapservices Z10DB:/usr/sap
then it start working

No comments:

Post a Comment