使用VxVM在线更换Oracle CRS硬盘zz
<DIV><FONT size=4><A href="http://www.itpub.net/viewthread.php?tid=976694&highlight">http://www.itpub.net/viewthread.php?tid=976694&highlight</A>=</FONT></DIV><DIV><FONT size=4>速度挺快,如果是数据盘,同理可得<BR><BR>可以在make mirrow的时候加入slow属性。<BR><BR><FONT color=#0000ff>检查CRS的状态。</FONT></FONT><BR><BR>root@rac07 # ocrcheck<BR>Status of Oracle Cluster Registry is as follows :<BR> Version : 2<BR> Total space (kbytes) : 204580<BR> Used space (kbytes) : 2436<BR> Available space (kbytes) : 202144<BR> ID : 452530507<BR> Device/File Name : /dev/vx/rdsk/oradg122/ocrvol<BR> Device/File integrity check succeeded<BR><BR> Device/File not configured<BR><BR> Cluster registry integrity check succeeded<BR><BR>root@rac07 # vxprint -phv -g oradg122<BR>TY NAME ASSOC KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0<BR>v ocrvol fsgen ENABLED 409600 - ACTIVE - -<BR>pl ocrvol-01 ocrvol ENABLED 409600 - ACTIVE - -<BR>sd ams_wms0_0048-01 ocrvol-01 ENABLED 409600 0 - - -<BR><BR>v vdvol fsgen ENABLED 409600 - ACTIVE - -<BR>pl vdvol-01 vdvol ENABLED 409600 - ACTIVE - -<BR>sd ams_wms0_0048-02 vdvol-01 ENABLED 409600 0 - - -<BR>root@rac07 # <BR><BR>root@rac07 # <BR>root@rac07 # vxdisk -g oradg122 -o alldgs list<BR>DEVICE TYPE DISK GROUP STATUS<BR>ams_wms0_0048 auto:cdsdisk ams_wms0_0048 oradg122 online shared<BR><BR><FONT color=#0000ff><FONT size=4>找一块空盘</FONT></FONT><BR><BR>root@rac07 # vxdisk -o alldgs list<BR>DEVICE TYPE DISK GROUP STATUS<BR>ams_wms0_00a6 auto:cdsdisk - (vxfendg70) online<BR>ams_wms0_00a7 auto:cdsdisk - (vxfendg70) online<BR>ams_wms0_00b2 auto:cdsdisk - (vxfendg70) online<BR><FONT size=4><FONT color=#0000ff>ams_wms0_00b3 auto:cdsdisk - - online</FONT></FONT><BR>ams_wms0_00b4 auto:cdsdisk ams_wms0_00b4 oradata122 online shared<BR>ams_wms0_004a auto:cdsdisk - (vxfencoorddg) online<BR>ams_wms0_004b auto:cdsdisk - (oracle_dg_rac06_rac05 online<BR>ams_wms0_004c auto:cdsdisk - (datadg) online shared<BR>ams_wms0_0042 auto:cdsdisk - - online<BR>ams_wms0_0043 auto:cdsdisk - - online<BR>ams_wms0_0044 auto:cdsdisk - (oracle_dg_rac06_rac05 online<BR>ams_wms0_0045 auto:cdsdisk - (vxfencoorddg) online<BR>ams_wms0_0046 auto:cdsdisk ams_wms0_0046 oradata122 online shared<BR>ams_wms0_0047 auto:cdsdisk - (oracle_dg_rac06_rac05 online<BR>ams_wms0_0048 auto:cdsdisk ams_wms0_0048 oradg122 online shared<BR>ams_wms0_0049 auto:cdsdisk - (vxfencoorddg) online<BR>disk_0 auto:none - - online invalid<BR>root@rac07 #<BR><BR><FONT color=#0000ff><FONT size=4>为磁盘组新加入一块磁盘ams_wms0_00b3</FONT></FONT><BR><BR>root@rac07 # vxdg -g oradg122 adddisk ams_wms0_00b3<BR>root@rac07 # crs_stat -t<BR>Name Type Target State Host <BR>------------------------------------------------------------<BR>ora....07.lsnr application ONLINE ONLINE rac07 <BR>ora....c07.gsd application ONLINE ONLINE rac07 <BR>ora....c07.ons application ONLINE ONLINE rac07 <BR>ora....c07.vip application ONLINE ONLINE rac07 <BR>ora....08.lsnr application ONLINE ONLINE rac08 <BR>ora....c08.gsd application ONLINE ONLINE rac08 <BR>ora....c08.ons application ONLINE ONLINE rac08 <BR>ora....c08.vip application ONLINE ONLINE rac08 <BR><BR>root@rac07 # date <BR>Wed Apr 23 17:28:22 CST 2008<BR><BR><FONT color=#0000ff>在新的磁盘中镜像原有的ocr卷<BR></FONT><BR>root@rac07 # vxassist -g oradg122 mirror ocrvol ams_wms0_00b3<BR>root@rac07 # date<BR>Wed Apr 23 17:30:31 CST 2008<BR>root@rac07 # vxassist -g oradg122 mirror vdvol ams_wms0_00b3<BR>root@rac07 # <BR>root@rac07 # vxprint -phv -g oradg122<BR>TY NAME ASSOC KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0<BR>v ocrvol fsgen ENABLED 409600 - ACTIVE - -<BR>pl ocrvol-01 ocrvol ENABLED 409600 - ACTIVE - -<BR>sd ams_wms0_0048-01 ocrvol-01 ENABLED 409600 0 - - -<BR>pl ocrvol-02 ocrvol ENABLED 409600 - ACTIVE - -<BR>sd ams_wms0_00b3-01 ocrvol-02 ENABLED 409600 0 - - -<BR><BR>v vdvol fsgen ENABLED 409600 - ACTIVE - -<BR>pl vdvol-01 vdvol ENABLED 409600 - ACTIVE - -<BR>sd ams_wms0_0048-02 vdvol-01 ENABLED 409600 0 - - -<BR>pl vdvol-02 vdvol ENABLED 409600 - ACTIVE - -<BR>sd ams_wms0_00b3-02 vdvol-02 ENABLED 409600 0 - - -<BR><BR><BR><FONT color=#0000ff><FONT size=4>删除老盘上的卷镜像</FONT></FONT><BR><BR>root@rac07 # vxassist -g oradg122 remove mirror vdvol !ams_wms0_0048<BR>-bash: !ams_wms0_0048: event not found<BR>root@rac07 # vxassist -g oradg122 remove mirror vdvol !ams_wms0_0048<BR>root@rac07 # vxassist -g oradg122 remove mirror ocrvol !ams_wms0_0048<BR>root@rac07 # vxprint -phv -g oradg122<BR>TY NAME ASSOC KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0<BR>v ocrvol fsgen ENABLED 409600 - ACTIVE - -<BR>pl ocrvol-02 ocrvol ENABLED 409600 - ACTIVE - -<BR>sd ams_wms0_00b3-01 ocrvol-02 ENABLED 409600 0 - - -<BR><BR>v vdvol fsgen ENABLED 409600 - ACTIVE - -<BR>pl vdvol-02 vdvol ENABLED 409600 - ACTIVE - -<BR>sd ams_wms0_00b3-02 vdvol-02 ENABLED 409600 0 - - -<BR><BR><FONT color=#0000ff><FONT size=4>删除老盘<BR></FONT></FONT><BR>root@rac07 # vxdg -g oradg122 rmdisk ams_wms0_0048<BR><BR>root@rac07 # crs_stat -t<BR>Name Type Target State Host <BR>------------------------------------------------------------<BR>ora....07.lsnr application ONLINE ONLINE rac07 <BR>ora....c07.gsd application ONLINE ONLINE rac07 <BR>ora....c07.ons application ONLINE ONLINE rac07 <BR>ora....c07.vip application ONLINE ONLINE rac07 <BR>ora....08.lsnr application ONLINE ONLINE rac08 <BR>ora....c08.gsd application ONLINE ONLINE rac08 <BR>ora....c08.ons application ONLINE ONLINE rac08 <BR>ora....c08.vip application ONLINE ONLINE rac08 <BR><BR>root@rac07 # date<BR>Wed Apr 23 17:35:10 CST 2008<BR></DIV>
页:
[1]