Configuring a simple failover Service Group with Diskgroup. Volume and Mount resource using the Command line.

book

Article ID: 100019158

calendar_today

Updated On:

Resolution

The following steps assume that the diskgroup is imported, the volume is started and the filesystem is mounted.

Diskgroup name:datadg
Volume name: vol01
Mount point: /vol01

The commands below will configure the following under SG_1 ServiceGroup.

                     Mount_resource
                               |
                               |
                     Volume_resource
                               |
                               |
                     diskgroup_resource



Step 1: Add the  "SG_1" servicegroup and define its attributes.

hagrp -add SG_1
hagrp -modify SG_1 SystemList node1 node2
hagrp -modify SG_1 AutoStartList node1 node2
hagrp -modify SG_1 Parallel 0


Step 2: Add the DiskGroup resource in the SG_1 servicegroup.

hares -add DiskGroup SG_1
hares -modify Critical 1
hares -modify StartVolumes1
hares -modify StopVolumes 1
hares -modify MonitorReservation 0
hares -modify PanicSystemOnDGLoss 1
hares -modify DiskGroupType private
hares -modify DiskGroup datadg
hares -modify Enabled 1

Step 3: Add the Volume resource in the SG_1Service Group.

hares -add Volume SG_1
hares -modify Critical 1
hares -modify DiskGroup datadg
hares -modify Volume vol01
hares -modify Enabled 1
hares -link  

Step 4:Add the Mount resource in the SG_1 ServiceGroup.

hares -add Mount SG_1
hares -modify Critical 1
hares -modify SnapUmount 0
hares-modify CkptUmount 1
hares -modify SecondLevelMonitor 0
hares -modify SecondLevelTimeout 30
hares -modify MountPoint /vol01
hares -modify BlockDevice /dev/vx/dsk/datadg/vol01
hares -modify FSType vxfs
hares -modify MountOpt
hares-modify FsckOpt "%-y"
hares -modify Enabled1
hares -link  

 

 

Issue/Introduction

Configuring a simple failover Service Group with Diskgroup. Volume and Mount resource using the Command line.