What I have been doing with CephFS is make a number of hosts export the same 
CephFS mountpoints i.e

cephfs01:/cephfs/home
cephfs02:/cephfs/home
...

I then put the hosts all under a common DNS A record i.e "cephfs-nfs" so it 
resolves to all of the hosts exporting the share.

I then use autofs on the clients to mount the share as needed with the source 
host being "cephfs-nfs:/cephfs/home".  Autofs will automatically pick one of 
the hosts to mount and in the event it becomes unavailable autofs will remount 
using one of the other hosts in the A record.

If you wanted you could get more funky with the automount maps and use 
priorities and list the hosts individually, but the above is simple and seems 
to works well.



From: ceph-users [mailto:[email protected]] On Behalf Of Smith, 
Eric
Sent: Thursday, 21 December 2017 7:36 AM
To: nigel davies <[email protected]>; [email protected]
Subject: Re: [ceph-users] Cephfs NFS failover


We did this with RBD, pacemaker, and corosync without issue - not sure about 
CephFS though. You might have to use something like sanlock maybe?

________________________________
From: ceph-users 
<[email protected]<mailto:[email protected]>> 
on behalf of nigel davies <[email protected]<mailto:[email protected]>>
Sent: Wednesday, December 20, 2017 12:45 PM
To: [email protected]<mailto:[email protected]>
Subject: [ceph-users] Cephfs NFS failover

Hay all

Can any one advise on how it can do this.

I have set up an test ceph cluster

3 osd system
2 NFS servers

I want to set up the two NFS serves as an failover process. So if one fails the 
other starts up.

I have tried an few ways and getting stuck any advise would be gratefully 
received on this one

Confidentiality: This email and any attachments are confidential and may be 
subject to copyright, legal or some other professional privilege. They are 
intended solely for the attention and use of the named addressee(s). They may 
only be copied, distributed or disclosed with the consent of the copyright 
owner. If you have received this email by mistake or by breach of the 
confidentiality clause, please notify the sender immediately by return email 
and delete or destroy all copies of the email. Any confidentiality, privilege 
or copyright is not waived or lost because this email has been sent to you by 
mistake.
_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Reply via email to