i-MSCP in Proxmox 4.x LXC - Einhängepunkte der Domains auf falschem Volume

  • Hallo liebe i-MSCP'ler,


    Ich habe eine i-MSCP Installation in einem LXC Container unter Proxmox 4.x


    Allerdings habe ich ein Problem mit den Einhängepunkten die von i-MSCP für jede Domain erzeugt werden.


    In meinem Server habe ich ein Hardware Raid 1 mit 300GB SAS Platten und ein Hardware Raid 1 mit 3TB SATA Enterprise Platten.


    Den LXC Container wollte ich auf den SAS Platten laufen lassen,
    während für '/var/www' sowie '/var/mail' jeweils ein eigenes Volume eingebunden ist,
    welches auf den Ent.SATA Platten liegt.


    Nun habe ich allerdings das Problem, dass i-MSCP die 'extra' Mountpoints für die einzelnen Domains immer auf der SAS Platte anlegt,
    obwohl diese auf den Ent.SATA abgelegt werden sollten.


    Das sieht dann folgendermaßen aus: (Domains habe ich fürs Forum umbenannt)

    Meine Frage ist nun, wie ich i-MSCP dazu bringen kann, dass diese Mounts auf dem vorgesehen Volume angelegt werden.



    Ich hoffe ihr könnt mir dabei helfen.
    Vielen Dank schon mal im voraus. :)

  • Mehr infos zum System und bitte in English ansonsten wird @Nuxwin oder ein anderes team Mietglied diesen thread löschen.




    Kannnst du übrigends aucch hier lessen

    my System :

    - Distribution: Debian | Release: 9.13 | Codename: wheezy
    - i-MSCP Version: i-MSCP 1.5.3| Build: 20181208 | Codename: Ennio Morricone
    - Plugins installed: ClamAV (v. 1.3.0), Mailgraph (v 1.1.1), OpenDKIM (v 2.0.0), SpamAssassin (v 2.0.1)
    - LetsEncrypt (v3.3.0), PhpSwitcher (v 5.0.5), RoundcubePlugins (v 2.0.2)YubiKeyAuth 1.1.0

  • @protz3000


    There are no problems with your setup.

    • Your /var/log directory is stored inside your SAS and so, all Apache2 logs are stored there.
    • Your /var/www directory is stored inside your SATA

    So what occurs there? i-MSCP bind mounts the HTTP log directories from the /var/log/apache2 directory in your /var/www directory. There is nothing wrong in the df -h output. If you don't understand how bind mount works, think it like for symlinks:


    /var/www/virtual/domain1.de/logs/sub1.domain1.de is a symlink to /var/log/apache2/sub1.domain1.de which is stored on /dev/mapper/sas-vm--101--disk--1


    Note: There is no symlink here, I'm just trying to explain you why you see such output which is expected ;)

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • Mehr infos zum System und bitte in English ansonsten wird @Nuxwin oder ein anderes team Mietglied diesen thread löschen.

    System-Info:
    - Proxmox 4.x LXC Container (wie bereits geschrieben)
    - Debian 8 Jessie (steht unter meinem Profil (Linux Distro: Debian Jessie))
    - i-MSCP 1.2.9 (Probleme mit Upgrade(Configs werden überschrieben),
    aber das ist ein anderes Problem und da es nur um den Mountpoint geht, hielt ich es nicht für relevant)


    - Englisch kann ich nicht so gut, deswegen frag ich ja im "GERMAN Corner"


    ------------------------------------------------------------------------------------------------------------
    Aber ich versuche es mal in Englisch zu beschreiben: / But i try to describe it in English:
    ------------------------------------------------------------------------------------------------------------


    I have an i-MSCP Installation in an LXC Container under Proxmox 4.x


    but i have a problem with the mountpoints created from i-MSCP for every domain


    In my server i have installed:
    - hardware raid 1 with 2x 300GB SAS disks
    - hardware raid 1 with 2x 3TB SATA Enterprise Disks


    The LXC container runs on the SAS Disks, while i have mounted additional volumes for each of '/var/www' and '/var/mail', which based on the SATA Enterprise disks.


    At the Moment i have the Problem that the 'extra' mountpoints, which were created from i-MSCP under '/var/www' are not on the SATA Enterprise Disks, but on the SAS Disks (where everything except '/var/www' and '/var/mail' should run)


    You can see that in the Code Section in my last post (i have changed the domain names for the forum)


    My Question is now:
    How can i configure i-MSCP, that it mounts on the volume as foreseen.


    Because my English is not so good and I am not sure if it is understandable,
    here again as it is intended for the volumes:
    1. Virtual Volume on SAS Disks (sas-vm--101--disk--1) is mounted to root filesystem ( / )
    2. Virtual Volume on SATA Enterprise Disks (sata-vm--101--disk--1) is mounted to ( /var/www )
    3. Virtual Volume on SATA Enterprise Disks (sata-vm--101--disk--2) is mounted to ( /var/mail )
    But the additional mounts from i-MSCP are created on 'sas-vm--101--disk--1' and not as intended on 'sata-vm--101--disk--1' (witch is mounted to '/var/www' )


    I hope you can help me.
    Thank you in advance.

  • But the additional mounts from i-MSCP are created on 'sas-vm--101--disk--1' and not as intended on 'sata-vm--101--disk--1' (witch is mounted to '/var/www' )

    There is no problem at all. Mount points are not created in sas-vm--101--disk--1. Directories are mounted from sas-vm--101--disk--1 on sata-vm--101--disk--1 as expected. For instance:

    Shell-Script
    1. /dev/mapper/sas-vm--101--disk--1 16G 15G 624M 96% /var/www/virtual/domain1.de/logs/sub1.domain1.de

    Here, the /var/log/apache2/logs/sub1.domain1.de directory which is stored in your SAS (sas-vm--101--disk--1) is mounted on /var/www/virtual/domain1.de/logs/sub1.domain1.de which is stored in your SATA (sata-vm--101--disk--1). Here, the mount point is /var/www/virtual/domain1.de/logs/sub1.domain1.de and not /var/log/apache2/logs/sub1.domain1.de (/dev/mapper/sas-vm--101--disk--1) ;)


    Read my previous answer please.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • thanks @Nuxwin for the tip with the bind mount, I have absolutely no longer thought of this possibility.
    then i have checked the original positions with findmnt.
    Also i only must mount an additional volume for /var/log or i map it as I need it.


    Thanks for that.

  • @protz3000


    You're welcome ;)

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206