In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
1 confirm the new shared disk
According to the new 1T storage information provided by the cloud platform, it is as follows:
Enter the command in the operating system: fdisk-l verify that both dsc nodes can recognize the following information:
10.194.215.8 the shared drive letter is sde and the size is 1000G
10.194.215.9 the shared drive letter is sdf and the size is 1000G.
2 Edit bare device binding file
Edit / etc/udev/rules.d/60-raw.rules, add the information of the shared disk based on the original.
10.194.215.8 nodes are configured as follows:
Vim / etc/udev/rules.d/60-raw.rules
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== "sdc", RUN+= "/ bin/raw / dev/raw/raw5 N"
ACTION== "add", KERNEL== "sdd", RUN+= "/ bin/raw / dev/raw/raw6 N"
ACTION== "add", KERNEL== "sde", RUN+= "/ bin/raw / dev/raw/raw7 N"
KERNEL== "raw [1-7]", OWNER= "dmdba", GROUP= "dinstall", MODE= "660"
Note: the red part needs to be added or modified.
10.194.215.9 nodes are configured as follows:
Vim / etc/udev/rules.d/60-raw.rules
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== "sdd", RUN+= "/ bin/raw / dev/raw/raw5 N"
ACTION== "add", KERNEL== "sde", RUN+= "/ bin/raw / dev/raw/raw6 N"
ACTION== "add", KERNEL== "sdf", RUN+= "/ bin/raw / dev/raw/raw7 N"
KERNEL== "raw [1-7]", OWNER= "dmdba", GROUP= "dinstall", MODE= "660"
3 binding of bare devices
10.194.215.8 the node executes the following command to complete the binding of the bare device:
Partprobe / dev/sde
/ sbin/udevadm trigger-type=devices-action=change
/ sbin/udevadm control-- reload-rules
Start_udev
10.194.215.9 Node executes the following command to complete the binding of the bare device:
Partprobe / dev/sdf
/ sbin/udevadm trigger-type=devices-action=change
/ sbin/udevadm control-- reload-rules
Start_udev
Finally, check whether the bare device is bound successfully with the following command:
-- command to view the size of the bare device
Blockdev-getsize64 / dev/raw/raw5
-- check whether the binding of the bare device is successful, and whether the permission owner is dmdba and the group is dinstall.
Ll / dev/raw
4 create ASM disk
One of the nodes in the dsc cluster initializes the disk using the DMASMCMD tool, initializing the new bare device / dev/raw/raw5 as an ASM disk.
Cd / opt/dmdbms/bin
. / dmasmcmd
Create asmdisk'/ dev/raw/raw7' 'DATA07'
Note: DATA07 can be named according to the actual situation.
5 add the newly added ASM disks to the ASM disk group
Use the dmasmtool tool to add the newly initialized ASM disk to the disk group that has insufficient space, this time to join the DMDATA disk group.
Su-dmdba
Cd / opt/dmdbms/bin
. / dmasmtool DCR_INI=/opt/dmdbms/config/dmdcr.ini
Alter diskgroup 'DMDATA' add asmdisk' / dev/raw/raw7'
6 check the ASM disk group space and confirm that the addition is successful
After adding asm disks to the specified disk group, be sure to check the size of the disk group and confirm that the size is the size of the added asm disk.
Cd / opt/dmdbms/bin
. / dmasmtool DCR_INI=/opt/dmdbms/config/dmdcr.ini
Lsdg
Find the DMDATA disk group to confirm the size, or you can create a new test tablespace to further confirm that the addition was successful.
7 restart the dmap service
After expanding the disk, you need to restart the dmap service, otherwise the backup based on the backup set will fail.
/ etc/init.d/DmAPService restart
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.