Replacing the Disk for TiDB-PD-KV

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: 更换TIDB-PD-KV得磁盘

| username: hyman

【TiDB Usage Environment】Backup Environment
【TiDB Version】5.4.0
【Encountered Problem】Need to replace the hard drives of TiDB PD KV
【Current Environment】7 servers, tidb+pd sharing three servers, all programs and data deployed under /home. 4 TIKV servers, software and data also under /home.
【Current Requirement】Replace the disks of the 7 servers, as the previous ones were regular disks and now they are being replaced with SSDs. How can the disks be replaced and data restored quickly? Can the data under /home on the original disk be directly copied to the new disk? Then unmount the original disk and mount the new SSD to /home. Is this feasible? The total data volume is 1TB.

| username: wuxiangdong | Original post link

Replication is feasible after stopping TiDB.

| username: hyman | Original post link

Okay, thank you, I’ll give it a try.

| username: wisdom | Original post link

There is no problem as long as the mount points are the same.

| username: alfred | Original post link

It is recommended to stop the service to switch the mount point.

| username: tidb狂热爱好者 | Original post link

The fastest way is to use backup software PR to back up the entire database.

| username: tidb狂热爱好者 | Original post link

Or you can stop one node and then add the hard drive, doing it one by one without shutting down the entire system.