The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Fstab Help for quotas

Discussion in 'General Discussion' started by jethbrown, Dec 15, 2006.

  1. jethbrown

    jethbrown Member

    Joined:
    Nov 28, 2004
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    I just need some input, I am trying to get quotas working on my machine. The problem I am having is it shows 0 for disk usage for my clients in WHM. I use Fedora 4 and the Latest Release Build.

    My Fstab looks like this:

    # This file is edited by fstab-sync - see 'man fstab-sync' for details
    LABEL=/ / ext3 defaults,usrquota 1 1
    LABEL=/boot /boot ext3 defaults 1 2
    none /dev/pts devpts gid=5,mode=620 0 0
    none /proc proc defaults 0 0
    none /dev/shm tmpfs rw,noexec,nosuid,nodev 0 0
    /dev/hdb1 swap swap defaults 0 0
    /dev/hdb2 /home2 ext3 defaults 1 2
    /dev/varTmp /var/tmp ext3 rw,noexec,nosuid,nodev,bind 0 0
    /dev/tmp /tmp ext3 loop,rw,nosuid,noexec 0 0

    I think I need to add /home and /home2 as well. as these are the locations my whm puts client files.

    LABEL=/home /home ext3 defaults,usrquota
    LABEL=/home2 /home2 ext3 defaults,usrquota

    Question 1: Do I need to add the "1 1 or 1 2 or 0 0" behind them and what is that for?

    Question 2: I have seen some examples searching that show it as ext2 rather then ext3. are my entries correct?

    Question 3: When I save the file, Is this the command I use to remount: mount -o remount /

    Question 4: Do I have to restart the server, or can I just proceed with /scripts/initquotas and /scripts/fixquotas?

    Thanks
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    You only need mountpoints for /home if they're separate partitions, otherwise what you have in /etc/fstab looks correct as it is.

    1. The primary ext3 partition (/ in your case) needs 1 1 all the ofoolowing ext3 partitions should be 1 2. The first of the numbers tells the OS whether the disk needs dunping on reboot, the second of these numbers tells the fsck program (check checks file system integrity at boot time) the order in which to perform disk checks. More information can be found with:

    man fstab

    2. Your entries are most likely correct. ext2 is a similar file system to ext3 buth without journalling. ext3 is almost exclusively used these days on Linux servers running RHE/CentOS/FC as it's the default on installation

    3. That is the correct command to remount the volume

    4. Sometimes the remount is enough, but if you've changed the / partition you usually need to do a reboot before performing /scripts/fixquotas - I'd go with a reboot to be sure.
     
  3. jethbrown

    jethbrown Member

    Joined:
    Nov 28, 2004
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    Thank you very much. I understand it now. I wish there was a book out for us newer people like "cpanel/whm for dummies" with some SSH thrown into it. If there was, I would buy it. Give me a PHP scripting task and I can do it in my sleep, but this stuff is all new to me.

    I am going to get Layered Tech to fix the quotas issues, since none of my attempts seem to be working. I have clients using up 400 megs of space, but WHM reports it as zero usage. Hard to manage a server, when you can't tell how much space there is to use.
     
Loading...

Share This Page