adding hd for a site

Discussion in 'HOWTO-Related Questions' started by kwickcut, Oct 13, 2011.

  1. kwickcut

    kwickcut Member HowtoForge Supporter

    i know how to add a new hard drive to the serve. question is how can i add a hard drive to the server and give access to this drive for one site.

    say i have 2 drives
    /dev/sda1
    /dev/sdb1
    /dev/sdc1

    i want /dev/sd1 and /dev/sdb1 to be general for sites 1,2,3,4 and want /dev/sdc1 to be just for site 3 for extra storage

    now all sites are running so i dont know if this is an issue


    kwick
     
  2. falko

    falko Super Moderator Howtoforge Staff

    Just put the document root of site3 on the third hard drive.
     
  3. kwickcut

    kwickcut Member HowtoForge Supporter

    so are you saying if the old site directory is say /var/www/clients/client#/web# i should make it /dev/sdc1/folder



    kwick
     
  4. Franz

    Franz Member

    make backup of: /var/www/clients/client#/web#

    mount sdc1 to /var/www/clients/client#/web# directory

    restore data
     
  5. falko

    falko Super Moderator Howtoforge Staff

    You need to mount sdc1 somewhere first, as Franz explained.
     
  6. kwickcut

    kwickcut Member HowtoForge Supporter

    would this work

    Code:
    sudo mount /dev/sdb1 /mnt/sdb1 -t ext3 /var/www/clients/client#/web#

    kwick
     
  7. Franz

    Franz Member

    yes it will work, but you have to backup data before.
     
  8. kwickcut

    kwickcut Member HowtoForge Supporter

    ty



    kwick
     

Share This Page