asmlib死活不自動啟動

warehouse發表於2012-09-09
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 /

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/19602/viewspace-1059378/,如需轉載,請註明出處,否則將追究法律責任。

相關文章