Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1172155
  • 博文数量: 245
  • 博客积分: 10185
  • 博客等级: 上将
  • 技术积分: 2744
  • 用 户 组: 普通用户
  • 注册时间: 2006-10-30 17:07
文章分类

全部博文(245)

文章存档

2015年(1)

2014年(1)

2013年(1)

2012年(1)

2011年(37)

2010年(20)

2009年(14)

2008年(38)

2007年(88)

2006年(44)

分类: Oracle

2011-08-05 14:28:01

速度挺快,如果是数据盘,同理可得

可以在make mirrow的时候加入slow属性。

检查CRS的状态。


root@rac07 # ocrcheck
Status of Oracle Cluster Registry is as follows :
         Version                  :          2
         Total space (kbytes)     :     204580
         Used space (kbytes)      :       2436
         Available space (kbytes) :     202144
         ID                       :  452530507
         Device/File Name         : /dev/vx/rdsk/oradg122/ocrvol
                                    Device/File integrity check succeeded

                                    Device/File not configured

         Cluster registry integrity check succeeded

root@rac07 # vxprint -phv -g oradg122
TY NAME         ASSOC        KSTATE   LENGTH   PLOFFS   STATE    TUTIL0  PUTIL0
v  ocrvol       fsgen        ENABLED  409600   -        ACTIVE   -       -
pl ocrvol-01    ocrvol       ENABLED  409600   -        ACTIVE   -       -
sd ams_wms0_0048-01 ocrvol-01 ENABLED 409600   0        -        -       -

v  vdvol        fsgen        ENABLED  409600   -        ACTIVE   -       -
pl vdvol-01     vdvol        ENABLED  409600   -        ACTIVE   -       -
sd ams_wms0_0048-02 vdvol-01 ENABLED  409600   0        -        -       -
root@rac07 #

root@rac07 #
root@rac07 # vxdisk -g oradg122 -o alldgs list
DEVICE       TYPE            DISK         GROUP        STATUS
ams_wms0_0048 auto:cdsdisk    ams_wms0_0048  oradg122     online shared

找一块空盘

root@rac07 # vxdisk -o alldgs list
DEVICE       TYPE            DISK         GROUP        STATUS
ams_wms0_00a6 auto:cdsdisk    -            (vxfendg70)  online
ams_wms0_00a7 auto:cdsdisk    -            (vxfendg70)  online
ams_wms0_00b2 auto:cdsdisk    -            (vxfendg70)  online
ams_wms0_00b3 auto:cdsdisk    -            -            online
ams_wms0_00b4 auto:cdsdisk    ams_wms0_00b4  oradata122   online shared
ams_wms0_004a auto:cdsdisk    -            (vxfencoorddg) online
ams_wms0_004b auto:cdsdisk    -            (oracle_dg_rac06_rac05 online
ams_wms0_004c auto:cdsdisk    -            (datadg)     online shared
ams_wms0_0042 auto:cdsdisk    -            -            online
ams_wms0_0043 auto:cdsdisk    -            -            online
ams_wms0_0044 auto:cdsdisk    -            (oracle_dg_rac06_rac05 online
ams_wms0_0045 auto:cdsdisk    -            (vxfencoorddg) online
ams_wms0_0046 auto:cdsdisk    ams_wms0_0046  oradata122   online shared
ams_wms0_0047 auto:cdsdisk    -            (oracle_dg_rac06_rac05 online
ams_wms0_0048 auto:cdsdisk    ams_wms0_0048  oradg122     online shared
ams_wms0_0049 auto:cdsdisk    -            (vxfencoorddg) online
disk_0       auto:none       -            -            online invalid
root@rac07 #

为磁盘组新加入一块磁盘ams_wms0_00b3

root@rac07 # vxdg -g oradg122 adddisk ams_wms0_00b3
root@rac07 # crs_stat -t
Name           Type           Target    State     Host        
------------------------------------------------------------
ora....07.lsnr application    ONLINE    ONLINE    rac07   
ora....c07.gsd application    ONLINE    ONLINE    rac07   
ora....c07.ons application    ONLINE    ONLINE    rac07   
ora....c07.vip application    ONLINE    ONLINE    rac07   
ora....08.lsnr application    ONLINE    ONLINE    rac08   
ora....c08.gsd application    ONLINE    ONLINE    rac08   
ora....c08.ons application    ONLINE    ONLINE    rac08   
ora....c08.vip application    ONLINE    ONLINE    rac08   

root@rac07 # date                 
Wed Apr 23 17:28:22 CST 2008

在新的磁盘中镜像原有的ocr卷

root@rac07 # vxassist -g oradg122 mirror ocrvol ams_wms0_00b3
root@rac07 # date
Wed Apr 23 17:30:31 CST 2008
root@rac07 # vxassist -g oradg122 mirror vdvol ams_wms0_00b3
root@rac07 #
root@rac07 # vxprint -phv -g oradg122
TY NAME         ASSOC        KSTATE   LENGTH   PLOFFS   STATE    TUTIL0  PUTIL0
v  ocrvol       fsgen        ENABLED  409600   -        ACTIVE   -       -
pl ocrvol-01    ocrvol       ENABLED  409600   -        ACTIVE   -       -
sd ams_wms0_0048-01 ocrvol-01 ENABLED 409600   0        -        -       -
pl ocrvol-02    ocrvol       ENABLED  409600   -        ACTIVE   -       -
sd ams_wms0_00b3-01 ocrvol-02 ENABLED 409600   0        -        -       -

v  vdvol        fsgen        ENABLED  409600   -        ACTIVE   -       -
pl vdvol-01     vdvol        ENABLED  409600   -        ACTIVE   -       -
sd ams_wms0_0048-02 vdvol-01 ENABLED  409600   0        -        -       -
pl vdvol-02     vdvol        ENABLED  409600   -        ACTIVE   -       -
sd ams_wms0_00b3-02 vdvol-02 ENABLED  409600   0        -        -       -


删除老盘上的卷镜像

root@rac07 # vxassist -g oradg122 remove mirror vdvol !ams_wms0_0048
-bash: !ams_wms0_0048: event not found
root@rac07 # vxassist -g oradg122 remove mirror vdvol !ams_wms0_0048
root@rac07 # vxassist -g oradg122 remove mirror ocrvol !ams_wms0_0048
root@rac07 # vxprint -phv -g oradg122
TY NAME         ASSOC        KSTATE   LENGTH   PLOFFS   STATE    TUTIL0  PUTIL0
v  ocrvol       fsgen        ENABLED  409600   -        ACTIVE   -       -
pl ocrvol-02    ocrvol       ENABLED  409600   -        ACTIVE   -       -
sd ams_wms0_00b3-01 ocrvol-02 ENABLED 409600   0        -        -       -

v  vdvol        fsgen        ENABLED  409600   -        ACTIVE   -       -
pl vdvol-02     vdvol        ENABLED  409600   -        ACTIVE   -       -
sd ams_wms0_00b3-02 vdvol-02 ENABLED  409600   0        -        -       -

删除老盘

root@rac07 # vxdg -g oradg122 rmdisk ams_wms0_0048

root@rac07 # crs_stat -t
Name           Type           Target    State     Host        
------------------------------------------------------------
ora....07.lsnr application    ONLINE    ONLINE    rac07   
ora....c07.gsd application    ONLINE    ONLINE    rac07   
ora....c07.ons application    ONLINE    ONLINE    rac07   
ora....c07.vip application    ONLINE    ONLINE    rac07   
ora....08.lsnr application    ONLINE    ONLINE    rac08   
ora....c08.gsd application    ONLINE    ONLINE    rac08   
ora....c08.ons application    ONLINE    ONLINE    rac08   
ora....c08.vip application    ONLINE    ONLINE    rac08   

root@rac07 # date
Wed Apr 23 17:35:10 CST 2008
阅读(1037) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~