LVM config and Quota?

Discussion in 'Installation/Configuration' started by d3m0nic, Jul 19, 2006.

  1. d3m0nic

    d3m0nic New Member

    Hello, ...again!:D

    I've a simple question. I've configed my system with LVM like this:
    Code:
    [[email protected] ~]# df -h
    Filesystem            Size  Used Avail Use% Mounted on
    /dev/mapper/VolGroup00-LogVol00
                         1008M  228M  730M  24% /
    /dev/sda1              99M   23M   72M  24% /boot
    none                 1004M     0 1004M   0% /dev/shm
    /dev/mapper/VolGroup00-LogVol01
                          2.0G   36M  1.9G   2% /home
    /dev/mapper/VolGroup00-LogVol02
                         1008M   38M  920M   4% /tmp
    /dev/mapper/VolGroup00-LogVol03
                          2.0G  1.3G  600M  69% /usr
    /dev/mapper/VolGroup00-LogVol04
                          102G  466M   97G   1% /var
    In CentOS 4.3 Perfect Setup, quota needs to be installed and fstab configured with usrquota and grpquota... but my fstab looks like this:
    Code:
    # This file is edited by fstab-sync - see 'man fstab-sync' for details
    /dev/VolGroup00/LogVol00 /                       ext3    defaults        1 1
    LABEL=/boot             /boot                   ext3    defaults        1 2
    none                    /dev/pts                devpts  gid=5,mode=620  0 0
    none                    /dev/shm                tmpfs   defaults        0 0
    /dev/VolGroup00/LogVol01 /home                   ext3    defaults        1 2
    none                    /proc                   proc    defaults        0 0
    none                    /sys                    sysfs   defaults        0 0
    /dev/VolGroup00/LogVol02 /tmp                    ext3    defaults        1 2
    /dev/VolGroup00/LogVol03 /usr                    ext3    defaults        1 2
    /dev/VolGroup00/LogVol04 /var                    ext3    defaults        1 2
    /dev/VolGroup00/LogVol05 swap                    swap    defaults        0 0
    /dev/hdb                /media/cdrom            auto    pamconsole,exec,noauto,managed 0 0
    /dev/fd0                /media/floppy           auto    pamconsole,exec,noauto,managed 0 0
    Which LogicalVolume do I need to edit... all of them or just LV01/home and LV04/var.

    Thanks.
     
  2. falko

    falko Super Moderator ISPConfig Developer

    If you want your web sites and mail boxes on /var, as recommended by the tutorial for CentOS, then configure quota for the /var partition.
     
  3. d3m0nic

    d3m0nic New Member

    Oke, thanks falko!
     

Share This Page