Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5962289
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T19:05:05+00:00 2026-05-22T19:05:05+00:00

I have a production server whose MYSQL may not be backed up. The instance

  • 0

I have a production server whose MYSQL may not be backed up. The instance in question has an EBS backed root device (/dev/sda1), which is persistently storing files. It’s not clear to me whether it is naturally storing my MYSQL data and binary log files persistently.

Should it do so if it’s mounted at root? I would think so.

Should I instead attach and mount another volume and then point the MYSQL server at the new location?

My commands look like the following (plus locking the MYSQL table while creating the snapshot)

    sudo mkdir /vol/etc /vol/lib /vol/log
    sudo mv /etc/mysql     /vol/etc/
    sudo mv /var/lib/mysql /vol/lib/
    sudo mv /var/log/mysql /vol/log/

    sudo mkdir /etc/mysql
    sudo mkdir /var/lib/mysql
    sudo mkdir /var/log/mysql

    echo "/vol/etc/mysql /etc/mysql     none bind" | sudo tee -a /etc/fstab
    sudo mount /etc/mysql

    echo "/vol/lib/mysql /var/lib/mysql none bind" | sudo tee -a /etc/fstab
    sudo mount /var/lib/mysql

    echo "/vol/log/mysql /var/log/mysql none bind" | sudo tee -a /etc/fstab
    sudo mount /var/log/mysql 

I am no sys admin expert and I don’t want to screw up my existing database. Is there any risk here? Should I even bother with an additional device here or just stick with the built in root device?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T19:05:06+00:00Added an answer on May 22, 2026 at 7:05 pm

    I moved the /etc/mysql and /var/lib/mysql directories to my EBS and created symlinks in their previous locations.

    That way I didn’t have to modify configuration files or worry about something not finding the files.

    The reason I also moved /etc/mysql was so that the configuration files and maintenance script would not be lost if I attached the EBS to another instance.

    As for a backup of that data, it would be best to create another instance and create a master/master configuration so you also get the benefits of failover.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a production server with apache2, php, mysql. I have just one site
I have a production server running with the following flag: - XX:+HeapDumpOnOutOfMemoryError Last night
We have a production SQL Server 2005 database server with the production version of
I have deployed a new build on Production server, but I dont see the
I already have a deploy.rb that can deploy my app on my production server.
We have a production web and database server with SQL Server 2000. (However, a
After a huge MySQL blunder on a production server (my fault, and yes I
I have an asp.net website in my production server which running fine now. Now
I have an asp.net webforms application in production server and it was really slow.
Currently my website (production server) already have a lot of code in it. And

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.