1 新增磁盘挂载点,在新磁盘新建文件存储目录
2 修改/etc/fdfs/Storage.conf配置,store_path_count = 2,store_path0=/data/push/fastdfs,store_path1=/newdata/push/fastdfs
3 查看/etc/fdfs/tracker.conf配置的store_path是否等于2,应该采用负载均衡策略,令新文件存储在新磁盘下。
4 修改/etc/fdfs/mod_fastdfs.conf配置, store_path_count = 2,store_path0=/data/push/fastdfs,store_path1=/newdata/push/fastdfs
5 修改/usr/local/nginx/conf/fastdfs.conf
location /group[0~9]/M00 {
alias /data/push/fastdfs/data;
ngx_fastdfs_module;
}
location /group[0~9]/M01 {
alias /newdata/push/fastdfs/data;
ngx_fastdfs_module;
}
6 重启tracker,storage,Nginx服务