K
K
Kirill Batalin2014-08-20 13:28:54
Debian
Kirill Batalin, 2014-08-20 13:28:54

Run out of inodes. What to do?

It happens on a virtual server from fastvps. OS: Debian 7.4 Wheezy. FS: ext4
There is a directory with a large number of pictures (1.5+ million). The number of pictures will increase significantly.
Run out of inodes. How to be?
I thought about uploading images to dropbox from time to time and inserting them into the site using direct links. But I read that dropbox does not treat this kind of thing well and deletes accounts.
Tell me what can be done?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
neol, 2014-08-20
@neol

Amazon S3 if the budget allows.
If there is no budget, then you can make a disk in a file, format it in reiserfs (inodes are not limited there), transfer pictures there and mount it in the desired directory. There will be a small overhead, of course, but in principle an option.
The shell will look something like this:

dd if=/dev/zero of=/path/to/virtual.disk bs=1M count=4096
aptitude install reiserfsprogs
mkfs.reiserfs /path/to/virtual.disk
mount -t reiserfs /path/to/virtual.disk /mnt
mv /path/to/images/dir /mnt
umount /mnt
mount -t reiserfs /path/to/virtual.disk /path/to/images/dir

Don't forget to check the documentation before you do anything.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question