asmlib死活不自动启动...我第一次安装oracle configure -i时可能都回车了,记不住了。导致asmlib不能随os启动之后自动启动。[@more@]
[root@localhost ~]# oracleasm status
Checking if ASM is loaded: no
Checking if /dev/oracleasm is mounted: no
[root@localhost ~]# oracleasm exit
[root@localhost ~]# oracleasm init
Creating /dev/oracleasm mount point: /dev/oracleasm
Loading module "oracleasm": oracleasm
Mounting ASMlib driver filesystem: /dev/oracleasm
[root@localhost ~]# oracleasm status
Checking if ASM is loaded: yes
Checking if /dev/oracleasm is mounted: yes
[root@localhost ~]# cd /dev
[root@localhost dev]# cd oracleasm
[root@localhost oracleasm]# cd disks
[root@localhost disks]# ls
[root@localhost disks]# ls
[root@localhost disks]# oracleasm scandisks
Reloading disk partitions: done
Cleaning any stale ASM disks...
Scanning system for ASM disks...
Instantiating disk "ORCL1"
Instantiating disk "ORCL2"
Instantiating disk "ORCL3"
[root@localhost disks]# ls -l
total 0
brw------- 1 root root 8, 49 Feb 15 05:28 ORCL1
brw------- 1 root root 8, 65 Feb 15 05:28 ORCL2
brw------- 1 root root 8, 81 Feb 15 05:28 ORCL3
[root@localhost disks]# chown oracle.oinstall *
[root@localhost disks]# ls -l
total 0
brw------- 1 oracle oinstall 8, 49 Feb 15 05:28 ORCL1
brw------- 1 oracle oinstall 8, 65 Feb 15 05:28 ORCL2
brw------- 1 oracle oinstall 8, 81 Feb 15 05:28 ORCL3
--================================
--重配之后明确输入own是oracle,group是oinstall,其它都输入y,之后重启os asmlib自动加载了。
[root@localhost ~]# 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 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 [oinstall]:
Start Oracle ASM library driver on boot (y/n) [y]:
Scan for Oracle ASM disks on boot (y/n) [y]:
Writing Oracle ASM library driver configuration: done
[root@localhost ~]# reboot
Broadcast message from root (pts/1) (Sun Feb 15 05:38:11 2015):
The system is going down for reboot NOW!
[root@localhost ~]#
Last login: Sun Feb 15 05:36:35 2015 from 192.168.0.149
[root@localhost ~]# oracleasm status
Checking if ASM is loaded: yes
Checking if /dev/oracleasm is mounted: yes
[root@localhost ~]# oracleasm status
Checking if ASM is loaded: yes
Checking if /dev/oracleasm is mounted: yes
[root@localhost init.d]# cd /dev/oracleasm
[root@localhost oracleasm]# ls
disks iid
[root@localhost oracleasm]# cd disks
[root@localhost disks]# ls
ORCL1 ORCL2 ORCL3
[root@localhost disks]# ls -l
total 0
brw-rw---- 1 oracle oinstall 8, 49 Feb 15 05:40 ORCL1
brw-rw---- 1 oracle oinstall 8, 65 Feb 15 05:40 ORCL2
brw-rw---- 1 oracle oinstall 8, 81 Feb 15 05:40 ORCL3
[root@localhost disks]# cd /