http://www.idevelopment.info/
VCS
http://www.datadisk.co.uk/html_docs/veritas/veritas_cluster_cs.htm
SFRAC Documents
http://sfdoccentral.symantec.com/sf/5.0/hpux/html/sf_rac_install/sfrac_installTOC.html
Tuesday, October 14, 2008
Monday, October 13, 2008
VxVM
How to resize vxfs volume
Old size
bash-3.2# df -k /oracle/QA2
/oracle/QA2 (/dev/vx/dsk/qa2_oracledg/qa2_oracle_qa2) : 102400 total allocated Kb
0 free allocated Kb
102400 used allocated Kb
100 % allocation used
To remove error
fsadm: You don't have a license to run this program
#/usr/sbin/vxlicrep -e;/sbin/fs/vxfs/vxenablef -a
bash-3.2# vxassist -g qa2_oracledg growby qa2_oracle_qa2 102400
bash-3.2# fsadm -F vxfs -b 204800 -r /dev/vx/rdsk/qa2_oracledg/qa2_oracle_qa2 /oracle/QA2
vxfs fsadm: /dev/vx/rdsk/qa2_oracledg/qa2_oracle_qa2 is currently 102400 sectors - size will be increased
bash-3.2# df -k /oracle/QA2
/oracle/QA2 (/dev/vx/dsk/qa2_oracledg/qa2_oracle_qa2) : 198448 total allocated Kb
96024 free allocated Kb
How to clear the failing flag when a vxdisk list status shows "online failing"
http://seer.support.veritas.com/docs/184960.htm
bash-3.2# vxdisk -o alldgs list
DEVICE TYPE DISK GROUP STATUS
c21t0d6 auto:cdsdisk qa2_mirrlogdg01 qa2_mirrlogdg online failing
bash-3.2# vxedit -g qa2_mirrlogdg set failing=off qa2_mirrlogdg01
bash-3.2# vxdisk -o alldgs list
DEVICE TYPE DISK GROUP STATUS
c21t0d6 auto:cdsdisk qa2_mirrlogdg01 qa2_mirrlogdg online
VCS Port
port What it does and how to stop
------------------------------------
a Communication node-to-node - stopped by stopping gab
b IO Fencing - stopped with /etc/init.d/vxfen stop
d Oracle to Oracle coms in a RAC environment - stop Oracle
f Cluster File System - stop VCS group or kill fsckd
h GAB to VSC (had) communication - hastop
o ODM - stop Oracle, and umount /odm
q qlog (part of cluster filesystem) - stop VCS group
v part of cvm - stop VCS group or vxclustadm stopnode
w part of cvm - stop VCS group or vxclustadm stopnode
/etc/llttab ::
set-node oaprod1 # diff for each node, reflect local node name
set-cluster 1
link ce1 /dev/ce:1 - ether - -
link ce3 /dev/ce:3 - ether - -
link-lowpri ce0 /dev/ce:0 - ether - -
/etc/llthosts ::
0 oaprod1
1 oaprod2
/etc/gabtab ::
/sbin/gabconfig -c -n2
How to Migrate VxVM volume from One storage vendor to another storage vendor
1. As oracle data/logs are on VxVM volume having EMC luns.
For eg. Disk Group = EMCDG, VxVM Volume = EMCVOL
2. Expose NetApp luns using snapdrive storage create command on the host.
3. Add the NetApp luns to the VxVM volume having oracle data/logs, this will make the volume as mirrored vxvm volume and also do auto sync on the luns.
Once the data is synced on NetApp luns , detached the luns from the mirrored volume and make a new volume of NetApp luns for Dev/QA purpose.
Below are the steps:
Add mirror disk i.e NetApp disk in a diskgroup
vxdg -g adddisk disk2=c6t0d1
Add Mirror to the volume
vxassist -b -g EMCDG mirror EMCVOL disk2
[ This will auto sync the data on new NetApp Luns i.e disk2]
See Plex and Subdisk info
vxprint -htg EMCDG
Remove mirror Plex of NetApp subdisk from the volume
vxplex -g EMCDG dis EMCVOL-02
Now create another volume using NetApp subdisk [previously removed mirror] for Dev/QA purpose
vxmake -g EMCDG vol newVol plex=EMCVOL-02
[here data is on the lun , but the newVol is not in start state]
See new volume Plex and Subdisk info
vxprint -htg EMCDG
NOTE : Volume newVol is in DISABLED state
Start the new volume of NetApp subdisk
vxvol -g EMCDG start newVol
Mount the new NetApp luns volume
mkdir /newVOL
mount -F vxfs /dev/vx/dsk/EMCDG/newVol /newVOL/
Check the contents of the volume
ls -lrt /newVOL/
Note : You must find the oracle data/logs dir on the vxvm volume having NetApp luns.
With Layered volume
We can use VxVM layered volume concept, (EMC subvol + NetApp subvol) and than take a snapshot using -hostvol option of NetApp volume which is mirrored of EMC vol.
Here:
Layered Vol = layered_vol
Sub Vols = layered_vol-S01, layered_vol-S02 (Striped across sub volumes, logical entities).
Vols = layered_vol-L01 , layered_vol-L02 (Mirrored volumes over luns).
VxVM:
vxassist -g layered_DG make layered_vol 2g layout=stripe-mirror
SDU Snapshot..
snapdrive snap create -hostvol layered_DG/layered_vol-L01 -snapname layered_snap -force
bash-3.00# vxprint -rth layered_vol
Disk group: layered_DG
dm disk1 c4t500A098383310F03d13s2 auto 65536 1158912 -
dm disk2 c4t500A098383310F03d14s2 auto 65536 1158912 -
dm disk3 c4t500A098383310F03d17s2 auto 65536 2027264 -
dm disk4 c4t500A098383310F03d18s2 auto 65536 2027264 -
v layered_vol - ENABLED ACTIVE 2097152 SELECT layered_vol-03 fsgen
pl layered_vol-03 layered_vol ENABLED ACTIVE 2097152 STRIPE 2/128 RW
sv layered_vol-S01 layered_vol-03 layered_vol-L01 1 1048576 0/0 2/2 ENA
v2 layered_vol-L01 - ENABLED ACTIVE 1048576 SELECT - fsgen
p2 layered_vol-P01 layered_vol-L01 ENABLED ACTIVE 1048576 CONCAT - RW
s2 disk1-02 layered_vol-P01 disk1 0 1048576 0 c4t500A098383310F03d13 ENA
p2 layered_vol-P02 layered_vol-L01 ENABLED ACTIVE 1048576 CONCAT - RW
s2 disk3-02 layered_vol-P02 disk3 0 1048576 0 c4t500A098383310F03d17 ENA
sv layered_vol-S02 layered_vol-03 layered_vol-L02 1 1048576 1/0 2/2 ENA
v2 layered_vol-L02 - ENABLED ACTIVE 1048576 SELECT - fsgen
p2 layered_vol-P03 layered_vol-L02 ENABLED ACTIVE 1048576 CONCAT - RW
s2 disk2-02 layered_vol-P03 disk2 0 1048576 0 c4t500A098383310F03d14 ENA
p2 layered_vol-P04 layered_vol-L02 ENABLED ACTIVE 1048576 CONCAT - RW
s2 disk4-02 layered_vol-P04 disk4 0 1048576 0 c4t500A098383310F03d18 ENA
Old size
bash-3.2# df -k /oracle/QA2
/oracle/QA2 (/dev/vx/dsk/qa2_oracledg/qa2_oracle_qa2) : 102400 total allocated Kb
0 free allocated Kb
102400 used allocated Kb
100 % allocation used
To remove error
fsadm: You don't have a license to run this program
#/usr/sbin/vxlicrep -e;/sbin/fs/vxfs/vxenablef -a
bash-3.2# vxassist -g qa2_oracledg growby qa2_oracle_qa2 102400
bash-3.2# fsadm -F vxfs -b 204800 -r /dev/vx/rdsk/qa2_oracledg/qa2_oracle_qa2 /oracle/QA2
vxfs fsadm: /dev/vx/rdsk/qa2_oracledg/qa2_oracle_qa2 is currently 102400 sectors - size will be increased
bash-3.2# df -k /oracle/QA2
/oracle/QA2 (/dev/vx/dsk/qa2_oracledg/qa2_oracle_qa2) : 198448 total allocated Kb
96024 free allocated Kb
How to clear the failing flag when a vxdisk list status shows "online failing"
http://seer.support.veritas.com/docs/184960.htm
bash-3.2# vxdisk -o alldgs list
DEVICE TYPE DISK GROUP STATUS
c21t0d6 auto:cdsdisk qa2_mirrlogdg01 qa2_mirrlogdg online failing
bash-3.2# vxedit -g qa2_mirrlogdg set failing=off qa2_mirrlogdg01
bash-3.2# vxdisk -o alldgs list
DEVICE TYPE DISK GROUP STATUS
c21t0d6 auto:cdsdisk qa2_mirrlogdg01 qa2_mirrlogdg online
VCS Port
port What it does and how to stop
------------------------------------
a Communication node-to-node - stopped by stopping gab
b IO Fencing - stopped with /etc/init.d/vxfen stop
d Oracle to Oracle coms in a RAC environment - stop Oracle
f Cluster File System
h GAB to VSC (had) communication - hastop
o ODM - stop Oracle, and umount /odm
q qlog (part of cluster
v part of cvm - stop VCS group or vxclustadm stopnode
w part of cvm - stop VCS group or vxclustadm stopnode
/etc/llttab ::
set-node oaprod1 # diff for each node, reflect local node name
set-cluster 1
link ce1 /dev/ce:1 - ether - -
link ce3 /dev/ce:3 - ether - -
link-lowpri ce0 /dev/ce:0 - ether - -
/etc/llthosts ::
0 oaprod1
1 oaprod2
/etc/gabtab ::
/sbin/gabconfig -c -n2
How to Migrate VxVM volume from One storage vendor to another storage vendor
1. As oracle data/logs are on VxVM volume having EMC luns.
For eg. Disk Group = EMCDG, VxVM Volume = EMCVOL
2. Expose NetApp luns using snapdrive storage create command on the host.
3. Add the NetApp luns to the VxVM volume having oracle data/logs, this will make the volume as mirrored vxvm volume and also do auto sync on the luns.
Once the data is synced on NetApp luns , detached the luns from the mirrored volume and make a new volume of NetApp luns for Dev/QA purpose.
Below are the steps:
Add mirror disk i.e NetApp disk in a diskgroup
vxdg -g
Add Mirror to the volume
vxassist -b -g EMCDG mirror EMCVOL disk2
[ This will auto sync the data on new NetApp Luns i.e disk2]
See Plex and Subdisk info
vxprint -htg EMCDG
Remove mirror Plex of NetApp subdisk from the volume
vxplex -g EMCDG dis EMCVOL-02
Now create another volume using NetApp subdisk [previously removed mirror] for Dev/QA purpose
vxmake -g EMCDG vol newVol plex=EMCVOL-02
[here data is on the lun , but the newVol is not in start state]
See new volume Plex and Subdisk info
vxprint -htg EMCDG
NOTE : Volume newVol is in DISABLED state
Start the new volume of NetApp subdisk
vxvol -g EMCDG start newVol
Mount the new NetApp luns volume
mkdir /newVOL
mount -F vxfs /dev/vx/dsk/EMCDG/newVol /newVOL/
Check the contents of the volume
ls -lrt /newVOL/
Note : You must find the oracle data/logs dir on the vxvm volume having NetApp luns.
With Layered volume
We can use VxVM layered volume concept, (EMC subvol + NetApp subvol) and than take a snapshot using -hostvol option of NetApp volume which is mirrored of EMC vol.
Here:
Layered Vol = layered_vol
Sub Vols = layered_vol-S01, layered_vol-S02 (Striped across sub volumes, logical entities).
Vols = layered_vol-L01 , layered_vol-L02 (Mirrored volumes over luns).
VxVM:
vxassist -g layered_DG make layered_vol 2g layout=stripe-mirror
SDU Snapshot..
snapdrive snap create -hostvol layered_DG/layered_vol-L01 -snapname layered_snap -force
bash-3.00# vxprint -rth layered_vol
Disk group: layered_DG
dm disk1 c4t500A098383310F03d13s2 auto 65536 1158912 -
dm disk2 c4t500A098383310F03d14s2 auto 65536 1158912 -
dm disk3 c4t500A098383310F03d17s2 auto 65536 2027264 -
dm disk4 c4t500A098383310F03d18s2 auto 65536 2027264 -
v layered_vol - ENABLED ACTIVE 2097152 SELECT layered_vol-03 fsgen
pl layered_vol-03 layered_vol ENABLED ACTIVE 2097152 STRIPE 2/128 RW
sv layered_vol-S01 layered_vol-03 layered_vol-L01 1 1048576 0/0 2/2 ENA
v2 layered_vol-L01 - ENABLED ACTIVE 1048576 SELECT - fsgen
p2 layered_vol-P01 layered_vol-L01 ENABLED ACTIVE 1048576 CONCAT - RW
s2 disk1-02 layered_vol-P01 disk1 0 1048576 0 c4t500A098383310F03d13 ENA
p2 layered_vol-P02 layered_vol-L01 ENABLED ACTIVE 1048576 CONCAT - RW
s2 disk3-02 layered_vol-P02 disk3 0 1048576 0 c4t500A098383310F03d17 ENA
sv layered_vol-S02 layered_vol-03 layered_vol-L02 1 1048576 1/0 2/2 ENA
v2 layered_vol-L02 - ENABLED ACTIVE 1048576 SELECT - fsgen
p2 layered_vol-P03 layered_vol-L02 ENABLED ACTIVE 1048576 CONCAT - RW
s2 disk2-02 layered_vol-P03 disk2 0 1048576 0 c4t500A098383310F03d14 ENA
p2 layered_vol-P04 layered_vol-L02 ENABLED ACTIVE 1048576 CONCAT - RW
s2 disk4-02 layered_vol-P04 disk4 0 1048576 0 c4t500A098383310F03d18 ENA
Subscribe to:
Posts (Atom)
