On Sun, Jul 15, 2012 at 11:05 AM, Székelyi Szabolcs <szekelyi@xxxxxxx> wrote: > Just a humble remark here: actually the host= setting has to match the > hostname *until the first dot*. If your hostname contains a dot, this will not > work. This can be useful in a number of cases, like setting the hostname to > indicate the group of a hierarchy level in the name so that the administrator > can extactly know what he's working on after logging in (I mean hostnames like > node<X>.rack<Y> in a datacenter or node<X>.<site> when running a > geographically distributed cluster). > > From this comes my request: do you think it's possible to change (I mean, in > the repository) ceph_common.sh not to cut the output of `hostname` at the first > dot? I'm running a cluster with hostnames like that, and now I have to edit > that file after each upgrade. There are two concepts here: - the "short" hostname is just a string, stored in the kernel, can be changed with "sudo hostname foo.bar" and seen with "hostname" - the "fqdn" (fully qualified domain name) is what you get from "hostname -f"; that is reached by taking the "short" hostname, resolving it to an IP address, and then reverse resolving the IP to dns name; usually all the info needed is in /etc/hosts, but it'll use DNS if it has to. If this cannot be done, the "fqdn" is the same as the "short" hostname. I see ceph_common.sh currently does hostname=`hostname | cut -d . -f 1`. I think ceph.conf should use the "short" hostname, without modification. So whatever you tell your kernel the hostname is, that's what it'd use. For example, you could set up a hostname of foo.bar, and make the fqdn be foo.bar.baz.example.com. But that change might break existing setups.. -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html