Tag

Disk Space

1 views collected around this technical thread.

Aikesheng Open Source Community
Aikesheng Open Source Community
Feb 18, 2025 · Databases

Using pt-online-schema-change to Quickly Clean Data and Resolve Disk‑Space Alerts in MySQL

This article explains how to handle MySQL disk‑space alerts by using the pt‑online‑schema‑change (pt‑osc) tool to selectively retain needed rows, migrate data to a temporary table, and drop the original table, thereby achieving fast, low‑impact data cleanup.

Data CleanupDatabase OperationsDisk Space
0 likes · 10 min read
Using pt-online-schema-change to Quickly Clean Data and Resolve Disk‑Space Alerts in MySQL
vivo Internet Technology
vivo Internet Technology
Oct 30, 2024 · Operations

Troubleshooting TiKV Disk Space Issues: Causes, Diagnosis, and Solutions

This guide explains how to diagnose and fix TiKV disk‑space problems by identifying oversized log files, redundant space‑placeholder files, and excessive RocksDB/Titan data, offering command‑line checks, configuration tweaks such as enabling log rotation, disabling reserve space, and tuning GC and Titan discardable‑ratio to restore balanced storage.

Disk SpaceLog AnalysisTiKV
0 likes · 16 min read
Troubleshooting TiKV Disk Space Issues: Causes, Diagnosis, and Solutions
Practical DevOps Architecture
Practical DevOps Architecture
Oct 11, 2024 · Operations

Troubleshooting Disk Space Not Released After Deleting Files on Linux

This article explains why disk space may not be freed after deleting large log files on a Linux server, describes the underlying file system mechanisms, and provides a step‑by‑step troubleshooting guide using /tmp cleanup and the lsof command to identify and kill lingering processes.

Disk SpaceLinuxTroubleshooting
0 likes · 7 min read
Troubleshooting Disk Space Not Released After Deleting Files on Linux
Aikesheng Open Source Community
Aikesheng Open Source Community
Mar 4, 2024 · Databases

Can Disk Space Be Saved in MySQL by Adding a Primary Key?

The article demonstrates that adding an explicit primary key to a MySQL InnoDB table can dramatically reduce its on‑disk size by eliminating the hidden clustered index, and explains how invisible primary keys can be used when schema changes are not possible.

Disk SpaceInnoDBInvisible Primary Key
0 likes · 9 min read
Can Disk Space Be Saved in MySQL by Adding a Primary Key?
Aikesheng Open Source Community
Aikesheng Open Source Community
Oct 23, 2023 · Databases

Using CLONE INSTANCE with DATA DIRECTORY on Replicas When Disk Space Is Limited

This article explains how to safely run MySQL's CLONE INSTANCE command with the DATA DIRECTORY option on a replica that lacks enough disk space for both source and target data sets, offering step‑by‑step strategies, SQL examples, and a final recommendation.

Clone InstanceDATA DIRECTORYDatabase Administration
0 likes · 8 min read
Using CLONE INSTANCE with DATA DIRECTORY on Replicas When Disk Space Is Limited
Aikesheng Open Source Community
Aikesheng Open Source Community
Apr 20, 2023 · Databases

Safely Dropping a Large MySQL history_str Table to Reclaim Disk Space

This article describes a step‑by‑step procedure for safely dropping a massive MySQL history_str table—including creating a new table, renaming, using hard links, staged drops, and a truncate script—to avoid instance hangs, replication lag, and I/O pressure while freeing disk space.

DBADisk SpaceDrop Table
0 likes · 9 min read
Safely Dropping a Large MySQL history_str Table to Reclaim Disk Space
Xiaolei Talks DB
Xiaolei Talks DB
Mar 26, 2022 · Databases

Why TiDB’s GC Stalled and How to Fix Disk Space Alarms

This article walks through a real‑world TiDB/TiKV disk‑space alarm case, diagnosing why the GC worker got stuck, how TiCDC’s lingering changefeed caused outdated MVCC versions, and the step‑by‑step commands and monitoring tricks used to restore normal GC and reclaim storage.

DatabaseDisk SpaceGC
0 likes · 15 min read
Why TiDB’s GC Stalled and How to Fix Disk Space Alarms
Efficient Ops
Efficient Ops
Jan 10, 2022 · Fundamentals

Why Does Disk Space Vanish? Uncovering Linux’s VFS and File Deletion Mysteries

Even when the `df` command shows a full disk, hidden deleted files held open by processes can consume space, and understanding this requires diving into Linux’s virtual file system architecture, including superblocks, inodes, file and dentry objects, as well as link types and file‑process interactions.

Disk SpaceFile SystemInode
0 likes · 12 min read
Why Does Disk Space Vanish? Uncovering Linux’s VFS and File Deletion Mysteries
Efficient Ops
Efficient Ops
Sep 28, 2021 · Operations

How to Quickly Identify Disk Space Hogs on Linux Servers

This guide explains how to use Linux commands such as df, du, find, and lsof to quickly locate directories, files, or deleted resources that are consuming disk space, and shows how to adjust reserved space with tune2fs to recover seemingly missing storage.

Disk SpaceLinuxdf
0 likes · 5 min read
How to Quickly Identify Disk Space Hogs on Linux Servers
ByteFE
ByteFE
Jun 3, 2021 · Frontend Development

An In‑Depth Overview of pnpm: Fast, Disk‑Space‑Efficient Package Manager

This article introduces pnpm, a fast and disk‑space‑efficient JavaScript package manager that improves on npm and Yarn, explains its core features such as speed, content‑addressable storage, monorepo support, and strict dependency management, and provides practical usage examples and security considerations.

Disk SpaceMonorepodependency management
0 likes · 15 min read
An In‑Depth Overview of pnpm: Fast, Disk‑Space‑Efficient Package Manager
Efficient Ops
Efficient Ops
Sep 23, 2020 · Fundamentals

Why Deleted Files Still Occupy Disk Space? A Deep Dive into Linux VFS

The article explains why a Linux system may report a full disk even after deleting files, detailing how open file handles keep space occupied, and walks through the virtual file system architecture—including superblocks, inodes, file and dentry objects—while demonstrating diagnostic commands like df, du, lsof, and illustrating link types and file‑process interactions.

Disk SpaceFile SystemInode
0 likes · 11 min read
Why Deleted Files Still Occupy Disk Space? A Deep Dive into Linux VFS
Refining Core Development Skills
Refining Core Development Skills
Apr 25, 2020 · Fundamentals

Why Listing Large Directories Is Slow: Inode and Block Consumption in ext4

The article explains how directories consume inodes and filesystem blocks, how this consumption grows with many files or long filenames, and why the ls command can become sluggish, offering practical tips to mitigate the performance impact.

Disk SpaceEXT4Filesystem
0 likes · 8 min read
Why Listing Large Directories Is Slow: Inode and Block Consumption in ext4
Aikesheng Open Source Community
Aikesheng Open Source Community
Feb 21, 2020 · Databases

Root Cause Analysis of MySQL Crash Triggered by Binlog Errors When the Root Partition Is Full

The article investigates a MySQL crash caused by binlog errors due to a full '/' partition, explains why the error leads to server abort, demonstrates reproducing the issue with large transactions, traces the problem to the my_write function in the source code, and offers mitigation strategies such as reducing transaction size or expanding the temporary directory space.

Disk SpaceMySQLTransaction
0 likes · 13 min read
Root Cause Analysis of MySQL Crash Triggered by Binlog Errors When the Root Partition Is Full
NetEase Game Operations Platform
NetEase Game Operations Platform
Feb 8, 2020 · Backend Development

Diagnosing /tmp Disk Space Exhaustion in a Flask File Transfer Service: Understanding Werkzeug Form Parsing and Temporary File Handling

The article investigates a sudden /tmp disk‑space explosion in a Flask‑based file transfer service, analyzes the Werkzeug form‑parsing code that creates temporary files for uploads larger than 500 KB, demonstrates reproducible tests with inotify and Python scripts, and offers practical recommendations to prevent similar failures.

Disk SpaceFile UploadFlask
0 likes · 13 min read
Diagnosing /tmp Disk Space Exhaustion in a Flask File Transfer Service: Understanding Werkzeug Form Parsing and Temporary File Handling
Aikesheng Open Source Community
Aikesheng Open Source Community
Aug 30, 2019 · Databases

Determining MySQL Table Disk Usage with INFORMATION_SCHEMA and INNODB_SYS_TABLESPACES

This article explains why retrieving a MySQL table's on‑disk size via INFORMATION_SCHEMA.TABLES is unreliable, describes the impact of storage engines and row formats, and shows how to obtain accurate sizes by querying INNODB_SYS_TABLESPACES, including considerations for compression and configuration settings.

Disk SpaceINFORMATION_SCHEMAInnoDB
0 likes · 6 min read
Determining MySQL Table Disk Usage with INFORMATION_SCHEMA and INNODB_SYS_TABLESPACES
Aikesheng Open Source Community
Aikesheng Open Source Community
Jul 31, 2019 · Databases

Preventing MySQL Disk Space Exhaustion from Implicit Temporary Tables

This article explains why MySQL can exhaust disk space when implicit temporary tables grow too large, describes how memory limits and storage‑engine choices affect their creation, and provides practical configuration and query‑optimization techniques to avoid service interruptions.

Disk SpaceInnoDBMyISAM
0 likes · 8 min read
Preventing MySQL Disk Space Exhaustion from Implicit Temporary Tables
Practical DevOps Architecture
Practical DevOps Architecture
Nov 30, 2017 · Operations

Disk Appears Full on CentOS Server but du Shows Much Less Usage – Root Cause and Fix

A CentOS web server reports 100% disk usage despite du -sh /* showing far less space used, which is caused by Apache/Tomcat logs being cleared while the services are running, and the issue is resolved by restarting the services and properly cleaning old log files.

ApacheDisk SpaceLinux
0 likes · 5 min read
Disk Appears Full on CentOS Server but du Shows Much Less Usage – Root Cause and Fix
Efficient Ops
Efficient Ops
Oct 22, 2017 · Operations

Why Deleted Files Still Fill Your Linux Disk and How Filebeat Fixes It

This article explains why deleted files can still occupy disk space on a Linux server, demonstrates how to identify them with lsof, and shows how configuring Filebeat’s close_older and force_close_files settings can automatically release the space.

Disk SpaceELKFilebeat
0 likes · 8 min read
Why Deleted Files Still Fill Your Linux Disk and How Filebeat Fixes It