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 create a shared disk using vmware:
C:\ Users\ Administrator > E:\ vmware\ vmware-vdiskmanager.exe-c-s 500m-a lsilogic-T2 "G:\ rac_sharedisk\ testdisk01.vmdk"
Creating disk'G:\ rac_sharedisk\ testdisk01.vmdk'
Create: 100% done.
Virtual disk creation successful.
2 use vmware to add disks to the virtual machine.
Enter the virtual machine home directory, modify the corresponding vmx file, and add the following line, of which 6 can be made according to the situation.
Scsi1:6.present = "TRUE"
Scsi1:6.mode = "independent-persistent"
Scsi1:6.filename = "G:\ rac_sharedisk\ testdisk01.vmdk"
Scsi1:6.deviceType = "disk"
Ps: a set of rac with the same operation for both nodes
3 the operating system scans the disk. If fdisk cannot see the corresponding disk, use the following command to rescan the disk (no effect on the running rac)
[root@rac1 raw] # echo "- -" > / sys/class/scsi_host/host0/scan
[root@rac1 raw] # echo "- -" > / sys/class/scsi_host/host1/scan
...
[root@rac1 raw] # fdisk-l
Disk / dev/sdg: 524 MB, 524288000 bytes
64 heads, 32 sectors/track, 500 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
4 modify udev configuration file
[root@rac2 raw] # grep-v ^ # / etc/udev/rules.d/60-raw.rules
ACTION== "add", KERNEL== "sdb1", RUN+= "/ bin/raw / dev/raw/raw1 N"
ACTION== "add", KERNEL== "sdc1", RUN+= "/ bin/raw / dev/raw/raw2 N"
ACTION== "add", KERNEL== "sdd1", RUN+= "/ bin/raw / dev/raw/raw3 N"
ACTION== "add", KERNEL== "sde1", RUN+= "/ bin/raw / dev/raw/raw4 N"
ACTION== "add", KERNEL== "sdf1", RUN+= "/ bin/raw / dev/raw/raw5 N"
ACTION== "add", KERNEL== "sdg", RUN+= "/ bin/raw / dev/raw/raw6 N"
KERNEL== "raw1", OWNER= "grid", GROUP= "asmadmin", MODE= "660"
KERNEL== "raw2", OWNER= "grid", GROUP= "asmadmin", MODE= "660"
KERNEL== "raw3", OWNER= "grid", GROUP= "asmadmin", MODE= "660"
KERNEL== "raw4", OWNER= "grid", GROUP= "asmadmin", MODE= "660"
KERNEL== "raw5", OWNER= "grid", GROUP= "asmadmin", MODE= "660"
KERNEL== "raw6", OWNER= "grid", GROUP= "asmadmin", MODE= "660"
5 restart udev (no effect on running rac)
/ sbin/start_udev
6 confirm that the disk already exists
[root@rac1 raw] # pwd
/ dev/raw
[root@rac1 raw] # ll
Total 0
Crw-rw---- 1 grid asmadmin 162, 1 Jun 14 05:01 raw1
Crw-rw---- 1 grid asmadmin 162, 2 Jun 14 05:00 raw2
Crw-rw---- 1 grid asmadmin 162, 3 Jun 14 05:00 raw3
Crw-rw---- 1 grid asmadmin 162, 4 Jun 14 04:40 raw4
Crw-rw---- 1 grid asmadmin 162, 5 Jun 14 04:40 raw5
Crw-rw---- 1 grid asmadmin 162, 6 Jun 14 05:00 raw6
Crw-rw---- 1 root disk 162, 0 Jun 14 04:40 rawctl
6 enter the asm instance and add the disk.
SQL > select PATH,name,GROUP_NUMBER,STATE,MOUNT_STATUS,HEADER_STATUS from v$asm_disk
PATH NAME GROUP_NUMBER STATE MOUNT_STATUS HEADER_STATUS
-
/ dev/raw/raw6 0 NORMAL CLOSED CANDIDATE
/ dev/raw/raw3 DATA_0002 2 NORMAL CACHED MEMBER
/ dev/raw/raw4 DATA1_0000 1 NORMAL CACHED MEMBER
/ dev/raw/raw5 DATA1_0001 1 NORMAL CACHED MEMBER
/ dev/raw/raw2 DATA_0001 2 NORMAL CACHED MEMBER
/ dev/raw/raw1 DATA_0000 2 NORMAL CACHED MEMBER
SQL > alter diskgroup DATA add disk'/ dev/raw/raw6'
Diskgroup altered.
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.