Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Shells Virtual Desktop
BMail.ag - Secure Email Service
Server.net
CPLicense.net
VPS Server
Buy VPN
Vultr
VMs for AI
HostDare
HostDare
ReliableSite White-Label Dedicated Hosting for Resellers
25% Recurring Discount on NVMe VPS
InterServer VPS
BMail.ag - Secure Email Service
Best VPN
High-Performance Bare Metal Server Solutions
Karvl.com
Server Mania Cloud Hosting
DataWagon Hosting
AlphaVPS Hosting
Evoxt.com
Clouvider
VPS Hosting with NVMe
Residential IPs in the US & 4G Mobile Proxies in EU & US with Unlimited Bandwidth
ReliableSite White-Label Dedicated Hosting for Resellers
Rabisu - Hosting Solutions
Shells Virtual Desktop
New on LowEndTalk? Please Register and read our Community Rules.

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

  • RalliasRallias Member

    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"

    Thanked by 1Maximum_VPS
  • 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.

Sign In or Register to comment.