oracle-12c
oracle-12c copied to clipboard
[INS-32021] Insufficient disk space on this volume for the selected Oracle home.
Trying to build the image, the installation of Oracle Database fails.
vagrant@vagrant-ubuntu-trusty-64:~/oracle-12c$ docker run --privileged -ti --name step1 oracle-12c:step1 /bin/bash
[root@4b51cd5b9be5 /]# /tmp/install/install
Sat Apr 11 08:50:03 UTC 2015
Starting Oracle Universal Installer...
Checking Temp space: must be greater than 500 MB. Actual 5839 MB Passed
Checking swap space: 0 MB available, 150 MB required. Failed <<<<
>>> Ignoring required pre-requisite failures. Continuing...
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2015-04-11_08-50-03AM. Please wait ...
[FATAL] [INS-32021] Insufficient disk space on this volume for the selected Oracle home.
CAUSE: The selected Oracle home was on a volume without enough disk space.
ACTION: Choose a location for Oracle home that has enough space (minimum of 6,553MB) or free up space on the existing volume.
[root@4b51cd5b9be5 /]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/docker-8:1-655416-4b51cd5b9be5ab88ba80c7f14ddce76437e2e6dc11a55dffc9156a5c864908df 9.8G 3.6G 5.7G 39% /
tmpfs 2.9G 0 2.9G 0% /dev
shm 4.0G 0 4.0G 0% /dev/shm
/dev/disk/by-uuid/abe8b1f0-67ef-478e-bf5a-8326ddaee9fd 40G 25G 13G 66% /etc/hosts
shmfs 4.0G 0 4.0G 0% /dev/shm
Fix:
Modify Docker options in the /etc/default/docker file on host:
DOCKER_OPTS="--storage-driver=devicemapper --storage-opt dm.basesize=20G"
After building, the size of the oracle-12c docker image is 18GB. Is it the average size that you get?
It can be compressed; see http://jasonwilder.com/blog/2014/08/19/squashing-docker-images/ and/or https://intercityup.com/blog/downsizing-docker-containers.html
Op di 14 apr. 2015 om 16:11 schreef sheikhsameer1609 < [email protected]>:
After building, the size of the oracle-12c docker image is 18GB. Is it the average size that you get?
— Reply to this email directly or view it on GitHub https://github.com/wscherphof/oracle-12c/issues/5#issuecomment-92866765.
Thank you wscherphof.. It helped me to squash the image by 50%.
Yay :-)
Op do 16 apr. 2015 17:42 schreef Sameer Sheikh [email protected]:
Thank you wscherphof.. It helped me to squash the image by 50%.
— Reply to this email directly or view it on GitHub https://github.com/wscherphof/oracle-12c/issues/5#issuecomment-93767135.
Based on the comments here, I found what I needed to do (To increase the size). the dm.basesize option is correct, but you need to remove any pre-created stuff. easiest way is to rm -rf /var/lib/docker as per this document https://github.com/docker/docker/blob/master/daemon/graphdriver/devmapper/README.md
You may find out that @bofm 's fix won't work on host machines that run systemd, because some docker.service files don't load (or include) /etc/default/docker. I fixed it by changing OPTIONS line in included file /etc/sysconfig/docker to include given options.
[FATAL] [INS-32021] Insufficient disk space on this volume for the selected Oracle home. CAUSE: The selected Oracle home was on a volume without enough disk space. ACTION: Choose a location for Oracle home that has enough space (minimum of 6,553MB) or free up space on the existing volume.
root@4e..... /]# df -h Filesystem Size Used Available Use% Mounted on tmpfs 1.8G 179.5M 1.6G 10% / tmpfs 1001.1M 0 1001.1M 0% /dev/shm /dev/sda1 17.9G 12.3G 4.6G 73% /mnt/sda1 cgroup 1001.1M 0 1001.1M 0% /sys/fs/cgroup c/Users 234.8G 116.3G 118.4G 50% /c/Users /dev/sda1 17.9G 12.3G 4.6G 73% /mnt/sda1/var/lib/docker/aufs
Was not able to find the /etc/sysconfig/docker or the /etc/default/docker. I am using docker on win7 as the host machine.