扩容ASM磁盘组
目的:将/dev/sdb7加入到DMDATA磁盘组中以实现扩容
1.挂存储
在两个节点的/etc/udev/rules.d/70-persistent-ipoib.rules添加以下内容
ACTION=="add", KERNEL=="sdb7", 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=="sdb7", RUN+="/bin/raw /dev/raw/raw6 %N"
ACTION=="add",KERNEL=="raw[1-7]",OWNER="dmdba",GROUP="dinstall", MODE="660"
两个节点重新加载磁盘信息
[root@ ~]# /sbin/udevadm trigger --type=devices --action=change
[root@ ~]# /sbin/udevadm control --reload-rules
2.初始化新增数据盘
[dmdba@ bin]$ ./dmasmcmd
DMASMCMD V8
ASM>create asmdisk '/dev/raw/raw7' 'DATA1'
[TRACE]The ASM initialize asmdisk /dev/raw/raw7 to name DMASMDATA1
3.将raw7添加到DMDATA磁盘组
[dmdba@ bin]$ ./dmasmtool dcr_ini=/home/config/dmdcr.ini
DMASMTOOL V8
ASM>alter diskgroup 'DMDATA' add asmdisk '/dev/raw/raw7'
4.查看DMDATA磁盘组信息
执行lsdg操作查看到DMDATA磁盘组已扩容到34.8GB
[dmdba@ bin]$ ./dmasmtool dcr_ini=/home/config/dmdcr.ini
DMASMTOOL V8
ASM>lsdg
2 disk_group:
name: DMDATA
id: 1
au_size: 1.00 MB
extent_size: 4
total_size: 34.80 GB
free_size: 34.21 GB
total_file_num: 22
5.查看ASM磁盘信息
执行lsdsk命令,查看raw7已归属于DMDATA磁盘组
[dmdba@ bin]$ ./dmasmtool dcr_ini=/home/config/dmdcr.ini
DMASMTOOL V8
ASM>lsdsk
group DMDATA include 2 disks......
NO.1 disk :
name: DMASMDATA0
path: /dev/raw/raw5
size: 15.00 GB
create_time: 2023-06-13 10:51:52
modify_time: 2023-06-13 13:37:21
belong group: DMDATA
NO.2 disk :
name: DMASMDATA1
path: /dev/raw/raw7
size: 19.80 GB
create_time: 2023-06-21 16:07:54
modify_time: 2023-06-21 16:10:01
belong group: DMDATA
文章
阅读量
获赞