Quick question about how much space to use for ISPconfig install

Discussion in 'Installation/Configuration' started by JohnnyBeGood, Mar 29, 2015.

  1. JohnnyBeGood

    JohnnyBeGood Member

    Hi,

    I followed "The Perfect Server - Ubuntu 14.04 (Apache2, PHP, MySQL, PureFTPD, BIND, Dovecot, ISPConfig 3)"
    On my dedicated server panel I have option to chose how much space for / partition /home partition and /swap
    So I modified it like this:

    Code:
    root@linux:~# df -h
    Filesystem      Size  Used Avail Use% Mounted on
    /dev/md2        241G  4.0G  225G   2% /
    udev             16G  4.0K   16G   1% /dev
    tmpfs           3.2G  944K  3.2G   1% /run
    none            4.0K     0  4.0K   0% /sys/fs/cgroup
    none            5.0M  4.0K  5.0M   1% /run/lock
    none             16G     0   16G   0% /run/shm
    none            100M     0  100M   0% /run/user
    /dev/md3        1.6T   71M  1.5T   1% /home
    root@linux:~# 
    But ISPconfig installs websites on / instead of /home where there's plenty of space.
    How do I tell now ISPconfig to use /home for everything?

    TIA
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    The sites are in /var/www and not /home but your server uses a wrong (Desktop) partitioning scheme with a large /home instead of a large /var partition. Pointing the sites to /home makes no sense as /var/www is compile dinto the apache package of the Linux distribution, so it wont work even if you would change the path in ISPConfig.

    What ypu can do is this if you dont want to reinstal the server:

    https://www.howtoforge.com/use_moun...ctory_of_a_ispconfig_server_to_a_new_location
     
  3. JohnnyBeGood

    JohnnyBeGood Member

    Thanks for the reply!

    I'm moving to a new server and this is how default template looks like:
    [​IMG]

    I would like to do it right first time. Would you suggest to re-install OS and have 20GB for /home and the rest for / ?

    Ubuntu official partitioning scheme "Basic Partitioning Scheme for a 2TB Desktop HDD" shows similar as my server default temple?
     
    Last edited: Mar 30, 2015
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Replace /home with /var in your partition scheme. You dont need a separate /home partition as it eill be empty and not used. Like you see on the ubuntu page, they show a desktop scheme and not a server scheme, but sou install a server here and not a desktop.
     
  5. JohnnyBeGood

    JohnnyBeGood Member

    Finally found some free time to finish this new server configuration.
    New server doesn't have anything on it so I don't mind reinstalling it.
    What I failed to mention in my original post is that this is Xubuntu Desktop 14.04 "Trusty Tahr" (w/ XFCE + x2go) which explains desktop partitioning scheme.
    Having said can I get away with not having /home partition or do I rename it from /home to /var when doing install?
    What would be best to specify for size?
    How would you partition it?
    If I delete /home partition during fresh install then desktop user will have access to entire HD free space?
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    sure. you can do that in the ubuntu installer during install. It contains a editor to set / change the partition scheme.

    Rename the largest partition from /home to /var during install.
     
  7. JohnnyBeGood

    JohnnyBeGood Member

    Ok, If you would have 2TB RAID 1 HD how much you would give to /var ? and the rest would be for / ?
    After that it would look like this:
    / size ?
    /var size ?
    /swap size?
     
  8. JohnnyBeGood

    JohnnyBeGood Member

    This is what I did:
    [​IMG]

    and followed this tutorial https://www.howtoforge.com/perfect-...hp-mysql-pureftpd-bind-dovecot-ispconfig-3-p5
    now I'm stuck on this section:
    Edit /etc/fstab. Mine looks like this (I added ,usrjquota=quota.user,grpjquota=quota.group,jqfmt=vfsv0 to the partition with the mount point /):
    because it said mount point / and I have /var partition
    Code:
    root@linux:~# df --human
    Filesystem      Size  Used Avail Use% Mounted on
    /dev/md2        296G  3.4G  277G   2% /
    udev             16G  4.0K   16G   1% /dev
    tmpfs           3.2G  936K  3.2G   1% /run
    none            4.0K     0  4.0K   0% /sys/fs/cgroup
    none            5.0M  4.0K  5.0M   1% /run/lock
    none             16G     0   16G   0% /run/shm
    none            100M     0  100M   0% /run/user
    /dev/md3        1.5T  784M  1.5T   1% /var
    root@linux:~# 
    Here's my default fstab
    Code:
    # <file system>    <mount point>    <type>    <options>    <dump>    <pass>
    /dev/md2    /    ext4    errors=remount-ro,relatime    0    1
    /dev/md3    /var    ext4    defaults,relatime    1    2
    /dev/sda4    swap    swap    defaults    0    0
    /dev/sdb4    swap    swap    defaults    0    0
    proc        /proc    proc    defaults        0    0
    sysfs        /sys    sysfs    defaults        0    0
    devtmpfs    /dev    devtmpfs    rw    0    0
    Do I add it to /dev/md3 like this?
    Code:
    # <file system>    <mount point>    <type>    <options>    <dump>    <pass>
    /dev/md2    /    ext4    errors=remount-ro,relatime    0    1
    /dev/md3    /var    ext4    defaults,relatime,usrjquota=quota.user,grpjquota=quota.group,jqfmt=vfsv0    1    2
    /dev/sda4    swap    swap    defaults    0    0
    /dev/sdb4    swap    swap    defaults    0    0
    proc        /proc    proc    defaults        0    0
    sysfs        /sys    sysfs    defaults        0    0
    devtmpfs    /dev    devtmpfs    rw    0    0
    
    Or to make it simple I get rid of other partition and have just this?

    [​IMG]




    Thanks!
     
    Last edited: Apr 11, 2015
  9. till

    till Super Moderator Staff Member ISPConfig Developer

    Yes. You addhe quota settings on the /var partition.
     
  10. JohnnyBeGood

    JohnnyBeGood Member

    Thanks for the reply! I ended up removing /home partition completely and just leaving / and /swap
    In the future I should not have issues with running out of space.
     

Share This Page