Illegal websites should not initiate any form of manual service requests to our staff. It is strictly prohibited to use honmau Media's technical support services and products to engage in any illegal activities. If discovered, no technical support will be provided.×
Current location:home> news > help and support

Linux system pagoda panel CentOS6.x/7.x system disk migration to data disk tutorial

If you install the Centos/Ubuntu/Debian system machine yourself, you may install it directly on the system disk instead of mounting the data disk, or you may automatically mount it on another directory after system initialization.

It is recommended that everyone store data under the data disk. When this happens, customers are generally advised to transfer it to the data disk.

Today, I will explain how to transfer a tutorial:

Warm reminder: It is recommended to back up the server snapshot before operating to avoid the operation causing the data to be irreversible.

1. Below are the server system disks that have no partitions.

'linux系统宝塔面板CentOS6.x/7.x系统盘迁移到数据盘教程'

2. Then execute netstat -lnpt and return to see the installed services. (If installedBaotaPanel, this step needs to be performed)

I only installed the pagoda on this machine. I only need to execute service bt stop and turn off the bt service (if there are other services installed in the pagoda, they need to turn off)

'linux系统宝塔面板CentOS6.x/7.x系统盘迁移到数据盘教程'

3. Then execute the mv /www /wwwbak enter to rename the www directory to wwwbak(you can change the name of the directory here as you like it

'linux系统宝塔面板CentOS6.x/7.x系统盘迁移到数据盘教程'

4. Execute mkdir /www to create a new www directory and partition and mount the data disk under www (I will not describe the mounting steps here in detail

'linux系统宝塔面板CentOS6.x/7.x系统盘迁移到数据盘教程'

The database has been mounted below to/www

'linux系统宝塔面板CentOS6.x/7.x系统盘迁移到数据盘教程'

4. mv /wwwbak/* /www/Enter to transfer all data in wwwbak to www

5. Then restart the bt server.

© Website copyright and disclaimer

1.[honmau Media] independently owns the copyright of all materials on relevant pages of this website;

2. No one is allowed to copy it without the express written permission of [honmau Media];

3. The articles that do not indicate "honmau Media" on this website are all from the Internet and are only for everyone to learn and refer;

4. If there is any infringement/violation/irregularity, please contact customer service QQ or email to delete it, please understand;

5.[honmau Media] reserves the right to correct, modify and update this statement at any time.legal notice

Message Board
* Contact customer service for urgent issues
submitted
submission
Working days: 8:30 - 22:00 Online QQ

customer service

Company Introduction
top