You are here

Veritas Cluster Commands

#Add Resource Group
hagrp -add <Resource Group>
hagrp -modify <Resource Group> SystemList <Nodename1> 0 <NodeName2> 1
hagrp -modify <Resource Group> AutoStartList <Node to start on boot>
hagrp -modify <Resource Group> AutoStart 1 

#Interface IP
hares -add <IP Resource name> IP <Resource Group>
hares -modify <IP Resource name> Device  <Device>
hares -modify <IP Resource name> Address <IP Address>
hares -modify <IP Resource name> NetMask <Netmask>
hares -modify <IP Resource name> Critical 1
hares -modify <IP Resource name> Enabled 1

#Device
hares -add <NIC resource> NIC <Resource Group>
hares -modify <NIC resource> Device <Device>
hares -modify <NIC resource> Enabled 1


#Disk Group
hares -add <Disk Group res name> DiskGroup <Resource Group>
hares -modify <Disk Group res name> DiskGroup <Disk Group name>
hares -modify <Disk Group res name> Critical 1
hares -modify <Disk Group res name> StopVolumes 1
hares -modify <Disk Group res name> StartVolumes 1
hares -modify <Disk Group res name> Enabled 1

#Volume
hares -add <Volume Resource Name> Volume <Resource Group>
hares -modify <Volume Resource Name> Critical 1
hares -modify <Volume Resource Name> Volume oracle
hares -modify <Volume Resource Name> DiskGroup dcmrdbpdg
hares -modify <Volume Resource Name> Enabled 1

#Mount points
hares -add <Mount Resource Name> Mount <Resource Group>
hares -modify <Mount Resource Name> BlockDevice /dev/vx/dsk/<Disk Group>/<Volume>
hares -modify <Mount Resource Name> MountPoint <Mount Point>
hares -modify <Mount Resource Name> FSType vxfs
hares -modify <Mount Resource Name> Critical 1
hares -modify <Mount Resource Name> Enabled 1

#Build dependencies
hares -link <IP Resource name> <NIC resource>
hares -link <Disk Group Resource name> <IP Resource name>
hares -link <Volume Resource Name> <Disk Group Resource name>
hares -link <Mount Resource Name> <Volume Resource Name>