Sie sind auf Seite 1von 6

Managing Veritas Cluster from command line for onlinesbi.

com
To check the status of the cluster services.
root@sbimum66 # hastatus -summ
-- SYSTEM STATE
-- System
A sbimum66
A sbimum67

State
RUNNING
RUNNING

-- GROUP STATE
-- Group
System
B
B
B
B
B
B
B
B

Frozen

ClusterService sbimum66
ClusterService sbimum67
cvm
sbimum66
cvm
sbimum67
sbivcsfs-rg
sbimum66
sbivcsfs-rg
sbimum67
sbivcsrac-rg sbimum66
sbivcsrac-rg sbimum67

0
0
Probed
Y
Y
Y
Y
Y
Y
Y
Y

AutoDisabled
N
N
N
N
N
N
N
N

State

ONLINE
OFFLINE
ONLINE
ONLINE
ONLINE
ONLINE
OFFLINE
OFFLINE

Output given above is that of normal condition. The yellow highlighted indicates that node sbimum67 is secondary node.
When it becomes master node the service will show as online and the service will turn offline on node sbimum66.
To list the resources under cluster control.
root@sbimum66 # hares -list
CFSMount-disk01
sbimum66
CFSMount-disk01
sbimum67

CFSMount-disk02
CFSMount-disk02
CVMVolDg-data1dg
CVMVolDg-data1dg
Netlsnr_bvsbi1
Netlsnr_bvsbi1
VCSweb
VCSweb
csgnic
csgnic
cvm_clus
cvm_clus
cvm_vxconfigd
cvm_vxconfigd
oracle_sbi
oracle_sbi
qlogckd
qlogckd
vxfsckd
vxfsckd
webip
webip
root@sbimum66 #

sbimum66
sbimum67
sbimum66
sbimum67
sbimum66
sbimum67
sbimum66
sbimum67
sbimum66
sbimum67
sbimum66
sbimum67
sbimum66
sbimum67
sbimum66
sbimum67
sbimum66
sbimum67
sbimum66
sbimum67
sbimum66
sbimum67

To Shutdown a system (one node in the cluster).


Bring down the oracle service group (sbivcsfs-rg) and then bring down the node.
For example to shut down sbimum66
root@sbimum66 # hagrp offline sbivcsfs-rg sys sbimum66
The above command will bring down listner, oracle and disk mount points (disk01 & disk02).

Eg output :
root@sbimum67 # hagrp -offline sbivcsfs-rg -sys sbimum67
root@sbimum67 # hastatus -summ
-- SYSTEM STATE
-- System
A sbimum66
A sbimum67

State
RUNNING
RUNNING

-- GROUP STATE
-- Group
System
B
B
B
B
B
B
B
B

Frozen

ClusterService sbimum66
ClusterService sbimum67
cvm
sbimum66
cvm
sbimum67
sbivcsfs-rg
sbimum66
sbivcsfs-rg
sbimum67
sbivcsrac-rg sbimum66
sbivcsrac-rg sbimum67

0
0
Probed
Y
Y
Y
Y
Y
Y
Y
Y

-- RESOURCES OFFLINING
-- Group
Type
Resource
F sbivcsfs-rg

Oracle

oracle_sbi

AutoDisabled
N
N
N
N
N
N
N
N

State

ONLINE
OFFLINE
ONLINE
ONLINE
ONLINE
STOPPING|PARTIAL
OFFLINE
OFFLINE

System
sbimum67

IState
W_OFFLINE_PROPAGATE

The highlighted lines show that the service group is going offline.

Once the service group is offline following will be the output


root@sbimum67 # hastatus -summ
-- SYSTEM STATE
-- System
A sbimum66
A sbimum67

State
RUNNING
RUNNING

-- GROUP STATE
-- Group
System
B
B
B
B
B
B
B
B

Frozen

ClusterService sbimum66
ClusterService sbimum67
cvm
sbimum66
cvm
sbimum67
sbivcsfs-rg
sbimum66
sbivcsfs-rg
sbimum67
sbivcsrac-rg sbimum66
sbivcsrac-rg sbimum67

0
0
Probed
Y
Y
Y
Y
Y
Y
Y
Y

AutoDisabled
N
N
N
N
N
N
N
N

State

ONLINE
OFFLINE
ONLINE
ONLINE
ONLINE
OFFLINE
OFFLINE
OFFLINE

To bring only some resource of a service group offline.


To bring down a resources dependencies must be taken into account.
Listener should be brought down first before bringing down oracle. And then the disk mount points.
Command syntax :
hares offline <resource-name> sys <node-name>
root@sbimum66 # hares offline Netlsnr_bvsbi1 sys sbimum66
root@sbimum66 # hares offline oracle_sbi sys sbimum66
To check the status of the resource use the command
# hastatus -summ

If the output does not have any W_OFFLINE then it can be confirmed that the resource has gone offline.
The output will also show state as PARTIAL against the service group name.
In case any resource is faulted and if any other resource is W_OFFLINE state then try to offline the resource.
If not possible then turn offline the entire service group. Clear the fault for the entire service group and then bring the
service group online.
Eg :
root@sbimum66 # hagrp offline sbivcsfs-rg sys sbimum66
root@sbimum66 # hagrp clear sbivcsfs-rg sys sbimum66
After clearing the fault check the status with
# hastatus summ command and if no faults are displayed bring the service group online.
root@sbimum66 # hagrp online sbivcsfs-rg sys sbimum66

Das könnte Ihnen auch gefallen