1.查看系统内核版本
[root@orcl1 setup]# uname -a
Linux orcl13.10.0-862.el7.x86_64 #1 SMP Wed Mar 21 18:14:51 EDT 2018 x86_64 x86_64 x86_64GNU/Linux
2.检查系统中asm包的安装情况
[root@orcl1 setup]# rpm -ql *asm*
package asm is notinstalled
packageoracleasmlib-2.0.12-1.el7.x86_64.rpm is not installed
packageoracleasm-support-2.1.11-2.el7.x86_64.rpm is not installed
3.下载ASMLib驱动
asmlib程序包,含(安装包比系统要求的版本有点出入,影响并不是很大):
kmod-oracleasm-2.0.8-21.0.1.el7.x86_64.rpm
oracleasmlib-2.0.12-1.el7.x86_64.rpm
oracleasm-support-2.1.11-2.el7.x86_64.rpm
4.查看ASMLib驱动包:
[root@orcl1 asm]# ll
total 400
-rw-r--r-- 1 root root 296852 Feb 14 11:54kmod-oracleasm-2.0.8-21.0.1.el7.x86_64.rpm
-rw-r--r-- 1 root root 19360 Feb 14 11:55 oracleasmlib-2.0.12-1.el7.x86_64.rpm
-rw-r--r-- 1 root root 86908 Feb 14 11:55 oracleasm-support-2.1.11-2.el7.x86_64.rpm
5.安装ASMLib驱动:
[root@orcl1 asm]# rpm -ivh kmod-oracleasm-2.0.8-21.0.1.el7.x86_64.rpm
warning:kmod-oracleasm-2.0.8-21.0.1.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, keyID ec551f03: NOKEY
Preparing... ################################# [100%]
Updating /installing...
1:kmod-oracleasm-2.0.8-21.0.1.el7 ################################# [100%]
[root@orcl1 asm]# rpm -ivh oracleasmlib-2.0.12-1.el7.x86_64.rpm
warning:oracleasmlib-2.0.12-1.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key IDec551f03: NOKEY
Preparing... #################################[100%]
packageoracleasmlib-2.0.12-1.el7.x86_64 is already installed
[root@orcl1 asm]# rpm -ivh oracleasm-support-2.1.11-2.el7.x86_64.rpm
warning:oracleasm-support-2.1.11-2.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, keyID ec551f03: NOKEY
Preparing... ################################# [100%]
packageoracleasm-support-2.1.11-2.el7.x86_64 is already installed
6.启用ASMLib:
[root@orcl1 ~]# systemctl enable oracleasm
7.启动oracleasm服务:
[root@orcl1 init.d]#systemctl start oracleasm
8.配置ASMLib:
[root@orcl1 init.d]#oracleasm configure -i
Configuring theOracle ASM library driver.
This will configurethe on-boot properties of the Oracle ASM library
driver. The following questions will determinewhether the driver is
loaded on boot andwhat permissions it will have. Thecurrent values
will be shown inbrackets ('[]'). Hitting <ENTER>without typing an
answer will keepthat current value. Ctrl-C will abort.
Default user to ownthe driver interface []: oracle
Default group to ownthe driver interface []: oinstall
Start Oracle ASMlibrary driver on boot (y/n) [n]: y
Scan for Oracle ASMdisks on boot (y/n) [y]: y
Writing Oracle ASMlibrary driver configuration: done
9.重启oracleasm服务
[root@orcl1 init.d]#systemctl restart oracleasm
10.查看oracleasm状态
[root@orcl1 init.d]#systemctl status oracleasm
●oracleasm.service - Load oracleasm Modules
Loaded: loaded(/usr/lib/systemd/system/oracleasm.service; enabled; vendor preset: disabled)
Active: active (exited) since Sat 2020-02-1502:17:32 CST; 6s ago
Process: 60201ExecStart=/usr/sbin/oracleasm.init start_sysctl (code=exited, status=0/SUCCESS)
Main PID: 60201 (code=exited,status=0/SUCCESS)
Feb 15 02:17:31orcl2 systemd[1]: Starting Load oracleasm Modules...
Feb 15 02:17:31orcl2 oracleasm.init[60201]: Initializing the Oracle ASMLib...K
Feb 15 02:17:32orcl2 oracleasm.init[60201]: Scanning the system for Oracle...K
Feb 15 02:17:32orcl2 systemd[1]: Started Load oracleasm Modules.
Hint: Some lineswere ellipsized, use -l to show in full.
状态为active,说明oracleasm服务已正常启动且有效
疫情期间不停学,重庆思庄疫情高特在线班正式上线! VIP在线极小班:每班2-6人,每天2-4小时,灵活安排,可回放重听!全程由长期在一线的OCM大师指导学习!随时在线答疑! 更多详情请登录思庄网站进一步咨询在线课程老师。谢谢! |
来源:oschina
链接:https://my.oschina.net/u/3635497/blog/3166354