OpenVZ Forum


Home » General » Support » VPS for Oracle, requires SWAP partition
VPS for Oracle, requires SWAP partition [message #412] Wed, 23 November 2005 19:14 Go to next message
Eric Sammons is currently offline  Eric Sammons
Messages: 10
Registered: November 2005
Junior Member
Trying to install Oracle into a VPS, Oracle for testing requires at least 1024 MB of SWAP defined. I have had no luck figuring out how to create a SWAP device within my RHEL VPS. Anyone have any ideas how I can create a SWAP within my VPS?

I have attempted the following,
# MAKDEV zero (/dev/zero didn't exist)
# dd if=/dev/zero of=/tmp/swapfile bs=1024 count=1000000
# mkswap /tmp/swapfile
# swapon -a /tmp/swapfile
swapon: /tmp/swapfile: Operation not permitted
# swapon -s
swapon: /proc/swaps: No such file or directory

Thanks!
Re: VPS for Oracle, requires SWAP partition [message #416 is a reply to message #412] Mon, 28 November 2005 19:51 Go to previous messageGo to next message
Eric Sammons is currently offline  Eric Sammons
Messages: 10
Registered: November 2005
Junior Member
OK was able to resolve this, turns out my VPS was not defined to have enough resources, this has been resolved.

Now; however, Oracle is install and I am running the dbca command. During the execution of this command the following occurs:

/bin/cat: /proc/swaps: No such file or directory

ACK: Altstack failed errno 12 astart 0x4ad08000 size 0xa000



Java HotSpot(TM) Client VM warning: cannot allocate alternate signal stack

Java HotSpot(TM) Client VM warning: Attempt to allocate stack guard pages failed.

Anyone know how I might get by this?

Thanks!
Re: VPS for Oracle, requires SWAP partition [message #417 is a reply to message #416] Mon, 28 November 2005 21:00 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

First, check that your VPS' /proc/user_beancounters does not have any bean counters with failcnt (last column) more than zero. If there are some, try to run application which gives an error once again and check if failcnt is increasing. If they do, then your application requires more resources and you need to tune up some UBC parameters.

Please keep up updated about your progress with Oracle, we will try to help you.


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: VPS for Oracle, requires SWAP partition [message #420 is a reply to message #417] Wed, 30 November 2005 19:27 Go to previous messageGo to next message
Eric Sammons is currently offline  Eric Sammons
Messages: 10
Registered: November 2005
Junior Member
I have looked at user_beancounters and sure enough several counters were increasing. I have bumped the sizes and applied the config. We may be there...
Re: VPS for Oracle, requires SWAP partition [message #424 is a reply to message #417] Thu, 01 December 2005 16:50 Go to previous messageGo to next message
vali.dragnuta is currently offline  vali.dragnuta
Messages: 6
Registered: December 2005
Location: Romania
Junior Member
I managed to install oracle on a openvz PVS. (centos 4.2)
Swap is a non problem, it just complains about it but it does not matter.
I had bigger problems setting the right limits, as oracle is pretty greedy. Only creating the database requires a lot of kmemory (about 12 megs).
/proc/user_beancounters should be anybody's friend when trying to install oracle.
Anyway, I managed to get it working.

Re: VPS for Oracle, requires SWAP partition [message #425 is a reply to message #424] Thu, 01 December 2005 17:03 Go to previous messageGo to next message
dim is currently offline  dim
Messages: 344
Registered: August 2005
Senior Member
Default values should be changed at least for numfiles, shmempages, kmemsize and privvmpages params. The best choice, if possible, is to set unlimited values to ubc and see params max values during expected oracle load.
Here is my `cat /proc/user_beancounters` output:
[root@opteron ~]# cat /proc/user_beancounters
Version: 2.5
       uid  resource           held    maxheld    barrier      limit    failcnt
      1719: kmemsize        7069027   16971400 2147483647 2147483647          0
            lockedpages           0          0 2147483647 2147483647          0
            privvmpages      457725     811903 2147483647 2147483647          0
            shmpages         299675     300331 2147483647 2147483647          0
            dummy                 0          0 2147483647 2147483647          0
            numproc              63         93 2147483647 2147483647          0
            physpages         71041     319160 2147483647 2147483647          0
            vmguarpages           0          0 2147483647 2147483647          0
            oomguarpages      71041     319160 2147483647 2147483647          0
            numtcpsock           10         50 2147483647 2147483647          0
            numflock             23         25 2147483647 2147483647          0
            numpty                1          2 2147483647 2147483647          0
            numsiginfo            0         31 2147483647 2147483647          0
            tcpsndbuf          2228     120380 2147483647 2147483647          0
            tcprcvbuf           692     171328 2147483647 2147483647          0
            othersockbuf       8912      31780 2147483647 2147483647          0
            dgramrcvbuf           0       8372 2147483647 2147483647          0
            numothersock         12         25 2147483647 2147483647          0
            dcachesize       489048     566538 2147483647 2147483647          0
            numfile            1836       2805 2147483647 2147483647          0
            dummy                 0          0          0          0          0
            dummy                 0          0          0          0          0
            dummy                 0          0          0          0          0
            numiptent            10         16 2147483647 2147483647          0

Messages about absence of /proc/swaps and /proc/partitions are just warnings, oracle instance may exist without these files.



http://static.openvz.org/openvz_userbar_en.gif

[Updated on: Fri, 02 December 2005 06:21] by Moderator

Report message to a moderator

Re: VPS for Oracle, requires SWAP partition [message #9378 is a reply to message #416] Fri, 29 December 2006 02:25 Go to previous messageGo to next message
chexov is currently offline  chexov
Messages: 1
Registered: December 2006
Junior Member
i got same error "swapon: swap: Operation not permitted"
can you tell how fix it?

Already check UBC. seemd no fails:
      104:  kmemsize        4388616    7029610 2147483647 2147483647          0
            lockedpages           0          8 2147483647 2147483647          0
            privvmpages       55318      89453 2147483647 2147483647          0
            shmpages            722       2034 2147483647 2147483647          0
            dummy                 0          0          0          0          0
            numproc              76        120       2645       2645          0
            physpages          5113      45350 2147483647 2147483647          0
            vmguarpages           0          0 2147483647 2147483647          0
            oomguarpages      24784      51353 2147483647 2147483647          0
            numtcpsock           16         33       2645       2645          0
            numflock              6         11       1000       1100          0
            numpty                1          3        264        264          0
            numsiginfo            0         31       1024       1024          0
            tcpsndbuf          2216      90856     532207   11366127          0
            tcprcvbuf             0     332400     532207   11366127          0
            othersockbuf      93072     258432    6771200    6771200          0
            dgramrcvbuf           0      11080 2147483647 2147483647          0
            numothersock         84        150       2645       2645          0
            dcachesize       189728     270072 2147483647 2147483647          0
            numfile            1711       4309      13312      13312          0
            dummy                 0          0          0          0          0
            dummy                 0          0          0          0          0
            dummy                 0          0          0          0          0
            numiptent             4          4        200        200          0
Re: VPS for Oracle, requires SWAP partition [message #9380 is a reply to message #9378] Fri, 29 December 2006 09:39 Go to previous messageGo to next message
dim is currently offline  dim
Messages: 344
Registered: August 2005
Senior Member
You don't need to do swapon inside VE. VEs use swap, enabled on the HN.

http://static.openvz.org/openvz_userbar_en.gif
Re: VPS for Oracle, requires SWAP partition [message #28089 is a reply to message #412] Sat, 08 March 2008 02:24 Go to previous message
brauliobo is currently offline  brauliobo
Messages: 1
Registered: March 2008
Junior Member
Hello,

I have VPSlink site and I really need a swap space, like you, for my plone site. I've got the same errors you had (operation not permitted and /proc/swaps: No such file or directory). You said that you fixed but not how you fixed. Could you explain it for me??

Thanks,
brĂ¡ulio
Previous Topic: 2.6.18-53.1.6.el5.028stab053.6PAE + ipv6 = not happy
Next Topic: *SOLVED* Java: Could not reserve enough space for object heap
Goto Forum:
  


Current Time: Thu Mar 28 17:51:02 GMT 2024

Total time taken to generate the page: 0.01750 seconds