Pages

Tuesday, February 28, 2017

Storage by Example. Mount Manually Oracle Cluster Disk Group

==================================
To mount Oracle Cluster Disk Group Locally:
==================================
df
hastatus -sum
hagrp -freez ora_igt_sg
vxdg import OraDg1
vxdg import OraDg2
vxdg import OraDg3
hastatus -sum
vxvol -g OraDg1 startall
vxvol -g OraDg2 startall
vxvol -g OraDg3 startall
mount -t vxfs /dev/vx/dsk/OraDg1/db1 /oracle_db/db1
mount -t vxfs /dev/vx/dsk/OraDg2/Ora_Exp /backup/ora_exp/
mount -t vxfs /dev/vx/dsk/OraDg2/Ora_Online /backup/ora_online/
mount -t vxfs /dev/vx/dsk/OraDg3/db2 /oracle_db/db2
df -hP
hastatus -sum

Now possible to start oracle manually.
SHUTDOWN ABORT;
STARTUP MOUNT;
SHUTDOWN IMMEDIATE;
STARTUP OPEN;

==================================
To mount Oracle Cluster Disk Group in Cluster:
==================================
umount -f /oracle_db/db1
umount -f /backup/ora_online
umount -f /backup/ora_exp
umount -f /oracle_db/db2

hagrp -unfreez ora_igt_sg
hastatus -sum
df
ps -ef | grep pmon

Commands Summary:

hastatus -sum
Veritas CLI
The hastatus command displays resource, group, and system attribute value changes. 


hagrp -freez ora_igt_sg
hagrp - perform VCS service group operations.
Freeze a service group (disables onlining and offlining and failover).


vxdg import OraDg1
Symantec CLI
Importing disk groups as shared.

Shared disk groups can only be imported on the master node.

vxvol -g OraDg1 startall
startall
Attempts to start all volumes that are disabled. 
By default, all volumes in the default disk group (see vxdg(1M)) are started. 
A different disk group can be specified with the -g option.


mount -t vxfs /dev/vx/dsk/OraDg1/db1 /oracle_db/db1
mount - mount a filesystem
-t vxfs - type VxFS
/dev/vx/dsk/OraDg1/db1 - device
/oracle_db/db1 - directory

vxfs - Stands for VERITAS File System is an extent-based file system. It was originally developed by VERITAS Software. Through an OEM agreement, VxFS is used as the primary filesystem of the HP-UX operating system


umount -f /oracle_db/db1
Unmount FileSystem
-f     Force unmount

hagrp -unfreez ora_igt_sg
Re-enables onlining, offlining, and failover of a service group.






No comments:

Post a Comment