This is my own chat record in the FASTDFS Technical Group about the overall migration of the cluster
0.618 (873085561) 11:10:34
Have you ever done Fastdfs file server data migration?
Dragon (263209498) 11:11:08
Fastdfs the problem of the whole migration of cluster.
If the new and old IP address one by one corresponds, and is the same, it is very simple, directly copy the data directory to the past.
IP is not the same, it will be more troublesome.
If you use the V4 custom server ID feature, it is easier to modify the IP and ID mapping files on the tracker directly storage_ids.conf.
If you use the IP address as the server identity, then you need to modify the data directory of tracker and storage several files, the old IP to adjust to the new IP.
Note that there is one under the storage Data directory. The first hidden file also needs to be modified.
In addition, you need to rename the sync location record filename with the suffix of Mark's IP address and port.
The Cluster service will not start until all the files have been adjusted.
List of files that need to be adjusted on the tracker server:
Data/storage_groups_new.dat
Data/storage_servers_new.dat
Data/storage_sync_timestamp.dat
List of files Storage server needs to adjust:
Data/.data_init_flag
Data/sync/${ip_addr}_${port}.mark: This type of file, you need to adjust the IP address in the file name.
Icedrugs (80825569) 11:11:25
Better not be in this way.
Icedrugs (80825569) 11:11:36
Using the Storage_ids configuration file
Icedrugs (80825569) 11:11:39
To do the corresponding relationship
0.618 (873085561) 11:12:19
There is to make the file system better migration, in the construction of the environment there is nothing to consider.
Dragon (263209498) 11:12:39
0.618 (873085561) 11:12:40
Thank you very much for sharing.
Dragon (263209498) 11:12:43
Use this file.
Icedrugs (80825569) 11:12:52
Well
Dragon (263209498) 11:12:59
This is not a migration, only need to modify the file on the OK.
Icedrugs (80825569) 11:13:11
Modify the corresponding IP
Icedrugs (80825569) 11:13:16
Try not to move the ID
Dragon (263209498) 11:14:05
En. Migration also has only IP changes. The first two items do not move,
Dragon (263209498) 11:14:35
Thank you for sharing