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服务已正常启动且有效
|