Pb disk

Discussion in 'Installation/Configuration' started by Titalium, Oct 25, 2017.

  1. Titalium

    Titalium New Member

    Hello,
    I have a problem with the disk space from my ISPCONFIG server...
    [​IMG]

    Anyone have a solution to increase the size without losing data ?
    Thank you in advance.

    A French man who doesn't speak English very well.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

  3. Titalium

    Titalium New Member

    Thank's but in my folder, i have shortcut from directory user :
    [​IMG]
    he redirects to /var/www/clients :

    [​IMG]
     
  4. Taleman

    Taleman Member

    So the website files are under /var/www/clients? Then You can fix the too full root partition by doing as Till wrote, and move the /var/www/clients directory tree to somewhere under /home, since there is lots of space there.

    You do not state what operating system is used nor what kind of hardware. But the disk partitions seem like they are Multiple Device stuff, /dev/md1 looks like that. So maybe it is possible to change disk partition sizes with the whatever software is used to create those md devices?

    If still no luck, take disk image copies of those partitions, with tools like Norton Ghost or Clonezilla http://clonezilla.org/. Then install a new host with better disk partition sizes, and copy the disk images to those partitions.

    So there are options. I would say the way Till advised is fastest to do and easiest.
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    The instructions I posted are moving the full /var/www tree to another directory incl. the symlinks. Just follow the tutorial I posted, it is written for the exact problem you are facing and made for servers that run ISPConfig.
     
  6. Titalium

    Titalium New Member

    I have make the instructions, but it the same probleme ..
     
  7. Poliman

    Poliman Member

    I have similar problem as I wrote in other thread:
    "I have Cloud instance from OVH with ISPconfig 3.1.7p1 and Ubuntu Server 16.04 LTS. HDD size is around 50GB. I can only migrate to higher version of instance with faster CPU, more RAM, and more capacious HDD but it generates unnecessary costs. Second option is additional HDD. After buy I need to mount it. After this operation I will have in my system two disks - main 50GB and mounted somewhere secondary with some free space. I need to move /web/ directory (there are websites files which take a lot of space) of each user to this secondary HDD. The main problem is how to do this? Does it break ISP? Created databases and other ISP and Ubuntu files don't need to be moved anywhere. Please be patient with me and help me. :)

    PS
    I think that probably I need to move whole user account, not only /web directory but I don't know what is possible and faster."

    Thanks God this thread appear on horizon. I mounted new disk under /mnt/additionaldisk:
    Code:
    [email protected]:~# lsblk
    NAME   MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
    sda      8:0    0   20G  0 disk
    ├─sda1   8:1    0   19G  0 part /
    ├─sda2   8:2    0    1K  0 part
    └─sda5   8:5    0 1022M  0 part [SWAP]
    sdb      8:16   0    2G  0 disk
    └─sdb1   8:17   0    2G  0 part /mnt/additionaldisk
    sr0     11:0    1 1024M  0 rom
    
    Then:
    Code:
    [email protected]:/var/vmail# service postfix stop
    [email protected]:/var/vmail# service dovecot stop
    [email protected]:/var/vmail# service apache2 stop
    [email protected]:~# mv /var/vmail /mnt/additionaldisk/
    [email protected]:~# mkdir /var/vmail
    [email protected]:~# chown vmail:vmail /var/vmail
    [email protected]:~# chattr -i /var/www/clients/client*/web*
    [email protected]:~# umount /var/www/clients/client*/web*/log
    [email protected]:~# mv /var/www /mnt/additionaldisk/
    [email protected]:~# mkdir /var/www
    [email protected]:~# nano /etc/fstab
    
    and in /etc/fstab added:
    Code:
    /mnt/additionaldisk/vmail /var/vmail none bind,nobootwait,_netdev 0 0
    /mnt/additionaldisk/www /var/www none bind,nobootwait,_netdev 0 0
    But after I did "mount -a" I got message in console:
    Code:
    [email protected]:~# mount -a
    mount: mount point /var/www/clients/client1/web1/log does not exist
    Did I understand well @till tutorial?
     
  8. till

    till Super Moderator Staff Member ISPConfig Developer

    Try to put the two new bind mount lines in fstab before the bind mount lines for the log directories.
     
    Poliman likes this.
  9. Poliman

    Poliman Member

    If all commands which I put in earlier post were in good order I can say that your post Till done the job - "mount -a" doesn't give any message. Unbeliveable it's that simple.
     
    Last edited: Nov 2, 2017

Share This Page