Quota For Home2

creemhost

Verified User
Joined
Jan 12, 2023
Messages
25
Hi we have server with Linode now we have create volume and attached with server also mount as /mnt/home2
Now I have moved some users to /mnt/home2 but which user on /mnt/home2 quota not updating, like disk space not increasing and decreasing if we add some data on this user.
I have also enable realtime_quota=2 on server but home using updating realtime data but /mnt/home2 not updating data.
Here is my /etc/fstab configuration please help me thank you.
[root@server-45-79-46-134 ~]# cat /etc/fstab
#
# /etc/fstab
#
# Accessible filesystems, by reference, are maintained under '/dev/disk/'.
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.
#
# After editing this file, run 'systemctl daemon-reload' to update systemd
# units generated from this file.
#
UUID=fd3c55a2-b835-4a62-8cfb-6312ed43dc52 / ext4 defaults,usrquota,grpquota 1 1
UUID=f1408ea6-59a0-11ed-bc9d-525400000001 none swap defaults 0 0
/dev/disk/by-id/scsi-0Linode_Volume_home2 /mnt/home2 ext4 defaults,noatime,nofail 0 2
 
Did you just add storage without guide from directadmin docs ?

if you already follow the guide, maybe could you post some docs links that's you done.
 
I have already done it please check this
[root@server-45-79-46-134 ~]# cat /etc/fstab
#
# /etc/fstab
#
# Accessible filesystems, by reference, are maintained under '/dev/disk/'.
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.
#
# After editing this file, run 'systemctl daemon-reload' to update systemd
# units generated from this file.
#
UUID=fd3c55a2-b835-4a62-8cfb-6312ed43dc52 / ext4 defaults,usrquota,grpquota 1 1
UUID=f1408ea6-59a0-11ed-bc9d-525400000001 none swap defaults 0 0
/dev/disk/by-id/scsi-0Linode_Volume_home2 /mnt/home2 ext4 defaults,noatime,nofail 0 2
/dev/disk/by-id/scsi-0Linode_Volume_home2 /mnt/home2 ext4 defaults,usrquota,grpquota 1 2
[root@server-45-79-46-134 ~]#
 
/dev/disk/by-id/scsi-0Linode_Volume_home2 /mnt/home2 ext4 defaults,noatime,nofail 0 2
/dev/disk/by-id/scsi-0Linode_Volume_home2 /mnt/home2 ext4 defaults,noatime,nofail,usrquota,grpquota 0 2

It duplicate, please remove your old config and trying folllow the docs, there have command to check if it work or not.

Trying to keep some config from linode instruction and just add
usrquota,grpquota
 
It duplicate, please remove your old config and trying folllow the docs, there have command to check if it work or not.

Trying to keep some config from linode instruction and just add
Thank you very much for your help I have add please check output and also tell me there is any command to update usage data for /mnt/home2 users manually ?
Please now its OK ?
[root@server-45-79-46-134 ~]# cat /etc/fstab
#
# /etc/fstab
#
# Accessible filesystems, by reference, are maintained under '/dev/disk/'.
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.
#
# After editing this file, run 'systemctl daemon-reload' to update systemd
# units generated from this file.
#
UUID=fd3c55a2-b835-4a62-8cfb-6312ed43dc52 / ext4 defaults,usrquota,grpquota 1 1
UUID=f1408ea6-59a0-11ed-bc9d-525400000001 none swap defaults 0 0
/dev/disk/by-id/scsi-0Linode_Volume_home2 /mnt/home2 ext4 defaults,noatime,nofail,usrquota,grpquota 0 2
[root@server-45-79-46-134 ~]#
 
Code:
mount -o remount /mnt/home2
repquota /mnt/home2
I have done but on client end directadmin still show old data when I have run these 2 commands its show this output
[root@server-45-79-46-134 ~]# repquota /mnt/home2
*** Report for user quotas on device /dev/sdc
Block grace time: 7days; Inode grace time: 7days
Block limits File limits
User used soft hard grace used soft hard grace
----------------------------------------------------------------------
root -- 20 0 0 2 0 0
janug2424 -- 9429320 0 0 225567 0 0

Also I have run these commands
[root@server-45-79-46-134 ~]# quotaoff -a; quotacheck -avugm; quotaon -a
quotacheck: Your kernel probably supports journaled quota but you are not using it. Consider switching to journaled quota to avoid running quotacheck after an unclean shutdown.
quotacheck: Scanning /dev/sda [/] done
quotacheck: Checked 45580 directories and 327593 files
quotacheck: Scanning /dev/sdc [/mnt/home2] done
quotacheck: Checked 18787 directories and 206785 files
[root@server-45-79-46-134 ~]# echo "action=tally&value=all" >> /usr/local/directadmin/data/task.queue
[root@server-45-79-46-134 ~]#
 
look good now, but I don't know why panel still not show quata from home2 .

maybe other might have idea.
 
look good now, but I don't know why panel still not show quata from home2 .

maybe other might have idea.
Yes its look good now and thanks again, we will wait maybe its take sometime for showing up on directadmin UI.
 
My problem is solved with help of jamgames2 and I have not add /mnt/home2 in directadmin conf now I have add on below path and now working fine.
/usr/local/directadmin/directadmin/conf/directadmin.conf

I have add below line in directadmin.conf
ext_quota_partitions=/mnt/home2
Also I have restart directadmin service after adding this.
Code:
service directadmin restart
 
Back
Top