How to resize disk space on Debian12 with ISPConfig3 correctly?

Discussion in 'Installation/Configuration' started by kadikey-developer, Feb 25, 2025.

  1. Hello. my system has run out of space, and I tried to resize. I shut down VM with ISPConfig, added vitrual disk space
    Code:
    qemu-img images/ISPApache.img +300G
    and now:
    upload_2025-2-25_10-28-30.png
    upload_2025-2-25_10-29-0.png
    I tried to use parted, but got error that can't have overlapping partitions. upload_2025-2-25_10-29-52.png
    So how to increase disk space correctly. And what is for /dev/vda6?
     
  2. pyte

    pyte Well-Known Member HowtoForge Supporter

    You have to resize /dev/vda2 first and the resize vda6 and the filesystem afterwards. /dev/vda6 and /dev/vda5 cannot be mounted while resizing /dev/vda2, so either boot into a live cd and do the resizing or unmount /dev/vda6 and swapoff /dev/vda5 before resizing.

    Good Luck and make sure you have a backup at hand at all times :)
     
  3. I extended /dev/vda6, move /var/www to /home/www where /dev/vda6 is mounted and made a symbolink link from /var/www to /home/www. Is it OK for ISPConfig to use symbolik link from /var/www, because now everything is working?
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    This will not work with a symlink. If you want to use a different partition, then please follow this tutorial:

    https://www.howtoforge.com/use_moun...ctory_of_a_ispconfig_server_to_a_new_location
     
  5. Thanks! That's the way I was trying to find. But when I tried to unmount the directory, I got a message: "umount: /var/www/clients/client1/web1/log: target is busy", and the apache2 is stopped. lsof +D /var/www/clients/client1/web1/log doesn't show anything, fuser -vm /var/www/clients/client1/web1/log shows a lot. How to act in this situation, force unmount?
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    Stop services like apache and all PHP-FPM first.
     
  7. I used "umount -l" and also stopped all PHP-FPM, and this worked for me. Thanks!
     

Share This Page