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
We're using autofs with CephFS since a couple of years now, what exactly doesn't work, can you share more details? Zitat von Derrick Lin <klin938@gmail.com>:
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@ceph.io To unsubscribe send an email to ceph-users-leave@ceph.io
Hi Eugen I configured auto.master and a mount point file auto.ceph with the following entry. I am wondering if you can show me what your autofs entry looks like? Thanks ceph -fstype=ceph,name=cephfs,conf=/etc/ceph/mini_conf.conf,secretfile=/etc/ceph/client.cephfs,noatime :/ On Mon, Jun 15, 2020 at 5:33 PM Eugen Block <eblock@nde.ag> wrote:
We're using autofs with CephFS since a couple of years now, what exactly doesn't work, can you share more details?
Zitat von Derrick Lin <klin938@gmail.com>:
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@ceph.io To unsubscribe send an email to ceph-users-leave@ceph.io
_______________________________________________ ceph-users mailing list -- ceph-users@ceph.io To unsubscribe send an email to ceph-users-leave@ceph.io
Hi, the autofs on our clients is configured to use LDAP, so there's one more layer. This is the current setup: # autofs on LDAP server /etc/sysconfig/autofs:SEARCH_BASE="ou=cephfs,ou=AUTOFS,[...]" # LDAP config -fstype=ceph,name=autofs,secretfile=/etc/ceph/autofs.key,nodev,nosuid <mon1>,<mon2>,<mon3>:/path/to/share Does this help? Regards, Eugen Zitat von Derrick Lin <klin938@gmail.com>:
Hi Eugen
I configured auto.master and a mount point file auto.ceph with the following entry. I am wondering if you can show me what your autofs entry looks like? Thanks
ceph -fstype=ceph,name=cephfs,conf=/etc/ceph/mini_conf.conf,secretfile=/etc/ceph/client.cephfs,noatime :/
On Mon, Jun 15, 2020 at 5:33 PM Eugen Block <eblock@nde.ag> wrote:
We're using autofs with CephFS since a couple of years now, what exactly doesn't work, can you share more details?
Zitat von Derrick Lin <klin938@gmail.com>:
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@ceph.io To unsubscribe send an email to ceph-users-leave@ceph.io
_______________________________________________ ceph-users mailing list -- ceph-users@ceph.io To unsubscribe send an email to ceph-users-leave@ceph.io
Thanks Eugen Your environment is different from mine, but I will take your example and keep exploring. Thanks! Cheers D On Wed, Jun 17, 2020 at 4:58 PM Eugen Block <eblock@nde.ag> wrote:
Hi,
the autofs on our clients is configured to use LDAP, so there's one more layer. This is the current setup:
# autofs on LDAP server /etc/sysconfig/autofs:SEARCH_BASE="ou=cephfs,ou=AUTOFS,[...]"
# LDAP config -fstype=ceph,name=autofs,secretfile=/etc/ceph/autofs.key,nodev,nosuid <mon1>,<mon2>,<mon3>:/path/to/share
Does this help?
Regards, Eugen
Zitat von Derrick Lin <klin938@gmail.com>:
Hi Eugen
I configured auto.master and a mount point file auto.ceph with the following entry. I am wondering if you can show me what your autofs entry looks like? Thanks
ceph
-fstype=ceph,name=cephfs,conf=/etc/ceph/mini_conf.conf,secretfile=/etc/ceph/client.cephfs,noatime
:/
On Mon, Jun 15, 2020 at 5:33 PM Eugen Block <eblock@nde.ag> wrote:
We're using autofs with CephFS since a couple of years now, what exactly doesn't work, can you share more details?
Zitat von Derrick Lin <klin938@gmail.com>:
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@ceph.io To unsubscribe send an email to ceph-users-leave@ceph.io
_______________________________________________ ceph-users mailing list -- ceph-users@ceph.io To unsubscribe send an email to ceph-users-leave@ceph.io
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,noauto,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-timeout=30,x-systemd.mount-timeout=30,noatime,_netdev,noauto,x-systemd.automount,x-systemd.idle-timeout=30,ro 0 2 Cheers, Dan On Mon, Jun 15, 2020 at 9:27 AM Derrick Lin <klin938@gmail.com> 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@ceph.io To unsubscribe send an email to ceph-users-leave@ceph.io
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: [ceph-users] 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@gmail.com> 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@ceph.io To unsubscribe send an email to ceph-users-leave@ceph.io
ceph-users mailing list -- ceph-users@ceph.io To unsubscribe send an email to ceph-users-leave@ceph.io
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: [ceph-users] 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@gmail.com> 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@ceph.io To unsubscribe send an email to ceph-users-leave@ceph.io
ceph-users mailing list -- ceph-users@ceph.io To unsubscribe send an email to ceph-users-leave@ceph.io
_______________________________________________ ceph-users mailing list -- ceph-users@ceph.io To unsubscribe send an email to ceph-users-leave@ceph.io
-- Tony Lill, OCT, ajlill@AJLC.Waterloo.ON.CA 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/ ---------------
participants (5)
-
Dan van der Ster
-
Derrick Lin
-
Eugen Block
-
Marc Roos
-
Tony Lill