CTID=777 # VPS container ID echo '#!/bin/bash . /etc/vz/vz.conf . ${VE_CONFFILE} SRC=/mnt/disk # HN 掛載目錄 DST=/mnt/disk # VPS 中要掛載目錄 if [ ! -e ${VE_ROOT}${DST} ]; then mkdir -p ${VE_ROOT}${DST}; fi mount -n -t simfs ${SRC} ${VE_ROOT}${DST} -o ${SRC} ' > /etc/vz/conf/${CTID}.mount chmod +x /etc/vz/conf/${CTID}.mount
>參考 http://wiki.openvz.org/Bind_mounts
沒有留言:
張貼留言