Monday, 2 July 2012

increase the swapfile space on Oracle Enterprise Linux (OEL)

Trying to install oracle products and are getting:

image

Swap Size - This is a prerequisite condition to test whether sufficient total swap space is available on the system.
Expected Value
: 3.9122GB (4102288.0KB)
Actual Value
: 1.9994GB (2096472.0KB)
Details:
-
PRVF-7573 : Sufficient swap size is not available on node "myrem12c" [Required = 3.9122GB (4102288.0KB) ; Found = 1.9994GB (2096472.0KB)]  - Cause:  The swap size found does not meet the minimum requirement.  - Action:  Increase swap size to at least meet the minimum swap space requirement.

 

check what swap you have on the machine, as any user:

swapon –s

Filename                                Type            Size    Used    Priority
/dev/xvda3                              partition       2096472 0       -1

Create a file that you’ll use for swap with dd (as root)

[root@myrem12c em12cBP1]# dd if=/dev/zero of=/home/swapfile bs=2048 count=1048576
1048576+0 records in
1048576+0 records out
2147483648 bytes (2.1 GB) copied, 33.498 seconds, 64.1 MB/s

mkswap /home/swapfile

swapon /home/swapfile

swapon -a

[root@myrem12c em12cBP1]# swapon -s
Filename                                Type            Size    Used    Priority
/dev/xvda3                              partition       2096472 0       -1
/home/swapfile                          file            2097144 0       -2

3 comments:

Anonymous said...

It worked. Thank you.

Anonymous said...

Worked like a charm! Thanks!!

Anonymous said...

perfect.

Extending JDE to generative AI