Veritas Cluster Commands
Veritas Cluster Commands
Veritas Cluster Commands
Though we can have fun playing with GUI, it is better to grab some knowledge on
commands as we are admins. So let me start this.....
solaris2
cvm
solaris
vxfen
solaris2
vxfen
solaris
root@solaris:~#
Till now there are no resources or service groups , so let's start creating one....
cvm and vxfen are default comes with cluster software (cvm-- cluster volume
manager and vxfen -- for I/O fencing)
CMD : for a resource ---- hares -add <resource name> <resource type>
<service group>
root@solaris2:~#
root@solaris2:~# hagrp -add TESTDB
root@solaris2:~#
root@solaris2:~# hagrp -add TESTCI
root@solaris2:~#
root@solaris2:~# hagrp -list
TESTDB
solaris2
TESTDB
solaris
TESTCI
solaris2
TESTCI
solaris
cvm
solaris2
cvm
solaris
vxfen
solaris2
vxfen
solaris
root@solaris2:~#
root@solaris:~# hares -add dg_test DiskGroup TESTDB
root@solaris:~#
root@solaris:~# hares -modify dg_test DiskGroup testdg
root@solaris:~#
root@solaris:~# hares -list | grep solaris
dg_test solaris
root@solaris:~#
Soon after creating a resource for DiskGroup, we need a volume resource for it.
root@solaris:~#
root@solaris:~# hares -add vol_testvol Volume TESTDB
root@solaris:~#
root@solaris:~# hares -modify vol_testvol Volume testvol
root@solaris:~#
root@solaris:~# hares -modify vol_testvol DiskGroup testdg
root@solaris:~#
root@solaris:~# hares -list | grep solaris
dg_test solaris
vol_testvol solaris
root@solaris:~#
root@solaris:~#
We have to create resources only on one node they will be visible for both the
nodes.
Now let us go with creating a resource for ORACLE, so that we can switch oracle
between the nodes and make it started just with clicks...
oracle comes with different attributes like sid(system id), owner, oracle_home,
profile_file.
Listener is the thing which acts as a mediator for SAP and DB, hence we need a
resource for this too...
As we use a IP for DB and SAP server, we need a IP resource for both so that we
can switch DB or CI to any node. For IP, we need a NIC resource too..... Attributes
like IP, Netmask and NIC.
Similarly we have to create resources like NFSrestart , share and proxy if we are
sharing any filesystems from a node....
In a cluster dependency is the main thing and will be achieved by proper linking.
We need to create a link between any two resources carefully and thus we define
the relationship of child and parent resource respectively.
If we want to specify dependency while any service group getting online, we can
use links.
**** For example, we will create service group for both SAP and DB. But
DB should be started before CI so in such cases, we can use link to create
dependency which states unless and until DB service group is online SAP service
group should not be online.
Since cluster is a ocean, we have so many other commands too. But it is always
easier if we go with GUI option. This post gives some basic idea regarding
commands which were internally run when we click and perform some action in
GUI.
################################################
################################