Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    Oct 2003
    Posts
    13

    Default Using two hard drives with one account

    Hi,

    I have a server with two hard drives, and I only use it for my own site (no "customer" accounts).

    Is there a way I can use the second drive for additional storage, but from the same account? I host lots of large a/v files, and I'm hoping that distibuting them across two drives might speed up the downloads for visitors (since both drives would be working half as hard).

    I also would like not to have to have a second domain name for the files on the second drive, hence using both drives with the same account.

    Any ideas? Thanks in advance.

  2. #2
    Member PWSowner's Avatar
    Join Date
    Nov 2001
    Location
    ON, Canada
    Posts
    2,994

    Default

    Just move one or more of your site directories from the first drive to anywhere on the second one and use symbolic linking to redirect the original ones to the new location.

    eg.
    Say your site is at
    /home/username/public_html
    and you have directories like vids1, vids2, and so on. You want vids2 on the 2nd drive and the 2nd drive has been formatted as "newdrive", just do this...

    cd /home/username/public_html
    mv vids2 /newdrive
    ln -s /newdrive/vids2 vids2
    The vids2 directory will now be located on the 2nd drive but will, in every way shape and form, appear to be where it used to be.
    Mike
    WHM and cPanel Scripts (join our "Scripts Club")
    D/A Photography

  3. #3
    Member
    Join Date
    Oct 2003
    Posts
    13

    Default

    Awesome! Thanks squirrel!

  4. #4
    Member
    Join Date
    Oct 2003
    Posts
    13

    Default

    Actually, one more question comes up now:

    The "symbolic link" to the directory on the second hard drive is working fine in SSH and with cPanel's File Manager, but it doesn't work through FTP. FTP client returns "No such file or directory". Not sure why, since the "www" link to the public_html directory does work with FTP.

    Any suggestions?

  5. #5
    Member PWSowner's Avatar
    Join Date
    Nov 2001
    Location
    ON, Canada
    Posts
    2,994

    Default

    Should work. Maybe the permissions are wrong. They need to be 777 for symbolic links.
    Mike
    WHM and cPanel Scripts (join our "Scripts Club")
    D/A Photography

  6. #6
    Member
    Join Date
    Jun 2003
    Posts
    6

    Default

    even if the the directory is CHMODDED 777 it doesnt work, can anyone help?

Similar Threads & Tags
Similar threads

  1. Replies: 0
    Last Post: 05-09-2010, 03:03 AM
  2. 2 Hard drives
    By haswalt in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 04-25-2008, 07:29 AM
  3. How to add new hard drives
    By wayned01 in forum New User Questions
    Replies: 2
    Last Post: 04-19-2007, 05:21 PM
  4. Using 2 hard drives for accounts
    By celliott in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 04-15-2006, 09:22 PM
  5. Hard Drives
    By gamerunner2 in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 04-04-2006, 11:34 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube