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 4171054
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T00:24:15+00:00 2026-05-21T00:24:15+00:00

MySQL .ibd file has grown to more than 3 TB and my RedHat box

  • 0

MySQL .ibd file has grown to more than 3 TB and my RedHat box can no longer support adding more disk spaces.

Questions

  • How can I scale database storage ?
  • What best practices can resolve this issue ?

Note:I use one .ibdfile per table and have a couple of huge tables.

  • 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-21T00:24:16+00:00Added an answer on May 21, 2026 at 12:24 am

    If you are just storing data, your data mount for /var/lib/mysql should be 5TB SATA drives. If your application is write heavy, your data mount for /var/lib/mysql should be 5TB SAS drives RAID10.

    If upgrading disks is out of the question, you need to do periodic table defragmentation in one of three(3) ways:

    1. ALTER TABLE myinnodbtable ENGINE=InnoDB;
    2. OPTIMIZE TABLE myinnodbtable;
    3. Customize the defragmentation the table

    You can perform this defragmentation manually as follows:

    CREATE TABLE myinnodbtemptable LIKE myinnodbtable;
    INSERT INTO myinnodbtemptable SELECT * FROM myinnodbtable;
    ALTER TABLE myinnodbtable RENAME myinnodbtableold;
    ALTER TABLE myinnodbtemptable RENAME myinnodbtable;
    DROP TABLE myinnodbtableold;
    

    Option 3 does not work if the InnoDB table has constraints because constraints will disappear.

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

Sidebar

Related Questions

MySQL has this incredibly useful yet proprietary REPLACE INTO SQL Command. Can this easily
MySQL supports more than 70 collations , but how should I use them properly?
How can I restore a partitioned mysql InnoDB table from just the .ibd files
MySQL/MSSQL has a neat little inline if function you can use within queries to
Mysql behaves in a special (presumably more performant) manner when a table has no
MySQL connection in PHP can be established in two ways: $mysql = new mysqli('localhost',
MySQL: In update trigger's body, can I obtain the value of a column that
MySQL saves all changes to the database in a binary file called binary log.
MySQL has a RENAME TABLE statemnt that will allow you to change the name
mysql will throw an error when the inserted data is larger than the destination

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.