inodes full, disk still has space

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
silverstr8p
Posts: 6
Joined: Tue Jul 26, 2016 4:37 pm

inodes full, disk still has space

Postby silverstr8p » Tue Jul 26, 2016 4:53 pm

My Zimbra box failed but still had space, but I found after running:

Code: Select all

#>: df -i
Filesystem            Inodes   IUsed  IFree IUse% Mounted on
/dev/mapper/vg_mail-lv_root
                     6266880 6266880    0 100% /
tmpfs                 369466       1 369465    1% /dev/shm
/dev/vda1             128016      67 127949    1% /boot

so I deleted a bunch of temp files, so now it shows:

Code: Select all

#>: df -i
Filesystem            Inodes   IUsed  IFree IUse% Mounted on
/dev/mapper/vg_mail-lv_root
                     6266880 6265961    919  100% /
tmpfs                 369466       1 369465    1% /dev/shm
/dev/vda1             128016      67 127949    1% /boot

but I'm wondering where are some good places to delete stuff, like maybe in the quarantine or other temp files? Can I delete them from the command line, or will that mess things up?

In case anyone else is wondering, inodes are a generic term that Linux uses for either files or folders, and it has a maximum amount of "things" (inodes/combination of files and folders) you can have on a file system, so even if you have space, you have to delete some extra "things" like the kind of unused tiny files that get stored here and there.


User avatar
tonster
Zimbra Employee
Zimbra Employee
Posts: 312
Joined: Fri Feb 21, 2014 10:14 am
Location: Ypsilanti, MI
ZCS/ZD Version: Release 8.7.0_GA_1659.RHEL6_64_2016

Re: inodes full, disk still has space

Postby tonster » Tue Jul 26, 2016 10:14 pm

silverstr8p wrote:My Zimbra box failed but still had space, but I found after running:

Code: Select all

#>: df -i
Filesystem            Inodes   IUsed  IFree IUse% Mounted on
/dev/mapper/vg_mail-lv_root
                     6266880 6266880    0 100% /
tmpfs                 369466       1 369465    1% /dev/shm
/dev/vda1             128016      67 127949    1% /boot

so I deleted a bunch of temp files, so now it shows:

Code: Select all

#>: df -i
Filesystem            Inodes   IUsed  IFree IUse% Mounted on
/dev/mapper/vg_mail-lv_root
                     6266880 6265961    919  100% /
tmpfs                 369466       1 369465    1% /dev/shm
/dev/vda1             128016      67 127949    1% /boot

but I'm wondering where are some good places to delete stuff, like maybe in the quarantine or other temp files? Can I delete them from the command line, or will that mess things up?

In case anyone else is wondering, inodes are a generic term that Linux uses for either files or folders, and it has a maximum amount of "things" (inodes/combination of files and folders) you can have on a file system, so even if you have space, you have to delete some extra "things" like the kind of unused tiny files that get stored here and there.


If you're running out of inodes, then you've sized your system improperly and you're going to need to either add more diskspace or migrate to a new system/vm. Every message you receive is going to take up an inode, so no amount of deleting temp files or quarantined items is going to save you more than very short-term.
silverstr8p
Posts: 6
Joined: Tue Jul 26, 2016 4:37 pm

Re: inodes full, disk still has space

Postby silverstr8p » Wed Jul 27, 2016 2:13 am

Yeah, I know, but it will take time for me to provision another box, so hoping to free up some inodes in the meantime.
phoenix
Ambassador
Ambassador
Posts: 26455
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

Re: inodes full, disk still has space

Postby phoenix » Wed Jul 27, 2016 5:27 am

silverstr8p wrote:Yeah, I know, but it will take time for me to provision another box, so hoping to free up some inodes in the meantime.
The other part of the answer that tonster gave was to add more HD space, why can't you do that?
Regards

Bill

Rspamd: A high performance spamassassin replacement

If you'd like to see this implemented in a future version of ZCS then please vote on Bugzilla entries 97706 & 108168
silverstr8p
Posts: 6
Joined: Tue Jul 26, 2016 4:37 pm

Re: inodes full, disk still has space

Postby silverstr8p » Wed Jul 27, 2016 3:21 pm

In this case it's difficult, I need to fire up a new box, but I'm awaiting parts to complete the build, so I need some time.
User avatar
andreaswolske
Posts: 29
Joined: Tue Nov 26, 2013 11:24 am
Location: Berlin
ZCS/ZD Version: Release 8.8.12_GA_3794.RHEL7_64_201
Contact:

Re: inodes full, disk still has space

Postby andreaswolske » Thu Jul 28, 2016 11:25 am

It appears that you're using LVM? Most inodes go to /opt/zimbra/store.
You can add a new disk and format it manually, doubling the default number of inodes since /store hosts all the small files.
Mount the new disk under /opt/zimbra/store. No of inodes cannot be changed after formatting so you would have to reinstall.
BR

Return to “Administrators”

Who is online

Users browsing this forum: Google [Bot], MSN [Bot] and 8 guests