Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Oracle asm add disk expansion

2025-04-10 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

1. Lun is mounted on the storage

two。 Do the following on the operating system (there is no need to restart the operating system):

Echo "- -" > / sys/class/scsi_host/host0/scan

Echo "- > / sys/class/scsi_host/host1/scan

.

Complete the operation in one step:

Echo "- > / sys/class/scsi_host/host**/scan

3. Edit / etc/multipath.conf

Add:

Multipath {

Wwid 360002ac000000000000000dd00012d32

Alias mpath2

}

Multipath {

Wwid 360002ac0000000000000004000012d47

Alias mpath3

}

Restart the multipath service or reload

4. Format the disk:

Fdisk / dev/mapper/mpath2

Fdisk / dev/mapper/mpath2

Partprobe / dev/mapper/mpath2

Partprobe / dev/mapper/mpath3

5.asmlib binding, or some other way:

/ etc/init.d/oracleasm createdisk ASMDISK1 / dev/mapper/mpath2p1

Marking disk "ASMDISK1" as an ASM disk: [OK]

/ etc/init.d/oracleasm createdisk ASMDISK2 / dev/mapper/mpath3p1

Marking disk "ASMDISK2" as an ASM disk: [OK]

6. Confirm:

/ etc/init.d/oracleasm scandisks

/ etc/init.d/oracleasm listdisks

ASMDISK1

ASMDISK2

If it is rac, you need to execute scandisks on other nodes:

Partprobe / dev/mapper/mpath2

Partprobe / dev/mapper/mpath3

/ etc/init.d/oracleasm scandisks

Scanning the system for Oracle ASMLib disks: [OK]

/ etc/init.d/oracleasm listdisks

ASMDISK1

ASMDISK2

6. Use asmca to add disks:

7. Check the progress of diskgroup data balancing:

SQL > select * from v$asm_operation

GROUP_NUMBER OPERA STAT POWER ACTUAL SOFAR EST_WORK EST_RATE EST_MINUTES ERROR_CODE

-

1 REBAL RUN 1 1 30849 2067087 7140 285

2 REBAL WAIT 1

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report