separate /var /tmp /boot on lvm

Discussion in 'Installation/Configuration' started by u4david, Mar 4, 2010.

  1. u4david

    u4david New Member

    How would this work out to have /var nad /tmp on separate partitions?



    Concerned about Quotas on /var to function properly with Ispconfig3 and have /tmp mounted with noexec.

    Do not think that separate /boot would create any complications.

    Could someoen propose the partitioning schema for Ispconfig3 with

    200 gb harddrive to be used on.

    and possible changes how to make it all work together as mentioned?
     
  2. till

    till Super Moderator Howtoforge Staff HowtoForge Supporter ISPConfig Developer

    You can set the partitions when you install your server.

    I would not make that many different partitions as you will sooner or later get troble with it if one partition gets full. But if you really want to make many partitions, make sure that you have a large /var partition as websites and email accounts are stored in /var (on ubuntu, debian, centos and fedora). Only on opensuse, the websites are in /srv
     
  3. u4david

    u4david New Member

    what would be the scoop on that?

    sue i can set them up.

    but what do i have to do to mount them so quota is working right on separate /var

    and /tmp noexec will not brake somethink in ispconfig3

    alsi sizes for ecah partition for 200 gb hd would be nice to know the ratioes.

    This is my personal server vith about 20 sites oriented on photo gallery and social community.
     
  4. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

    Add ,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0 to the /var partition in /etc/fstab and then run
    Code:
    touch /var/aquota.user /var/aquota.group
    chmod 600 /var/aquota.*
    mount -o remount /var
    
    quotacheck -avugm
    quotaon -avug
     
  5. u4david

    u4david New Member

    i did that with error

    i did and i got error i do not remember what it was but something that the options are incorrect or something.
    I will post the exact message when i get to it
     
  6. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

    Please post your /etc/fstab as well.
     
  7. u4david

    u4david New Member

    fstab before separate var......

    proc /proc proc defaults 0 0
    /dev/mapper/vg--u4s2-lv--root / ext4 errors=remount-ro,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0 0 1
    /dev/mapper/vg--u4s2-lv--boot /boot ext4 defaults 0 2
    /dev/mapper/vg--u4s2-lv--tmp /tmp ext4 defaults 0 2
    /dev/mapper/vg--u4s2-lv--swap none swap sw 0 0
    /dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
    /dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0


    this is before the separate /var

    I will implement /var as is own partition (logical lvm )when I start running out off space.
     
  8. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

    Do you want ot implement quota on / as well, or just on /var?
     
  9. u4david

    u4david New Member

    Ispconfig3

    well that is what i'm not sure.
    I'm using ispconfig3 and for user the quota is definitively needed on war but I think that user can be jailed to home directory on root also.

    Just won the ISPconfig3 to not get broken and user quota working properly system wide.
     
  10. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

    The problem is that you cannot set up quota on /var as long as there's no such partition...
     
  11. u4david

    u4david New Member

    i got that

    yes I will make new partition for /var that is definite.

    What i wonder is hot to enable quota on the new partition so it works seamlessly with ISPconfig3 quota system
     
  12. u4david

    u4david New Member

    Ok so what

    Ok, now I need to expand my system.

    So I would like to add the /var partition.

    Still concerned about the quota.Do not wan to brake my shizeled ispconfig3.
    AND would like to keep the quota in control of user space.

    # <file system> <mount point> <type> <options> <dump> <pass>
    proc /proc proc defaults 0 0
    /dev/mapper/vg--u4s2-lv--root / ext4 errors=remount-ro,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0 0 1
    /dev/mapper/vg--u4s2-lv--boot /boot ext4 defaults 0 2
    /dev/mapper/vg--u4s2-lv--tmp /tmp ext4 defaults 0 2
    /dev/mapper/vg--u4s2-lv--swap none swap sw 0 0
    /dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
    /dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0


    Side note: (/var will be added using lvm just like all the above partitions -that does not changes anything quota vise and this post is not about how to do LVM.)

    So what kind of mount options to assign to the new /var partition and how to enable quota so it will nicely interoperate with my current ispconfig3?

    (Do not over look my current set up on the root partition as I feel that it may play some role with quota .)
     
: /var, quota

Share This Page