7
Managing Veritas Cluster from command line for onlinesbi.com To check the status of the cluster services. root@sbimum66 # hastatus -summ -- SYSTEM STATE -- System State Frozen A sbimum66 RUNNING 0 A sbimum67 RUNNING 0 -- GROUP STATE -- Group System Probed AutoDisabled State B ClusterService sbimum66 Y N ONLINE B ClusterService sbimum67 Y N OFFLINE B cvm sbimum66 Y N ONLINE B cvm sbimum67 Y N ONLINE B sbivcsfs-rg sbimum66 Y N ONLINE B sbivcsfs-rg sbimum67 Y N ONLINE B sbivcsrac-rg sbimum66 Y N OFFLINE B sbivcsrac-rg sbimum67 Y N 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.

Managing Veritas Cluster From Command Line for Onlinesbi

  • Upload
    sajeer

  • View
    46

  • Download
    1

Embed Size (px)

DESCRIPTION

VCS cluster command line

Citation preview

Managing Veritas Cluster from command line for onlinesbi

Managing Veritas Cluster from command line for onlinesbi.com

To check the status of the cluster services.

root@sbimum66 # hastatus -summ

-- SYSTEM STATE

-- System State Frozen

A sbimum66 RUNNING 0

A sbimum67 RUNNING 0

-- GROUP STATE

-- Group System Probed AutoDisabled State

B ClusterService sbimum66 Y N ONLINE

B ClusterService sbimum67 Y N OFFLINEB cvm sbimum66 Y N ONLINE

B cvm sbimum67 Y N ONLINE

B sbivcsfs-rg sbimum66 Y N ONLINE

B sbivcsfs-rg sbimum67 Y N ONLINE

B sbivcsrac-rg sbimum66 Y N OFFLINE

B sbivcsrac-rg sbimum67 Y N OFFLINEOutput 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 sbimum66

CFSMount-disk02 sbimum67

CVMVolDg-data1dg sbimum66

CVMVolDg-data1dg sbimum67

Netlsnr_bvsbi1 sbimum66

Netlsnr_bvsbi1 sbimum67

VCSweb sbimum66

VCSweb sbimum67

csgnic sbimum66

csgnic sbimum67

cvm_clus sbimum66

cvm_clus sbimum67

cvm_vxconfigd sbimum66

cvm_vxconfigd sbimum67

oracle_sbi sbimum66

oracle_sbi sbimum67

qlogckd sbimum66

qlogckd sbimum67

vxfsckd sbimum66

vxfsckd sbimum67

webip sbimum66

webip sbimum67

root@sbimum66 #

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 State Frozen

A sbimum66 RUNNING 0

A sbimum67 RUNNING 0

-- GROUP STATE

-- Group System Probed AutoDisabled State

B ClusterService sbimum66 Y N ONLINE

B ClusterService sbimum67 Y N OFFLINE

B cvm sbimum66 Y N ONLINE

B cvm sbimum67 Y N ONLINE

B sbivcsfs-rg sbimum66 Y N ONLINE

B sbivcsfs-rg sbimum67 Y N STOPPING|PARTIALB sbivcsrac-rg sbimum66 Y N OFFLINE

B sbivcsrac-rg sbimum67 Y N OFFLINE

-- RESOURCES OFFLINING

-- Group Type Resource System IState

F sbivcsfs-rg Oracle oracle_sbi sbimum67 W_OFFLINE_PROPAGATEThe 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 State Frozen

A sbimum66 RUNNING 0

A sbimum67 RUNNING 0

-- GROUP STATE

-- Group System Probed AutoDisabled State

B ClusterService sbimum66 Y N ONLINE

B ClusterService sbimum67 Y N OFFLINE

B cvm sbimum66 Y N ONLINE

B cvm sbimum67 Y N ONLINE

B sbivcsfs-rg sbimum66 Y N ONLINE

B sbivcsfs-rg sbimum67 Y N OFFLINE

B sbivcsrac-rg sbimum66 Y N OFFLINE

B sbivcsrac-rg sbimum67 Y N 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 sys

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