Re: mount cephfs with autofs

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

 



Also, if you are using a newer kernel, add rsize=16777216,wsize=16777216
(or smaller) if you don't want to run out or memory buffers after a few
mount/unmount cycles.

On 6/15/20 6:44 AM, Marc Roos wrote:
>  
> 
> Thanks for these I was missing the x-systemd. entries. I assume these 
> are necessary so booting does not 'hang' on trying to mount these? I 
> thought the _netdev was for this and sufficient?
> 
> 
> 
> 
> 
> -----Original Message-----
> To: Derrick Lin
> Cc: ceph-users
> Subject:  Re: mount cephfs with autofs
> 
> Hi,
> 
> With CentOS 7.8 you can use the systemd autofs options in /etc/fstab.
> Here are two examples from our clusters, first with fuse and second
> with kernel:
> 
> none /cephfs fuse.ceph
> ceph.id=admin,ceph.conf=/etc/ceph/dwight.conf,ceph.client_mountpoint=/,x
> -systemd.device-timeout=30,x-systemd.mount-timeout=30,noatime,_netdev,no
> auto,x-systemd.automount,x-systemd.idle-timeout=30,ro
> 0 2
> 
> cephflax.cern.ch:6789:/ /cephfs2 ceph
> name=admin,secretfile=/etc/ceph/flax.admin.secret,x-systemd.device-timeo
> ut=30,x-systemd.mount-timeout=30,noatime,_netdev,noauto,x-systemd.automo
> unt,x-systemd.idle-timeout=30,ro
> 0 2
> 
> Cheers, Dan
> 
> On Mon, Jun 15, 2020 at 9:27 AM Derrick Lin <klin938@xxxxxxxxx> wrote:
>>
>> Hi guys,
>>
>> I can mount my cephfs via mount command and access it without any 
> problem.
>>
>> Now I want to integrate it in autofs which is used on our cluster.
>>
>> It seems this is not a popular approach and I found only this link:
>>
>> https://drupal.star.bnl.gov/STAR/blog/mpoat/how-mount-cephfs
>>
>> I followed the link but could not get it to work. I am wondering if 
> this is
>> possible at all?
>>
>> We are using CentOS 7.8 and the ceph cluster is running nautilus 
> 14.2.9
>>
>> Regards,
>> Derrick
>> _______________________________________________
>> 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
> 

-- 
Tony Lill, OCT,                     ajlill@xxxxxxxxxxxxxxxxxxx
President, A. J. Lill Consultants               (519) 650 0660
539 Grand Valley Dr., Cambridge, Ont. N3H 2S2   (519) 241 2461
-------------- http://www.ajlc.waterloo.on.ca/ ---------------



Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
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