The below post will show how to create a Cluster HA filesystem resource:
[root@node1 /]# vxdisk -e list
DEVICE TYPE DISK GROUP STATUS OS_NATIVE_NAME ATTR
disk_8 auto:cdsdisk - - online sdc -
sda auto:none - - online invalid sda -
sdb auto:LVM - - LVM sdb -
[root@node1 /]#
[root@node1 /]# vxdisk -e list
DEVICE TYPE DISK GROUP STATUS OS_NATIVE_NAME ATTR
disk_8 auto:cdsdisk - - online sdc -
sda auto:none - - online invalid sda -
sdb auto:LVM - - LVM sdb -
[root@node1 /]#
[root@node2 ~]# vxdisk -e list
DEVICE TYPE DISK GROUP STATUS OS_NATIVE_NAME ATTR
disk_8 auto:cdsdisk - - online sdb -
sda auto:none - - online invalid sda -
[root@node2 ~]#
Creating a disk group:
[root@node1 /]# vxdg init oracle disk_8
[root@node1 /]# vxdg list
NAME STATE ID
oracle enabled,cds 1394886552.14.node1.cluster.com
[root@node1 /]#
Creating a volume:
[root@node1 /]# vxassist -g oracle make oracle_vol 500M
[root@node1 /]# vxprint -g oracle
TY NAME ASSOC KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0
dg oracle oracle - - - - - -
dm disk_8 disk_8 - 2027264 - - - -
v oracle_vol fsgen ENABLED 1024000 - ACTIVE - -
pl oracle_vol-01 oracle_vol ENABLED 1024000 - ACTIVE - -
sd disk_8-01 oracle_vol-01 ENABLED 1024000 0 - - -
[root@node1 /]#
Formating and Mount the filesystem:
[root@node1 /]# mount -t vxfs /dev/vx/dsk/oracle/oracle_vol /oracle
[root@node1 /]# df -Th /oracle
Filesystem Type Size Used Avail Use% Mounted on
/dev/vx/dsk/oracle/oracle_vol
vxfs 500M 3.3M 466M 1% /oracle
[root@node1 /]#
No comments:
Post a Comment