내용 |
Installing and Configuring ASMLib: on Red Hat Enterprise Linux 6
1. VMWare Guest OS instance에 HDD를 추가
5G HDD 5개 추가
2. oracleasm 설치
# yum install kmod-oracleasm
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Install Process
Loading mirror speeds from cached hostfile
* base: centos.mirror.cdnetworks.com
* extras: centos.mirror.cdnetworks.com
* updates: centos.mirror.cdnetworks.com
Resolving Dependencies
--> Running transaction check
---> Package kmod-oracleasm.x86_64 0:2.0.8-13.0.1.el6_8 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
===========================================================================
Package Arch Version Repository Size
===========================================================================
Installing:
kmod-oracleasm x86_64 2.0.8-13.0.1.el6_8 ol6_latest 35 k
Transaction Summary
===========================================================================
Install 1 Package(s)
Total download size: 35 k
Installed size: 117 k
Is this ok [y/N]: y
Downloading Packages:
kmod-oracleasm-2.0.8-13.0.1.el6_8.x86_64.rpm | 35 kB 00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : kmod-oracleasm-2.0.8-13.0.1.el6_8.x86_64 1/1
Verifying : kmod-oracleasm-2.0.8-13.0.1.el6_8.x86_64 1/1
Installed:
kmod-oracleasm.x86_64 0:2.0.8-13.0.1.el6_8
Complete!
3. Download oracleasmlib and oracleasm-support library from
http://www.oracle.com/technetwork/server-storage/linux/asmlib/rhel6-1940776.html
4. install oracleasmlib & oracleasm-support library
# cd Downloads/
# ls
oracleasm-support-2.1.8-1.el6.x86_64.rpm oracleasmlib-2.0.4-1.el6.x86_64.rpm
# rpm -Uvh oracleasmlib-2.0.4-1.el6.x86_64.rpm
Preparing... ########################################### [100%]
1:oracleasmlib ########################################### [100%]
# rpm -Uvh oracleasm-support-2.1.8-1.el6.x86_64.rpm
Preparing... ########################################### [100%]
1:oracleasm-support ########################################### [100%]
5. Configure oracle asm library driver
# oracleasm configure -i
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 <ENTER> without typing an
answer will keep that current value. Ctrl-C will abort.
Default user to own the driver interface []: oracle
Default group to own the driver interface []: dba
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
6. Initialize oracleasm
# oracleasm init
Creating /dev/oracleasm mount point: /dev/oracleasm
Loading module "oracleasm": oracleasm
Configuring "oracleasm" to use device physical block size
Mounting ASMlib driver filesystem: /dev/oracleasm
[root@localhost Downloads]#
7. Disk partitioning
# fdisk /dev/sdb
n
p
1
[Enter]
[Enter]
w
# fdisk /dev/sdc
# fdisk /dev/sdd
# fdisk /dev/sde
# fdisk /dev/sdf
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel with disk identifier 0x5c5eba91.
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-652, default 1):
Using default value 1
Last cylinder, +cylinders or +size{K,M,G} (1-652, default 652):
Using default value 652
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
8. create asm disk
# oracleasm createdisk ASMDISK01 /dev/sdb1
Writing disk header: done
Instantiating disk: done
# oracleasm createdisk ASMDISK02 /dev/sdc1
Writing disk header: done
Instantiating disk: done
# oracleasm createdisk ASMDISK03 /dev/sdd1
Writing disk header: done
Instantiating disk: done
# oracleasm createdisk ASMDISK04 /dev/sde1
Writing disk header: done
Instantiating disk: done
# oracleasm createdisk ASMDISK05 /dev/sdf1
Writing disk header: done
Instantiating disk: done
# oracleasm listdisks
ASMDISK01
ASMDISK02
ASMDISK03
ASMDISK04
ASMDISK05
참고
# oracleasm deletedisk DISK1
# oracleasm scandisks
|