DirectAdmin panel disk quota Problem solving method

Source: Internet
Author: User
Tags vps

Set system quota error, I suggest that we first look at their VPS file system, if it is SIMFS, please contact the host, the file system may need the host to help you on the hen to enable quotas, if the disk with the match has been opened well, look below.


partition for directadmin quotas

Quota Partition (Executive instruction: DF-LH view), under normal circumstances VPS did not separate/home, so, are/.

Then we look at the usage of the quota (☆).

The code is as follows Copy Code

[root@zrblog]#/usr/sbin/repquota/

Normally, the disk quotas for each user are displayed directly, but we are experiencing a quota error today, so he might have two things:

1. No error, but the quota of all used are 0, in fact, users have to use disk space, but no statistics, please perform (I am here is the CentOS system)

The code is as follows Copy Code

/sbin/quotaoff-a; /SBIN/QUOTACHECK-AVUGM; /sbin/quotaon-a;

2. Error, no output repquota information, we need to check/etc/fstab the following figure/dev/xvda part

3. If there is an error, the specific content is:

[Root@li610-76 ~]#/usr/sbin/repquota/
Repquota:can ' t stat () mounted device/dev/root:no such file or directory
Repquota:mountpoint (or device)/not found.
Repquota:not all specified mountpoints are using quota.

This time, we have to do the soft link first:

The code is as follows Copy Code

Ln-s/dev/xvda/dev/root

After all is done, restart the VPS.

Insufficient disk quotas

1. Log in as a system administrator, right-click the C disk---attribute---quotas, and uncheck the box before the Enable quota.
In addition, disk quotas only work for non-administrator users, and if you are the only owner of this computer, it is recommended that you be logged in as an administrator in the future so that your permissions will be maximized, and of course, it is recommended that you rename the administrator because many viruses, Such things as Trojans like to look for loopholes in this respect!
Come back and talk about your problems, what you downloaded I guess you downloaded it to your desktop, or user profile, because only this may jump out of the "desktop quota is not enough" dialog box, as for inaccessible, I estimate is a permission issue, only you as an administrator to log in, these problems are no longer a problem, If you really don't want to change the user, adhere to the current user, there is a way, as long as the user to add to the Admins group on it, of course, to achieve these you must have the appropriate permissions, because only members of the Administrators group have this right to empower, that is, you must be an administrator to log in, In order to achieve this empowerment >


directadmin error When modifying disk quotas

The following error occurred while DirectAdmin disk quota modifications to the site:

Error with System Quotas
Setquota:quota file not found or has wrong format. Setquota:not all specified mountpoints are using quota.
Debug Guide

I was tortured by this problem is not shallow, for a long time, although each solution, but each time do not know how to solve, alas, this time, specifically for this problem, da quilt 5, 6 times, finally finished
First of all: in the stand-alone server and Xen full virtualization, KVM virtualization in the case of wood found in the XENPV half virtualization every time, in the Ovz under the wood has tried ~ ~
Check the idea:

1. Whether the quota has been installed, this should be installed, the installation of the DA preparation of the installation quota;
2. Whether the/etc/fstab added the Usrquota,grpquota parameter, this, basically does not have,


Workaround:

The code is as follows Copy Code
Vi/etc/fstab

Locate the "Defaults,noatime,errors=remount" line, replace it by format with "Defaults,usrquota,grpquota", and then reboot;

3. Implementation

  code is as follows copy code

/usr/sbin/ Repquota/home
Check the status of the limit, if/usr/sbin/repquota/home the following error message:
Repquota:quota file not found or has wrong > Repquota:not all specified mountpoints are using quota.
Perform the following steps
# Close the space limit in the/etc/fstab file for partitions that have joined quota settings
/sbin/quotaoff-a
To recalculate scan disk quotas
/sbin/quotacheck- AVUGM
# Opens in/ect/fstab file with space limits for partitions added to quota
/sbin/quotaon-a

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.