Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.
LINBIT Support - Lars Ellenberg wrote: > On Fri, May 16, 2008 at 06:30:55PM +0100, Ian Knight wrote: > >> Lars Ellenberg wrote: >> >>> On Fri, May 16, 2008 at 01:06:49PM +0100, Ian Knight wrote: >>> >>> >>>> Hi, >>>> >>>> We have a situation where we need to update the hostname of the >>>> machines that host a drbd system. >>>> >>>> I thought it would be a matter of update hostname, and then update >>>> the drbd.conf and restart drbd. >>>> >>>> Sadly this does not seem to be the case, as it seems drbd stores the >>>> hostnames in the meta-data - is there anyway to update this? >>>> >>>> >>> no, it does not. >>> what makes you think so? >>> >>> what does "uname -n" say? >>> > > >> Uname -n would return the master.CORRECTDOMAIN.com >> > > would you please just type in "uname -n", > and copy'n'paste the output into your drbd.conf? > > For security reasons i can not on a public list - but it is "master.CORRECTDOMAIN.com" >> For the time being i have had to set the hostname back to >> master.INCORRECTDOMAIN.com - but ideally i would like to update it >> properly which means updating the hostname within the meta-data i would >> imagine. >> > > again, DRBD does NOT store anything hostname related anywhere. > drbdadm just does a "uname -n" equivalent, and looks for a "on > $thatname" section in the config file. > > So does drbdadm dump-xml just get its info from the drbd.conf file? > do you happen to use the ofc drbd resource agent, > and the "clone overrides hostname" misfeature? > if so, you'd need to change your "override" as well... > > Im afraid i dont understand this question - i am just using drbd on a centos5 x86_64 kernel. -- Ian