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

RHS-C node has not enough free space in root partition #4

Open
alram opened this issue Apr 19, 2017 · 3 comments
Open

RHS-C node has not enough free space in root partition #4

alram opened this issue Apr 19, 2017 · 3 comments

Comments

@alram
Copy link

alram commented Apr 19, 2017

mongod refuses to start with:
2017-04-18T21:04:30.272-0400 [initandlisten] ERROR: Insufficient free space for journal files
2017-04-18T21:04:30.272-0400 [initandlisten] Please make at least 3379MB available in /var/lib/mongodb/journal or use --smallfiles
2017-04-18T21:04:30.272-0400 [initandlisten]
2017-04-18T21:04:30.279-0400 [initandlisten] exception in initAndListen: 15926 Insufficient free space for journals, terminating

The space should be available since the root disk is 10GB but it looks like 4GB are not partitioned
[root@RHS-C mongodb]# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 10G 0 disk
└─sda1 8:1 0 6G 0 part /

@mulbc
Copy link
Member

mulbc commented Apr 19, 2017

Good catch - I remember we had this in the past... Can you tell me exactly after which step this error appears? I think I would then just include an additional step in the ansible run: rhsc-controller.yml that will configure mongodb with --smallfiles.
Changing the RHCS image (that is also the base for the Controller) would be more effort and would require everyone to re-fetch the image :/

@alram
Copy link
Author

alram commented Apr 19, 2017

The playbook doesn't fail even though the skyring service doesn't start (due to mongod failing).
Starting with --smallfiles would mean modifying the unit file for the mongod service which might be tricky

@mulbc
Copy link
Member

mulbc commented Apr 23, 2017

Proposal:
Ansible lineinfile that puts the '--smallfiles' into /usr/lib/systemd/system/mongodb.service (assuming that is the location?) and then we reload the service file with systemctl daemon-reload so that the changes are applied.
Two line change that saves everyone from re-downloading 1GB of image file and it is backwards compatible once I release a new image version which already has the fix

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

2 participants