利用UDEV管理Linux塊裝置,並分配ASM使用 (文件 ID 1528148.1)
How To Setup Partitioned Linux Block Devices Using UDEV (Non-ASMLIB) And Assign Them To ASM? (文件 ID 1528148.1)
https://support.oracle.com/epmos/faces/DocumentDisplay?id=1528148.1
APPLIES TO:
Oracle Database - Standard Edition - Version 10.2.0.1 to 12.1.0.2 [Release 10.2 to 12.1]Information in this document applies to any platform.
GOAL
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.
SOLUTION
1) This example was performed on an OEL 6.3 configuration (ASM release 11.2.0.3 - 64-bit):
Linux asmlnx2 2.6.39-200.24.1.el6uek.x86_64 #1 SMP Sat Jun 23 02:39:07 EDT 2012 x86_64 x86_64 x86_64 GNU/Linux
[grid@asmlnx2 ~]$ cat /etc/*release*
Oracle Linux Server release 6.3
Red Hat Enterprise Linux Server release 6.3 (Santiago)
Oracle Linux Server release 6.3
2) Identify the new disk in your Linux configuration (e.g. OEL 6.3 or RedHat 6.3):
brw-rw---- 1 root disk 202, 5376 Feb 11 21:31 /dev/xvdv
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:
KERNEL=="xvdv1", NAME="asmdisk1_udev_p1", OWNER="grid", GROUP="asmadmin", MODE="0660"
5) Reload and Restart the udev rules:
[root@asmlnx2 ~]# start_udev
Starting udev: [ OK ]
6) Make sure the new udev partition device is created with the correct ownership (grid & asmadmin) and permissions (brw-rw----):
brw-rw---- 1 grid asmadmin 202, 5377 Feb 11 21:47 /dev/asmdisk1_udev_p1
7) Now you can use it to create a new diskgroup or add it to an existing diskgroup as follows:
[grid@asmlnx2 ~]$ . oraenv
ORACLE_SID = [grid] ? +ASM
The Oracle base has been set to /u01/app/grid
[grid@asmlnx2 ~]$ sqlplus "/as sysasm"
SQL*Plus: Release 11.2.0.3.0 Production on Mon Feb 11 21:56:31 2013
Copyright (c) 1982, 2011, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Automatic Storage Management option
SQL> show parameter asm_diskstring
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
asm_diskstring string
SQL> alter system set asm_diskstring = '/dev/asmdisk1_udev_p1' scope=both;
System altered.
SQL> show parameter asm_diskstring
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
asm_diskstring string /dev/asmdisk1_udev_p1
SQL> select path from v$asm_disk where path like '%udev%';
PATH
--------------------------------------------------------------------------------
/dev/asmdisk1_udev_p1
SQL> create diskgroup UDEVDG external redundancy disk '/dev/asmdisk1_udev_p1' ;
Diskgroup created.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/17086096/viewspace-1966648/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Partitioned Linux Block Devic Using UDEV And Assign Them To ASM_1528148.1LinuxBloCdevASM
- 使用 udev 高效、動態地管理 Linux 裝置檔案devLinux
- 使用udev高效、動態的管理Linux裝置檔案devLinux
- Linux使用udev繫結裸裝置Linuxdev
- 【轉】在RHEL5上,使用udev給SCSI裝置分配靜態裝置名dev
- 在Linux中使用UDEV繫結裝置Linuxdev
- 11Gr2 RAC udev ASM openfiler(安裝文件)devASM
- 使用UDEV繫結裝置名dev
- linux udev裸裝置繫結Linuxdev
- Orace RAC安裝-Oracle Linux 5和6 ASM的UDEV SCSI規則配置-載入更新的塊裝置分割槽OracleLinuxASMdev
- Linux udev 動態管理Oracle ASM磁碟-實驗LinuxdevOracleASM
- 利用UDEV管理配置ASMDISKdevASM
- Linux 7下使用udev繫結ASM磁碟LinuxdevASM
- udev 裸裝置 安裝racdev
- Orace RAC安裝-Oracle Linux 5和6 ASM的UDEV SCSI規則配置-使SCSI裝置受信OracleLinuxASMdev
- Linux塊裝置驅動Linux
- 使用udev擴充套件ASM磁碟組dev套件ASM
- rhel 7.x 使用 udev scsi rules 配置裸裝置dev
- 裝置分配與回收
- 字元裝置、塊裝置、裸裝置、RAW裝置 .字元
- 字元裝置、塊裝置與裸裝置字元
- 【Linux】UDEV SCSI規則在Oracle Linux上配置ASMLinuxdevOracleASM
- ORACLE LINUX 5.5 UDEV繫結asm磁碟問題OracleLinuxdevASM
- btrfs使用指南-1概念,建立,塊裝置管理,效能優化優化
- 12C__單機安裝Grid+Oracle的方法,ASM使用UDEV進行磁碟繫結OracleASMdev
- 乾坤合一:Linux裝置驅動之塊裝置驅動Linux
- oracle11Gr2安裝ASM,使用裸裝置OracleASM
- Orace RAC安裝-Oracle Linux 5和6 ASM的UDEV SCSI規則配置OracleLinuxASMdev
- 為ASM生成裸裝置ASM
- Linux裸裝置管理詳解Linux
- Linux裸裝置管理學習Linux
- Linux裝置管理指令setleds(轉)Linux
- Oracle 在asm前使用udev繫結共享儲存OracleASMdev
- 使用udev管理asmdisk常用的命令devASM
- 使用udev管理asmdisk執行/sbin/scsi_id不顯示UUIDdevASMUI
- 使用python管理Cisco裝置Python
- Orace RAC安裝-Oracle Linux 5和6 ASM的UDEV SCSI規則配置-識別磁碟(/sbin/scsi_id)OracleLinuxASMdev
- Linux裝置驅動程式學習之分配記憶體Linux記憶體