[pve-devel] [PATCH] migrate: syncdisk : avoid scanning shared storage

Michael Rasmussen mir at datanom.net
Mon Jul 16 18:31:33 CEST 2012


On Mon, 16 Jul 2012 17:45:17 +0200 (CEST)
Alexandre DERUMIER <aderumier at odiso.com> wrote:

> 
> Maybe pinging the nfs server, before sending command (ls,rm,...) is the b> 
A suggestion: Try a soft mount first if that succeeds the do a hard
mount. E.g

mount -o soft,nfs host:/some/nfs/mount /some/mount/point
[ $? -eq "0" ] || exit 1

touch /some/mount/point/.test
find /some/mount/point -name '.test'
if [ $? -ne "0" ]; then
	umount -f /some/mount/point
	exit 2
else
	mount -o nfs host:/some/nfs/mount /some/mount/point
        .....
fi

exit 0

-- 
Hilsen/Regards
Michael Rasmussen

Get my public GnuPG keys:
michael <at> rasmussen <dot> cc
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xD3C9A00E
mir <at> datanom <dot> net
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xE501F51C
mir <at> miras <dot> org
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xE3E80917
--------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.proxmox.com/pipermail/pve-devel/attachments/20120716/7dda49c5/attachment.sig>


More information about the pve-devel mailing list