【RAC】在ESX 上安裝asm 共享磁碟
1 修改虛擬機器的所有節點的*.vmx配置檔案
[root@anrac rac1]# ls
rac1_1-flat.vmdk rac1_1.vmdk rac1-ad5ae35a.vswp rac1-flat.vmdk rac1.nvram rac1.vmdk rac1.vmsd rac1.vmx rac1.vmxf
新增
disk.locking = "false"
對節點rac2 重複同樣的操作!
2 對磁碟進行分割槽(根據各個的實際情況)
[root@rac1 asmlib_rpm]# fdisk -l
Disk /dev/sda: 107.3 GB, 107374182400 bytes
255 heads, 63 sectors/track, 13054 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 13054 104751832+ 8e Linux LVM
Disk /dev/sdb: 42.9 GB, 42949672960 bytes
255 heads, 63 sectors/track, 5221 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
Disk /dev/sdc: 42.9 GB, 42949672960 bytes
255 heads, 63 sectors/track, 5221 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
Disk /dev/sdd: 42.9 GB, 42949672960 bytes
255 heads, 63 sectors/track, 5221 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
Disk /dev/sde: 42.9 GB, 42949672960 bytes
255 heads, 63 sectors/track, 5221 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
[root@rac1 asmlib_rpm]#
[root@rac1 asmlib_rpm]# fdisk /dev/sdb
The number of cylinders for this disk is set to 5221.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Command (m for help): p
Disk /dev/sdb: 42.9 GB, 42949672960 bytes
255 heads, 63 sectors/track, 5221 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-5221, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-5221, default 5221): 2610
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 2
First cylinder (2611-5221, default 2611):
Using default value 2611
Last cylinder or +size or +sizeM or +sizeK (2611-5221, default 5221):
Using default value 5221
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
[root@rac1 asmlib_rpm]#
[root@rac1 asmlib_rpm]#
[root@rac1 asmlib_rpm]# fdisk -l /dev/sdb
Disk /dev/sdb: 42.9 GB, 42949672960 bytes
255 heads, 63 sectors/track, 5221 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 1 2610 20964793+ 83 Linux
/dev/sdb2 2611 5221 20972857+ 83 Linux
依次對 剩下的/dev/sdc /dev/sdd /dev/sde 進行類似操作
然後使用oracleasm 工具建立asm磁碟,由於oracle 11.2 將asm 歸屬由grid使用者管理,如果你的是11R1 則繼續使用oracle
[root@rac1 asmlib_rpm]# /etc/init.d/oracleasm configure
Configuring the Oracle ASM library driver.
This will configure the on-boot properties of the Oracle ASM library
driver. The following questions will determine whether the driver is
loaded on boot and what permissions it will have. The current values
will be shown in brackets ('[]'). Hitting without typing an
answer will keep that current value. Ctrl-C will abort.
Default user to own the driver interface []: grid --由於oracle 11.2 將asm 歸屬由grid使用者管理,如果你的是11R1 則繼續使用oracle
Default group to own the driver interface []: oinstall
Start Oracle ASM library driver on boot (y/n) [n]: y
Scan for Oracle ASM disks on boot (y/n) [y]: y
Writing Oracle ASM library driver configuration: done
Initializing the Oracle ASMLib driver: [ OK ]
Scanning the system for Oracle ASMLib disks: [ OK ]
以上步驟也要在rac2 節點上重複操作!
[root@rac1 asmlib_rpm]# /etc/init.d/oracleasm createdisk VOL101 /dev/sdb1
Marking disk "VOL101" as an ASM disk: [ OK ]
[root@rac1 asmlib_rpm]# /etc/init.d/oracleasm createdisk VOL102 /dev/sdb2
Marking disk "VOL102" as an ASM disk: [ OK ]
[root@rac1 asmlib_rpm]# /etc/init.d/oracleasm createdisk VOL103 /dev/sdc1
Marking disk "VOL103" as an ASM disk: [ OK ]
[root@rac1 asmlib_rpm]# /etc/init.d/oracleasm createdisk VOL104 /dev/sdc2
Marking disk "VOL104" as an ASM disk: [ OK ]
[root@rac1 asmlib_rpm]# /etc/init.d/oracleasm createdisk VOL201 /dev/sdd1
Marking disk "VOL201" as an ASM disk: [ OK ]
[root@rac1 asmlib_rpm]# /etc/init.d/oracleasm createdisk VOL202 /dev/sdd2
Marking disk "VOL202" as an ASM disk: [ OK ]
[root@rac1 asmlib_rpm]# /etc/init.d/oracleasm createdisk VOL203 /dev/sde1
Marking disk "VOL203" as an ASM disk: [ OK ]
[root@rac1 asmlib_rpm]# /etc/init.d/oracleasm createdisk VOL204 /dev/sde2
Marking disk "VOL204" as an ASM disk: [ OK ]
[root@rac1 asmlib_rpm]# /etc/init.d/oracleasm scandisks
Scanning the system for Oracle ASMLib disks: [ OK ]
[root@rac1 asmlib_rpm]# /etc/init.d/oracleasm listdisks
VOL101
VOL102
VOL103
VOL104
VOL201
VOL202
VOL203
VOL204
在節點二上進行驗證:
[root@rac2 software]# /etc/init.d/oracleasm scandisks
Scanning the system for Oracle ASMLib disks: [ OK ]
[root@rac2 software]# /etc/init.d/oracleasm listdisks
VOL101
VOL102
VOL103
VOL104
VOL201
VOL202
VOL203
VOL204
[root@rac2 software]#
至此 oracle rac 安裝asm磁碟的工作完成!
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/22664653/viewspace-721990/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- UDEV方式配置Oracle RAC ASM共享磁碟devOracleASM
- 【RAC】 RAC For W2K8R2 安裝--建立ASM磁碟組(六)ASM
- 【RAC】 RAC For W2K8R2 安裝--共享磁碟的配置(三)
- VMware ESX 3.0安裝
- 在Oracle10g RAC下新增ASM磁碟組OracleASM
- ORACLE RAC重建ASM磁碟組OracleASM
- Oracle rac on vm--共享磁碟Oracle
- RAC安裝【AIX 7 + 11.2.0.4 + ASM】AIASM
- RAW+ASM 的RAC 安裝文件ASM
- oracle rac 無法建立asm磁碟OracleASM
- RAC之grid叢集安裝及ASM磁碟組配置ASM
- 在AIX上安裝配置Oracle10g RACAIOracle
- 在VMware 上安裝配置Oracle10g RACOracle
- 在WINDOWS上安裝ORACLE RAC的注意事項WindowsOracle
- OCFS2+ASM 的RAC安裝文件ASM
- oracle10g ASM+RAC安裝OracleASM
- RAC共享磁碟物理路徑故障導致OCR、Votedisk所在ASM磁碟組不可訪問的案例分析ASM
- aix6.1安裝12.1.0.2rac無法識別共享磁碟的問題AI
- OGG在RAC上的初始化(上)-- 安裝配置篇
- HP-UX 11.31 安裝RAC 新增共享磁碟的問題(兩種辦法)UX
- 在linux6.4上安裝11g racLinux
- 在sun t2000上安裝rac概要
- rac中解除安裝監聽lsnr和asmASM
- RAW+ASM 的RAC 安裝文件 收藏(ZF)ASM
- Oracle 12cR1 RAC 在VMware Workstation上安裝(下)—靜默安裝Oracle
- Openfiler+RAC的安裝之五--在RAC 節點上配置 iSCSI 卷
- Oracle RAC日常運維-ASM磁碟擴容Oracle運維ASM
- RAC資料庫新增ASM磁碟組(1)資料庫ASM
- Oracle10g RAC ASM磁碟組[zt]OracleASM
- CentOS5.4上安裝RACCentOS
- RAC-rac+dg step2--設定共享磁碟-udevdev
- 11G RAC 為 ASM 磁碟組增加一個磁碟。(AIX)ASMAI
- 在oracle linux 5.6上安裝oracle 11g RACOracleLinux
- 在AIX上安裝配置Oracle10g RAC2AIOracle
- Oracle11gR2 RAC在Linux上的安裝OracleLinux
- RDA 在RAC DB 上安裝設定和收集資訊方法
- 一次解除安裝ASM磁碟的操作日誌ASM
- Oracle 12cR1 RAC 在VMware Workstation上安裝(中)—圖形介面安裝Oracle