{section}
{column:width=25%}
{livesearch:spaceKey=SunCluster}
h5. Contents
{children:all=true}
h5. [Index]
{column}
{column:width=75%}
This page contains the following information:
----
{toc:type=list|style=none|minLevel=5|maxLevel=5|indent=0px}
----
h5. Data Services in the Cluster
HAStoragePlus helps configure a local filesystem into a highly available one. It provides following capabilities:
* additional filesystem checks
* mounts and unmounts
* enables Sun cluster to failover local file systems (to failover, local file system must reside on global device groups with affinity switchovers enabled)
Data Service Agent — is a specially written software that allows a data service in a cluster to operate properly.
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 Cluster 3.x software, it is not allowed. Monitor can either monitor to restart or failover on primary (active host) node.
Failover resource groups:
Logical host resource — SUNW.Logicalhostname Data Storage Resource — SUNW.HAStoragePlus NFS resource — SUNW.nfs
h6. Shutdown a resource group
{panel}
{{*scswitch \-F \-g*}}
{panel}
h6. Turn on a resource group
{panel}
{{*scswitch \-Z \-g*}}
{panel}
h6. Switch a failover group over to another node
{panel}
{{*scswitch \-z \-g \-h*}}
{panel}
h6. Restart a resource group
{panel}
{{*scswitch \-R \-h \-g*}}
{panel}
h6. Evacuate all resources and rgs from a node
{panel}
{{*scswitch \-S \-h node*}}
{panel}
h6. Disable a res and its fault monitor
{panel}
{{*scswitch \-n \-j*}}
{panel}
h6. Enable a resource and it's fault monitor
{panel}
{{*scswitch \-e \-j*}}
{panel}
h6. Clear the {{STOP_FAILED}} flag
{panel}
{{*scswitch \-c \-j \-h \-f STOP_FAILED*}}
{panel}
h6. How to add a diskgroup and volume to Cluster configuration
# Create the disk group and volume.
# Register the local disk group with the cluster.
{panel}
{{root@aesnsra1:../ # *scconf \-a \-D type=vxvm,name=patroldg2,nodelist=aesnsra2*}}
{{root@aesnsra2:../ # *scswitch \-z \-h aesnsra2 \-D patroldg2*}}
{panel}
# Create your file system.
# Update {{/etc/vfstab}} to change '\-' boot options\\
\\Example:
{panel}
{{*/dev/vx/dsk/patroldg2/patroldg02 /dev/vx/rdsk/patroldg2/patroldg02 /patrol02 vxfs 3 no suid*}}
{panel}
# Set up a resource group with a {{HAStoragePlus}} resource for local filesystem:
{panel}
{{root@aesnsra2:../ # *scrgadm \-a \-g aescib1\-hastp\-rg \-h aescib1*}}
{{root@aesnsra2:../ # *scrgadm \-a \-g aescib1\-hastp\-rg \-j sapmntdg01\-rs \*}}
{{*\-t SUNW.HAStoragePlus \-x FilesystemMountPoints=/sapmnt*}}
{panel}
# Bring the resource group online which will mount the specified filesystem:
{panel}
{{root@aesnsra2:../ # *scswitch \-Z \-g hastp\-aesnsra2\-rg*}}
{panel}
# Enable resource.
{panel}
{{root@aesnsra2:../# *scswitch \-e \-j osdumps\-dev\-rs*}}
{panel}
# (Optional) Reboot and test.
h5. Fault monitor operations
h6. Disable the fault monitor for a resource
{panel}
{{*scswitch \-n \-M \-j*}}
{panel}
h6. Enable the fault monitor for a resource
{panel}
{{*scswitch \-e \-M \-j*}}
{panel}
{panel}
{{*scstat \-g*}} #shows status of all resource groups
{panel}
h5. Using {{scrgadm}} to register and configure Data service software
{panel}
{{*scrgadm \-a \-t SUNW.nfs*}}
{panel}
{panel}
{{*scrgadm \-a \-t SUNW.HAStoragePlus*}}
{{*scrgadm \-p*}}
{panel}
h6. Create a failover resource
{panel}
{{*scrgadm \-a \-f nfs\-rg \-h node1,node2 \*}}
{{*\-y Pathprefix=/global/nfs/admin*}}
{panel}
h6. Add logical host name resource to resource group
{panel}
{{*scrgadm \-a \-L \-g nfs\-rg \-l clustername\-nfs*}}
{panel}
h6. Create a {{HAStoragePlus}} resource
{panel}
{{*scrgadm \-a \-j nfs\-stor \-g nfs\-rg \*}}
{{*\-t SUNW.HAStoragePlus\*}}
{{*\-x FilesystemMountpoints=/global/nfs \-x AffinityOn=True*}}
{panel}
h6. Create {{SUNW.nfs}} resource
{panel}
{{*scrgadm \-a \-j nfs\-res \-g nfs\-rg \*}}
{{*\-t SUNW.nfs \-y Resource_dependencies=nfs\-stor*}}
{panel}
h6. Print the various resource/resource group dependencies via {{scrgadm}}
{panel}
{{*scrgadm \-pvv|grep \-i depend*}} #And then parse this output
{panel}
h6. Enable resource and resource monitors, manage resource group and switch resource group to online state
{panel}
{{*scswitch \-Z \-f nfs\-rg*}}
{panel}
{panel}
{{*scstat \-g*}}
{panel}
h6. Show current resource group configuration
{panel}
{{*scrgadm \-p\[v\[v\]\] \[ \-t resource_type_name \] \[ \-g resgrpname \] \*}}
{{*\[ \-j resname \]*}}
{panel}
h6. Resizing a VxVM/VxFS vol/fs under Sun Cluster
{panel}
{{# *vxassist \-g aesnfsp growby saptrans 5g*}}
{panel}
{panel}
{{# *scconf \-c \-D name=aesnfsp,sync*}}
{panel}
{panel}
{{root@aesrva1:../ # *vxprint \-g aesnfsp \-v saptrans*}}
{{TY NAME ASSOC KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0}}
{{v saptrans fsgen ENABLED 188743680 \- ACTIVE \- \-}}
{panel}
{panel}
{{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}}
{panel}
{panel}
{{# root@aesrva1:../ # *scconf \-c \-D name=aesnfsp,sync*}}
{panel}
h5. Command Quick Reference
{{scstat}}
{{scconf}}
{{scrgadm}}
{{scha_}}
{{scdidadm}}
h5. Sun Terminal Concentrator (Annex NTS)
Enable setup mode by pressing TC test button until TC power indicator starts to blink rapidly, then release the button and press it briefly.
On entering the Setup mode, a {{monitor:}} prompt is displayed.
Set up IP address using:
{panel}
{{*monitor::addr*}}
{panel}
Setting up Load source:
{panel}
{{*monitor::seq*}}
{panel}
Specifying image:
{panel}
{{*monitor::image*}}
{panel}
Telnet into the TC IP address:
Enter {{cli}}
Elevate to privileged acct using {{su}}
Run {{admin}} at the TC OS prompt:
{{*get admin: subprompt:*}}
{panel}
{{*show port=1 type mode*}}
{{*set port= type mode*}} #Choose various options
{{*quit*}} (to exit the boot prompt)
{{*boot*}}
{panel}
{column}
{section}
{column:width=25%}
{livesearch:spaceKey=SunCluster}
h5. Contents
{children:all=true}
h5. [Index]
{column}
{column:width=75%}
This page contains the following information:
----
{toc:type=list|style=none|minLevel=5|maxLevel=5|indent=0px}
----
h5. Data Services in the Cluster
HAStoragePlus helps configure a local filesystem into a highly available one. It provides following capabilities:
* additional filesystem checks
* mounts and unmounts
* enables Sun cluster to failover local file systems (to failover, local file system must reside on global device groups with affinity switchovers enabled)
Data Service Agent — is a specially written software that allows a data service in a cluster to operate properly.
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 Cluster 3.x software, it is not allowed. Monitor can either monitor to restart or failover on primary (active host) node.
Failover resource groups:
Logical host resource — SUNW.Logicalhostname Data Storage Resource — SUNW.HAStoragePlus NFS resource — SUNW.nfs
h6. Shutdown a resource group
{panel}
{{*scswitch \-F \-g*}}
{panel}
h6. Turn on a resource group
{panel}
{{*scswitch \-Z \-g*}}
{panel}
h6. Switch a failover group over to another node
{panel}
{{*scswitch \-z \-g \-h*}}
{panel}
h6. Restart a resource group
{panel}
{{*scswitch \-R \-h \-g*}}
{panel}
h6. Evacuate all resources and rgs from a node
{panel}
{{*scswitch \-S \-h node*}}
{panel}
h6. Disable a res and its fault monitor
{panel}
{{*scswitch \-n \-j*}}
{panel}
h6. Enable a resource and it's fault monitor
{panel}
{{*scswitch \-e \-j*}}
{panel}
h6. Clear the {{STOP_FAILED}} flag
{panel}
{{*scswitch \-c \-j \-h \-f STOP_FAILED*}}
{panel}
h6. How to add a diskgroup and volume to Cluster configuration
# Create the disk group and volume.
# Register the local disk group with the cluster.
{panel}
{{root@aesnsra1:../ # *scconf \-a \-D type=vxvm,name=patroldg2,nodelist=aesnsra2*}}
{{root@aesnsra2:../ # *scswitch \-z \-h aesnsra2 \-D patroldg2*}}
{panel}
# Create your file system.
# Update {{/etc/vfstab}} to change '\-' boot options\\
\\Example:
{panel}
{{*/dev/vx/dsk/patroldg2/patroldg02 /dev/vx/rdsk/patroldg2/patroldg02 /patrol02 vxfs 3 no suid*}}
{panel}
# Set up a resource group with a {{HAStoragePlus}} resource for local filesystem:
{panel}
{{root@aesnsra2:../ # *scrgadm \-a \-g aescib1\-hastp\-rg \-h aescib1*}}
{{root@aesnsra2:../ # *scrgadm \-a \-g aescib1\-hastp\-rg \-j sapmntdg01\-rs \*}}
{{*\-t SUNW.HAStoragePlus \-x FilesystemMountPoints=/sapmnt*}}
{panel}
# Bring the resource group online which will mount the specified filesystem:
{panel}
{{root@aesnsra2:../ # *scswitch \-Z \-g hastp\-aesnsra2\-rg*}}
{panel}
# Enable resource.
{panel}
{{root@aesnsra2:../# *scswitch \-e \-j osdumps\-dev\-rs*}}
{panel}
# (Optional) Reboot and test.
h5. Fault monitor operations
h6. Disable the fault monitor for a resource
{panel}
{{*scswitch \-n \-M \-j*}}
{panel}
h6. Enable the fault monitor for a resource
{panel}
{{*scswitch \-e \-M \-j*}}
{panel}
{panel}
{{*scstat \-g*}} #shows status of all resource groups
{panel}
h5. Using {{scrgadm}} to register and configure Data service software
{panel}
{{*scrgadm \-a \-t SUNW.nfs*}}
{panel}
{panel}
{{*scrgadm \-a \-t SUNW.HAStoragePlus*}}
{{*scrgadm \-p*}}
{panel}
h6. Create a failover resource
{panel}
{{*scrgadm \-a \-f nfs\-rg \-h node1,node2 \*}}
{{*\-y Pathprefix=/global/nfs/admin*}}
{panel}
h6. Add logical host name resource to resource group
{panel}
{{*scrgadm \-a \-L \-g nfs\-rg \-l clustername\-nfs*}}
{panel}
h6. Create a {{HAStoragePlus}} resource
{panel}
{{*scrgadm \-a \-j nfs\-stor \-g nfs\-rg \*}}
{{*\-t SUNW.HAStoragePlus\*}}
{{*\-x FilesystemMountpoints=/global/nfs \-x AffinityOn=True*}}
{panel}
h6. Create {{SUNW.nfs}} resource
{panel}
{{*scrgadm \-a \-j nfs\-res \-g nfs\-rg \*}}
{{*\-t SUNW.nfs \-y Resource_dependencies=nfs\-stor*}}
{panel}
h6. Print the various resource/resource group dependencies via {{scrgadm}}
{panel}
{{*scrgadm \-pvv|grep \-i depend*}} #And then parse this output
{panel}
h6. Enable resource and resource monitors, manage resource group and switch resource group to online state
{panel}
{{*scswitch \-Z \-f nfs\-rg*}}
{panel}
{panel}
{{*scstat \-g*}}
{panel}
h6. Show current resource group configuration
{panel}
{{*scrgadm \-p\[v\[v\]\] \[ \-t resource_type_name \] \[ \-g resgrpname \] \*}}
{{*\[ \-j resname \]*}}
{panel}
h6. Resizing a VxVM/VxFS vol/fs under Sun Cluster
{panel}
{{# *vxassist \-g aesnfsp growby saptrans 5g*}}
{panel}
{panel}
{{# *scconf \-c \-D name=aesnfsp,sync*}}
{panel}
{panel}
{{root@aesrva1:../ # *vxprint \-g aesnfsp \-v saptrans*}}
{{TY NAME ASSOC KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0}}
{{v saptrans fsgen ENABLED 188743680 \- ACTIVE \- \-}}
{panel}
{panel}
{{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}}
{panel}
{panel}
{{# root@aesrva1:../ # *scconf \-c \-D name=aesnfsp,sync*}}
{panel}
h5. Command Quick Reference
{{scstat}}
{{scconf}}
{{scrgadm}}
{{scha_}}
{{scdidadm}}
h5. Sun Terminal Concentrator (Annex NTS)
Enable setup mode by pressing TC test button until TC power indicator starts to blink rapidly, then release the button and press it briefly.
On entering the Setup mode, a {{monitor:}} prompt is displayed.
Set up IP address using:
{panel}
{{*monitor::addr*}}
{panel}
Setting up Load source:
{panel}
{{*monitor::seq*}}
{panel}
Specifying image:
{panel}
{{*monitor::image*}}
{panel}
Telnet into the TC IP address:
Enter {{cli}}
Elevate to privileged acct using {{su}}
Run {{admin}} at the TC OS prompt:
{{*get admin: subprompt:*}}
{panel}
{{*show port=1 type mode*}}
{{*set port= type mode*}} #Choose various options
{{*quit*}} (to exit the boot prompt)
{{*boot*}}
{panel}
{column}
{section}