Quota / fstab modification

Discussion in 'Installation/Configuration' started by eko_taas, Mar 2, 2011.

  1. eko_taas

    eko_taas New Member

  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Please modify / and /var
     
  3. lolo6tm

    lolo6tm New Member

    1and1 VPS

    Hi,

    First thanks a lot for theses greats tutorials.

    got a problem setting quotas. I own a VPS at 1and1. My fstab looks like this:

    /dev/xvda1 / ext3 defaults 1 1
    /dev/xvda2 none swap sw
    /dev/vg00/usr /usr xfs defaults 0 2
    /dev/vg00/var /var xfs defaults,usrquota 0 2
    /dev/vg00/home /home xfs defaults,usrquota 0 2
    devpts /dev/pts devpts gid=5,mode=620 0 0
    none /proc proc defaults 0 0
    none /tmp tmpfs defaults 0 0

    Adding ",usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0" to the /var line gives me the following error when trying to remount :

    > mount -o remount /var
    > mount: /var not mounted already, or bad option

    Any idea plz ?
     
  4. eko_taas

    eko_taas New Member

    get same problem if restart?
     
  5. falko

    falko Super Moderator Howtoforge Staff

    What virtualization technique is being used? And which distribution?
     
  6. lolo6tm

    lolo6tm New Member

    1and1 VPS

    A Debian Squeeze virtualized with Xen i think, how can i be sure about the virtualization engine ?

    uname -a gives me :
    Linux myhostname 2.6.26-2-xen-amd64 #1 SMP Tue Jan 25 06:13:50 UTC 2011 x86_64 GNU/Linux
     
  7. Mwoua

    Mwoua New Member

    hi,

    I know it's a bit old here, but i have the same problem

    > mount -o remount /var
    > mount: /var not mounted already, or bad option

    My fstab (without the added option)

    # <file system> <mount point> <type> <options> <dump> <pass>
    proc /proc proc defaults 0 0
    /dev/root / ubifs defaults,noatime,rw 0 0
    tmpfs /var/run tmpfs size=1M,rw,nosuid,mode=0755 0 $
    tmpfs /var/lock tmpfs size=1M,rw,noexec,nosuid,nodev,mode=177$
    tmpfs /tmp tmpfs defaults,nosuid,nodev 0 0
    /dev/mmcblk0p1 /var ext2 defaults 0 0
    /dev/mmcblk0p2 /usr ext2 defaults 0 0


    I own a small server with debian squeeze.
    Everytime i add usrjquota=aquota.user it starts bugging
     
  8. falko

    falko Super Moderator Howtoforge Staff

    What's your virtualization technology? OpenVZ, Xen, KVM, ...?
     
  9. Mwoua

    Mwoua New Member

    There's no virtualization
     
  10. falko

    falko Super Moderator Howtoforge Staff

  11. Mwoua

    Mwoua New Member

    I have followed this tutorial so far, and I got the error when i try to add the options in the fstab file.

    In my 1st post, its my original fstab file. If i add this : usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0 (from this part of the tutorial)
    The "mount -o remount /" give me the error. I've tried adding the option to "/" and to "/usr" in my fstab, it's the same
     
  12. falko

    falko Super Moderator Howtoforge Staff

    Have you tried to reboot?
     
  13. Mwoua

    Mwoua New Member

    yes, same results.
     
  14. till

    till Super Moderator Staff Member ISPConfig Developer

    The fatsb looks a bit strange, is this a virtual server?
     
  15. Mwoua

    Mwoua New Member

    Nope, it's a sheevaplug i own. If you don't know how to fix this, it's no big deal, only people i know will use it, i just wanted to provide them a classic webserver panel.

    I guess those options are only useful for the quota, so other functionalities would work fine without them?
     
  16. till

    till Super Moderator Staff Member ISPConfig Developer

    Yes, its only for website quota.
     
  17. Mwoua

    Mwoua New Member

    ok, thanks, i'll finish the tutorial without this functionality (except if you have an idea)
     
  18. till

    till Super Moderator Staff Member ISPConfig Developer

    Please post the fstab contents that you have in the file at the moment. enclodse it in code tags when you post it here so that the formatting does not get lost.
     
  19. Mwoua

    Mwoua New Member

    Code:
    # <file system> <mount point>   <type>  <options>       <dump>  <pass>
    proc            /proc           proc    defaults        0       0
    /dev/root       /               ubifs   defaults,noatime,rw     0       0
    tmpfs           /var/run        tmpfs   size=1M,rw,nosuid,mode=0755     0      0
    tmpfs           /var/lock       tmpfs   size=1M,rw,noexec,nosuid,nodev,mode=1777     0     0
    tmpfs           /tmp            tmpfs   defaults,nosuid,nodev   0       0
    /dev/mmcblk0p1  /var            ext2    defaults        0       0
    /dev/mmcblk0p2  /usr            ext2    defaults        0       0
    The last two lines are a SD card i added to have more space available that are mounted on start up

    (Can't access my server from here, the port i use for my ssh are blocked at work)
     
    Last edited: Mar 19, 2012
  20. falko

    falko Super Moderator Howtoforge Staff

    I guess ubifs is the problem, but I haven't worked with that file system so far.
     

Share This Page