Fastdfs Migration Steps

Source: Internet
Author: User

1. Install the FASTDFS on the new machine

2. Connect the new storage to the old tracker machine to synchronize the data (/usr/local/fastdfs/bin/fdfs_storaged)

After data synchronization is complete, you need to connect the new storage to the new tracker

1. Stop the storage process

2. Modify the storage configuration file

Vi/etc/fdfs/storage.conf

Set Tracker_server IP to a new server ip192.168.xxx.xxx

tracker_server=192.168.xxx.xxx:22122

3. Adjust the storage file list (/file/storage/fastdfs/data/)

Storage server needs to adjust the list of files:

Data/.data_init_flag (Leave the Sync_src_server configuration item blank, other configuration items will not change)

Data/sync/${ip_addr}_${port}.mark: This type of file, you need to adjust the IP address in the file name.

4. Start the process 5. Monitor the status of the process (status is active for normal)

/usr/local/fastdfs/bin/fdfs_monitor/etc/fdfs/storage.conf

Storage Status list:

# Fdfs_storage_status:init: Initialization, not yet available source server for synchronizing existing data

# Fdfs_storage_status:wait_sync: Waiting for synchronization, the source server has been synchronized with the existing data

# fdfs_storage_status:syncing: In sync

# fdfs_storage_status:deleted: Deleted, the server is removed from this group

# Fdfs_storage_status:offline: Offline

# Fdfs_storage_status:online: Online, no service available

# fdfs_storage_status:active: Online, can provide service

Fastdfs Migration Steps

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.