You are here
Hi everyone,
This is my first post so a bit of background first - skip if you want
<background>
I've built a web-based coding dojo server which supports about 10 different languages.
It's free, no adverts, no login, instead it asks for donations to raise money to buy Raspberry Pi computers for schools. It's backed by Turnkey Rails. Turnkey is awesome. So far it's early days compared to what I'd like to do but I've more or cobbled stuff together and it seems to work and I'm starting to get some £ in and have already given a few Pi'es to local schools.
</background>
I'm pretty green at linux and admin etc. I've hit a problem that I'm running out of inodes. For example (after reclaiming some disk space on /dev/sda1 where I'm running out)
#df -i
reports
So I was hoping I could "move" some of the space on /dev/sda2 to /dev/sda1
I've done a bit of searching and found this
http://www.turnkeylinux.org/blog/extending-lvm
which looks promising. However, ssh'ing onto my cyber-dojo server and running
#vgdisplay
#pvdisplay
both report nothing. They don't say command not found. They just report nothing. Is this route an option for me? If so how do I do it?
It turns out that cyber-dojo gobbles disk inodes at a single particular sub-folder. I was wondering whether a simple ln to point that sub-folder to /mnt and so be on dev/sda2 might be a simpler solution? Would that work?
Also, when I go to
https://hub.turnkeylinux.org/servers/
and I click the web-management and web-shell icons on the top right, they both say
This page is not available. How do I get them working?
Thanks
Jon
I'm not sure if AWS servers use LVM
Firstly I'd just like to say that your project looks awesome. What a great thing you are doing there! I'll definately have a closer look when time allows. (BTW you have a broken link - the 'practice' link points to http://jonjagger.blogspot.co.uk/p/cyber-dojo_8.html which reports: "Sorry, the page you were looking for in this blog does not exist.")
But back to the problem at hand; TBH I don't know enough about using AWS to provide you with any definative answers but I suspect that AWS hosted appliances don't use LVM.
Also inodes and disk space are not the same (as you've probably already aware) and for the most popular Linux FS (ext3/4) inodes can only be set at format. There is no way to increase the number of inodes whilst retaining the data that I am aware of. Generally inodes get gobbled up with lots of small files.
IMO the best option (rather than linking to /mnt where /dev/sda2 is mounted) would be to 'mount --bind' /mnt to the location that is eating all the inodes. I have never used it but a longer term option may be to use a FS like ReiserFS which can allocate inodes dynamically.
As for your Hub issue where do the links point to? They should either point to https://<public-IP>:12321 (or 12320 respectively) or https://<FQDN>:12321 (or 12320 respectively).
thank you
Ooops. Thanks for the broken link report. Fixed.
Re inodes - yes - I'm using a _lot_ of small files. Each time the test button is pressed it causes a new git commit.
Re the mount advice - thanks. I will investigate.
The links do indeed point to ports 12321 and 12320 but no joy. Do I have to setup some ssh keys first or something?
Thanks
Jon
Again I'm not sure about AWS
But normally when you format a drive you can set the number of inodes. As you know you will be chewing them up you may be able to preset it to have tons of inodes, especially if you mount it to the specific folder where all the tons of little files will be.
As for Webmin, log in via SSH (PuTTY is a good client if you are using Windows) and try netstat -l to see if it's listening as it should be. I'd run it like this:
and this is the response I get:
and/or see is the Webmin service is running like this:
Mine returns this:
12321
I ssh'd onto cyber-dojo.com
returns nothing
also returns nothing... So that's some progress! What now?
I did the mount --bind solution this evening. Worked great.
Found this blog post useful
http://backdrift.org/how-to-use-bind-mounts-in-linux∞
Many thanks
Jon
So Webmin isn't running...
So you can try to start it:
And hopefully it will start... If not hopefully it will give you an error message that will help troubleshooting. Otherwise you'll need to see if you can find a logfile that helps out. I had a quick look but I'm not sure where the Webmin logs hang out. Doesn't seem to be in /var/log!?
service webmin start
it works :-) Thanks
Yay!
Hopefully the same will apply to Webshell although I'm not sure what the service is called (might be 'webshell' or maybe 'shellinabox' or something simmilar...?) For future reference all the services should have scripts in /etc/init.d so have a look in there and hopefully you will find it...
Add new comment