Creating a Resources:
Disk Group:
[root@node1 /]# hares -add oracle_dg DiskGroup oracle_sg
[root@node1 /]# hares -modify oracle_dg DiskGroup oracle
[root@node1 /]# hares -modify oracle_dg Enabled 1
[root@node1 /]# hares -online oracle_dg -sys node1
[root@node1 /]# hares -state
#Resource Attribute System Value
oracle_dg State node1 ONLINE
oracle_dg State node2 OFFLINE
[root@node1 /]#
Volume Resource:
[root@node1 /]# hares -modify oracle_vol DiskGroup oracle
[root@node1 /]# hares -modify oracle_vol Volume oracle_vol
[root@node1 /]# hares -modify oracle_vol Enabled 1
[root@node1 /]# hares -online oracle_vol -sys node1
[root@node1 /]# hares -state oracle_vol
#Resource Attribute System Value
oracle_vol State node1 ONLINE
oracle_vol State node2 OFFLINE
[root@node1 /]#
Mount Point:
[root@node1 /]# hares -add oracle_mnt Mount oracle_sg
[root@node1 /]# hares -modify oracle_mnt Enabled 1
[root@node1 /]# hares -modify oracle_mnt FsckOpt %-y
[root@node1 /]# hares -modify oracle_mnt BlockDevice /dev/vx/dsk/oracle/oracle_vol
[root@node1 /]# hares -modify oracle_mnt FSType vxfs
[root@node1 /]# hares -modify oracle_mnt MountPoint /oracle
[root@node1 /]# hares -modify oracle_mnt Critical 1
[root@node1 /]# hares -online oracle_mnt -sys node1
[root@node1 /]# hares -state oracle_mnt
#Resource Attribute System Value
oracle_mnt State node1 ONLINE
oracle_mnt State node2 OFFLINE
[root@node1 /]#
No comments:
Post a Comment