From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Cohen, Andy" Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: domain panic Date: Fri, 16 Jul 2004 15:12:54 -0400 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <9D592DB37A92234AB635C5585D2D08190135D404@cobra.pc.cognex.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1090005226 26840 80.91.224.253 (16 Jul 2004 19:13:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 16 Jul 2004 19:13:46 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Fri Jul 16 21:13:36 2004 Return-path: Original-Received: from sws1.ornl.gov ([160.91.1.101]) by deer.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 1BlY9H-0002uL-00 for ; Fri, 16 Jul 2004 21:13:36 +0200 Original-Received: (qmail 6742 invoked by uid 5); 16 Jul 2004 19:13:23 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 6665 invoked by uid 49501); 16 Jul 2004 19:13:21 -0000 Original-Received: from Andy.Cohen@cognex.com by sws1 by uid 49491 with qmail-scanner-1.21 (clamdscan: 0.70-rc. iscan: v3.1/v5.600-1011/847/50540. spamassassin: 2.63. Clear:RC:0(160.91.4.110):SA:0(-4.9/5.0):. Processed in 1.785141 secs); 16 Jul 2004 19:13:21 -0000 Original-Received: from unknown (HELO emroute3.ornl.gov) (160.91.4.110) by 0 with SMTP; 16 Jul 2004 19:13:19 -0000 Original-Received: from emroute3.ornl.gov (localhost [127.0.0.1]) by emroute3.ornl.gov (PMDF V6.2-X27 #30899) with ESMTP id <0I0Y009I2LDTH7@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Fri, 16 Jul 2004 15:13:17 -0400 (EDT) Original-Received: from VIRUSCAN-DAEMON.emroute3.ornl.gov by emroute3.ornl.gov (PMDF V6.2-X27 #30899) id <0I0Y00F02LDMET@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Fri, 16 Jul 2004 15:13:01 -0400 (EDT) Original-Received: from cognex.cognex.com (cognex-cp.cognex.com [198.232.30.75]) by emroute3.ornl.gov (PMDF V6.2-X27 #30899) with ESMTP id <0I0Y00F09LDKE1@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Fri, 16 Jul 2004 15:12:57 -0400 (EDT) Original-Received: from atlantis.pc.cognex.com (atlantis.pc.cognex.com [10.10.160.5]) by cognex.cognex.com (8.12.11/8.12.11) with ESMTP id i6GJCtXO016488 for ; Fri, 16 Jul 2004 15:12:55 -0400 (EDT) Original-Received: from cobra.pc.cognex.com ([10.10.160.30]) by atlantis.pc.cognex.com with Microsoft SMTPSVC(5.0.2195.6713); Fri, 16 Jul 2004 15:12:55 -0400 Original-Received: from atlantis.pc.cognex.com ([10.10.160.5]) by cobra.pc.cognex.com with Microsoft SMTPSVC(5.0.2195.6713); Thu, 15 Jul 2004 16:22:23 -0400 Original-Received: from mail-gw.cognex.com ([10.10.128.26]) by atlantis.pc.cognex.com with Microsoft SMTPSVC(5.0.2195.6713); Thu, 15 Jul 2004 16:22:23 -0400 Original-Received: from sws1.ornl.gov (sws1.ornl.gov [160.91.1.101]) by mail-gw.cognex.com (8.12.11/8.12.11) with SMTP id i6FKLlCw012005 for ; Thu, 15 Jul 2004 16:22:18 -0400 (EDT) Original-Received: (qmail 3664 invoked by uid 5); Thu, 15 Jul 2004 20:21:34 +0000 Original-To: "Tru64-Unix-Managers \(E-mail\)" X-MIMEOLE: Produced By Microsoft Exchange V6.0.6334.0 Thread-Topic: domain panic Thread-Index: AcRqqUz1huDhuIn/RlCZ2n7iL2R2Tg== content-class: urn:content-classes:message X-MS-Has-Attach: X-MS-TNEF-Correlator: X-OriginalArrivalTime: 16 Jul 2004 19:12:55.0193 (UTC) FILETIME=[E5F38890:01C46B68] Xref: main.gmane.org gmane.os.tru64.managers:7307 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:7307 whew! More oustanding help from the list! Basically the suggestions were to run /sbin/advfs/verify and/or run = /sbin/advfs/fixfdmn. I did both but it was the fixfdmn that did the = trick for me. ... and to those that kindly suggested I RTFM -- I would've if I had one = :-) The most information came from Derek Haining: +_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_ Domain panics render the filesystem unavailable until the next mount. Sometimes you must reboot the system before you can attempt to mount the filesystem again. At this point I would recommend commenting this filesystem out of /etc/fstab, rebooting the system, and then checking the filesystem using /sbin/advfs/fixfdmn. Allow me to give you a few tips of fixfdmn if you haven't used fixfdmn before. First, I always recommend running it in the "no fix" mode first. This = is done using the "-n" flag. Once fixfdmn is done examining the domain (which must not be in use at = the time) you should examine the output log file. This is named something like: fixfdmn.kingdom_domain.log :) I expect that you will find that it attempts to clear 512 pages of the transaction log file. This is normal and, in fact, is always done. (Unless you = have a really old copy of fixfdmn.) Look for problems that fixfdmn finds and attempts = to correct. It may simply be that the problem that was causing you = difficulty in removing the volume also caused you to have problems updating the other = data structures that keep information about the domain, such as the number of volumes in use. If this is all it is, this should be a simple fix. Anyway if fixfdmn finds problems then you should probably repair the = domain by running fixfdmn without the "-n" flag. You could try running verify, but verify mounts the domain on a hidden = mount point and uses the kernel to check and/or fix the domain. If the = meta-data on the disk is corrupted, the kernel will simply force another domain = panic. Which is why we wrote fixfdmn -- to get away from the restrictions = imposed by the kernel. We *know* the meta-data could be corrupt. We're trying = t fix it, for goodness' sake! :) +_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_ but thanks also to Graham Allen, Jenny Butler, George Banane, and Kevin = Raubenolt. Andy ORIGINAL QUESTION =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D I removed a volume from a domain and now the domain has panicked: The domain was: root@thor=3D=3D> showfdmn -k home_domain Id Date Created LogPgs Version Domain Name 3d0e2d5a.0007c3dd Mon Jun 17 14:41:30 2002 512 4 = home_domain Vol 1K-Blks Free % Used Cmode Rblks Wblks Vol Name 1L 835760 710560 15% on 256 256 = /dev/disk/dsk12a 2 839472 735432 12% on 256 256 = /dev/disk/dsk12b 3 839472 722672 14% on 256 256 = /dev/disk/dsk12d 4 839472 724952 14% on 256 256 = /dev/disk/dsk12e 5 835840 721952 14% on 256 256 = /dev/disk/dsk12f 6 3548920 3142696 11% on 256 256 = /dev/disk/dsk13b 7 7125776 7109096 0% on 256 256 = /dev/disk/dsk15b <=3D=3D=3D 8 3567800 3239152 9% on 256 256 = /dev/disk/dsk13a 9 3548920 3216272 9% on 256 256 = /dev/disk/dsk13d 10 3548920 3202840 10% on 256 256 = /dev/disk/dsk13e 11 3567968 3146144 12% on 256 256 = /dev/disk/dsk13f ---------- ---------- ------ 29098320 26671768 8% I issued: rmvol /dev/disk/dsk15b and removed the volume. Now I can't do anything with /home. This message is in = /var/adm/messages: Jul 15 15:07:57 thor vmunix: Jul 15 15:07:57 thor vmunix: bs_inherit - bmtr_get_rec failed, return = code =3D -1043 Jul 15 15:07:57 thor vmunix: AdvFS Domain Panic; Domain home_domain Id = 0x3d0e2d5a.0007c3dd Jul 15 15:07:57 thor vmunix: An AdvFS domain panic has occurred due to = either a metadata write error or an internal inconsistency. This domain = is being rende red inaccessible. Jul 15 15:07:57 thor vmunix: Please refer to guidelines in AdvFS Guide = to File System Administration regarding what steps to take to recover = this domain. in etc/fdmns/home_domain: lrwxr-xr-x 1 root system 16 Nov 12 2002 dsk12a -> = /dev/disk/dsk12a lrwxr-xr-x 1 root system 16 Nov 12 2002 dsk12b -> = /dev/disk/dsk12b lrwxr-xr-x 1 root system 16 Nov 12 2002 dsk12d -> = /dev/disk/dsk12d lrwxr-xr-x 1 root system 16 Nov 12 2002 dsk12e -> = /dev/disk/dsk12e lrwxr-xr-x 1 root system 16 Nov 12 2002 dsk12f -> = /dev/disk/dsk12f lrwxr-xr-x 1 root system 16 Jul 14 15:20 dsk13a -> = /dev/disk/dsk13a lrwxr-xr-x 1 root system 16 Jul 14 15:31 dsk13b -> = /dev/disk/dsk13b lrwxr-xr-x 1 root system 16 Jul 14 15:31 dsk13d -> = /dev/disk/dsk13d lrwxr-xr-x 1 root system 16 Jul 14 15:31 dsk13e -> = /dev/disk/dsk13e lrwxr-xr-x 1 root system 16 Jul 14 15:31 dsk13f -> = /dev/disk/dsk13f I tried advscan: root@thor=3D=3D> /sbin/advfs/advscan -a -f home_domain Scanning devices /dev/rdisk/dsk0 /dev/rdisk/dsk4 /dev/rdisk/dsk12 = /dev/rdisk/dsk13 /dev/rdisk/dsk5 /dev/rdisk/dsk6 /dev/rdisk/dsk7 /dev/rdisk/dsk1 = /dev/rdisk/dsk8 Attempting to fix link/dev_count for domain home_domain Nothing to fix but it still doesn't work. How can I fix this? Salvage seems overkill. Can I remove the links in = /etc/fdmns/home_domain and recreate the home_domain from scratch using = the same configuration? Thank you!! Andy Andy Cohen=20 Database Systems Administrator=20 Cognex Corporation=20 1 Vision Drive=20 Natick, MA 01760=20