May 4, 2009

Take a snapshot of the resources on Sun Cluster 3.1

Posted in Sun Cluster at 10:50 am by alessiodini

Sun Cluster 3.1 has a nice utility called scsnapshot.
With this command is possibile take a full image of the cluster ( resource type , resource group , resources)
creating a script as backup!

This is an example:

root@LOY2 # cd /sun-temp
root@LOY2 # scinstall -p
3.1u4
root@LOY2 # scsnapshot -s loy.sh
Parsing the CCR data… This may take a while
Wrote script file loy.sh

Good !!
There are some lines of loy.sh

# loy-rg
run_cmd “$SCRGADM -a -g loy-rg -h \”LOY2,LOY1\” -y rg_project_name=\”default\” -y rg_mode=\”Failover\””

# END

# Resource definitions
#———————

echo “[INFO] : Add new Resource definitions:”

# loy-lh
run_cmd “$SCRGADM -a -L -g loy-rg -j loy-lh -l LOYDB -n ipmp0@2,ipmp0@1 -y resource_project_name=\”default\””

# END

This script is powerful !

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: