Answer the question
In order to leave comments, you need to log in
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
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
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question