solaris x86安裝ORACLE 11.2.0.3軟體時因SWAP不足報錯: INFO: ld: fatal: mmap anon failed

還不算暈發表於2014-05-13

1.ORACLE軟體安裝到86%時報錯,圖忘截了。日誌如下:

/oracle/u01/app/oracle/product/11.2.0/

INFO: db_1/lib/sysliblist` -R /opt/SUNWcluster/lib -R/export/home/oracle/u01/app/oracle/product/11.2.0/db_1/lib -R /opt/ORCLcluster/lib/  -Y P,:/opt/SUNWcluster/lib:/opt/ORCLcluster/lib/:/usr/ccs/lib/amd64:/usr/lib/amd64 -Qy -lm  /export/home/oracle/u01/app/oracle/product/11.2.0/db_1/lib/prod/lib/amd64/crtn.o -lpthread

INFO: ld: fatal: mmap anon failed: Resource temporarily unavailable

INFO: ld: fatal: mmap anon failed: Resource temporarily unavailable

INFO: *** Error code 1

INFO: make: Fatal error:
INFO: Command failed for target `/export/home/oracle/u01/app/oracle/product/11.2.0/db_1/rdbms/lib/oracle'


INFO: End output from spawned process.
INFO: ----------------------------------
INFO: Exception thrown from action: make
Exception Name: MakefileException
Exception String: Error in invoking target 'irman ioracle' of makefile '/export/home/oracle/u01/app/oracle/product/11.2.0/db_1/rdbms/lib/ins_rdbms.mk'. See '/export/home/oracle/u01/app/oraInventory/logs/installActions2014-05-13_02-15-59PM.log' for details.
Exception Severity: 1

######################################

解決方法:百度了下,要增加SWAP。

報錯後檢視SWAP可用空間很足,我一度懷疑不是SWAP的問題,結果在ORACLE安裝介面RETRY時,新開視窗一直df -h觀察SWAP使用情況,發現SWAP很快被用的快光了。

查到解決方法:在MOS上查說是swap不足導致,臨時增大swap

# swap -l
swapfile             dev  swaplo blocks   free
/dev/dsk/c0t0d0s1   33,1       8 1076344 232800
# mkfile 3g /swap
# swap -a /swap
# swap -l
swapfile             dev  swaplo blocks   free
/dev/dsk/c0t0d0s1   33,1       8 1076344 234696
/swap                 -        8 6291448 5679544

刪除臨時swap----重啟後就沒有了。
# swap -d /swap
# swap -l
# rm -rf /swap

##############################################

我的具體解決過程:

-bash-3.2$ df -h

Filesystem             size   used  avail capacity  Mounted on
/dev/dsk/c0t0d0s0      8.1G   3.9G   4.1G    49%    /
/devices                 0K     0K     0K     0%    /devices
ctfs                     0K     0K     0K     0%    /system/contract
proc                     0K     0K     0K     0%    /proc
mnttab                   0K     0K     0K     0%    /etc/mnttab
swap                   760M   980K   759M     1%    /etc/svc/volatile
objfs                    0K     0K     0K     0%    /system/object
sharefs                  0K     0K     0K     0%    /etc/dfs/sharetab
/usr/lib/libc/libc_hwcap1.so.1
                       8.1G   3.9G   4.1G    49%    /lib/libc.so.1
fd                       0K     0K     0K     0%    /dev/fd
swap                  1022M   263M   759M    26%    /tmp
swap                   759M    36K   759M     1%    /var/run
/dev/dsk/c0t0d0s7       11G   6.4G   4.5G    59%    /export/home
/vol/dev/dsk/c0t1d0/sol_10_113_x86
                       2.1G   2.1G     0K   100%    /cdrom/sol_10_113_x86
-bash-3.2$ mkfile 2g /swap
-bash: mkfile: command not found
-bash-3.2$ su -
Password:
Oracle Corporation      SunOS 5.10      Generic Patch   January 2005
# bash
bash-3.2# mkfile 2g /swap
bash-3.2# swap -a /swap
bash-3.2# swap -l      

swapfile             dev  swaplo blocks   free
/dev/dsk/c0t0d0s1   33,1       8 1060280 286840
/swap                 -        8 4194296 4194296
bash-3.2# df -h
Filesystem             size   used  avail capacity  Mounted on
/dev/dsk/c0t0d0s0      8.1G   5.9G   2.1G    74%    /
/devices                 0K     0K     0K     0%    /devices
ctfs                     0K     0K     0K     0%    /system/contract
proc                     0K     0K     0K     0%    /proc
mnttab                   0K     0K     0K     0%    /etc/mnttab
swap                   2.7G   980K   2.7G     1%    /etc/svc/volatile
objfs                    0K     0K     0K     0%    /system/object
sharefs                  0K     0K     0K     0%    /etc/dfs/sharetab
/usr/lib/libc/libc_hwcap1.so.1
                       8.1G   5.9G   2.1G    74%    /lib/libc.so.1
fd                       0K     0K     0K     0%    /dev/fd
swap                   3.0G   263M   2.7G     9%    /tmp
swap                   2.7G    36K   2.7G     1%    /var/run
/dev/dsk/c0t0d0s7       11G   6.4G   4.5G    59%    /export/home
/vol/dev/dsk/c0t1d0/sol_10_113_x86
                       2.1G   2.1G     0K   100%    /cdrom/sol_10_113_x86
bash-3.2# df -h
Filesystem             size   used  avail capacity  Mounted on
/dev/dsk/c0t0d0s0      8.1G   5.9G   2.1G    74%    /
/devices                 0K     0K     0K     0%    /devices
ctfs                     0K     0K     0K     0%    /system/contract
proc                     0K     0K     0K     0%    /proc
mnttab                   0K     0K     0K     0%    /etc/mnttab
swap                   2.7G   980K   2.7G     1%    /etc/svc/volatile
objfs                    0K     0K     0K     0%    /system/object
sharefs                  0K     0K     0K     0%    /etc/dfs/sharetab
/usr/lib/libc/libc_hwcap1.so.1
                       8.1G   5.9G   2.1G    74%    /lib/libc.so.1
fd                       0K     0K     0K     0%    /dev/fd
swap                   3.0G   263M   2.7G     9%    /tmp
swap                   2.7G    36K   2.7G     1%    /var/run
/dev/dsk/c0t0d0s7       11G   6.4G   4.5G    59%    /export/home
/vol/dev/dsk/c0t1d0/sol_10_113_x86
                       2.1G   2.1G     0K   100%    /cdrom/sol_10_113_x86
                   

相關文章