Re: Linux Laptop Losing CephFS mounts on Sleep/Hibernate

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The best way I would recommend is to disable sleep when the laptop lid
closes.

You will need to open the “logind.conf” file, (

sudo nano /etc/systemd/logind.conf

) and then will need to change

#HandleLidSwitch=suspend

to

HandleLidSwitch=ignore

Remove the #

Remember to save and exit.

You can follow this article

 <https://corpit.org/disabling-lid-suspension-in-rocky-linux/>

Regards,

Suyash


On Tue, Mar 26, 2024 at 4:16 AM <matthew@xxxxxxxxxxxxxxx> wrote:

> Hi All,
>
> So I've got a Ceph Reef Cluster (latest version) with a CephFS system set
> up with a number of directories on it.
>
> On a Laptop (running Rocky Linux (latest version)) I've used fstab to
> mount a number of those directories - all good, everything works, happy
> happy joy joy! :-)
>
> However, when the laptop goes into sleep or hibernate mode (ie when I
> close the lid) and then bring it back out of sleep/hibernate (ie open the
> lid) the CephFS mounts are "not present". The only way to get them back is
> to run `mount -a` as either root or as sudo. This, as I'm sure you'll
> agree, is less than ideal - especially as this is a pilot project for
> non-admin users (ie they won't have access to the root account or sudo on
> their own (corporate) laptops).
>
> So, my question to the combined wisdom of the Community is what's the best
> way to resolve this issue?
>
> I've looked at autofs, and even tried (half-heartedly - it was late, and I
> wanted to go home  :-) ) to get this running, but I'm note sure if this is
> the best way to resolve things.
>
> All help and advice on this greatly appreciated - thank in advance
>
> Cheers
>
> Dulux-Oz
> _______________________________________________
> ceph-users mailing list -- ceph-users@xxxxxxx
> To unsubscribe send an email to ceph-users-leave@xxxxxxx
>

On Thu, Mar 28, 2024 at 4:53 PM Dhairya Parmar <dparmar@xxxxxxxxxx> wrote:

> So the client session was dropped when the laptop went into sleep mode,
> maybe what could've happened is that since the client is silent; it failed
> to renew its caps in time and hit `session_autoclose` (defaults to 300
> secs) and thus got evicted. As Kotresh mentioned, client logs would reveal
> better insights.
>
>
> *Dhairya Parmar*
>
> Associate Software Engineer, CephFS
>
> <https://www.redhat.com/>IBM, Inc.
>
>
> On Thu, Mar 28, 2024 at 4:42 PM Kotresh Hiremath Ravishankar <
> khiremat@xxxxxxxxxx> wrote:
>
> > I think the client should reconnect when it's out of sleep. Could you
> > please share the client logs to check what's happening?
> >
> >
> >
> > On Tue, Mar 26, 2024 at 4:16 AM <matthew@xxxxxxxxxxxxxxx> wrote:
> >
> > > Hi All,
> > >
> > > So I've got a Ceph Reef Cluster (latest version) with a CephFS system
> set
> > > up with a number of directories on it.
> > >
> > > On a Laptop (running Rocky Linux (latest version)) I've used fstab to
> > > mount a number of those directories - all good, everything works, happy
> > > happy joy joy! :-)
> > >
> > > However, when the laptop goes into sleep or hibernate mode (ie when I
> > > close the lid) and then bring it back out of sleep/hibernate (ie open
> the
> > > lid) the CephFS mounts are "not present". The only way to get them back
> > is
> > > to run `mount -a` as either root or as sudo. This, as I'm sure you'll
> > > agree, is less than ideal - especially as this is a pilot project for
> > > non-admin users (ie they won't have access to the root account or sudo
> on
> > > their own (corporate) laptops).
> > >
> > > So, my question to the combined wisdom of the Community is what's the
> > best
> > > way to resolve this issue?
> > >
> > > I've looked at autofs, and even tried (half-heartedly - it was late,
> and
> > I
> > > wanted to go home  :-) ) to get this running, but I'm note sure if this
> > is
> > > the best way to resolve things.
> > >
> > > All help and advice on this greatly appreciated - thank in advance
> > >
> > > Cheers
> > >
> > > Dulux-Oz
> > > _______________________________________________
> > > ceph-users mailing list -- ceph-users@xxxxxxx
> > > To unsubscribe send an email to ceph-users-leave@xxxxxxx
> > >
> > >
> > _______________________________________________
> > ceph-users mailing list -- ceph-users@xxxxxxx
> > To unsubscribe send an email to ceph-users-leave@xxxxxxx
> >
> _______________________________________________
> ceph-users mailing list -- ceph-users@xxxxxxx
> To unsubscribe send an email to ceph-users-leave@xxxxxxx
>
_______________________________________________
ceph-users mailing list -- ceph-users@xxxxxxx
To unsubscribe send an email to ceph-users-leave@xxxxxxx




[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux