OCR存储盘迁移+故障演练

OCR存储盘迁移OCR、OLR、VF 是什么?OCR 盘迁移ASM配置创建磁盘组迁移操作步骤OCR 盘故障恢复OCR、OLR、VF 是什么?OCR: 保存了 RAC 的配置和注册信息;OLR: 保存了 RAC 当前机器上 Oracle Clusterware 的配置信息;VF: 用于网络分区时解决“脑裂”问题。OCR 盘迁移ASM配置# 存储挂了3个盘过来[root@rac1 ~]# fdisk -lDisk /dev/mapper/mpathg: 5368 MB, 536870912
摘要由CSDN通过智能技术生成

OCR、OLR、VF 是什么?

OCR: 保存了 RAC 的配置和注册信息;
OLR: 保存了 RAC 当前机器上 Oracle Clusterware 的配置信息;
VF: 用于网络分区时解决“脑裂”问题。

OCR 盘迁移

ASM配置

# 存储挂了3个盘过来
[root@rac1 ~]# fdisk -l
Disk /dev/mapper/mpathg: 5368 MB, 5368709120 bytes, 10485760 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mapper/mpathh: 5368 MB, 5368709120 bytes, 10485760 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mapper/mpathi: 5368 MB, 5368709120 bytes, 10485760 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

# 获取磁盘设备scsi_id 
[root@rac1 ~]# for disk in `ls /dev/sd*`; do /usr/lib/udev/scsi_id -g -u -d $disk; echo $disk; done
1ATA_VBOX_HARDDISK_VB89af7d4b-db1d400b
/dev/sdg
1ATA_VBOX_HARDDISK_VB33102718-330fcd0a
/dev/sdh
1ATA_VBOX_HARDDISK_VBfc9afc3b-c545d13c
/dev/sdi

# 配置多路径绑定
[root@rac1 ~]# cat /etc/multipath/bindings
mpathg VBOX_HARDDISK_VB33102718-330fcd0a
mpathh VBOX_HARDDISK_VBfc9afc3b-c545d13c
mpathi VBOX_HARDDISK_VB89af7d4b-db1d400b

[root@rac1 ~]# cat /etc/multipath.conf
defaults {
   
        user_friendly_names yes
        find_multipaths no
}
multipaths {
   
        multipath {
   
                wwid                    1ATA_VBOX_HARDDISK_VB89af7d4b-db1d400b
                alias                   mpathg
        }
        multipath {
   
                wwid                    1ATA_VBOX_HARDDISK_VB33102718-330fcd0a
                alias                   mpathh
        }
        multipath {
   
                wwid                    1ATA_VBOX_HARDDISK_VBfc9afc3b-c545d13c
                alias                   mpathi
        }
}

# 重启生效
[root@rac1 ~]# systemctl restart multipathd.service
[root@rac1 ~]# multipath -ll
mpathg (VBOX_HARDDISK_VB33102718-330fcd0a) dm-2 ATA     ,VBOX HARDDISK
size=5.0G features='0' hwhandler='0' wp=rw
`-+- policy='service-time 0' prio=1 status=active
  `- 9:0:0:0  sdh 8:112 active ready running
mpathh (VBOX_HARDDISK_VBfc9afc3b-c545d13c) dm-3 ATA     ,VBOX HARDDISK
size=5.0G features='0' hwhandler='0' wp=rw
`-+- policy='service-time 0' prio&
  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值