기술

Sun Cluster 관리 명령어

퍼렁별여행자 2011. 6. 17. 13:59

업무 중에 간간히 사용하게 되는 명령어 몇가지만 적어본다.

Getting status and information
scconf -p                            - cluster show [ -t global ]
scstat -q (quorum)               - clq status
scstat -i (ipmp)                     - -
scstat -W (transport)             - clintr status
scstat -D (devicegroups)       - dldg status
scstat -g (resource-gr)         - clrg status
scstat -p (all)                        - cluster status 

Switching
scswitch -F -g resgroup                   - clrg offline resgroup
scswitch -z -g resgroup -h node1     - clrg switch -n node1 resgroup
scswitch -Z -g resgroup                   - clrg online resgroup
scswitch -z -D devgroup -h host01   - cldg switch -n host01 ora-dg
scswitch -F -D devgroup                 - cldg offline devgroup

Disks
scdidadm -L                          - cldev list -v
scdidadm -R                          - cldev repair