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
hares -modify
hares -modify
hares -modify
hares -modify
hares -modify
hares -modify
hares -modify
hares -modify
Step 3: Add the Volume resource in the SG_1Service Group.
hares -add
hares -modify
hares -modify
hares -modify
hares -modify
hares -link
Step 4:Add the Mount resource in the SG_1 ServiceGroup.
hares -add
hares -modify
hares -modify
hares-modify
hares -modify
hares -modify
hares -modify
hares -modify
hares -modify
hares -modify
hares-modify
hares -modify
hares -link