Results 1 to 8 of 8
  1. #1
    Join Date
    Nov 2006
    Posts
    328

    Question How can i move 1 domain to secondary drive?

    Hi,

    I am looking for a tutorial to move a single domain to a secondary drive due to the primary drive is full and this domain contain mostly large media files.

    So how can i do this? so that the all file is move to the secondary drive and if i use FTP to upload files, these files then are stored in secondary drive.

    I am using CentOS 5.0 with Plesk 8.2.

    Thanks
    <<please see forum rules for signature formatting guidelines>>

  2. #2
    Join Date
    Oct 2004
    Location
    Kerala, India
    Posts
    4,750
    You can change the document root of the domain to point to a path in the secondary drive. Also change the home directory of this domain to reflect that path.
    David | www.cliffsupport.com
    Affordable Server Management Solutions sales AT cliffsupport DOT com
    CliffWebManager | Access WHM from iPhone and Android

  3. #3
    Join Date
    Nov 2006
    Posts
    328
    Can you please tell me little more about it?
    <<please see forum rules for signature formatting guidelines>>

  4. #4
    Join Date
    Apr 2005
    Posts
    535
    you can mount the second drive on the httpdocs folder of the site and it will show files from second drive as if its all on the same drive

  5. #5
    Join Date
    Dec 2006
    Posts
    288
    Quote Originally Posted by NWSTech View Post
    you can mount the second drive on the httpdocs folder of the site and it will show files from second drive as if its all on the same drive
    Just trying to understand this. Is this what you are saying:?
    - httpdocs is using drive A as /usr/local/httpdocs
    - Drive A is full
    - Add a Drive B
    - Mount Drive B to /usr/local/httpdocs
    And if you did a 'll /usr/local/httpdocs' you would see a directory listing of Drive A /usr/local/httpdocs as well as what is on Drive B?

  6. #6
    Join Date
    Apr 2005
    Posts
    535
    no. what im saying is for example

    first mount drive B on a temporary directory (lets ssay /driveb for the moment)
    then you copy the contents of httpdocs (which following plesk standard layout is /var/www/vhosts/<domain>/httpdocs to the /driveb folder. you can then umount the /driveb folder and delete the contents of the /var/www/vhosts/<domain>httpdocs folder (which will be on drive a currently) and then remount drive b on /var/www/vhosts/<domain>/httpdocs and voila the entire domains web files will be on drive b, logs and mysql will remain on drive a

  7. #7
    Join Date
    Dec 2006
    Posts
    288
    That make sense! Thanks for clarifying!

    On a side note, is it possible to do what I thought you were trying to say?

  8. #8
    Join Date
    Apr 2005
    Posts
    535
    i havent got a clue, but i know on linux you can mount a drive on pretty much any folder in the file system. you could have a seperate drive hosting each domain if you wanted to get really complicated

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •