search

Custom Search
Affichage des articles dont le libellé est Cluster. Afficher tous les articles
Affichage des articles dont le libellé est Cluster. Afficher tous les articles

dimanche 11 novembre 2012

How to kill zombie process on Solaris




Ex :

$ ps -edf | grep defunct


root     7542  7541   0        - ?           0:00 <defunct>
root     7450  7449   0        - ?           0:00 <defunct>
root     7546  7545   0        - ?           0:00 <defunct>
root     7544  7543   0        - ?           0:00 <defunct>



$ ps -ecl | grep Z

F S    UID   PID  PPID  CLS PRI     ADDR     SZ    WCHAN TTY         TIME CMD
0 Z  59002  7450  7449    -   0        -      0        - ?           0:00 <defunct>


$ preap 7450
7450: exited with status 0


$ preap 7542
7542: exited with status 0


$ preap 7544
7544: exited with status 0


$ preap 7546
7546: exited with status 0


$ ps -edf | grep defunct
$


BING !




No more zombie here ^^

jeudi 1 novembre 2012

Solaris mirror and grow metadevice




Use Format command to list disks :



Now we create the metadevice:



# metainit d201 1 1 c0t3d0s2


# metainit d202 1 1 c0t4d0s2



Make the mirror d200 :

# metainit  d200 -m d201 d202








We format the new filesystem :

# newfs /dev/md/rdsk/d200







We mount the filesystem :





Ok we have here 4g



We attach 2 new slices :

# metattach d201 c0t5d0s2


# metattach d202 c0t2d0s0

Metastat command show the new mirror size:




But the #df -h command show only 4g...




For that, we need to "growfs"

# growfs -M /test /dev/md/rdsk/d200






We can now check the size ==>

 



==> OK


dimanche 21 octobre 2012

How to add and configure Control-M Agents


Adding Control-M agents is very easy.

I show you the differents methods (graphical via CCM or command line via ctm_menu)  to achieve this.

Like always, i make a short video you'll find at the end of post ;)

First, of course, Agents must be installed ( Installation of Control-M Server and Agents soon... ;)  ).  


First method : Control-M Configuration Manager

The easy way ! ^^ Login to CCM (with Administrator privileges)
Go to "Components" ==> "New" ==> "Control-M Agent"
 

Now put the right Control-M Agent name



Click "OK"

 
"Drumroll"....
  


Done !

Isn't that so easy ? :)

Second method : command line via ctm_menu

Choose option n°9 "Agent Status"
    

Next, option n°6 (the easy way ^^)
 

Enter the correct Agent name
 

Press enter
 

OK...check your "Configuration Control-M Manager client" :
 

Done !   Here a quick video





vendredi 5 octobre 2012

SUN Cluster 3.3 Commands How to


Some Sun Cluster 3.3 commands 


1. Cluster


The command to use is cluster

# cluster status: the status of the cluster nodes.
# cluster show: Displays the cluster parameters.
# cluster shutdown: shuts down the cluster.
# cluster list: list of cluster nodes configured

2. Management of a resource group


The command to use is CLRG

# CLRG list: list of resource groups.
# CLRG list RG: RG group list.
# CLRG status: the status of resource groups.
# CLRG status RG: RG group status.
# CLRG remaster +: reinstate the resources groups to their preferred nodes.
# CLRG switch-n NODE RG: RG group moves to the node NODE.
# CLRG evacuate-n NODE RG: Move all resources NODE node to the other node.
# CLRG offline RG: stop all resources in the group.
# CLRG online RG: starts all resources in the group.
# RG CLRG restart: restarts all the resources of the group.
# CLRG manage RG: Password group under the control of the cluster.
# CLRG unmanage RG: pass the group beyond the control of the cluster.
# CLRG show RG-v: displays the properties of RG Group.

3. Resource Management


The command to use is clrs

# clrs list: list all resources.
# clrs list: list all the resources of the group RG.
# clrs status: the status of all resources.
# RS clrs status: the status of the RS resources.
# clrs RG-g status: the status of all resources group RG.
# clrs disable RS: RS resource stops.
# clrs enable RS: RS resource starts.
# clrs monitor RS: starts monitoring the resource RS.
# clrs unmonitor RS: stop monitoring the resource RS.
# clrs clear-f STOP_FAILED RS: removes the flag STOP_FAILED RS resource.
# clrs show-v RS: displays the properties of the resource RS.
# clrs set-p property = value RS: Changes the value of the property by value proprité

To add a value to a property already defined, it is possible to use + = instead of =

4. Management Logical Hosts


The command to use is clrslh

# clrslh list: list all logical hosts.
# clrslh status: the status of all logical hosts.
# clrslh disable LH: LH stop resource.
# clrslh enable LH: LH starts resources.
# clrslh monitor LH: LH starts monitoring.
# clrslh unmonitor LH: LH stops monitoring.
# LH clrslh clear: removes the error flag of LH.
# clrslh show LH: displays the properties of LH