Skip to content

Commit f6b02aa

Browse files
Abhinandan Prateekroot
authored andcommitted
bug 10065 : multiple secondary storage support required for ssvm-check.sh
status 10065: resolved fixed checking status of multiple sec storages. the cmdline remains same
1 parent 8312f13 commit f6b02aa

1 file changed

Lines changed: 16 additions & 15 deletions

File tree

console-proxy/scripts/ssvm-check.sh

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
#!/bin/bash
2-
3-
4-
52
#
63
# Copyright (C) 2010 Cloud.com, Inc. All rights reserved.
74
#
@@ -71,19 +68,23 @@ mount|grep -v sunrpc|grep nfs 1> /dev/null 2>&1
7168
if [ $? -eq 0 ]
7269
then
7370
echo "NFS is currently mounted"
74-
7571
# check for write access
76-
MOUNTPT=`mount|grep -v sunrpc|grep nfs| awk '{print $3}'`
77-
echo Mount point is $MOUNTPT
78-
touch $MOUNTPT/foo
79-
if [ $? -eq 0 ]
80-
then
81-
echo "Good: Can write to mount point"
82-
rm $MOUNTPT/foo
83-
else
84-
echo "ERROR: Cannot write to mount point"
85-
echo "You need to export with norootsquash"
86-
fi
72+
for MOUNTPT in `mount|grep -v sunrpc|grep nfs| awk '{print $3}'`
73+
do
74+
if [ $MOUNTPT != "/proc/xen" ] # mounted by xen
75+
then
76+
echo Mount point is $MOUNTPT
77+
touch $MOUNTPT/foo
78+
if [ $? -eq 0 ]
79+
then
80+
echo "Good: Can write to mount point"
81+
rm $MOUNTPT/foo
82+
else
83+
echo "ERROR: Cannot write to mount point"
84+
echo "You need to export with norootsquash"
85+
fi
86+
fi
87+
done
8788
else
8889
echo "ERROR: NFS is not currently mounted"
8990
echo "Try manually mounting from inside the VM"

0 commit comments

Comments
 (0)