1 (edited by 上帝已死 2016-06-25 09:52:49)

Topic: Linux inodes is full

==== Required information ====
- iRedMail version (check /etc/iredmail-release):     v0.9.4
- Linux/BSD distribution name and version: centos 6.4
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- Related log if you're reporting an issue:


Jun 25 09:45:55 imap-login: Info: Login: user=<miaobai1101@88ipa.com>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=15450, secured, session=<yB60chA2igB/AAAB>
Jun 25 09:45:55 imap(miaobai1101@88ipa.com): Error: user miaobai1101@88ipa.com: Initialization failed: Namespace '': mkdir(/var/vmail/vmail1/88ipa.com/m/i/a/miaobai1101-2016.5.25.7.30.33//Maildir) failed: No space left on device
Jun 25 09:45:55 imap(miaobai1101@88ipa.com): Error: Invalid user settings. Refer to server log for more information.


[root@server03 vmail1]# df -lh
Filesystem      Size  Used Avail Use% Mounted on
/dev/vda1        50G   17G   31G  36% /
tmpfs           939M     0  939M   0% /dev/shm



[root@server03 vmail1]# df -i
Filesystem      Inodes   IUsed  IFree IUse% Mounted on
/dev/vda1      3276800 3276800      0  100% /
tmpfs           240302       1 240301    1% /dev/shm


====
我使用df -lh 命令查看硬盘剩余空间,还有60%多,肯定够用的,再用df -i 查看了Inodes使用情况,满了。目前应该有10几万账号,怎么解决?

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Linux inodes is full

* 删除不要的文件以释放被占用的 inode。
* 修改 /etc/fstab,增加 mount 参数 nr_inodes 指定 inode 数量。重新 mount 这个分区。如果无法重新 mount,重启系统。

nr_inodes=
              The maximum number of inodes for this instance. The default is half of the number of your physical RAM  pages,
              or (on a machine with highmem) the number of lowmem RAM pages, whichever is the lower