sun cluster 常用命令

2018-11-24 16:06

Sun Cluster 3 Command Summary Cluster Node Operations Operation Boot a node - none cluster mode Stopping a node Rebooting a node Disable quorum vote for a node Stopping the cluster Display status information Display quorum information Display cluster configuration Check the cluster configuration Backup the cluster configuration Restore the cluster configuration

Command boot -x (At \ok\ 1. scswitch 2. shutdown 1. scswitch 2. shutdown scconf scshutdown scstat scstat scconf sccheck tar 1. scshutdown 2. boot 3. tar

Example ok boot -x scswitch -S -h nodeA (switch resources) shutdown -y -g30 -i0 scswitch -S -h nodeA (switch resources) shutdown -y -g30 -i6 scconf -c -q node=nodeA,maintstate scshutdown -y -g10 scstat [ -pvv ] scstat -q scconf -p [ -pvv ] sccheck -v tar -cv /etc/cluster/ccr 1. scshutdown -y -g0 2. ok boot -sx 3. tar -xv

Cluster Quorum Device Operations Operation Display quorum information Remove a quorum device Add a quorum device Command scstat scconf scconf Example scstat -q scconf -r -q globaldev=d30 scconf -a -q globaldev=d12 Put into maintenance state Bring out of maintenance state

scconf scconf

scconf -c -q globaldev=d15,maintstate scconf -c -q globaldev=d15,reset

Veritas Volume Manager Operations Operation Add disk group to cluster Register change to disk group Switch device group to a node Check status Change properties Command scconf scconf scswitch scstat scconf Example scconf -a -D type=vxvm,name=m-dg,nodelist=nodeA:nodeB scconf -c -D name=mydg,sync scswitch -z -D mydg -h nodeA (node to switch to) scstat -D scconf -c -D name=mydg,nodelist=nodeA:nodeB, preferenced=true,failback=disabled Nafo Group Operations Operation Creating nafo group Deleting nafo group Adding a card Removing card Switching active adaptor Check status Display current configuration Which group a card belongs to Which is the active card Change pnm parameters Command pnmset pnmset pnmset pnmset pnmset pnmset pnmset pnmrtop pnmptor vi Example pnmset -c nafo0 -o create hme0 qfe0 pnmset -c nafo0 -o delete pnmset -c nafo0 -o add qfe0 pnmset -c nafo0 -o remove qfe0 pnmset -c nafo0 -o switch qfe0 (Adaptor to switch to) pnmset -l pnmset -p pnmrtop hme0 pnmptor nafo0 vi /etc/cluster/pnmparams Resource Group Operations Operation Check current status View configuration Switch to a node Take offline on all nodes Bring online on primary node Brine online on named node Put into unmanaged state Bring into managed state Restart resource group Disable resource Enable resource Clear STOP_FAILED flag

Command scstat scrgadm scswitch scswitch scswitch scswitch scswitch scswitch scswitch scswitch scswitch scswitch

Example scstat -g scrgadm -p [-pvv] -g my-rg scswitch -z -g my-rg -h nodeB (Bring online on nodeB) scswitch -F -g my-rg scswitch -Z -g my-rg scswitch -z -g my-rg -h nodeB scswitch -F -g my-rg scswitch -n -j my-res (Disable all resource in group) scswitch -u -g my-rg scswitch -Z my-rg scswitch -R -h nodeB -g my-rg scswitch -n -j my-resource scswitch -e -j my-resource scswitch -c -h nodeB -j my-resource -f STOP_FAILED

Device Group Operations Operation Check current status Switch to a node Put into maintenance Bring online

Command scstat scswitch scswitch scswitch

Example scstat -D scswitch -z -D my-dg -h nodeA scswitch -m -D my-dg scswitch -z -D my-dg -h nodeB

Resource Group Configuration Operation Create Resource Group Command Example scrgadm -a -g my-rg -h nodeA,nodeB [ -y Pathprefix=/my-directory ] Add resource to Group scrgadm -a -j my-res -g my-rg -t SUNW.nfs -x ServicePaths=/my-directory 1. scswitch -F -g my-rg (Switch resource group offline) 2. scswitch -n -j my-res (Disable resource) 3. scrgadm -r -j my-res (Remove resource) 4. scswitch -Z my-rg (bring resource group on-line) scrgadm -a -L -j my-lh -g my-rg -l logical_host_name scrgadm -a -S -j my_salh -g my-rg -l logical_host_name scrgadm -a -j my-res -x property=new_value 1. scstat -g (List group and its resources) 2. scswitch -F -g my-rg (Switch resource group offline) Remove resource from group Add logical host resource Add share address resource Modify resource parameter Remove a resource group 3. scswitch -n -j my-res (Disable resources) 4. scrgadm -r -j my-res (Remove resources) 5. scrgadm -r -g my-rg (Remove resource group)


sun cluster 常用命令.doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:2016形象管理课程课后及考试答案(满分100)

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: