标签:mnt work 挂载 command har hfs+ sshpass upper over
sshfs+overlayfs实现一个共享只读资源被多个主机挂载成可写目录
1.sshfs -o ssh_command=‘sshpass -p ‘"${passwd}"‘ ssh‘ ${user}@${server_ip}:${server_path} "${caseshare_mnt}";
2.share_overlay="${tmp_dir}/${server_ip}/overlay/";
share_overlay_merge="${share_overlay}/merge/";
share_overlay_upper="${share_overlay}/upper/";
share_overlay_workdir="${share_overlay}/workdir/";
mount -t overlay overlay -o lowerdir=${caseshare_mnt},upperdir=${share_overlay_upper},workdir=${share_overlay_workdir} "${share_overlay_merge}"
sshfs+overlayfs实现一个共享只读资源被多个主机挂载成可写目录
标签:mnt work 挂载 command har hfs+ sshpass upper over
原文地址:https://www.cnblogs.com/dongzhiquan/p/11588435.html