×
Create a new article
Write your page title here:
We currently have 3,189 articles on s23. Type your article name above or create one of the articles listed here!



    s23
    3,189Articles
    (Redirected from Editing Sun Cluster 3)

    Cluster 3 Commands[edit]

    Resource Group Operations[edit]

    Shutdown a resource group:

    scswitch -F -g nfs-rg
    

    Turn on a resource group:

    scswitch -Z -g nfs-rg
    

    Switchover a failover resource group:

    scswitch -z -g nfs-rg -h new_primary_node
    

    Change list of primaries for a scalable group:

    scswitch -z -g nfs-rd -h node1,node2,...
    

    Restart a resource group:

    scswitch -R -h node,node -g nfs-rg
    

    Evacuate all resources and resource groups from a node:

    scswitch -S -h node
    

    Resource Operations[edit]

    Disable a resource and its fault monitor:

    scswitch -n -j nfs-res
    

    Enable a resource and its fault monitor:

    scswitch -e -j nfs-res
    

    Disable fault monitor for a resource:

    scswitch -n -M -j nfs-res
    

    Enable fault monitor for a resource:

    scswitch -e -M -j nfs-res
    

    Maintainance Operations[edit]

    Boot node outside of cluster

    boot -x (from prom)
    

    Place node into maintenance mode (NB, node will lose it's vote so primary node will not failure fence, ensure primary node is up and available before resuming secondary from maint)

    scconf -c -q node=nodename,maintstate
    

    Other handy commands[edit]

    View cluster status

    scstat
    

    View cluster config

    scconf -p[vv]
    

    View quorum votes

    scstat -q 
    

    View disk device groups

    scstat -D
    

    View Dids (disk virtual devices)

    scdidadm -l
    

    Reconfigure dids (after disk replacement)

    scdidadm -r
    

    Switch disk devices between nodes

    scswith -z -D dgname -h nodename
    

    View cluster ntp config

    cat /etc/inet/ntp.conf.cluster
    

    Disable interface in IPMP group

    if_mpadm -d qfe1
    

    Reenable interface in IPMP group

    if_mpadm -r qfe1
    

    Resource and Resource Group properties are in

    'man r_properties' and 'man rg_properties'
    

    Clear STOP_FAILED flag

    scswitch -c -j resource -h node -f STOP_FAILED
    

    Replaced a removed transport cable, this doesn't seem to work in the menu on SC3.2

    scconf -a -m endpoint=<hostname>:bge1,endpoint=<switch>@3
    

    Other Cluster Notes[edit]

    Oracle Logs[edit]

    Oracle Logs are at /var/opt/SUNWscor/oracle_server|listener sometimes only one node gets the logs tho so check both.

    Changing NFS shares[edit]

    See this document for how to change NFS share options: http://docs.sun.com/app/docs/doc/817-6999/6mmbmf9vc?a=view

    Basically, disable the fault monitor, test the change with 'share' update the cluster dfstab file (NOT /etc/dfs/dfstab!), then reenable the fault monitor.

    Cookies help us deliver our services. By using our services, you agree to our use of cookies.
    Cookies help us deliver our services. By using our services, you agree to our use of cookies.