LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-05-2012, 12:07 PM   #1
bradvan
Member
 
Registered: Mar 2009
Posts: 367

Rep: Reputation: 61
add more inodes to ext4 file system


I've been searching on the Internet, but have not found an answer yet. I have a 540GB ext4 logical volume that has run out of inodes. The users are putting a lot of small image files on it. My question:

Is there a way to increase the number of inodes without having to remake the file system?

I believe the answer is no, but wasn't sure.

Thanks!
 
Old 04-05-2012, 12:43 PM   #2
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
Quote:
Be warned that it is not possible to expand the number of inodes on a filesystem after it is created, so be careful deciding the correct value for this parameter.
Thats from the mkfs man page...
 
1 members found this post helpful.
Old 04-05-2012, 02:03 PM   #3
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
Quote:
Originally Posted by bradvan
Is there a way to increase the number of inodes without having to remake the file system?
As already mentioned: I don't believe so.

If you have a remote host with a large amount of free disk space, you can dump(8) the filesystem, re-create it with a more appropriate usage type (e.g. -T news), and then restore(8) the filesystem.

Example dump(8)
(assuming /local/path contains the filesystem to back up)
Code:
# export RSH=/usr/bin/ssh
# dump -0uanz -f user@remote.host:/remote/path/bkup.dump /local/path
Example restore(8)
(after recreating the filesystem and mounting it to /local/path)
Code:
# cd /local/path
# export RSH=/usr/bin/ssh
# restore -rlvf user@remote.host:/remote/path/bkup.dump
If it's a logical volume, back up a snapshot of it. If it's not a logical volume, mount it read-only before the dump(8). You don't want it changing halfway through your backup.
 
1 members found this post helpful.
Old 04-06-2012, 04:30 AM   #4
bradvan
Member
 
Registered: Mar 2009
Posts: 367

Original Poster
Rep: Reputation: 61
Thanks guys. It is what I expected. The project is putting a "lot" of small image file on this file system. I'm going to have to examine the configuration and maybe even decrease the block size. Maybe if I buy a new bandage dress it will magically fix itself?


Again, thanks for the replies!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
does no of inodes represent max no of files in a linux file system? Marty21 Linux - Kernel 7 05-22-2010 12:01 PM
OS-X and Linux ext4 file system deadbug Other *NIX 3 07-25-2009 06:11 AM
LXer: The Ext4 Linux file system LXer Syndicated Linux News 0 05-29-2009 05:51 PM
Ext4 File System - Out or Not?? QueenZ Linux - Newbie 12 02-12-2009 04:52 AM
Inodes an File System Management okter Programming 1 05-13-2005 06:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration