Saturday, 13. March 2010Sun Cluster 3.1 Command Line Cheat SheetThis page describes basic Sun Cluster 3.1 administration commands, including the following command line interface commands: scrgadm, scswitch, scconf, scstat, and scdpm. scrgadmManage registration and unregistration of resource types, resource groups, and resources
ExamplesRegister a resource type named MyDatabase: # scrgadm -a -t MyDatabase Create a failover resource group named MyDatabaseRG: # scrgadm -a -g MyDatabaseRG Create a scalable resource group named MyWebServerRG: # scrgadm -a -g MyWebServerRG \ Create a resource of a given type in a resource group: # scrgadm -a -j resource-name -t resource-type-name -g RG-name See the rg_properties(5) man page for a description of the resource group properties. See the r_properties(5) man page for a description of the resource properties. scconfUpdate the Sun Cluster software configuration
ExamplesRegister a new disk group: # scconf -a -D type=vxvm,name=new-disk-group,nodelist=nodex:nodex Synchronize device group information after adding a volume: # scconf -c -D name=diskgroup,sync Add a shared quorum device to the cluster: # scconf -a -q globaldev=nodename Clear "installmode": # scconf -c -q reset Configure a second set of cluster transport connections: # scconf -a \ Secure the cluster against other machines that might attempt to add themselves to the cluster: # scconf -a -T node=. scswitch----- Perform ownership/state change of resource groups and disk device groups in Sun Cluster configurations -----
ExamplesSwitch over resource-grp-2 to be mastered by node1: # scswitch -z -h node1 -g resource-grp-2 Switch over resource-grp-3, a resource group configured to have multiple primaries, to be mastered by node1, node2, node3: # scswitch -z -h node1,node2,node3 -g resource-grp-3 Switch all managed resource groups online on their most preferred node or nodes: # scswitch -z Quiesce resource-grp-2. Stops RG from continuously bouncing around from one node to another in the event of the failure of a START or STOP method: # scswitch -Q -g resource-group-2 Switch over all resource groups and disk device groups from node1 to a new set of primaries: # scswitch -S -h node1 Restart some resource groups on specified nodes: node1# scswitch -R -h node1,node2 -g resource-grp-1,resource-grp-2 Disable some resources: # scswitch -n -j resource-1,resource-2 Enable a resource: # scswitch -e -j resource-1 Take resource groups to the unmanaged state: # scswitch -u -g resource-grp-1,resource-grp-2 Take resource groups to the online state: # scswitch -o -g resource-grp-1,resource-grp-2 Switch over device-group-1 to be mastered by node2: # scswitch -z -h node2 -D device-group-1 Put device-group-1 into maintenance mode: # scswitch -m -D device-group-1 Move all resource groups and disk device groups persistently off of a node: # scswitch -S -h iloveuamaya -K 120 This situation arises when resource groups attempt to switch back automatically when strong negative affinities have been configured (with RG_affinities). scstatMonitor the status of Sun Cluster
ExamplesShow status of all resource groups followed by the status of all components related to node1: # scstat -g -h node1 or: # scstat -g and # scstat -h node1 scdpmAvailable starting in Sun Cluster 3.1 update 3. Disk-path monitoring administration command
ExamplesForce daemon to monitor all disk paths in the cluster infrastructure: # scdpm -m all Monitor a new path on all nodes where path is valid: # scdpm -m /dev/did/dsk/d3 Monitor new paths on just node1: # scdpm -m node1:d4 -m node1:d5 Print all disk paths in the cluster and their status: # scdpm -p all:all Print all failed disk paths: # scdpm -p -F all Print the status of all disk paths from node1: # scdpm -p node1:all Odezvy
Odezva ze specifického URI na tento záznam
Žádné odezvy
|
Rychlé hledáníKategorieNabídka zaměstnáníLinky
Sdílení weblogu |
