Documente Academic
Documente Profesional
Documente Cultură
INDEX
Part 1 : Install The ASMLib Drivers...............................................................................................................................2
Cheking The Kernel Version.........................................................................................................................................2
Downloading the Drivers for ASMLib............................................................................................................................2
Installing the ASMLib Drivers .......................................................................................................................................3
Part 2 : Configure ASMLib.............................................................................................................................................4
Configure ASMLib ........................................................................................................................................................4
Create ASM Disks
......................................................................................................................................................................................5
Part 3 : ASMLib Directory Structures............................................................................................................................6
ASM Directories
.......................................................................................................................................................................................6
ASM files on /opt directory............................................................................................................................................7
Map ASMLib Disks to Physical Devices .......................................................................................................................8
File /etc/sysconfig/oracleasm .......................................................................................................................................8
ASM init file....................................................................................................................................................................9
Scripts..........................................................................................................................................................................10
1/10
2/10
3/10
[100%]
[ 33%]
[ 67%]
[100%]
[
[
[
[
OK
OK
OK
OK
]
]
]
]
OK
[
[
OK
OK
]
]
5/10
vol1 /dev/sdb1
[ OK
vol2 /dev/sdc1
[ OK
vol3 /dev/sdd1
[ OK
vol4 /dev/sde1
[ OK
]
]
]
]
~]# ls -l /dev/oracleasm/disks
oracle
oracle
oracle
oracle
dba
dba
dba
dba
8,
8,
8,
8,
17
33
49
65
Jan
Jan
Jan
Jan
31
31
31
31
22:23
22:24
22:24
22:24
VOL1
VOL2
VOL3
VOL4
The major and minor numbers permit to map the ASM Disks to the physical devices
[root@asmxpt ~]# ls -l /dev/* | grep 8, | grep " 17 "
brw-rw---- 1 oracle dba
8, 17 Jan 31 22:13 /dev/sdb1
6/10
/opt
ls -l | grep -i or
root
4096 Sep 10 2007
root
4096 Jan 31 22:05
users
4096 Oct 15 12:54
root
4096 Oct 16 17:31
7/10
openoffice.org2.3
oracle
OracleCalendar_inst
ORCLfmap
[8,
[8,
[8,
[8,
17]
33]
49]
65]
File /etc/sysconfig/oracleasm
The /etc/sysconfig/oracleasm file has configurable parameters to control ASMLib behaviour, it is updated by running
oracleasm configure. Usually scanorder and scanexclude can be manually configured if necessary
[root@asmxpt etc]# strings ./sysconfig/oracleasm
# This is a configuration file for automatic loading of the Oracle
# Automatic Storage Management library kernel driver. It is generated
# By running /etc/init.d/oracleasm configure. Please use that method
# to modify this file
# ORACLEASM_ENABELED: 'true' means to load the driver on boot.
ORACLEASM_ENABLED=true
# ORACLEASM_UID: Default user owning the /dev/oracleasm mount point.
ORACLEASM_UID=oracle
# ORACLEASM_GID: Default group owning the /dev/oracleasm mount point.
ORACLEASM_GID=dba
# ORACLEASM_SCANBOOT: 'true' means fix disk perms on boot
ORACLEASM_SCANBOOT=true
# ORACLEASM_CLEARBOOT: 'true' means clean old disk perms on boot
ORACLEASM_CLEARBOOT=true
8/10
9/10
End of Lab2
10/10