User quota for VxFS filesystem is exceeded and 'vxquota -v' output indicates "EXPIRED"

book

Article ID: 100025037

calendar_today

Updated On:

Description

Error Message

Example message:

# /opt/VRTS/bin/vxquota -v user1
Disk quotas for user1 (uid 100):
Filesystem     usage  quota  limit     timeleft  files  quota  limit     timeleft
/testvol          16      0      0                  10     10     20      EXPIRED

Cause

The vxquota feature is working "as designed".

 

Resolution

The "time left" attribute cannot be reset with a command for purposes of removing the EXPIRED state.
Turning vxquota off and back on for the filesystem will also not clear the EXPIRED state.
 

The "EXPIRED" state does not prevent removal of files by the user to meet quota guidelines.

To remove the "EXPIRED" state one of four options may be performed.
1) The user may remove some files to meet the file / block quota limitation.
2) The quota may be increased for the user.
In this example, in the above output "user1" is limited to a soft limit of 10 files and hard limit of 20 files.
To change the limits for "user1" on the filesystem mounted on "/testvol", run the command:

# /opt/VRTS/bin/vxedquota -u user1

The following line is displayed in the editor:

fs /testvol blocks (soft = 0, hard = 0) inodes (soft = 10, hard = 20) time limit = 20 minute

Modify the soft and hard limits as desired (for example):

fs /testvol blocks (soft = 0, hard = 0) inodes (soft = 20, hard = 40) time limit = 20 minute

Then exit the editor with the following key presses: (ESCAPE) :wq!

Please note the default time limit is 1 week.
For testing purposes, the time limit was changed to 20 minutes.
Normally the editor line will only show time limit values where a change from the 1 week default is in place.

Subsequent execution of the vxquota command will show the quota is no longer EXPIRED.

# /opt/VRTS/bin/vxquota -v user1
Disk quotas for user1 (uid 100):
Filesystem     usage  quota  limit     timeleft  files  quota  limit     timeleft
/testvol          10      0      0                  10     20     40

3) Disable quotas on the filesystem.
This option may not be desirable.
Turning off quotas affects the entire filesystem and all users that access the filesystem (all users will no longer have quotas in place).
To turn quotas off (for example):

# /opt/VRTS/bin/vxquotaoff /testvol

4) Remove the quotas from the filesystem and re-create them.
This option may not be desirable.
Removing the quotas on the filesystem would require re-setup of quotas for each individual user / group of the filesystem.

Turn the quotas off (for example):

# /opt/VRTS/bin/vxquotaoff /testvol
 

Remove the quotas:

# cd /testvol
# rm quotas
# rm quotas.grp
 

Re-add the quota files, so quotas may be setup:

# touch quotas
# touch quotas.grp
# /opt/VRTS/bin/vxquotaon /testvol

Perform quota setup for each user or group as needed:

# /opt/VRTS/bin/vxedquota -u (user)
# /opt/VRTS/bin/vxedquota -g (group)

Please review the VxFS Administration Guide or the vxedquota man page for additional information.


Issue/Introduction

The output for 'vxquota -v (user)' indicates an EXPIRED state. The filesystem quota for a specific user of a vxfs filesystem has been exceeded. The vxquota time limit has expired and it is desired to clear the EXPIRED state.