/proc/swaps needed for Oracle 11g RAC [message #35826] |
Fri, 24 April 2009 17:48  |
smaliz
Messages: 6 Registered: April 2009
|
Junior Member |
|
|
Hi Folks:
Please pardon my ignorance as i am DBA and not that intimate with the workings of openvz kernel.
I have published my efforts before with the following howto
http://wiki.openvz.org/Oracle_10g_VE
I am hoping to do the same for an Oracle 11g RAC.
I have been trying to implement an Oracle 11g cluster (RAC) on openvz. I have created two containers and all the requirements for
Oracle RAC are being met (as reported by Oracle Cluster verification Utility).
There is the /proc/swaps problem though which i have been unable to find a work around.
As have been reported in several posts like this one
( http://forum.openvz.org/index.php?t=tree&goto=26398& &srch=%2Fproc%2Fswaps#msg_26398)
Oracle 11g installer simply refuses to start without /proc/swaps.
Doing an strace on the installer reveals its doing a cat on /proc/swaps.
I tried fooling the installer by replacing /bin/cat with a script that returned the contents of /proc/swaps from the HN, but that did not work either.
I was hoping someone here can help me create a temporary /proc/swaps solution so that the installer would finish.
Any help is greatly appreciated.
thx
|
|
|
|
|
|
|
Re: /proc/swaps needed for Oracle 11g RAC [message #35870 is a reply to message #35826] |
Tue, 28 April 2009 19:06   |
smaliz
Messages: 6 Registered: April 2009
|
Junior Member |
|
|
Hi Kir:
I was able to download the vzctl tree by using the git protocol instead of http:
However the downloaded tree seems in-complete.
I dont see the configure script in the vzctl directory.
Here is what i see
acinclude.m4 bin configure.ac etc INSTALL man pathsubst.am src
autogen.sh ChangeLog COPYING include Makefile.am paths.am scripts vzctl.spec
Did i do something incorrect while fetching via git?
Also i noticed vzctl-3.0.24 is not available even via git.
The vzctl.spec file shows 3.0.23.
thx
[Updated on: Tue, 28 April 2009 19:12] Report message to a moderator
|
|
|
|
|
Here is my procedure to create virutal disk for CT [message #35885 is a reply to message #35877] |
Wed, 29 April 2009 09:41   |
bpolarsk
Messages: 2 Registered: April 2009
|
Junior Member |
|
|
I can creates a virtual shared disk, but did not tested if it works for RAC :
On the Vz Server (Ip host vz 192.168.89.7):
yum whatprovides tgtd
--> scsi-target-utils.x86_64
yum install scsi-target-utils.x86_64 # to be found on the Centos repository, not on the RedHat one.
yum install iscsi-initiator-utils.x86_64 # also needed
#Start isci daemon:
/etc/init.d/iscsi start
--> Setting up iSCSI targets: iscsiadm: No records found! [ OK ]
# create an empty file to be the virtual disk:
dd if=/dev/zero of=/vz/shared_disk/shared_disk01.vz bs=1M count=512
# create a iscsi group
tgtadm --lld iscsi --op new --mode target --tid 1 -T shared_disk01.vz # this is group name
# a a disk to this iscsi group
tgtadm --lld iscsi --op new --mode logicalunit --tid 1 --lun 1 -b /vz/shared_disk/shared_disk01.vz
tgtadm --lld iscsi --op bind --mode target --tid 1 -I 192.168.89.7
# show what we have done:
tgtadm --lld iscsi --op show --mode target
iscsiadm --mode discovery --type sendtargets --portal 192.168.89.7
--> # 192.168.89.7:3260,1 shared_disk01.vz
iscsiadm --mode node --targetname shared_disk01.vz --portal 192.168.89.7:3260 --login
--> Logging in to [iface: default, target: shared_disk01.vz, portal: 192.168.89.7,3260]
--> Login to [iface: default, target: shared_disk01.vz, portal: 192.168.89.7,3260]: successful
[bdglo0001vz]:/vz/shared_disk> fdisk -l
--> Disk /dev/cciss/c0d0: 73.3 GB, 73372631040 bytes
--> 255 heads, 63 sectors/track, 8920 cylinders
--> Units = cylinders of 16065 * 512 = 8225280 bytes
-->
--> Device Boot Start End Blocks Id System
--> /dev/cciss/c0d0p1 * 1 19 152586 83 Linux
--> /dev/cciss/c0d0p2 20 1294 10241437+ 82 Linux swap / Solaris
--> /dev/cciss/c0d0p3 1295 8920 61255845 8e Linux LVM
-->
--> Disk /dev/sda: 20 MB, 20971520 bytes
--> 1 heads, 40 sectors/track, 1024 cylinders
--> Units = cylinders of 40 * 512 = 20480 bytes
--> Disk /dev/sda doesn't contain a valid partition table
fdsik /dev/sda # create here a partition primary on the whole disk, then quit
partprobe /dev/sda
mke2fs /dev/sda1
# Now I mount this Virtual disk on a directory on the node, then I export this directory into 2 Container
# Fist mount the Virt. Disk on the VZ host:
mount /dev/sda1 /vz/shared_disk/mnt1
# Next shared this mount with both target CT 140001 and CT 140003:
mount --bind /vz/shared_disk/mnt1 /vz/root/140001/app
mount --bind /vz/shared_disk/mnt1 /vz/root/140003/app
#On container 140001:
vzctl enter 140001
--> entered into CT 140001
--> [root@ap01 /]# df
--> Filesystem 1K-blocks Used Available Use% Mounted on
--> simfs 20314748 9902384 9363788 52% /
--> /dev/sda1 19807 173 18611 1% /app
--> [root@ap01 /]# ls -l app
--> total 13
--> -rw-r--r-- 1 root root 12 Apr 29 11:25 hello
--> drwx------ 2 root root 12288 Apr 29 11:00 lost+found
#On container 140003:
vzctl enter 140003
--> entered into CT 140003
--> [root@ap03 app]# df
--> Filesystem 1K-blocks Used Available Use% Mounted on
--> simfs 20314748 9902384 9363788 52% /
--> /dev/sda1 19807 173 18611 1% /app
--> [root@ap03 app]# ls -l
--> total 13
--> -rw-r--r-- 1 root root 12 Apr 29 11:25 hello
--> drwx------ 2 root root 12288 Apr 29 11:00 lost+found
|
|
|
|
|
|
Re: /proc/swaps needed for Oracle 11g RAC [message #36162 is a reply to message #35931] |
Tue, 26 May 2009 07:33   |
rongcc
Messages: 1 Registered: May 2009
|
Junior Member |
|
|
There is BUG.
src/lib/ub.c
void add_ub_limit(struct ub_struct *ub, int res_id, unsigned long *limit)
{
#define ADD_UB_PARAM(name, id) \
if (res_id == id) { \
ub->name = limit; \
return; \
}
ADD_UB_PARAM(kmemsize, PARAM_KMEMSIZE)
ADD_UB_PARAM(lockedpages, PARAM_LOCKEDPAGES)
ADD_UB_PARAM(privvmpages, PARAM_PRIVVMPAGES)
ADD_UB_PARAM(shmpages, PARAM_SHMPAGES)
ADD_UB_PARAM(numproc, PARAM_NUMPROC)
ADD_UB_PARAM(physpages, PARAM_PHYSPAGES)
ADD_UB_PARAM(vmguarpages, PARAM_VMGUARPAGES)
ADD_UB_PARAM(oomguarpages, PARAM_OOMGUARPAGES)
ADD_UB_PARAM(numtcpsock, PARAM_NUMTCPSOCK)
ADD_UB_PARAM(numflock, PARAM_NUMFLOCK)
ADD_UB_PARAM(numpty, PARAM_NUMPTY)
ADD_UB_PARAM(numsiginfo, PARAM_NUMSIGINFO)
ADD_UB_PARAM(tcpsndbuf, PARAM_TCPSNDBUF)
ADD_UB_PARAM(tcprcvbuf, PARAM_TCPRCVBUF)
ADD_UB_PARAM(othersockbuf, PARAM_OTHERSOCKBUF)
ADD_UB_PARAM(dgramrcvbuf, PARAM_DGRAMRCVBUF)
ADD_UB_PARAM(numothersock, PARAM_NUMOTHERSOCK)
ADD_UB_PARAM(numfile, PARAM_NUMFILE)
ADD_UB_PARAM(dcachesize, PARAM_DCACHESIZE)
ADD_UB_PARAM(numiptent, PARAM_NUMIPTENT)
ADD_UB_PARAM(avnumproc, PARAM_AVNUMPROC)
#undef ADD_UB_PARAM
}
The swappages don't set, add ADD_UB_PARAM(swappages, PARAM_SWAPPAGES).
|
|
|
|