Find the answer to your Linux question:
Results 1 to 6 of 6
Hi all, Completely newbie here but i have three mounts /dev/md1 11.9 GB free of 15.1 GB /dev/md3 3.9 GB free of 4.7 GB /dev/md2 191.1 GB free of 203.7 ...
  1. #1
    Just Joined!
    Join Date
    Feb 2011
    Posts
    9

    Save sites on a different mount?

    Hi all,

    Completely newbie here but i have three mounts


    /dev/md1
    11.9 GB free of 15.1 GB
    /dev/md3
    3.9 GB free of 4.7 GB
    /dev/md2
    191.1 GB free of 203.7 GB

    at the moment my sites are storing to md3 which has the least amount of space. how can i transfer them and make everything point and save to md2?


    Thanks,

    Varamus

  2. #2
    Linux Guru
    Join Date
    Oct 2007
    Location
    Tucson AZ
    Posts
    1,939
    A little more information would help.

    Which distribution are you using?

    You refer to your "sites", is this a web server database?

  3. #3
    Just Joined!
    Join Date
    Feb 2011
    Posts
    9
    Hi,

    It's a dedicated CentOS server
    Operating system - Linux 2.6.18-194.32.1.el5

    the majority of the sites are database driven so if i could switch that and the hard files on the ftp i use to upload the files to a different mount that would be great!

    cheers,

    Varamus

  4. #4
    Linux Enthusiast Mudgen's Avatar
    Join Date
    Feb 2007
    Location
    Virginia
    Posts
    623
    Quick and dirty approach would be to shut down the web server and database, move the contents of the md3 mount point to a folder under the md2 mount point, unmount md3 and remove its mount point, then soft-link the new folder back to the md3 mount point name.

  5. #5
    Just Joined!
    Join Date
    Feb 2011
    Posts
    9
    hi sorry to be a complete newbie but could you talk me through the commands etc for that?

    I have plesk 9.2.2 if theres a way of doing it through that? but ive looked everywhere and havent been able to find anything :/

    cheers

  6. #6
    Linux Enthusiast Mudgen's Avatar
    Join Date
    Feb 2007
    Location
    Virginia
    Posts
    623
    Quote Originally Posted by varamus View Post
    hi sorry to be a complete newbie but could you talk me through the commands etc for that?

    I have plesk 9.2.2 if theres a way of doing it through that? but ive looked everywhere and havent been able to find anything :/

    cheers
    What webserver software? What database backend? Output of "mount" and "df" commands and "ls -l" of both mount points?

    I'm not at all sure this is something you should undertake. Do you have backups and the ability to restore them? Who depends on these sites and what's the impact if you hose them up? Since you probably don't know how to fix anything if you break it, you should consider engaging a contractor to do this. Anyone with a RHCT/RHCSA/RHCE certification should be able to do it for you in a couple or so hours. Experience/references can also be valid qualifications, I just mention the certifications because they are easily verifiable at Redhat.com and based on exams that require at least this level of knowledge and the ability to apply it.

Posting Permissions

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