sun cluster 常用命令.doc_第1页
sun cluster 常用命令.doc_第2页
sun cluster 常用命令.doc_第3页
sun cluster 常用命令.doc_第4页
全文预览已结束

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

Sun Cluster 3 Command SummaryCluster Node OperationsOperationCommandExampleBoot a node - none cluster modeboot -x (At ok prompt)ok boot -xStopping a node1. scswitchscswitch -S -h nodeA (switch resources)2. shutdownshutdown -y -g30 -i0Rebooting a node1. scswitchscswitch -S -h nodeA (switch resources)2. shutdownshutdown -y -g30 -i6Disable quorum vote for a nodescconfscconf -c -q node=nodeA,maintstateStopping the clusterscshutdownscshutdown -y -g10Display status informationscstatscstat -pvv Display quorum informationscstatscstat -qDisplay cluster configurationscconfscconf -p -pvv Check the cluster configurationscchecksccheck -vBackup the cluster configurationtartar -cv /etc/cluster/ccrRestore the cluster configuration1. scshutdown1. scshutdown -y -g02. boot2. ok boot -sx3. tar3. tar -xvCluster Quorum Device OperationsOperationCommandExampleDisplay quorum informationscstatscstat -qRemove a quorum devicescconfscconf -r -q globaldev=d30Add a quorum devicescconfscconf -a -q globaldev=d12Put into maintenance statescconfscconf -c -q globaldev=d15,maintstateBring out of maintenance statescconfscconf -c -q globaldev=d15,resetVeritas Volume Manager OperationsOperationCommandExampleAdd disk group to clusterscconfscconf -a -D type=vxvm,name=m-dg,nodelist=nodeA:nodeBRegister change to disk groupscconfscconf -c -D name=mydg,syncSwitch device group to a nodescswitchscswitch -z -D mydg -h nodeA (node to switch to)Check statusscstatscstat -DChange propertiesscconfscconf -c -D name=mydg,nodelist=nodeA:nodeB,preferenced=true,failback=disabledNafo Group OperationsOperationCommandExampleCreating nafo grouppnmsetpnmset -c nafo0 -o create hme0 qfe0Deleting nafo grouppnmsetpnmset -c nafo0 -o deleteAdding a cardpnmsetpnmset -c nafo0 -o add qfe0Removing cardpnmsetpnmset -c nafo0 -o remove qfe0Switching active adaptorpnmsetpnmset -c nafo0 -o switch qfe0 (Adaptor to switch to)Check statuspnmsetpnmset -lDisplay current configurationpnmsetpnmset -pWhich group a card belongs topnmrtoppnmrtop hme0Which is the active cardpnmptorpnmptor nafo0Change pnm parametersvivi /etc/cluster/pnmparamsResource Group OperationsOperationCommandExampleCheck current statusscstatscstat -gView configurationscrgadmscrgadm -p -pvv -g my-rgSwitch to a nodescswitchscswitch -z -g my-rg -h nodeB (Bring online on nodeB)Take offline on all nodesscswitchscswitch -F -g my-rgBring online on primary nodescswitchscswitch -Z -g my-rgBrine online on named nodescswitchscswitch -z -g my-rg -h nodeBPut into unmanaged statescswitchscswitch -F -g my-rgscswitch -n -j my-res (Disable all resource in group)scswitch -u -g my-rgBring into managed statescswitchscswitch -Z my-rgRestart resource groupscswitchscswitch -R -h nodeB -g my-rgDisable resourcescswitchscswitch -n -j my-resourceEnable resourcescswitchscswitch -e -j my-resourceClear STOP_FAILED flagscswitchscswitch -c -h nodeB -j my-resource -f STOP_FAILEDDevice Group OperationsOperationCommandExampleCheck current statusscstatscstat -DSwitch to a nodescswitchscswitch -z -D my-dg -h nodeAPut into maintenancescswitchscswitch -m -D my-dgBring onlinescswitchscswitch -z -D my-dg -h nodeBResource Group ConfigurationOperationCommand ExampleCreate Resource Groupscrgadm -a -g my-rg -h nodeA,nodeB -y Pathprefix=/my-directory Add resource to Groupscrgadm -a -j my-res -g my-rg -t SUNW.nfs -x ServicePaths=/my-directoryRemove resource from group1. 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)Add logical host resourcescrgadm -a -L -j my-lh -g my-rg -l logical_host_nameAdd share address resourcescrgadm -a -S -j my_salh -g my-rg -l logical_host_nameModify resource parameterscrgadm -a -j my-res -x property=new_valueRemove a resource group1. scstat -g (List group and

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论