Skip to contentSkip to conversation

mount.cephfs with domain name and multiple ip addresses

DISCUSSION Michael Wyraz 3 participants 3 messages Jun 22, 2016

lore
Share & tools
lore
#0 lore raw

Hello,

I have multiple ceph monitor nodes and one domain name that has an a record for each node. I use this record in my fstab, e.g.:

mon.mycephcluster.com:6789:/ /backups/ ceph _netdev

In /proc/mounts, I can see all IPs for mon.mycephcluster.com, e.g.:

1.1.1.1:6789,2.2.2.2:6789,2.2.2.2:6789:/ /backups ceph rw,relatime,acl 0 0

This works perfect and is a really good thing because it makes adding/removing nodes much more easy. What I'd like to know is if this is intended behaviour (in this case it should be documented in the manpage) or if this could have unexpected side effects.

Kind regards,
Michael.

#1 lore raw
Quoted 13 lines

Op 22 jun. 2016 om 07:56 heeft Michael Wyraz <[email protected]> het volgende geschreven:

Hello,

I have multiple ceph monitor nodes and one domain name that has an a record for each node. I use this record in my fstab, e.g.:

mon.mycephcluster.com:6789:/ /backups/ ceph _netdev

In /proc/mounts, I can see all IPs for mon.mycephcluster.com, e.g.:

Quoted 8 lines

1.1.1.1:6789,2.2.2.2:6789,2.2.2.2:6789:/ /backups ceph rw,relatime,acl 0 0

This works perfect and is a really good thing because it makes adding/removing nodes much more easy. What I'd like to know is if this is intended behaviour (in this case it should be documented in the manpage) or if this could have unexpected side effects.

That is the intended behaviour and works as you describe. Nothing weird about this, actually a cool feature of Ceph.

Wido

Quoted 7 lines

Kind regards,
Michael.

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#2 lore raw
Quoted 14 lines · On Wed, 22 Jun 2016, [email protected] wrote:
Quoted 14 lines

Op 22 jun. 2016 om 07:56 heeft Michael Wyraz <[email protected]> het volgende geschreven:

Hello,

I have multiple ceph monitor nodes and one domain name that has an a record for each node. I use this record in my fstab, e.g.:

mon.mycephcluster.com:6789:/ /backups/ ceph _netdev

In /proc/mounts, I can see all IPs for mon.mycephcluster.com, e.g.:

1.1.1.1:6789,2.2.2.2:6789,2.2.2.2:6789:/ /backups ceph rw,relatime,acl 0 0

Quoted 8 lines
Quoted 5 lines

This works perfect and is a really good thing because it makes adding/removing nodes much more easy. What I'd like to know is if this is intended behaviour (in this case it should be documented in the manpage) or if this could have unexpected side effects.

That is the intended behaviour and works as you describe. Nothing weird about this, actually a cool feature of Ceph.

Yes. You can also add multiple A (or AAAA) records to DNS so that your fstab line is simple (e.g., mycluster-mons.foo.com) and can be easily updated (via DNS) when your mons change. Same goes for the mon host = ... line in ceph.conf.

sage