Solved. Instead of "user.username", you delete "+user.username".
Kai Wang wrote:
I actually changed the nofile by editing the /etc/security/limits.conf
file. It was only 1024. I have increased it to be bigger than the
total number of messages the test user has. The test user account
contains 760+ folders and 76000+ messages. I restore the user and
deleted it again. The problem remains.
[root@lms2 ~]# su - cyrus
-bash-3.00$ ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
file size (blocks, -f) unlimited
pending signals (-i) 1024
max locked memory (kbytes, -l) 32
max memory size (kbytes, -m) unlimited
open files (-n) 131072
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
stack size (kbytes, -s) 10240
cpu time (seconds, -t) unlimited
max user processes (-u) 59390
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
Zachariah Mully wrote:
On Mon, 2006-06-12 at 14:51 -0600, Kai Wang wrote:
Greetings.
I'm running Cyrus on Redhat AS4. cyrus complains about too many open
files when I try to delete a user with large number of
mailboxes/messages. I increased /proc/sys/fs/file-max and max number
of open files a few times. The errors still happen. Actually the
user is successfully deleted. I wonder if I should have any concern
about
these error messages.
[root@lms2 ~]# cat /etc/redhat-release
Red Hat Enterprise Linux AS release 4 (Nahant Update 2)
[root@lms2 ~]# uname -a
Linux lms2.acs.ucalgary.ca 2.6.9-11.ELsmp #1 SMP Fri May 20 18:26:27
EDT 2005 i686 i686 i386 GNU/Linux
[root@lms2 ~]# ulimit -a
Under debian with the speedblue.org debs, cyrus imapd runs under the
cyrus user, so you'll want to adjust the file-max for that user, not
just for root (as you did). Edit /etc/security/limits.conf
Z
--
Kai Wang
System Services
Information Technologies, University of Calgary,
2500 University Drive, N.W.,
Calgary, Alberta, Canada T2N 1N4
Phone (403) 220-2423, Fax (403) 282-9361
----
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html