目的:将/dev/sdb6作为归档盘添加到DSC集群中
1.挂存储
在两个节点的/etc/udev/rules.d/70-persistent-ipoib.rules添加以下内容
ACTION=="add", KERNEL=="sdb6", RUN+="/bin/raw /dev/raw/raw6 %N"
添加完后为
ACTION=="add", KERNEL=="sdb1", RUN+="/bin/raw /dev/raw/raw1 %N"
ACTION=="add", KERNEL=="sdb2", RUN+="/bin/raw /dev/raw/raw2 %N"
ACTION=="add", KERNEL=="sdb3", RUN+="/bin/raw /dev/raw/raw3 %N"
ACTION=="add", KERNEL=="sdb4", RUN+="/bin/raw /dev/raw/raw4 %N"
ACTION=="add", KERNEL=="sdb5", RUN+="/bin/raw /dev/raw/raw5 %N"
ACTION=="add", KERNEL=="sdb6", RUN+="/bin/raw /dev/raw/raw6 %N"
ACTION=="add",KERNEL=="raw[1-6]",OWNER="dmdba",GROUP="dinstall", MODE="660"
两个节点重新加载磁盘信息
[root@ ~]# /sbin/udevadm trigger --type=devices --action=change
[root@ ~]# /sbin/udevadm control --reload-rules
2.初始化ARCH盘
[dmdba@ bin]# ./dmasmcmd
DMASMCMD V8
ASM>create asmdisk '/dev/raw/raw6' 'ARCH0'
[TRACE]The ASM initialize asmdisk /dev/raw/raw6 to name DMASMARCH0
3.创建 ARCH磁盘组
[dmdba@ bin]# ./dmasmtool DCR_INI=/home/config/dmdcr.ini
DMASMTOOL V8
ASM>create diskgroup 'DMARCH' asmdisk '/dev/raw/raw6'
4.修改dmarch.ini文件
将归档路径修改为+DMARCH磁盘组下
节点一
[ARCHIVE_LOCAL1]
ARCH_TYPE = LOCAL
ARCH_DEST = +DMARCH/arch_0
ARCH_FILE_SIZE = 2048
ARCH_SPACE_LIMIT = 51200
[ARCH_REMOTE1]
ARCH_TYPE = REMOTE
ARCH_DEST = DSC1
ARCH_INCOMING_PATH = +DMARCH/arch_1
ARCH_FILE_SIZE = 2048
ARCH_SPACE_LIMIT = 51200
节点二
[ARCHIVE_LOCAL1]
ARCH_TYPE = LOCAL
ARCH_DEST = +DMARCH/arch_1
ARCH_FILE_SIZE = 2048
ARCH_SPACE_LIMIT = 51200
[ARCH_REMOTE1]
ARCH_TYPE = REMOTE
ARCH_DEST = DSC0
ARCH_INCOMING_PATH = +DMARCH/arch_0
ARCH_FILE_SIZE = 2048
ARCH_SPACE_LIMIT = 51200
5.重启数据库服务后验证归档状态
SQL> select * from v$arch_STATUS;
行号 ARCH_TYPE ARCH_DEST ARCH_STATUS ARCH_SRC
---------- --------- -------------- ----------- --------
1 LOCAL +DMARCH/arch_0 VALID DSC0
2 REMOTE +DMARCH/arch_1 VALID DSC1
已用时间: 4.352(毫秒). 执行号:300.
文章
阅读量
获赞