Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #168026 > unrolled thread

proper way to handle NFS for laptop ?

Started by<briand@aracnet.com>
First post2016-05-18 17:40 +0200
Last post2016-05-19 07:20 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.debian.user


Contents

  proper way to handle NFS for laptop ? <briand@aracnet.com> - 2016-05-18 17:40 +0200
    Re: proper way to handle NFS for laptop ? Peter Ludikovsky <peter@ludikovsky.name> - 2016-05-19 07:20 +0200

#168026 — proper way to handle NFS for laptop ?

From<briand@aracnet.com>
Date2016-05-18 17:40 +0200
Subjectproper way to handle NFS for laptop ?
Message-ID<rAbJN-3Wj-35@gated-at.bofh.it>
The obvious issues:

1 after sleeping the NFS connection is lost and takes a very long time to re-establish.  I was under the impression that systemd or -whatever-handles-sleeping- would unmount/remount the filesystem to avoid this , but apparently that's not the case.  Potentially  I can fix this with some sort of sleep-wake script hackery.

2 disconnecting the laptop from the network will obviously cause problems.

The standard suggestion is to use autofs,but I'm unclear as to whether that will handle case 2.  I'm actually not clear on whether or not it will handle case 1, and in fact have found some discussions that it does NOT.

The other possibility is to use a distributed filesystem on the laptop.  I actually like that idea the best, but I'm unsure what is available on Debian.

I looking for some suggestions/recommendations.

Thank you.

[toc] | [next] | [standalone]


#168061

FromPeter Ludikovsky <peter@ludikovsky.name>
Date2016-05-19 07:20 +0200
Message-ID<rAoxj-3Vf-5@gated-at.bofh.it>
In reply to#168026

[Multipart message — attachments visible in raw view] — view raw

autofs will handle both issues just fine.
1. autofs disconnects a mount if there hasn't been any activity for a
certain amount of time (default 5 minutes).
2. see above

A distributed filesystem might create even more problems, as you'll have
to re-sync with the other nodes on reconnect, which -- in the worst case
-- might mean syncing almost everything.

Regards,
/peter

Am 18.05.2016 um 17:24 schrieb briand@aracnet.com:
> The obvious issues:
> 
> 1 after sleeping the NFS connection is lost and takes a very long time to re-establish.  I was under the impression that systemd or -whatever-handles-sleeping- would unmount/remount the filesystem to avoid this , but apparently that's not the case.  Potentially  I can fix this with some sort of sleep-wake script hackery.
> 
> 2 disconnecting the laptop from the network will obviously cause problems.
> 
> The standard suggestion is to use autofs,but I'm unclear as to whether that will handle case 2.  I'm actually not clear on whether or not it will handle case 1, and in fact have found some discussions that it does NOT.
> 
> The other possibility is to use a distributed filesystem on the laptop.  I actually like that idea the best, but I'm unsure what is available on Debian.
> 
> I looking for some suggestions/recommendations.
> 
> Thank you.
> 

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web