活着,寻找生存。
分类: Oracle
2016-01-14 18:57:06
The present document provides an example about how to setup/configure partitioned Linux block devices using udev (non-ASMLIB) and assign them to ASM as candidate member disks.
1) This example was performed on an OEL 6.3 configuration (ASM release 11.2.0.3 - 64-bit):
2) Identify the new disk in your Linux configuration (e.g. OEL 6.3 or RedHat 6.3):
3) Create a new disk partition on it:
[root@asmlnx2 ~]# fdisk /dev/xvdv
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel with disk identifier 0xba335ded.
Changes will remain in memory only, until you decide to write them.
After that, of course, the previous content won't be recoverable.
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
switch off the mode (command 'c') and change display units to
sectors (command 'u').
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-261, default 1):
Using default value 1
Last cylinder, +cylinders or +size{K,M,G} (1-261, default 261):
Using default value 261
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
[root@asmlnx2 ~]# partprobe /dev/xvdv
[root@asmlnx2 ~]# partprobe /dev/xvdv1
[root@asmlnx2 ~]# ls -l /dev/xvdv
brw-rw---- 1 root disk 202, 5376 Feb 11 21:38 /dev/xvdv
[root@asmlnx2 ~]# ls -l /dev/xvdv1
brw-rw---- 1 root disk 202, 5377 Feb 11 21:38 /dev/xvdv1
4) Set the new UDEV rules on the new partition (“/dev/xvdv1”) as follows:
5) Reload and Restart the udev rules:
6) Make sure the new udev partition device is created with the correct ownership (grid & asmadmin) and permissions (brw-rw----):
7) Now you can use it to create a new diskgroup or add it to an existing diskgroup as follows: