linux 识别vxvm,VXVM 管理逻辑卷

使用VxVM在线更换Oracle CRS硬盘

速度挺快

如果是数据盘,同理可得

可以在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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值