开发者社区> 问答> 正文

CentOS系统全新安装DirectAdmin后创建用户出错

[font='Helvetica Neue', 'Luxi Sans', 'DejaVu Sans', Tahoma, 'Hiragino Sans GB', STHeiti, 'Microsoft YaHei']CentOS系统全新安装DirectAdmin后,在创建用户时会提示以下错误:
[font='Helvetica Neue', 'Luxi Sans', 'DejaVu Sans', Tahoma, 'Hiragino Sans GB', STHeiti, 'Microsoft YaHei']

[font='Helvetica Neue', 'Luxi Sans', 'DejaVu Sans', Tahoma, 'Hiragino Sans GB', STHeiti, 'Microsoft YaHei']s [font='Helvetica Neue', 'Luxi Sans', 'DejaVu Sans', Tahoma, 'Hiragino Sans GB', STHeiti, 'Microsoft YaHei']etquota: Mountpoint (or device) / not found or has no quota enabled. setquota: Not all specified mountpoints are using quota.
[font='Helvetica Neue', 'Luxi Sans', 'DejaVu Sans', Tahoma, 'Hiragino Sans GB', STHeiti, 'Microsoft YaHei']

[font='Helvetica Neue', 'Luxi Sans', 'DejaVu Sans', Tahoma, 'Hiragino Sans GB', STHeiti, 'Microsoft YaHei']官方也有在下方给出一个解决方案:,但它适用于FreeBSD。 [font='Helvetica Neue', 'Luxi Sans', 'DejaVu Sans', Tahoma, 'Hiragino Sans GB', STHeiti, 'Microsoft YaHei'] 请问这个该怎么处理?

[font='Helvetica Neue', 'Luxi Sans', 'DejaVu Sans', Tahoma, 'Hiragino Sans GB', STHeiti, 'Microsoft YaHei']

Disk Usage is showing 0.00 or is too lowLast Modified: Feb 16, 2015, 2:25 pm
*** Note: If you're running a VPS with a "simfs" file system, quotas usually cannot be enabled with normal means.  Contact yoru VPS provider to enable quotas for you.First type:
df -hto see your partitions.If you have a /home partition, then your quota_partition value will be /home.If you have no /home partition, then your quota partition will likely be /.In some cases, you might have a sybolic link:  /home -> /usr/home, in which case your quota_partition will be /usr.Set the partition value here, as needed: DirectAdmin relies on the system quotas to return a value for how much space is being used.  DirectAdmin will run
/usr/sbin/repquota [size=font-size: 10pt,10pt]/homeWhere [size=font-size: 10pt,10pt][font='courier new']/home is the quota_partition value set in the /usr/local/directadmin/conf/directadmin.conf file (eg, /home, / or /usr).  The command should output a large list of numbers, eg
[root@server]# /usr/sbin/repquota [size=font-size: 10pt,10pt][font='courier new']/home*** Report for user quotas on device /dev/hda3Block grace time: 7days; Inode grace time: 7days                       Block limits                File limitsUser            used    soft    hard  grace    used  soft  hard  grace----------------------------------------------------------------------root      --  417796       0       0           7446     0     0nobody    --       4       0       0              1     0     0bin       --   56880       0       0            510     0     0majordomo --       8       0       0              2     0     0diradmin  --       8       0       0              2     0     0admin     --     200       0       0             44     0     0user123   --     100       0       0             22     0     0user456   --     100       0       0             22     0     0If the "used" column is not showing anything, or users are not in the list, then you'll need to run the quotacheck program:Redhat:
/sbin/quotaoff -a; /sbin/quotacheck -avugm; /sbin/quotaon -a;FreeBSD:
/usr/sbin/quotaoff -a; /sbin/quotacheck -avug; /usr/sbin/quotaon -a;If are getting errors and no output is displayed for the repquota command, you'll need to check your /etc/fstab file to make sure that it contains the rw,userquota,groupquota line beside the partition that is using the quotas.***Important***:  On Linux (Redhat/Debian), it's usrquota,grpquota, and on FreeBSD it'suserquota,groupquota.Sample /etc/fstab (do not make your's look identical if it's different, this is one example from a specific OS):
# Device                Mountpoint      FStype  Options            Dump    Pass#/dev/ad0s1a             /               ext3     rw,usrquota,grpquota 1       1/dev/ad0s1e             /tmp            ext3     rw                 2       2proc                    /proc           procfs   rw                 0       0In this case, the quota_partition is /.  The quota partition should be the partition that holds your users.  Generally, this will be one of /home, / or /usr.Once the repquota program is returning a normal value, then you can run the tally to get the correct usage to show up in DirectAdmin:
echo "action=tally&value=all" >> /usr/local/directadmin/data/task.queueThis task.queue command will get picked up by the dataskq binary.   It calls the repquota command and dumps it into /home/tmp/quota-dump.Check /var/log/directadmin/errortaskq.log for any errors with this.[size=font-size: 8.5pt,8.5pt]Running the tally manually for a User can also help with debugging these issues.


Information for a Support Request

If you're completely confused and are going to be contacting some support department about the issue, run these commands and paste them the full output from them:
cat /etc/fstabdf -hmount/usr/local/directadmin/directadmin c | grep quota_partitionrepquota `/usr/local/directadmin/directadmin c | grep quota_partition= | cut -d= -f2`ls -lad /home/tmpls -la /home/tmp

展开
收起
纪先生 2015-12-21 11:42:20 11315 0
2 条回答
写回答
取消 提交回答
  • 回 1楼纪先生的帖子
    请问应该怎么改
    2016-01-01 18:42:46
    赞同 展开评论 打赏
  • ReCentOS系统全新安装DirectAdmin后创建用户出错
    找到问题了
    是阿里云的镜像有问题 优化过度了 擦

    改错东西了

    提交工单还一直说没问题 是第三方软件的问题

    -------------------------

    回 2楼黑黑黑黑夜的帖子
    不用改啊, 买杜甫去。。。
    2015-12-21 17:34:43
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
CentOS Nginx PHP JAVA 多语言镜像使用手 立即下载
CentOS Nginx PHP JAVA多语言镜像使用手册 立即下载
《Nginx 代理系统常用手册》 立即下载