Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[INS-32021] Insufficient disk space on this volume for the selected Oracle home. #5

Open
bofm opened this issue Apr 11, 2015 · 8 comments

Comments

@bofm
Copy link

bofm commented Apr 11, 2015

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
@bofm
Copy link
Author

bofm commented Apr 11, 2015

Fix:

Modify Docker options in the /etc/default/docker file on host:
DOCKER_OPTS="--storage-driver=devicemapper --storage-opt dm.basesize=20G"

@sheikhsameer1609
Copy link

After building, the size of the oracle-12c docker image is 18GB. Is it the average size that you get?

@wscherphof
Copy link
Owner

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 <
notifications@github.com>:

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
#5 (comment).

@sheikhsameer1609
Copy link

Thank you wscherphof.. It helped me to squash the image by 50%.

@wscherphof
Copy link
Owner

Yay :-)

Op do 16 apr. 2015 17:42 schreef Sameer Sheikh notifications@github.com:

Thank you wscherphof.. It helped me to squash the image by 50%.


Reply to this email directly or view it on GitHub
#5 (comment).

@arcticShadow
Copy link

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

@ghost
Copy link

ghost commented Aug 12, 2015

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.

@Rahulmashlesh
Copy link

[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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants