Re: Enabling quotas on an already existing file system



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Padiyath Sreekumaran wrote:
<snip>
I want to implement userquota on this file system. I would like to
know the following:

1. Can I implement quota on this file system?
2. If I can, Can I do the following:

a. unmount /data
there is no need to do this.

b. mount with following command:
/dev/vg00/ftp_data /data xfs defaults,usrquota 1 2

this can also be written as:
/dev/vg00/ftp_data /data xfs usrquota 1 2

'defaults' is implicit and is just a placeholder in that field.

then try this:

mount -o remount /data
which will change the mount options on /data to match /etc/fstab.

c. quotacheck -avum

quotacheck -cm /data

d. quotaon -a

fine


d. then I will define the quota with "edquota username /data"

edquota username
is enough.
to do this non-interactively, you could use:
setquota -u <username> block_soft block_hard inode_soft inode_hard /data
e.g.
setquota -u bob 5120 5500 0 0 /data

Regards

Stuart
- --
Stuart Sears RHCA RHCX
To err is human, to forgive is Not Company Policy.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFEoWYzamPtx1brPQ4RAna+AJ0ebGwln78EK0NqvC5JvLZp9FtFSQCeLjQ8
fMvgtppLg/3aHaTXWIL/Q6I=
=LNpt
-----END PGP SIGNATURE-----

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list



Relevant Pages