更多数据库资源 请访问 美河学习在线 www.eimhe.com
1.9. ASM 磁盘配置
如果不部署 mgmtdb,3 块 5G 的磁盘用于 OCR 和 voting disk 即可,如果部署 mgmtdb
mgmtdb 独立磁盘的情况下,normal 冗余需要 53G+存储,external 冗余需要 27G+存储
mgmtdb 与 ocr 及 vote disk 在同一磁盘组的情况下,normal 的磁盘需要 56G+存储,我个
人是与自己电脑虚拟机上配置,则仅仅用于测试,未配置安装 mgmtdb。
本次 ASM 采用另外一台服务器搭建 ISCSI 与 MULTIPATH 用于 udev 映射
1.9.1 ISCSI 搭建
服务端:
yum -y install targetcli
pvcreate /dev/sdb1
vgcreate iscsi_v2 /dev/sdb1
lvcreate -L 4G iscsi_v2 -n iscsi_v2
targetcli
cd /backstores/block
create iscsi_vol /dev/iscsi_vol/iscsi_vol
cd / ->cd iscsi
create iqn.2014-11.com.example:storagel2
cd iqn.2014-11.com.example:storagel2 -> cd tpg1/
acls/ create iqn.2014-11.com.example:storagel2
luns/ create /backstores/block/iscsi_vol
portals/ create 192.168.49.136(服务端 IP)
set attribute authentication=0 demo_mode_write_protect=0 generate_node_acls=1 cache_d
ynamic_acls=1
set attribute demo_mode_write_protect=0
set attribute authentication=0
set attribute generate_node_acls=1
exit
source 192.168.49.136
按以上命令步骤创建两个 ISCSI 盘,最后效果图如下: