: The swap space check failed while installing ORACLE10. The Exchange space expectation is 2790M, actually only 1498M.
650) this.width=650; "title=" 8.png "src=" https://s3.51cto.com/wyfs02/M00/9D/13/ Wkiol1l5pwftngymaahsbzvqfrq718.png-wh_500x0-wm_3-wmp_4-s_1184982735.png "alt=" Wkiol1l5pwftngymaahsbzvqfrq718.png-wh_50 "/>
Workaround:
Creates a new temporary swapfile or an idle partition with a size of 2790-1498=1292m, which is set to swap space when needed.
Steps:
1. View the current disk size
[Email protected] ~]# DF-LH
Filesystem Size used Avail use% mounted on
/dev/sda2 14G 11G 2.4G 81%/
Tmpfs 932M 300K 932M 1%/DEV/SHM
/DEV/SDA1 190M 39M 142M 22%/boot
/dev/sda3 4.7G 25M 4.5G 1%/Home
If the home/home space is found to be sufficient, the directory To build a swap partition folder
2. Create a Swap partition folder
[Email protected] ~]# MKDIR/HOME/SWAPSPC
3. Create temporary files
Create a temporary file of at least 1292M under the Swap partition folder, which is 1292*1024=1323008k.
Create File command: DD command. copies the specified input file into the specified output file, and can be formatted for conversion during the copy process.
If: Read the source free space (why zero, can see http://blog.csdn.net/wangliang888888/article/details/53170731)
Of: The path and name of the output interchange file
BS: block size, unit byte, typically 1kb
Count: Total space Size (total number of blocks), in kilobytes
[[email protected] ~]# dd If=/dev/zero of=/home/swapspc/swapfile bs=1024 count=1350000
Recorded 1350000+0 read-in
Recorded the writing of 1350000+0.
1382400000 bytes (1.4 GB) Replicated, 6.81471 sec, 203 mb/sec
4. Set the file to swap space
[Email protected] ~]# Mkswap/home/swapspc/swapfile
Mkswap:/home/swapspc/swapfile:warning:don ' t erase bootbits sectors
On whole disk. Use-f to force.
Setting up Swapspace version 1, size = 1349996 KiB
No label, uuid=0012d538-c2ca-4b58-9442-2dc8cf3e852a
5. Enable Swap space
[Email protected] ~]# Swapon/home/swapspc/swapfile
6. View disk space and swap space again
[Email protected] ~]# DF-LH
Filesystem Size used Avail use% mounted on
/dev/sda2 14G 11G 2.3G 82%/
Tmpfs 932M 300K 932M 1%/DEV/SHM
/DEV/SDA1 190M 39M 142M 22%/boot
/dev/sda3 4.7G 1.4G 3.2G 30%/Home
[Email protected] ~]# free-m
Total used free shared buffers Cached
mem:1862 1789 73 7 99 1134
-/+ buffers/cache:555 1307
Swap: 2817 0 2817
You can turn off swap space with the Swapoff command if you do not use swap space
Summary of the commands involved:
Free: View memory status
DF: View disk space usage
DD: Read output data
Mkswap: Setting Swap space
Swapon: Enable swap space
Swapoff: Turn off swap space
This article is from the "Road Cloud Nine" blog, please be sure to keep this source http://luyun9.blog.51cto.com/7592271/1951480
Linux installation oracle10g prompt swap space check failed