All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Need help with increasing inodes
So I have an unmanaged dedicated with a 1TB hard drive. I have recently hit the inodes limit. After looking through google it seems the only fix is to reformat the drive with a higher inodes limit.
What I haven't been able to find through google is exactly how to do this and what impact a higher inode limit has. Why doesn't the drive format with a higher inode limit by default?
Here's the info,
System is Centos 6.5 with ext4
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/mapper/VolGroup-lv_root
3276800 58534 3218266 2% /
tmpfs 3074543 1 3074542 1% /dev/shm
/dev/sda1 128016 44 127972 1% /boot
/dev/mapper/VolGroup-lv_home
56967168 52227992 4739176 92% /home
Logical Volumes:
lv_home
869.22 GB
lv_root
50 GB
lv_swap
11.80 GB
I'd really appreciate it if someone could walk me through doing this with the least amount of downtime possible. The server isn't mission critical, however I do run websites on it that provide income. Can I reformat just the /home directory since it's a logical volume to increase the inodes? How many inodes should I set and will it decrease performance or something?
Comments
Filesystem Inodes IUsed IFree IUse% Mounted on /dev/mapper/VolGroup-lv_root 3276800 58534 3218266 2% / tmpfs 3074543 1 3074542 1% /dev/shm /dev/sda1 128016 44 127972 1% /boot /dev/mapper/VolGroup-lv_home 56967168 52227992 4739176 92% /home
It's not possible.
One thing you can do is resize2fs the partition down in size, reduce the LV size, make a new partition with a higher inode count (-N with mkfs.ext4), and tell the new LV to say "Red Rover Red Rover Send Your Data Right Over"
So I played around with this on an old computer.
I don't need to backup the entire server, just the home directory.
Backup home dir
umount /home
mkfs.ext4 -N value /dev/mapper/VolGroup-lv_home
mount /home
restore home dir
Should do the trick.