合 rac安装报错“Checking swap space: 0 MB available, 150 MB required. Failed”
Tags: Oracle故障处理高可用安装部署racswap
现象
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | [oracle@odsa database]$ ./runInstaller -silent -force -noconfig -ignorePrereq \ > oracle.install.option=INSTALL_DB_SWONLY \ > UNIX_GROUP_NAME=oinstall \ > INVENTORY_LOCATION=/u01/app/oraInventory \ > ORACLE_BASE=/u01/app/oracle \ > oracle.install.db.InstallEdition=EE \ > oracle.install.db.OSDBA_GROUP=dba \ > oracle.install.db.OSOPER_GROUP=oper \ > oracle.install.db.OSBACKUPDBA_GROUP=dba \ > oracle.install.db.OSDGDBA_GROUP=dba \ > oracle.install.db.OSKMDBA_GROUP=dba \ > oracle.install.db.OSRACDBA_GROUP=dba \ > oracle.install.db.CLUSTER_NODES=odsa,odsb \ > oracle.install.db.config.starterdb.type=GENERAL_PURPOSE Starting Oracle Universal Installer... Checking Temp space: must be greater than 500 MB. Actual 164843 MB Passed Checking swap space: 0 MB available, 150 MB required. Failed <<<< Some requirement checks failed. You must fulfill these requirements before continuing with the installation, Exiting Oracle Universal Installer, log for this session can be found at /u01/app/oraInventory/logs/installActions2022-02-26_10-19-33PM.log [oracle@odsa database]$ free -h total used free shared buff/cache available Mem: 251G 8.9G 215G 648M 27G 240G Swap: 0B 0B 0B |
解决
需要配置swap空间,安装完成后,可以删除swap空间“swapoff /swapfile”。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 | [root@odsa ~]# dd if=/dev/zero of=/swapfile bs=1024 count=512k mkswap /swapfile524288+0 records in 524288+0 records out 536870912 bytes (537 MB) copied, 1.0322 s, 520 MB/s [root@odsa ~]# mkswap /swapfile Setting up swapspace version 1, size = 524284 KiB no label, UUID=dca510b1-e605-4b1a-9934-1bac426f2134 [root@odsa ~]# swapon /swapfile swapon: /swapfile: insecure permissions 0644, 0600 suggested. [root@odsa ~]# free -h total used free shared buff/cache available Mem: 251G 8.5G 229G 656M 13G 241G Swap: 511M 0B 511M [oracle@odsa database]$ ./runInstaller -silent -force -noconfig -ignorePrereq -ignorePrereqFailure \ > oracle.install.option=INSTALL_DB_SWONLY \ > UNIX_GROUP_NAME=oinstall \ > INVENTORY_LOCATION=/u01/app/oraInventory \ > ORACLE_BASE=/u01/app/oracle \ > oracle.install.db.InstallEdition=EE \ > oracle.install.db.OSDBA_GROUP=dba \ > oracle.install.db.OSOPER_GROUP=oper \ > oracle.install.db.OSBACKUPDBA_GROUP=dba \ > oracle.install.db.OSDGDBA_GROUP=dba \ > oracle.install.db.OSKMDBA_GROUP=dba \ > oracle.install.db.OSRACDBA_GROUP=dba \ > oracle.install.db.CLUSTER_NODES=odsa,odsb \ > oracle.install.db.config.starterdb.type=GENERAL_PURPOSE Starting Oracle Universal Installer... Starting Oracle Universal Installer... Checking Temp space: must be greater than 500 MB. Actual 164330 MB Passed Checking swap space: must be greater than 150 MB. Actual 511 MB Passed Preparing to launch Oracle Universal Installer from /tmp/OraInstall2022-02-26_10-25-17PM. Please wait ...[oracle@odsa database]$ You can find the log of this install session at: /u01/app/oraInventory/logs/installActions2022-02-26_10-25-17PM.log [oracle@odsa database]$ [oracle@odsa database]$ [oracle@odsa database]$ The installation of Oracle Database 12c was successful. Please check '/u01/app/oraInventory/logs/silentInstall2022-02-26_10-25-17PM.log' for more details. The Cluster Node Addition of /u01/app/oracle/product/12.2.0/dbhome_1 was successful. Please check '/u01/app/oraInventory/logs/silentInstall2022-02-26_10-25-17PM.log' for more details. As a root user, execute the following script(s): 1. /u01/app/oracle/product/12.2.0/dbhome_1/root.sh Execute /u01/app/oracle/product/12.2.0/dbhome_1/root.sh on the following nodes: [odsa, odsb] Successfully Setup Software. |
删除swap: