Create a new RAC disk

Note: Xiaosheng is not talented. This article is only a knowledge point saved in work and study. It is for my own review and for others' reference only. If there is something wrong, don't blame it, and I hope you can correct it. thanks.

The number of hard disk groups required
Usually at least three disk groups are created in a set of RAC:
+CRS: Three 10GB hard drives are required for storing VOTE and OCR files, for voting disks and for recording cluster information. Each set of RAC has only one +CRS disk group.
+DATA: used to store data. The size of the hard disks in the group must be consistent, and the number of hard disks is not fixed. Each set of RAC will have multiple disk groups for storing data, such as +DATA, +DATA2….
+ARCH: used to store archived logs. The size of the hard disks in the group must be consistent, and the number of hard disks is not fixed. Each set of RAC will have multiple disk groups that store archived logs, such as +ARCH, +ARCH2….
+CRS: There are only three 10GB hard disks named /dev/ASMDISK/CRSDISK1, /dev/ASMDISK/CRSDISK2...etc.
+DATA, +ARCH, etc.: The number of hard disks is variable, named /dev/ASMDISK/ASMDISK1, /dev/ASMDISK/ASMDISK2...etc.
 
 
1. Map the shared hard disk on the host computer :
hpvmmodify -p 1 -a disk:avio_stor::disk:/dev/rdisk/disk*
hpvmdevmgmt -m gdev:/dev/rdisk/disk*:attr:SHARE=YES
hpvmmodify -p 2 -a disk:avio_stor::disk:/dev/rdisk/disk*
 
2. On two sets of virtual machines :
1. Confirm that the two sets of RAC and the two database servers recognize the system device file name of the disk with the same wwid  
scsimgr lun_map -D /dev/rdisk/disk* |grep -i wwid
scsimgr -v get_info -D /dev/rdisk/disk* |grep -i wwid
确认两边的WWID要一致(有时顺序可能不一致,需要调整过来保证WWID和两边的盘符一致)

2.   在两套系统下:
cd /dev/rdisk
把给ASM使用的硬盘OWNER改为grid:dba
chown grid:dba /dev/rdisk/disk*
chmod -R 660 /dev/rdisk/disk*
 
3.   新建指定盘设备文件存放目录,并修改权限和属主
mkdir -p /dev/ASMDISK
chown grid:dba /dev/ASMDISK
chmod -R 660 /dev/ASMDISK
 
4.   给盘新指定设备文件名
mknod /dev/ASMDISK/ASMDISK0001 c 13 0x000008

chown grid:dba /dev/ASMDISK
chmod -R 660 /dev/ASMDISK

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324613268&siteId=291194637
Recommended