LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   setquota stopped working (https://www.linuxquestions.org/questions/linux-newbie-8/setquota-stopped-working-4175425530/)

Timothy.u 09-04-2012 03:04 AM

setquota stopped working
 
Hello,

I was creating smbldap users with php script (I've done that last year successfully) something like this:

smbldap-useradd2 -a -m -A 1 -B 1 -N $name -S $surname -c "$name $surname" $login
smbldap-passwd2 -p $password $login
setquota -u $login 580000 640000 0 0 /


at some point it started to give me error like this:

setquota: Cannot set quota for user 5819 from kernel on /dev/simfs: No such process
setquota: Cannot write quota for 5819 on /dev/simfs: No such process


First I thought it's script error, but after that I created user manually, and I've got the same error when tried to set quota for it. It looks like I'm out of free space but df -h shows:

Filesystem Size Used Avail Use% Mounted on
/dev/simfs 500G 148G 353G 30% /


Does anyone know what could have caused such an error and how can I get rid of it?

I'm using slackware 13.1

Timothy.u 09-07-2012 02:37 AM

As always no replies, I figured out the problem myself.

I probably forgot to mention, that it is a vz container, so basically what had to be done:

vzquota off $cont_id


edit file /etc/vz/conf/$cont_id.conf

and changed line from :
QUOTAUGIDLIMIT="4000"
to:
QUOTAUGIDLIMIT="9000"

save file, than run

vzquota on $cont_id

It will take a while for it to recalculate user quotas, after start, I recommend to delete previously created users with errors, and recreate new ones.

That's it.


All times are GMT -5. The time now is 05:14 PM.