Hi, all!
I deploy Oracle 19C inside LXC container for self study.
Oracle 19C woks well, but when I try install Examples Databases from LINUX.X64_193000_examples.zip
I get next warning message
[oracle@ol8-19c examples]$ ./runInstaller
Starting Oracle Universal Installer...
Checking Temp space: must be greater than 415 MB. Actual 151547 MB Passed
Checking swap space: 0 MB available, 150 MB required. Failed <<<<
Checking monitor: must be configured to display at least 256 colors. Actual 16777216 Passed
Some requirement checks failed. You must fulfill these requirements before
continuing with the installation,
Continue? (y/n) [n] n
I attentively read this post Invalid SwapTotal in /proc/meminfo (SwapTotal 0) but did’t understand what and where I must edit the files for fixing this issue.
Bellow host and container configuration
OS version - Debian 11Root ZFS
root@d11:/boot# uname -ar
Linux d11.localdomain 5.10.0-19-amd64 #1 SMP Debian 5.10.149-2 (2022-10-21) x86_64 GNU/Linux
LXC version
mvg@d11:~$ apt list -i| grep lxc
liblxc1/stable,now 1:4.0.6-2+deb11u1 amd64 [installed,automatic]
lxc-templates/stable,now 3.0.4-5 amd64 [installed,automatic]
lxc/stable,now 1:4.0.6-2+deb11u1 amd64 [installed]
lxcfs/stable,now 4.0.7-1 amd64 [installed,automatic]
CONFIG_MEMCG_SWAP settin in /boot/config
root@d11:/boot# grep CONFIG_MEMCG_SWAP /boot/config-*
CONFIG_MEMCG_SWAP=y
SWAP setting in /boot/config
mvg@d11:~$ grep SWAP /boot/config-*
CONFIG_SWAP=y
CONFIG_MEMCG_SWAP=y
CONFIG_ARCH_USE_BUILTIN_BSWAP=y
CONFIG_ARCH_WANTS_THP_SWAP=y
CONFIG_THP_SWAP=y
CONFIG_FRONTSWAP=y
CONFIG_ZSWAP=y
# CONFIG_ZSWAP_COMPRESSOR_DEFAULT_DEFLATE is not set
CONFIG_ZSWAP_COMPRESSOR_DEFAULT_LZO=y
# CONFIG_ZSWAP_COMPRESSOR_DEFAULT_842 is not set
# CONFIG_ZSWAP_COMPRESSOR_DEFAULT_LZ4 is not set
# CONFIG_ZSWAP_COMPRESSOR_DEFAULT_LZ4HC is not set
# CONFIG_ZSWAP_COMPRESSOR_DEFAULT_ZSTD is not set
CONFIG_ZSWAP_COMPRESSOR_DEFAULT="lzo"
CONFIG_ZSWAP_ZPOOL_DEFAULT_ZBUD=y
# CONFIG_ZSWAP_ZPOOL_DEFAULT_Z3FOLD is not set
# CONFIG_ZSWAP_ZPOOL_DEFAULT_ZSMALLOC is not set
CONFIG_ZSWAP_ZPOOL_DEFAULT="zbud"
# CONFIG_ZSWAP_DEFAULT_ON is not set
CONFIG_MTD_SWAP=m
CONFIG_NFS_SWAP=y
CONFIG_SUNRPC_SWAP=y
CONFIG_RING_BUFFER_ALLOW_SWAP=y
# CONFIG_TRACER_SNAPSHOT_PER_CPU_SWAP is not set
root@d11:/boot# grep -r GRUB_CMDLINE_LINUX /etc/default/grub*
/etc/default/grub:GRUB_CMDLINE_LINUX_DEFAULT=""
/etc/default/grub:GRUB_CMDLINE_LINUX="root=ZFS=rpool/ROOT/debian"
I make 8GB SWAP using Step 7: Optional: Configure Swap from https://openzfs.github.io/
record from /etc/fstab
root@d11:/# cat /etc/fstab
# UNCONFIGURED FSTAB FOR BASE SYSTEM
/dev/zvol/rpool/swap none swap discard 0 0
On the host SWAP works correctly
root@d11:/boot#top
MiB Mem : 15990.2 total, 772.1 free, 9008.1 used, 6210.0 buff/cache
MiB Swap: 8192.0 total, 8190.2 free, 1.8 used. 1404.0 avail Mem
but when I turn LXC container and attach to it
[oracle@ol8-19c examples]$ grep ^Swap /proc/meminfo
SwapCached: 0 kB
SwapTotal: 0 kB
SwapFree: 0 kB
I want test complicated SQL query that can use SWAP in the time of its execution
Best Regards,
Vadim Maklakov