CLOUDSTACK-2398: ssvm-check.sh failed with permission error RPCbind service is running in the 4.2 systemVMs resulting in ssvm-check trying to write to the mountpoint. Avoid writing to the rpc_pipefs.
Signed-off-by: Prasanna Santhanam <t...@apache.org> Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/11f85c9c Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/11f85c9c Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/11f85c9c Branch: refs/heads/vmsync Commit: 11f85c9c9e5ab06e53ebdf8f42fca8054850b1c9 Parents: 49e39e5 Author: Rajesh Battala <rajesh.batt...@citrix.com> Authored: Wed May 15 17:21:46 2013 +0530 Committer: Prasanna Santhanam <t...@apache.org> Committed: Wed May 22 13:58:36 2013 +0530 ---------------------------------------------------------------------- services/secondary-storage/scripts/ssvm-check.sh | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/11f85c9c/services/secondary-storage/scripts/ssvm-check.sh ---------------------------------------------------------------------- diff --git a/services/secondary-storage/scripts/ssvm-check.sh b/services/secondary-storage/scripts/ssvm-check.sh index a401164..7b83c98 100644 --- a/services/secondary-storage/scripts/ssvm-check.sh +++ b/services/secondary-storage/scripts/ssvm-check.sh @@ -67,12 +67,12 @@ fi # check to see if we have the NFS volume mounted echo ================================================ -mount|grep -v sunrpc|grep nfs 1> /dev/null 2>&1 +mount|grep -v sunrpc|grep -v rpc_pipefs|grep nfs 1> /dev/null 2>&1 if [ $? -eq 0 ] then echo "NFS is currently mounted" # check for write access - for MOUNTPT in `mount|grep -v sunrpc|grep nfs| awk '{print $3}'` + for MOUNTPT in `mount|grep -v sunrpc|grep -v rpc_pipefs|grep nfs| awk '{print $3}'` do if [ $MOUNTPT != "/proc/xen" ] # mounted by xen then