创建资源组sg-hafs
hagrp -add sg-hafs
hagrp -modify sg-hafs SystemList SFHA01 0 SFHA02 1
hagrp -modify sg-hafs AutoStartList SFHA01
hagrp -modify sg-hafs SourceFile "./main.cf"
为资源组创建磁盘组DG资源
hares -add hafsdg DiskGroup sg-hafs
hares -modify hafsdg Critical 0
hares -modify hafsdg DiskGroup hafsdg
hares -modify hafsdg Enabled 1
为资源组创建卷VOL资源
hares -add hafsvol Volume sg-hafs
hares -modify hafsvol Critical 0
hares -modify hafsvol DiskGroup hafsdg
hares -modify hafsvol Volume hafsvol01
hares -modify hafsvol Enabled 1
为资源组创建Mount资源
hares -add hafsmnt Mount sg-hafs
hares -modify hafsmnt Critical 0
hares -modify hafsmnt MountPoint "/hafs"
hares -modify hafsmnt BlockDevice "/dev/vx/dsk/hafsdg/hafsvol01"
hares -modify hafsmnt FSType vxfs
hares -modify hafsmnt FsckOpt "%-n"
hares -modify hafsmnt MntPtOwner root
hares -modify hafsmnt VxFSMountLock 0
hares -modify hafsmnt Enabled 1
设置资源建依赖关系
hares -link hafsvol hafsdg
hares -link hafsmnt hafsvol
保存配置
haconf -dump -makero