Wednesday, December 29, 2010

Add swap file

Chances are, if you are installing Oracle on Linux, you would have to add a swap file.

Here's a link how it's done.

And here's what i did:
[root@unica82 app]# id
uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel)
[root@unica82 app]# pwd
/app
[root@unica82 app]# dd if=/dev/zero of=/app/swapfile1 bs=1024 count=1048576
1048576+0 records in
1048576+0 records out
1073741824 bytes (1.1 GB) copied, 31.4374 seconds, 34.2 MB/s
[root@unica82 app]# mkswap /app/swapfile1
Setting up swapspace version 1, size = 1073737 kB
[root@unica82 app]# swapon /app/swapfile1

In /etc/fstab: /app/swapfile1 swap swap defaults 0 0

To check free -m

No comments:

Post a Comment