阿里云盘切换 NAS 盘

备份数据云盘到 NAS 盘
(nohup rsync -az /data/clickhouse/ /data2/clickhouse > /dev/null 2>&1 &)

卸载云盘 http://doc.mobikok.com:8888/it/article/1551336623592
df -h
fuser -kv /data
umount -l /dev/vdb1

挂载 NAS 盘
umount -l 136ff74b8aa-cgi90.us-east-1.nas.aliyuncs.com:/
sudo mount -t nfs -o vers=4,minorversion=0,noresvport 136ff74b8aa-cgi90.us-east-1.nas.aliyuncs.com:/ /data

顺利完成!!!

否则回滚
umount -l 136ff74b8aa-cgi90.us-east-1.nas.aliyuncs.com:/
mount /dev/vdb1 /data
sudo mount -t nfs -o vers=4,minorversion=0,noresvport 136ff74b8aa-cgi90.us-east-1.nas.aliyuncs.com:/ /data1