Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Mar 2003
    Posts
    427

    Default Using secondary drive for MySql

    Is it possible to run Mysql server on a secondary drive instead of the primary where everything else is ? And cPanel will support this so phpmyadmin. create databas etc in cpanel will work for users.

    This is just an idea to reduce the load/iowait for CPU when it's always waiting for the disk
    to write stuff. Even if I restart httpd so RAM will be avalible it does not reduce the load very much so I don't think more RAM will fix this issue. Maybe if I could tweak it more it my.cnf
    using more RAM so CPU didn't have to wait so long for the disk.

    hm...

    any thoughts on this ?

  2. #2
    Member dave9000's Avatar
    Join Date
    Apr 2003
    Location
    arkansas
    Posts
    891
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    sure its possible and will to some extent lower your load

    stop mysql processes and copy /var/lib/mysql to a temp folder

    install the drive and format it ext2 or 3 depending on what file system your currently using

    then modify the /etc/fstab to mount the drive /dev/hd?, /dev/sd? to /var/lib/mysql

    issue the mount command using the proper drive label and copy the mysql folder to the new drive and restart mysql

    main thing i have found to reduce load is to have plenty of extra memory available as linux/unix loads everything to memory and only accesses the drives when it has to for data read/writes

    rule of thumb I use is 5x the amount of ram used when the box is first rebooted.

    if you have enough ram you can adjust the /etc/my.cnf to also reduce the disk load
    Dave Browning
    Intersite Technologies
    Greenbrier Ar
    dave@isitetech.com

  3. #3
    Member
    Join Date
    Apr 2005
    Posts
    318

    Default

    Quote Originally Posted by dave9000
    rule of thumb I use is 5x the amount of ram used when the box is first rebooted.

    if you have enough ram you can adjust the /etc/my.cnf to also reduce the disk load

    Much better performance gains are from additional RAM MB's.

    If you want real deal you can always take one PIV 1.6+ and dedicate it to mySQL only (you'll need about 200-500GB traffic so I think you can get it for $40 - $80 / month). This way you'll get best performance if you have a lot of mySQL sites.
    http://www.crohoster.com/
    quality hosting services and managed dedicated servers

  4. #4
    Member
    Join Date
    Mar 2003
    Posts
    427

    Default

    "Modify /etc/my.cnf to also reduce the disk load"

    Do you mean by adding more RAM to query cache ?

Similar Threads & Tags
Similar threads

  1. Backup on secondary hard drive and then on NAS ?
    By TapanB in forum Data Protection
    Replies: 2
    Last Post: 08-09-2011, 05:06 AM
  2. Create accounts in a secondary drive ¿¿??
    By sh4ka in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 06-04-2007, 02:21 PM
  3. secondary drive, NOT backup
    By Secret Agent in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 05-05-2005, 11:42 AM
  4. RAID / Secondary Hard Drive Backups
    By rweiss in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 04-12-2003, 08:48 AM
  5. Secondary Hard Drive and back up
    By Radio_Head in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 01-29-2003, 04:18 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube