Configuring Sun Java System Messaging Server 6.3 With Sun Cluster
Sun Cluster Cheat
Transcript of Sun Cluster Cheat
Dwai Lahiri's Sun Cluster Cheat Sheet - 4 - Sun Cluster - wikis.sun.com
Page 1 of 5
Dwai Lahiri's Sun Cluster Cheat Sheet - 4Added by Brianckeith, last edited by Brianckeith on Nov 20, 2007
Searching Sun Cluster
This page contains the following information:
Go
Contents Index
Contents Index Data Services in the Cluster Fault monitor operations Using scrgadm to register and configure Data service software Command Quick Reference Sun Terminal Concentrator (Annex NTS)
Data Services in the ClusterHAStoragePlus helps configure a local filesystem into a highly available one. It provides following
additional filesystem checks mounts and unmounts enables Sun cluster to failover local file systems (to failover, local file system must reside on global de groups with affinity switchovers enabled) Data Service Agent is a specially written software that allows a data service in a cluster to Data Service Agent (or Agent) does the following to a standard application: stops/starts an application monitors faults validates configuration provides a registration information file that allows Sun Cluster to store all the info about the methods
Sun Cluster 2.x runs Fault Monitoring components on failover node, and can initiate a takeover. On Clust software, it is not allowed. Monitor can either monitor to restart or failover on primary (active host) Failover resource groups:
Logical host resource SUNW.Logicalhostname Data Storage Resource SUNW.HAStoragePlus NFS resource SUNW.nfs
Shutdown a resource groupscswitch -F -g
Turn on a resource groupscswitch -Z -g
Switch a failover group over to another nodescswitch -z -g -h
http://wikis.sun.com/display/SunCluster/Dwai+Lahiri's+Sun+Cluster+Cheat+Sheet+-+4
3/30/2011
Dwai Lahiri's Sun Cluster Cheat Sheet - 4 - Sun Cluster - wikis.sun.com
Page 2 of 5
Restart a resource groupscswitch -R -h -g
Evacuate all resources and rgs from a nodescswitch -S -h node
Disable a res and its fault monitorscswitch -n -j
Enable a resource and it's fault monitorscswitch -e -j
Clear the STOP_FAILED flagscswitch -c -j -h -f STOP_FAILED
How to add a diskgroup and volume to Cluster configuration1. Create the disk group and volume. 2. Register the local disk group with the cluster.
root@aesnsra1:../ # scconf -a -D type=vxvm,name=patroldg2,nodelist=aesnsra root@aesnsra2:../ # scswitch -z -h aesnsra2 -D patroldg2
3. Create your file system. 4. Update /etc/vfstab to change '-' boot options Example:
/dev/vx/dsk/patroldg2/patroldg02 /dev/vx/rdsk/patroldg2/patroldg02 /patrol vxfs 3 no suid
5. Set up a resource group with a HAStoragePlus resource for local filesystem:root@aesnsra2:../ # scrgadm -a -g aescib1-hastp-rg -h aescib1 root@aesnsra2:../ # scrgadm -a -g aescib1-hastp-rg -j sapmntdg01 -t SUNW.HAStoragePlus -x FilesystemMountPoints=/sapmnt
6. Bring the resource group online which will mount the specified filesystem:root@aesnsra2:../ # scswitch -Z -g hastp-aesnsra2-rg
7. Enable resource.root@aesnsra2:../# scswitch -e -j osdumps-dev-rs
8. (Optional) Reboot and test.
http://wikis.sun.com/display/SunCluster/Dwai+Lahiri's+Sun+Cluster+Cheat+Sheet+-+4
3/30/2011
Dwai Lahiri's Sun Cluster Cheat Sheet - 4 - Sun Cluster - wikis.sun.com
Page 3 of 5
Fault monitor operationsDisable the fault monitor for a resourcescswitch -n -M -j
Enable the fault monitor for a resourcescswitch -e -M -j
scstat -g #shows status of all resource groups
Using scrgadm to register and configure Data service softwarescrgadm -a -t SUNW.nfs
scrgadm -a -t SUNW.HAStoragePlus scrgadm -p
Create a failover resourcescrgadm -a -f nfs-rg -h node1,node2 \ -y Pathprefix=/global/nfs/admin
Add logical host name resource to resource groupscrgadm -a -L -g nfs-rg -l clustername-nfs
Create a HAStoragePlus resourcescrgadm -a -j nfs-stor -g nfs-rg \ *-t SUNW.HAStoragePlus* -x FilesystemMountpoints=/global/nfs -x AffinityOn=True
Create SUNW.nfs resourcescrgadm -a -j nfs-res -g nfs-rg \ -t SUNW.nfs -y Resource_dependencies=nfs-stor
Print the various resource/resource group dependencies via scrgadmscrgadm -pvv|grep -i depend #And then parse this output
http://wikis.sun.com/display/SunCluster/Dwai+Lahiri's+Sun+Cluster+Cheat+Sheet+-+4
3/30/2011
Dwai Lahiri's Sun Cluster Cheat Sheet - 4 - Sun Cluster - wikis.sun.com
Page 4 of 5
Enable resource and resource monitors, manage resource group and switch resource online statescswitch -Z -f nfs-rg
scstat -g
Show current resource group configurationscrgadm -p[v[v]] [ -t resource_type_name ] [ -g resgrpname ] \ [ -j resname ]
Resizing a VxVM/VxFS vol/fs under Sun Cluster# vxassist -g aesnfsp growby saptrans 5g
# scconf -c -D name=aesnfsp,sync
root@aesrva1:../ # vxprint -g aesnfsp -v saptrans TY NAME ASSOC KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0 v saptrans fsgen ENABLED 188743680 - ACTIVE - -
root@aesrva1:../ # fsadm -F vxfs -b 188743680 /saptrans UX:vxfs fsadm: INFO: /dev/vx/rdsk/aesnfsp/saptrans is currently 178257920 sector s - size will be increased
# root@aesrva1:../ # scconf -c -D name=aesnfsp,sync
Command Quick Referencescstat scconf scrgadm scha_ scdidadm
Sun Terminal Concentrator (Annex NTS)
Enable setup mode by pressing TC test button until TC power indicator starts to blink rapidly, then release button and press it briefly. On entering the Setup mode, a monitor: prompt is displayed. Set up IP address using:
http://wikis.sun.com/display/SunCluster/Dwai+Lahiri's+Sun+Cluster+Cheat+Sheet+-+4
3/30/2011
Dwai Lahiri's Sun Cluster Cheat Sheet - 4 - Sun Cluster - wikis.sun.com
Page 5 of 5
monitor::addr
Setting up Load source:monitor::seq
Specifying image:monitor::image
Telnet into the TC IP address: Enter cli Elevate to privileged acct using su Run admin at the TC OS prompt: get admin: subprompt:
show port=1 type mode set port= type mode #Choose various options quit (to exit the boot prompt) boot
The individuals who post here are part of the extended Sun Microsystems community and they might not be employed or in any way formally affiliated with Sun Microsystems. The opinions expressed here are their own, are not necessarily reviewed in advance by anyone but the individual authors, and neither Sun nor any other party necessarily agrees with them.Oracle Social Media Participation Policy Privacy Policy Terms of Use Trademarks Site Map Employment Investor Relations Contact 2010, Oracle Corporation and/or its affiliates Powered by Atlassian Confluence
http://wikis.sun.com/display/SunCluster/Dwai+Lahiri's+Sun+Cluster+Cheat+Sheet+-+4
3/30/2011