Two Hard Drives

Discussion in 'Installation/Configuration' started by dayjahone, Jun 20, 2007.

  1. dayjahone

    dayjahone Member

    I have two hard drives in my machine, one is small and I want the site storage to happen on the other, much larger drive. I made the larger drive /home and it shows up in fstab. The ISPConfig install went fine. Is there anything else I need to do?
     
  2. omni

    omni New Member

    all the site storage is in /var/www

    you can simply mount the larger hard drive as that volume.

    stop the ispconfig service(s)
    Code:
    /etc/init.d/ispconfig_server stop
    copy the existing contents to a new folder (rename it)
    Code:
    mv /var/www /var/www2
    mount the new /var/www (edit your fstab)

    Code:
    mount /var/www
    ('mount -a' would work as well)

    copy the old files to the new drive (folder)
    Code:
    cp /var/www2/* /var/www/*
    now verify files copied
    Code:
    ls /var/www
     ls /var/www2
    now restart the service
    Code:
    /etc/init.d/ispconfig_server start
    now verify everything is working as it should
    check it via your browser,etc.

    now remove the old folder
    Code:
    rm -rf /var/www2
     
    Last edited: Jun 20, 2007
  3. dayjahone

    dayjahone Member

    That's what I did, only I thought ISPConfig stores everything in /home/www, not /var/www?
     
  4. omni

    omni New Member

    well for my setup (the perfect setup on ubuntu 6.06LTS), everything is in /var/www

    you can verify by doing an ls in either directory, you should see "web1" "web2" etc.
     
  5. falko

    falko Super Moderator Howtoforge Staff

    It depends on what you chose during ISPConfig installation. Did you use standard or expert installation mode? Which distribution do you use?
     
  6. dayjahone

    dayjahone Member

    I used standard. On my Suse box, it's in /home, but on Ubuntu, it's /var.
     
  7. falko

    falko Super Moderator Howtoforge Staff

    For older ISPConfig versions, everything is stored in /home/www if you choose the standard mode. In newer ISPConfig versions, the location depends on your distribution. For example, for SuSE, it's /srv/www, and for Ubuntu /var/www.
     

Share This Page