易秋网络旗下全球VPS测评站
云主机测评/独立服务器测评/主机优惠码

#DA面板#DirectAdmin创建虚拟主机提示Error with system Quotas

Error with system Quotas
setquota: Mountpoint (or device) / not found or has no quota enabled. setquota: Not all specified mountpoints are using quota.
Debug Guide
User’s data directory created successfully
Domains directory created successfully
Domains directory created successfully in user’s home

2016年3.14日更新。好几年的问题,其实是Directadmin的一个bug,今天帮客户安装DA面板,系统是centos 6.x 64位,依然还是存在这个问题,耐心看了下官方的教程。简单处理下就可以了。

加入我们就一个盘,根目录是/,我们df -h是可以查看磁盘规划的。

我们执行 /usr/sbin/repquota / ,如果磁盘配额生效的,那会显示类似下面的:

# /usr/sbin/repquota /
*** Report for user quotas on device /dev/xvda1
Block grace time: 7days; Inode grace time: 7days
Block limits File limits
User used soft hard grace used soft hard grace
———————————————————————-
root — 1985016 0 0 70212 0 0
daemon — 8 0 0 3 0 0
mail — 96 0 0 35 0 0
ftp — 1656 0 0 103 0 0
abrt — 24 0 0 4 0 0
haldaemon — 8 0 0 2 0 0
ntp — 8 0 0 2 0 0
named — 40 0 0 10 0 0
apache — 32 0 0 8 0 0
diradmin — 209608 0 0 3434 0 0
mysql — 31712 0 0 131 0 0
majordomo — 356 0 0 34 0 0
webapps — 73604 0 0 6126 0 0
dovecot — 0 0 0 8 0 0
admin — 132 0 0 33 0 0 

问题就是他不显示正常的磁盘配额,所以我们要修改下配置:

/sbin/quotaoff -a; /sbin/quotacheck -avugm; /sbin/quotaon -a;

先执行下这个,如果还是报错。

那就修改下/etc/fstab设置,vi /etc/fstab

类似,添加红色的,usrquota,grpquota就可以了。

# Device                Mountpoint      FStype  Options            Dump    Pass#
/dev/ad0s1a             /               ext3     rw,usrquota,grpquota 1       1
/dev/ad0s1e             /tmp            ext3     rw                 2       2
proc                    /proc           procfs   rw                 0       0

然后重启下机器。

然后再执行下:

/sbin/quotaoff -a; /sbin/quotacheck -avugm; /sbin/quotaon -a;

会看见磁盘配额生效了:

# /sbin/quotaoff -a; /sbin/quotacheck -avugm; /sbin/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/xvda1 [/] done
quotacheck: Cannot stat old user quota file //aquota.user: No such file or directory. Usage will not be substracted.
quotacheck: Cannot stat old group quota file //aquota.group: No such file or directory. Usage will not be substracted.
quotacheck: Cannot stat old user quota file //aquota.user: No such file or directory. Usage will not be substracted.
quotacheck: Cannot stat old group quota file //aquota.group: No such file or directory. Usage will not be substracted.
quotacheck: Checked 11747 directories and 73601 files
quotacheck: Old file not found.
quotacheck: Old file not found.

===========================

# /usr/sbin/repquota /
*** Report for user quotas on device /dev/xvda1
Block grace time: 7days; Inode grace time: 7days
Block limits File limits
User used soft hard grace used soft hard grace
———————————————————————-
root — 1985016 0 0 70212 0 0
daemon — 8 0 0 3 0 0
mail — 96 0 0 35 0 0
ftp — 1656 0 0 103 0 0
abrt — 24 0 0 4 0 0
haldaemon — 8 0 0 2 0 0
ntp — 8 0 0 2 0 0
named — 40 0 0 10 0 0
apache — 32 0 0 8 0 0
diradmin — 209608 0 0 3434 0 0
mysql — 31712 0 0 131 0 0
majordomo — 356 0 0 34 0 0
webapps — 73604 0 0 6126 0 0
dovecot — 0 0 0 8 0 0
admin — 132 0 0 33 0 0

各方面正常以后,再执行下:

echo “action=tally&value=all” >> /usr/local/directadmin/data/task.queue

就ok了。

赞(0) 打赏
版权归求VPS所有,未经允许不准转载!求VPS » #DA面板#DirectAdmin创建虚拟主机提示Error with system Quotas
【声明】:求VPS,易秋网络旗下专业VPS测评站,主要侧重筛选全球质量比较好的VPS、云主机以及独立服务器,并且进行简单测评,仅供参考。因为全国网络差异较大,求VPS的VPS以及独立服务器测评数据仅对当时的测评环境有效。求VPS不强制网友购买本站介绍的VPS以及独立服务器资源,如果网友购买了本站介绍的资源,风险自担!

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏