martedì 18 novembre 2008

Studio di archeologia informatica : Sun Cluster 2.2

Ecco qui un elenco comandi che spero prima o poi mi torni utile e per questo lo posto qui :-)




SUN Solaris Cluster Commands ver 2.2


Cluster Commands:
Sun Cluster 2.2 Commands:

ccdadm cl_name -c filex create a backup of ccd

ccdadm cl_name -q off/on disable ccd from being changed

ccdadm cl_name -r filex restore the ccd from backup

ccdadm cl_name -v verify ccd global consistency

(no output is good)

confccdssa cl_name add the drives to shared ccd

(create ccdvol)

hadsconfig configure log_hosts for apache,dns,i-planet,etc

haoracle list show all instances of ha oracle

haoracle start my_oracle start the fault monitoring on instance

haoracle stop my_oracle stop the fault monitoring on instance

hareg how if any data service is registered (+ on/off)

hareg -N turn off all registered data services

hareg -n nfs turn off the nfs service on all nodes

hareg -n oracle stop the ha-dbms service

hareg -q nfs find out about nfs data service in particular

hareg -s -r nfs register the nfs data service

hareg -u nfs unregister the nfs data service

hareg -Y turn on all registered data services

hareg -y nfs turn on the nfs service

hareg -y oracle start the ha-dbms service

hastat get cluster information (log_hosts,status)

haswitch -m log_host_name put logical host in maint. Mode

haswitch server1 log_host_name restart log.host from maint. Mode

pnmset create your nafo group

pnmstat -l get information about nafo groups

scadmin reldisks cl_name released reserved drives

scadmin startcluster node1 cl_name start clustering on node1

scadmin startnode start cluster on the other nodes

scadmin stopnode stop cluster on that node

scconf cl_name -A 2 determine that the number of nodes is now 2

scconf cl_name -F log_name create the admin file system for

logical host

scconf cl_name -l 100 select timeout value for logical host

scconf cl_name -L log_name -n \ create a logical host

scconf cl_name -L log_name -r remove a logical host

scconf cl_name -q node1 node2 pick a new quorum device

scconf cl_name -S ccdvol create a shared ccd

scconf cl_name -S none disable the shared ccd

scconf cl_name -T 500 select transition step (10/11) timeout value to

500 seconds

scconf cluster_name -h node1 node2 correct node names in the cluster

scconf cluster_name -i node1 eri0 eri1 change the private nets of a

node in cluster

scconf cluster_name -N 0 8:0:20:1:2:3 change the mac address of 1st

nodein cluster

scconf cluster_name -p probe cluster and get install

information

scinstall (option # 1) install sun cluster 2.2

scinstall (option # 2) uninstall cluster (node must be out of

cluster)

scinstall (option # 3) change cluster or data service information

Important Files and Directories

/etc/opt/SUNWcluster/conf main directory for cluster ccd.database

dynamic file that trackslogical hosts

cl_name.ccd static file with cluster installation information

Nessun commento: