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

12C RAC for ASM add disk steps

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

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

RHEL 7.2 uses EMC Powerpath to expand 2T disk space, which needs to be added to the 12C RAC for ASM system. The following are the specific steps. The host staff told the expansion aliases to data_center_16 and data_center_17.

Add mapping storage LUN under 1:linux 7 system (no reboot required)

1 > check the machine HBA card information-both node machines have to be executed by root users

# ls / sys/class/fc_host

Host0-10

2 > allow the system to rescan new hardware devices by modifying the file "scan" permission

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

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

Echo'---'> / sys/class/scsi_host/host2/scan

Echo'---'> / sys/class/scsi_host/host3/scan

Echo'---'> / sys/class/scsi_host/host4/scan

Echo'---'> / sys/class/scsi_host/host5/scan

Echo'---'> / sys/class/scsi_host/host6/scan

Echo'---'> / sys/class/scsi_host/host7/scan

Echo'---'> / sys/class/scsi_host/host8/scan

Echo'---'> / sys/class/scsi_host/host9/scan

Echo'---'> / sys/class/scsi_host/host10/scan

3 > query the newly identified devices, and both node machines have to execute root users

# powermt display dev=all

# ls-al / dev/emcpower*

# powermt display

# powermt config

# powermt save

4 > query the newly added expansion disks: data_center_16 and data_center_17

Pseudo name=emcpowert

VNX ID=CKM00141100044 [data_center]

Logical device ID=60060160F7303500ACF6E88706A1E811 [data_center_16]

State=alive; policy=CLAROpt; queued-IOs=0

Owner: default=SP B, current=SP B Array failover mode: 4

=

-Host-- Stor-I take O Path-Stats--

HW Path I/O Paths Interf. Mode State Q-IOs Errors

=

9 lpfc sdcx SP B0 active alive 0 0

9 lpfc sdcv SP A1 active alive 0 0

1 lpfc sdct SP A0 active alive 0 0

1 lpfc sdcr SP B1 active alive 0 0

Pseudo name=emcpoweru

VNX ID=CKM00141100044 [data_center]

Logical device ID=60060160F7303500ADF6E88706A1E811 [data_center_17]

State=alive; policy=CLAROpt; queued-IOs=0

Owner: default=SP B, current=SP B Array failover mode: 4

-Host-- Stor-I take O Path-Stats--

HW Path I/O Paths Interf. Mode State Q-IOs Errors

=

9 lpfc sdcy SP B0 active alive 0 0

9 lpfc sdcw SP A1 active alive 0 0

1 lpfc sdcu SP A0 active alive 0 0

1 lpfc sdcs SP B1 active alive 0 0

And check whether the system information has aliases for emcpowert and emcpoweru.

Cat / proc/partitions | awk {'print $4'} | grep emcpower | sort

5 > execute the script asm_udev_ol7.sh under root

[root@dwdb1 ~] # more asm_udev_ol7.sh

#! / bin/bash

For i in $(cat / proc/partitions | awk {'print $4'} | grep emcpower | sort)

Do

Echo "ACTION==\" add | change\ ", KERNEL==\" emcpower*\ ", ENV {DEVTYPE} = =\" disk\ ", SUBSYSTEM==\" block\ ", PROGRAM==\"

/ usr/lib/udev/scsi_id-g-u-d-- whitelisted-- replace-whitespace-- device=\ $devnode\ ", RESULT==\" / usr/lib/udev/scsi_id-g-u-d-whitelisted-- replace-whitespace-- device=/dev/$i\ ", RUN+=\" / bin/sh-c 'mknod / dev/asm

-$I b\ $major\ $minor; chown grid:asmadmin / dev/asm-$i; chmod 0660 / dev/asm-$i'\ "> > / etc/udev/rules.d/

99-oracle-asmdevices.rules_bak

Done

6 > extract from the generated / etc/udev/rules.d/99-oracle-asmdevices.rules_bak (360060160f7303500acf6e88706a1)

ACTION== "add | change", KERNEL== "emcpower", ENV {DEVTYPE} = = "disk", SUBSYSTEM== "block", PROGRAM== "/ usr/lib/udev/s

Csi_id-g-u-d-whitelisted-replace-whitespace-device=$devnode ", RESULT==" 360060160f7303500acf6e88706a1

E811 ", RUN+=" / bin/sh-c 'mknod / dev/asm-emcpowert b $major $minor; chown grid:asmadmin / dev/asm-emcpowert; chm

Od 0660 / dev/asm-emcpowert' "

ACTION== "add | change", KERNEL== "emcpower", ENV {DEVTYPE} = = "disk", SUBSYSTEM== "block", PROGRAM== "/ usr/lib/udev/s

Csi_id-g-u-d-whitelisted-replace-whitespace-device=$devnode ", RESULT==" 360060160f7303500adf6e88706a1

E811 ", RUN+=" / bin/sh-c 'mknod / dev/asm-emcpoweru b $major $minor; chown grid:asmadmin / dev/asm-emcpoweru; chm

Od 0660 / dev/asm-emcpoweru' "

7 > then add two messages to vi / etc/udev/rules.d/99-oracle-asmdevices.rules, and scp the modified file to node 2.

ACTION== "add | change", KERNEL== "emcpower", ENV {DEVTYPE} = = "disk", SUBSYSTEM== "block", PROGRAM== "/ usr/lib/udev/s

Csi_id-g-u-d-whitelisted-replace-whitespace-device=$devnode ", RESULT==" 360060160f7303500acf6e88706a1

E811 ", RUN+=" / bin/sh-c 'mknod / dev/asm-data15 b $major $minor; chown grid:asmadmin / dev/asm-data15; chmod 066

0 / dev/asm-data15' "

ACTION== "add | change", KERNEL== "emcpower", ENV {DEVTYPE} = = "disk", SUBSYSTEM== "block", PROGRAM== "/ usr/lib/udev/s

Csi_id-g-u-d-whitelisted-replace-whitespace-device=$devnode ", RESULT==" 360060160f7303500adf6e88706a1

E811 ", RUN+=" / bin/sh-c 'mknod / dev/asm-data16 b $major $minor; chown grid:asmadmin / dev/asm-data16; chmod 066

0 / dev/asm-data16' "

2. After udev confirms that the 99.rules file is on both sides, the two nodes execute the following command

/ sbin/udevadm control-- reload

/ sbin/udevadm trigger-type=devices-action=change

Check whether the disk belongs to the correct group

3. ASM disk group add disk or create a new disk group.

[grid@dwdb1 ~] $sqlplus / as sysasm

Sysasm$alter diskgroup DATA add disk'/ dev/asm-data15','/dev/asm-data16' rebalance power 10; # # this parameter can be adjusted dynamically. If 10 is too slow, it can be changed to the median value of 5.

-- check execution efficiency

Select group_number,operation,state, power,est_minutes from v$asm_operation

-- when the execution is completed, change back to the value of 1BI 11 as the minimum performance and 1 as the maximum performance

Alter diskgroup DATA rebalance power 1

-- at this point, the expansion work has been completed. Here are the specific monitoring measures.

-- check header_status status. There should be no status other than MEMBER.

Select group_number,disk_number,name,state,path,header_status from v$asm_disk

-- Monitoring alert log output results

2018-08-17T16:43:33.399676+08:00

NOTE: Assigning number (3. 14) to disk (/ dev/asm-data15)

SUCCESS: completed reconfiguration of group 3 (DATA)

NOTE: Assigning number (3pm 15) to disk (/ dev/asm-data16)

SUCCESS: completed reconfiguration of group 3 (DATA)

-- Monitor and check the progress of rebalance. After completion, the query is empty, and the power is changed back to 1.

Select inst_id, operation, state, power, sofar, est_work, est_rate, est_minutes from gv$asm_operation

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