如何使用`xfs_quota`命令管理磁盘容量配额时正常移除配额?

新手上路,请多包涵

使用xfs_quota命令管理磁盘容量配额时,无法移除,提示我XFS_QUOTARM: Invalid argument

[root@server ~]# xfs_quota -x -c "print"
Filesystem          Pathname
/                   /dev/mapper/fedora-root
/mnt/quotatest      /dev/sdb1 (uquota, gquota)
[root@server ~]# xfs_quota -x -c "state" /mnt/quotatest
User quota state on /mnt/quotatest (/dev/sdb1)
  Accounting: ON
  Enforcement: ON
  Inode: #131 (2 blocks, 2 extents)
Blocks grace time: [14 days]
Blocks max warnings: 0
Inodes grace time: [7 days]
Inodes max warnings: 0
Realtime Blocks grace time: [7 days]
Group quota state on /mnt/quotatest (/dev/sdb1)
  Accounting: ON
  Enforcement: ON
  Inode: #132 (2 blocks, 2 extents)
Blocks grace time: [14 days]
Blocks max warnings: 0
Inodes grace time: [7 days]
Inodes max warnings: 0
Realtime Blocks grace time: [7 days]
Project quota state on /mnt/quotatest (/dev/sdb1)
  Accounting: OFF
  Enforcement: OFF
  Inode: #133 (1 blocks, 1 extents)
Blocks grace time: [7 days]
Blocks max warnings: 0
Inodes grace time: [7 days]
Inodes max warnings: 0
Realtime Blocks grace time: [7 days]
[root@server ~]# xfs_quota -x -c "off -ug" /mnt/quotatest
[root@server ~]# xfs_quota -x -c "state" /mnt/quotatest
User quota state on /mnt/quotatest (/dev/sdb1)
  Accounting: ON
  Enforcement: OFF
  Inode: #131 (2 blocks, 2 extents)
Blocks grace time: [14 days]
Blocks max warnings: 0
Inodes grace time: [7 days]
Inodes max warnings: 0
Realtime Blocks grace time: [7 days]
Group quota state on /mnt/quotatest (/dev/sdb1)
  Accounting: ON
  Enforcement: OFF
  Inode: #132 (2 blocks, 2 extents)
Blocks grace time: [14 days]
Blocks max warnings: 0
Inodes grace time: [7 days]
Inodes max warnings: 0
Realtime Blocks grace time: [7 days]
Project quota state on /mnt/quotatest (/dev/sdb1)
  Accounting: OFF
  Enforcement: OFF
  Inode: #133 (1 blocks, 1 extents)
Blocks grace time: [7 days]
Blocks max warnings: 0
Inodes grace time: [7 days]
Inodes max warnings: 0
Realtime Blocks grace time: [7 days]
[root@server ~]# xfs_quota -x -c "remove -ug" /mnt/quotatest
XFS_QUOTARM: Invalid argument
[root@server ~]#

先off在remocve也没效果,仍提示错误信息,提示参数无效

阅读 1k
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题
宣传栏