mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
For some NFS Servers, mount option tcp is required
This commit is contained in:
parent
e8c2fa4e8e
commit
ef2802aaed
@ -48,7 +48,7 @@ if [ $? -ne 0 ]; then
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mount $mountpoint $localmp -r
|
mount -o tcp,ro $mountpoint $localmp
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo "6#can't mount $mountpoint to $localmp"
|
echo "6#can't mount $mountpoint to $localmp"
|
||||||
exit 0
|
exit 0
|
||||||
|
|||||||
@ -56,7 +56,7 @@ if [ $? -ne 0 ]; then
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mount $mountpoint $localmp
|
mount -o tcp $mountpoint $localmp
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo "6#can't mount $mountpoint to $localmp"
|
echo "6#can't mount $mountpoint to $localmp"
|
||||||
exit 0
|
exit 0
|
||||||
|
|||||||
@ -47,7 +47,7 @@ if [ $? -ne 0 ]; then
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mount $snapshoturl $snapshotdir
|
mount -o tcp $snapshoturl $snapshotdir
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
rmdir $snapshotdir
|
rmdir $snapshotdir
|
||||||
echo "5#can not mount $snapshoturl to $snapshotdir"
|
echo "5#can not mount $snapshoturl to $snapshotdir"
|
||||||
@ -63,7 +63,7 @@ if [ $? -ne 0 ]; then
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mount $templateurl $templatedir
|
mount -o tcp $templateurl $templatedir
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
rmdir $templatedir
|
rmdir $templatedir
|
||||||
templatedir=""
|
templatedir=""
|
||||||
|
|||||||
@ -46,7 +46,7 @@ if [ $? -ne 0 ]; then
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mount $snapshoturl $snapshotdir
|
mount -o tcp $snapshoturl $snapshotdir
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
rmdir $snapshotdir
|
rmdir $snapshotdir
|
||||||
echo "5#can not mount $snapshoturl to $snapshotdir"
|
echo "5#can not mount $snapshoturl to $snapshotdir"
|
||||||
@ -62,7 +62,7 @@ if [ $? -ne 0 ]; then
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mount $templateurl $templatedir
|
mount -o tcp $templateurl $templatedir
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
rmdir $templatedir
|
rmdir $templatedir
|
||||||
templatedir=""
|
templatedir=""
|
||||||
|
|||||||
@ -286,7 +286,7 @@ def mount(remoteDir, localDir):
|
|||||||
makedirs(localDir)
|
makedirs(localDir)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
cmd = ['mount', remoteDir, localDir]
|
cmd = ['mount', '-o', 'tcp', remoteDir, localDir]
|
||||||
txt = util.pread2(cmd)
|
txt = util.pread2(cmd)
|
||||||
except:
|
except:
|
||||||
txt = ''
|
txt = ''
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user