quotaon 中文man页面

系统
执行quotaon指令可开启用户和群组的才磅秒年空间限制,各分区的文件系统根目录必须有quota.user和quota.group配置文件。

NAME

quotaon - 开启关闭文件系统配额  

总览 (SYNOPSIS)

quotaon [ -e | d ] [ -vug ] filesystem...
quotaon [ -e | d ] [ -avug ]

quotaoff [ -e | d ] [ -vug ] filesystem...
quotaoff [ -e | d ] [ -avug ]  

描述 (DESCRIPTION)

quotaon 通知系统在一个或者几个文件系统上使用磁盘配额。 quotaoff 通知系统取消某一个特定的文件系统的所有磁盘配额。 被指定的文件系统必须已经装载。 quotaon 要求在指定的文件系统的根目录下有相应的配额文件, 用户配额文件是 aquota.user, 组配额文件是 aquota.group。 这些文件可以是用 convertquota(8) 命令转换旧的配额文件而来, 也可以是用 quotacheck(8) 命令创建的一个全新的文件。 默认是用户和组配额都被允许。  

选项 (OPTIONS)

-e
开启指定文件系统配额。 当程序名是 quotaon 时, 此选项是默认的。
-d
关闭指定文件系统配额。 当程序名是 quotaoff 时, 此选项是默认的。
-a
当用在任何文件系统名称的地方时, quotaon/quotaoff 将允许/禁止所有在 /etc/mtab 中指定的文件系统为有磁盘配额的读-写。 这个选项一般被用在系统启动时开启配额。
-v
为每个开启或关闭配额的文件系统显示一条消息。
-u
处理用户配额。 这是默认选项。
-g
处理组配额。

文件 (FILES)

aquota.user
文件系统根目录下的用户配额文件
aquota.group
文件系统根目录下的组配额文件
/etc/mtab
已装载的文件系统表

参见 (SEE ALSO)

quota(1), quotactl(2), fstab(5), convertquota(8), quotacheck(8), setquota(8), edquota(8), repquota(8)   

#p#

NAME

quotaon, quotaoff - turn filesystem quotas on and off  

SYNOPSIS

/sbin/quotaon [ -vugfp ] [ -F format-name ] filesystem...
/sbin/quotaon [ -avugfp ] [ -F format-name ]

/sbin/quotaoff [ -vugp ] [ -x state ] filesystem...
/sbin/quotaoff [ -avugp ]  

DESCRIPTION

quotaon

quotaon announces to the system that disk quotas should be enabled on one or more filesystems. The filesystem quota files must be present in the root directory of the specified filesystem and be named either aquota.user (for version 2 user quota), quota.user (for version 1 user quota), aquota.group (for version 2 group quota), or quota.group (for version 1 group quota).

XFS filesystems are a special case - XFS considers quota information as filesystem metadata and uses journaling to provide a higher level guarantee of consistency. There are two components to the XFS disk quota system: accounting and limit enforcement. XFS filesystems require that quota accounting be turned on at mount time. It is possible to enable and disable limit enforcement on an XFS filesystem after quota accounting is already turned on. The default is to turn on both accounting and enforcement.

The XFS quota implementation does not maintain quota information in user-visible files, but rather stores this information internally.  

quotaoff

quotaoff announces to the system that the specified filesystems should have any disk quotas turned off.  

OPTIONS

quotaon

-a
All automatically mounted (no noauto option) non-NFS filesystems in /etc/fstab with quotas will have their quotas turned on. This is normally used at boot time to enable quotas.
-v
Display a message for each filesystem where quotas are turned on.
-u
Manipulate user quotas. This is the default.
-g
Manipulate group quotas.
-p
Instead of turning quotas on just print state of quotas (ie. whether. quota is on or off)
-f
Make quotaon behave like being called as quotaoff.

quotaoff

-F format-name
Report quota for specified format (ie. don't perform format autodetection). Possible format names are: vfsold (version 1 quota), vfsv0 (version 2 quota), xfs (quota on XFS filesystem)
-a
Force all filesystems in /etc/fstab to have their quotas disabled.
-v
Display a message for each filesystem affected.
-u
Manipulate user quotas. This is the default.
-g
Manipulate group quotas.
-p
Instead of turning quotas off just print state of quotas (ie. whether. quota is on or off)
-x delete
Free up the space used to hold quota information (maintained internally) within XFS. This option is only applicable to XFS, and is silently ignored for other filesystem types. It can only be used on a filesystem with quota previously turned off.
-x enforce
Switch off limit enforcement for XFS filesystems (perform quota accounting only). This option is only applicable to XFS, and is silently ignored for other filesystem types.

NOTES ON XFS FILESYSTEMS

To enable quotas on an XFS filesystem, use mount(8) or /etc/fstab quota option to enable both accounting and limit enforcement. quotaon utility cannot be used for this purpose.

Turning on quotas on an XFS root filesystem requires the quota mount options be passed into the kernel at boot time through the Linux rootflags boot option.

To turn off quota limit enforcement on any XFS filesystem, first make sure that quota accounting and enforcement are both turned on using repquota -s. Then, use quotaoff -vo to disable limit enforcement. This may be done while the filesystem is mounted.

Turning on quota limit enforcement on an XFS filesystem is achieved using quotaon -v. This may be done while the filesystem is mounted.  

FILES

aquota.user or aquota.group
quota file at the filesystem root (version 2 quota, non-XFS filesystems)
quota.user or quota.group
quota file at the filesystem root (version 1 quota, non-XFS filesystems)
/etc/fstab
default filesystems

SEE ALSO

quotactl(2), fstab(5), repquota(8).

责任编辑:韩亚珊 来源: 互联网
相关推荐

2011-08-24 16:48:36

man中文man

2011-08-15 10:21:09

man中文man

2011-08-11 16:11:49

at中文man

2011-08-25 10:21:56

man.conf中文man

2011-08-12 14:58:05

killall中文man

2011-07-15 16:58:36

ac中文man

2011-08-15 11:10:48

more中文man

2011-08-25 17:03:51

pclose中文man

2011-08-15 14:10:37

tar中文man

2011-08-16 10:42:30

rmmod中文man

2011-08-18 13:57:38

acct中文man

2011-08-23 17:49:36

zdump中文man

2011-08-15 15:10:49

wall中文man

2011-08-23 15:06:03

quotastats中文man

2011-08-15 17:35:50

ar中文man

2011-08-25 09:07:16

suffixes中文man

2011-08-18 15:21:37

autofs中文man

2011-08-25 15:19:39

dirname中文man

2011-08-25 17:34:50

setlinebuf中文man

2011-08-15 15:17:14

ac中文man
点赞
收藏

51CTO技术栈公众号