From owner-freebsd-current@FreeBSD.ORG Thu Oct 7 23:34:40 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EC45C16A4CE; Thu, 7 Oct 2004 23:34:39 +0000 (GMT) Received: from mail.mcneil.com (mcneil.com [24.199.45.54]) by mx1.FreeBSD.org (Postfix) with ESMTP id AE48643D41; Thu, 7 Oct 2004 23:34:39 +0000 (GMT) (envelope-from sean@mcneil.com) Received: from localhost (localhost.mcneil.com [127.0.0.1]) by mail.mcneil.com (Postfix) with ESMTP id 6395BF1BF2; Thu, 7 Oct 2004 16:34:39 -0700 (PDT) Received: from mail.mcneil.com ([127.0.0.1]) by localhost (server.mcneil.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00667-09; Thu, 7 Oct 2004 16:34:38 -0700 (PDT) Received: from [24.199.45.54] (mcneil.com [24.199.45.54]) by mail.mcneil.com (Postfix) with ESMTP id AC779F1BED; Thu, 7 Oct 2004 16:34:38 -0700 (PDT) From: Sean McNeil To: Doug Barton In-Reply-To: <20041007161322.S826@bo.vpnaa.bet> References: <20041007015527.M6673@alpha.siliconlandmark.com> <1097133252.92555.1.camel@server> <20041007161322.S826@bo.vpnaa.bet> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-ANEL331J2eKLLfYzwRJC" Message-Id: <1097192078.1794.6.camel@server> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Thu, 07 Oct 2004 16:34:38 -0700 X-Virus-Scanned: by amavisd-new at mcneil.com cc: freebsd-current@freebsd.org cc: Ryan Newman Subject: RE: mergemaster just screwed me X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Oct 2004 23:34:40 -0000 --=-ANEL331J2eKLLfYzwRJC Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Thu, 2004-10-07 at 16:22, Doug Barton wrote: > On Thu, 7 Oct 2004, Sean McNeil wrote: >=20 > > On Wed, 2004-10-06 at 22:59, Andre Guibert de Bruet wrote: > >> On Wed, 6 Oct 2004, Ryan Newman wrote: > >> > >>>> From: Sean McNeil > >>>> To: freebsd-current@freebsd.org > >>>> Subject: mergemaster just screwed me > >>>> Date: Wed, 06 Oct 2004 11:48:58 -0700 > >>>> > >>>> I just ran mergemaster and it deleted my named.conf and everything > >>>> else. I'm guessing it did an rm /etc/namedb/* or something like tha= t. >=20 >=20 > Mergemaster doesn't do anything of the sort. It never takes action on=20 > any file or directory on the system unless the user tells it to. Doesn't do it on purpose ;) > >>>> My system was setup correctly with /etc/namedb linked to > >>>> /var/named/etc/namedb and it was all placed properly. :( >=20 > When you say "it was all placed properly," what do you mean by that? Everything according to UPDATING. I've had bind9 working for a good deal of time. Close to immediately after it was put in current. > >> I don't mean to be an ass, but you *need to read UPDATING* when you > >> upgrade CURRENT. The 20040928 entry detailed the steps required for a > >> smooth transition from bind8 to bind9. > > > > I don't take your comment as anything but informative. In my case, > > however, I *DID* read UPDATING and I followed it completely. My system > > was completely working with bind9 and then I did a mergemaster and it > > wiped out all my settings!!!! >=20 > The good news is that if you actually followed the instructions in=20 > UPDATING you should have a copy of your old settings in /etc/namedb.bak.=20 > And of course, the mergemaster man page counsels you to make good=20 > backups before running it. Yes, I was fortunate to have things backed up. > In order to debug this we'll need more information: >=20 > 1. How do you usually invoke mergemaster? > 2. Do you have a .mergemasterrc file? > 3. Do you run a MM_PRE_COMPARE_SCRIPT? > 4. Do you have any *_BIND_* options in /etc/make.conf? > 5. Output of 'ls -la /etc/namedb /var/named/etc/namedb' 1. I invoke by simply typing mergemaster. 2. yes, the contents are: MM_PRE_COMPARE_SCRIPT=3D/usr/local/bin/mergemaster_precompare 3. The contents of /usr/local/bin/mergemaster_precompare are... #!/bin/sh # NOTE: No PATH needed, because mm's PATH is already draconian enough case "${PRE_WORLD}" in '') rm -f ${TEMPROOT}/etc/motd rm -f ${TEMPROOT}/etc/hosts ${TEMPROOT}/etc/hosts.allow rm -f ${TEMPROOT}/etc/mail/mailer.conf rm -f ${TEMPROOT}/etc/ssl/openssl.cnf rm -f ${TEMPROOT}/etc/namedb/PROTO.* ${TEMPROOT}/etc/namedb/named.* \ ${TEMPROOT}/etc/namedb/make-localhost ;; esac ARGH!!!!! That must be it. Deleting them in TEMPROOT causes them to go away in /var/named? Thanks for the insight. Now, is what I did here wrong or is this an issue with the way things are moved around? Cheers, Sean --=-ANEL331J2eKLLfYzwRJC Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQBBZdKOyQsGN30uGE4RAg5pAKDPOa20U/R5eyzKt4kRKytPv9kvPQCcDdkA CqtizxIEF6OYfHTzpcMHni4= =yzCC -----END PGP SIGNATURE----- --=-ANEL331J2eKLLfYzwRJC--