新旧磁盘数量一致,能否删除带votedisk的磁盘?

网友投稿 605 2022-05-28

votedisk 信息

[grid@db01 ~]$ crsctl query css votedisk ## STATE File Universal Id File Name Disk group -- ----- ----------------- --------- --------- 1. ONLINE 093f536704a64f91bf978e3d3669e9a8 (/dev/oracleasm/disks/OCR101) [OCR] 2. ONLINE 34eb9d2c44824fb3bf8479b22b517771 (/dev/oracleasm/disks/OCR102) [OCR] 3. ONLINE 24f853a217ca4f22bf13c28e48be2c05 (/dev/oracleasm/disks/OCR103) [OCR]

添加2块磁盘,执行删除旧磁盘操作:

NAME PATH FAILGROUP FAILGRO --------------- ------------------------------ -------------------- ------- OCR /dev/oracleasm/disks/OCR101 OCR_0003 REGULAR OCR /dev/oracleasm/disks/OCR102 OCR_0004 REGULAR OCR /dev/oracleasm/disks/OCR103 OCR_0005 REGULAR #添加2块磁盘 SQL> alter diskgroup ocr add disk '/dev/oracleasm/disks/OCR01', '/dev/oracleasm/disks/OCR02'; 2 3 Diskgroup altered. #删除旧磁盘 SQL> ALTER DISKGROUP OCR drop disk 'OCR_0003', 'OCR_0004', 'OCR_0005'; 2 3 4 Diskgroup altered.

#

#旧磁盘未删除

NAME PATH FAILGROUP FAILGRO --------------- ------------------------------ -------------------- ------- OCR /dev/oracleasm/disks/OCR01 OCR_0000 REGULAR OCR /dev/oracleasm/disks/OCR02 OCR_0001 REGULAR OCR /dev/oracleasm/disks/OCR101 OCR_0003 REGULAR OCR /dev/oracleasm/disks/OCR102 OCR_0004 REGULAR OCR /dev/oracleasm/disks/OCR103 OCR_0005 REGULAR SQL> select STATE from v$asm_disk; STATE -------- NORMAL DROPPING《====状态为删除 DROPPING DROPPING NORMAL NORMAL 日志信息: Wed Sep 08 20:49:45 2021 SQL> ALTER DISKGROUP OCR drop disk 'OCR_0003', 'OCR_0004', 'OCR_0005' NOTE: GroupBlock outside rolling migration privileged region NOTE: requesting all-instance membership refresh for group=1 Wed Sep 08 20:49:48 2021 NOTE: Attempting voting file relocation on diskgroup OCR NOTE: Successful voting file relocation on diskgroup OCR Wed Sep 08 20:49:48 2021 GMON updating for reconfiguration, group 1 at 23 for pid 31, osid 15246 NOTE: group 1 PST updated. NOTE: membership refresh pending for group 1/0xbefb6a6b (OCR) GMON querying group 1 at 24 for pid 18, osid 11947 SUCCESS: refreshed membership for 1/0xbefb6a6b (OCR) NOTE: starting rebalance of group 1/0xbefb6a6b (OCR) at power 1 SUCCESS: ALTER DISKGROUP OCR drop disk 'OCR_0003', 'OCR_0004', 'OCR_0005' Starting background process ARB0 Wed Sep 08 20:49:51 2021 ARB0 started with pid=28, OS id=17057 NOTE: assigning ARB0 to group 1/0xbefb6a6b (OCR) with 1 parallel I/O cellip.ora not found. NOTE: F1X0 copy 1 relocating from 4:114 to 0:136 for diskgroup 1 (OCR) NOTE: F1X0 copy 2 relocating from 3:115 to 1:137 for diskgroup 1 (OCR) NOTE: F1X0 copy 3 relocating from 5:115 to 65534:4294967294 for diskgroup 1 (OCR) NOTE: Attempting voting file refresh on diskgroup OCR NOTE: Refresh completed on diskgroup OCR . Found 3 voting file(s). NOTE: Voting file relocation is required in diskgroup OCR NOTE: Attempting voting file relocation on diskgroup OCR NOTE: voting file allocation on grp 1 disk OCR_0000 NOTE: voting file allocation on grp 1 disk OCR_0001 NOTE: Failed voting file relocation on diskgroup OCR Wed Sep 08 20:50:02 2021 NOTE: stopping process ARB0 SUCCESS: rebalance completed for group 1/0xbefb6a6b (OCR) Wed Sep 08 20:50:03 2021 NOTE: GroupBlock outside rolling migration privileged region NOTE: requesting all-instance membership refresh for group=1 Wed Sep 08 20:50:06 2021 GMON updating for reconfiguration, group 1 at 25 for pid 32, osid 16894 NOTE: group 1 PST updated. WARNING: grp 1 disk OCR_0003 still has contents (32 AUs) WARNING: grp 1 disk OCR_0004 still has contents (32 AUs) WARNING: grp 1 disk OCR_0005 still has contents (32 AUs) NOTE: membership refresh pending for group 1/0xbefb6a6b (OCR) GMON querying group 1 at 26 for pid 18, osid 11947 SUCCESS: refreshed membership for 1/0xbefb6a6b (OCR) Wed Sep 08 20:50:12 2021 NOTE: Attempting voting file refresh on diskgroup OCR NOTE: Refresh completed on diskgroup OCR . Found 3 voting file(s). NOTE: Voting file relocation is required in diskgroup OCR NOTE: Attempting voting file relocation on diskgroup OCR NOTE: voting file allocation on grp 1 disk OCR_0000 NOTE: voting file allocation on grp 1 disk OCR_0001 NOTE: Failed voting file relocation on diskgroup OCR

新旧磁盘数量不一致,能否删除带votedisk的磁盘?

#在添加一块磁盘之后自动删除旧磁盘

#添加磁盘之后,自动删除。 SQL> alter diskgroup ocr add disk '/dev/oracleasm/disks/OCR03';SQL> 2 Diskgroup altered. SQL> select dg.name, d.path, d.failgroup, d.failgroup_type from v$asm_diskgroup dg, v$asm_disk d where dg.group_number = d.group_number and dg.name = 'OCR' order by dg.name, d.path, d.failgroup; 2 3 4 NAME PATH FAILGROUP FAILGRO --------------- ------------------------------ -------------------- ------- OCR /dev/oracleasm/disks/OCR01 OCR_0000 REGULAR OCR /dev/oracleasm/disks/OCR02 OCR_0001 REGULAR OCR /dev/oracleasm/disks/OCR03 OCR_0002 REGULAR [grid@db01 ~]$ crsctl query css votedisk ## STATE File Universal Id File Name Disk group -- ----- ----------------- --------- --------- 1. ONLINE 57e24fe4466a4f57bf09968b9dd8585c (/dev/oracleasm/disks/OCR01) [OCR] 2. ONLINE 4065d42296204f8bbfd8cccbaca0b68b (/dev/oracleasm/disks/OCR02) [OCR] 3. ONLINE 901ec22713a64fefbfad784eef648c31 (/dev/oracleasm/disks/OCR03) [OCR] 日志信息: Wed Sep 08 20:53:37 2021 SQL> alter diskgroup ocr add disk '/dev/oracleasm/disks/OCR03' NOTE: GroupBlock outside rolling migration privileged region NOTE: Assigning number (1,2) to disk (/dev/oracleasm/disks/OCR03) NOTE: requesting all-instance membership refresh for group=1 NOTE: initializing header on grp 1 disk OCR_0002 NOTE: requesting all-instance disk validation for group=1 Wed Sep 08 20:53:39 2021 NOTE: skipping rediscovery for group 1/0xbefb6a6b (OCR) on local instance. NOTE: requesting all-instance disk validation for group=1 NOTE: skipping rediscovery for group 1/0xbefb6a6b (OCR) on local instance. Wed Sep 08 20:53:39 2021 GMON updating for reconfiguration, group 1 at 27 for pid 31, osid 15246 NOTE: group 1 PST updated. NOTE: initiating PST update: grp = 1 GMON updating group 1 at 28 for pid 31, osid 15246 NOTE: PST update grp = 1 completed successfully NOTE: membership refresh pending for group 1/0xbefb6a6b (OCR) GMON querying group 1 at 29 for pid 18, osid 11947 NOTE: cache opening disk 2 of grp 1: OCR_0002 path:/dev/oracleasm/disks/OCR03 GMON querying group 1 at 30 for pid 18, osid 11947 SUCCESS: refreshed membership for 1/0xbefb6a6b (OCR) NOTE: starting rebalance of group 1/0xbefb6a6b (OCR) at power 1 Starting background process ARB0 SUCCESS: alter diskgroup ocr add disk '/dev/oracleasm/disks/OCR03' Wed Sep 08 20:53:42 2021 ARB0 started with pid=29, OS id=17504 NOTE: assigning ARB0 to group 1/0xbefb6a6b (OCR) with 1 parallel I/O cellip.ora not found. NOTE: F1X0 copy 3 relocating from 65534:4294967294 to 2:2 for diskgroup 1 (OCR)

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:硬盘操作常用命令
下一篇:【云硬盘】新挂载的云硬盘---如何格式化容量大于2TB的Linux数据盘(parted)
相关文章