quota

1. stan obecny:
[root@localhost home]# quotaon -v /home/toto
quotaon: Mountpoint (or device) /home/toto not found or has no quota enabled.
[root@localhost home]# quotaon -p /home/toto
quotaon: Mountpoint (or device) /home/toto not found or has no quota enabled.
[root@localhost home]#

2. edycja pliku /etc/fstab:
/dev/mapper/vg_fs-lv_home /home ext4 defaults,usrquota 1 2
mount -o remount /home
/dev/mapper/vg_fs-lv_home on /home type ext4 (rw,usrquota)

3. edycja quoty dla usera
[root@localhost toto]# edquota -u toto
Disk quotas for user toto (uid 501):
Filesystem blocks soft hard inodes soft hard
/dev/mapper/vg_fs-samba_lv 0 0 0 0 0 0
/dev/mapper/vg_fs-lv_home 56 1 35 14 35 200

[root@localhost home]# quota toto
Disk quotas for user toto (uid 501):
Filesystem blocks quota limit grace files quota limit grace
/dev/mapper/vg_fs-lv_home
56* 1 35 6days 14 35 200
[root@localhost home]#

[root@localhost home]# quotaoff -v -a
/dev/mapper/vg_fs-samba_lv [/samba]: user quotas turned off
/dev/mapper/vg_fs-lv_home [/home]: user quotas turned off
[root@localhost home]# quotaon -v -a
/dev/mapper/vg_fs-samba_lv [/samba]: user quotas turned on
/dev/mapper/vg_fs-lv_home [/home]: user quotas turned on
[root@localhost home]#