From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Didier Godefroy Newsgroups: gmane.os.tru64.managers Subject: Problem with lost configuration in LSM (more info) Date: Wed, 15 Dec 2010 13:00:09 +0100 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1292414444 9193 80.91.229.12 (15 Dec 2010 12:00:44 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 15 Dec 2010 12:00:44 +0000 (UTC) To: Tru64 Unix managers Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Wed Dec 15 13:00:40 2010 Return-path: Envelope-to: gotm-tru64-unix-managers@lo.gmane.org Original-Received: from sws1.ornl.gov ([160.91.1.101]) by lo.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1PSq2B-0006Ni-FI for gotm-tru64-unix-managers@lo.gmane.org; Wed, 15 Dec 2010 13:00:40 +0100 Original-Received: (qmail 582 invoked by uid 49509); 15 Dec 2010 12:00:28 -0000 Original-Sender: tru64-unix-managers-owner@ornl.gov Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 572 invoked by uid 49501); 15 Dec 2010 12:00:28 -0000 Original-Received: from 160.91.86.17 by sws1 (envelope-from , uid 49491) with qmail-scanner-1.25 (clamdscan: 0.83/743. spamassassin: 3.0.2. Clear:RC:0(160.91.86.17):SA:0(-2.6/5.0):. Processed in 0.840607 secs); 15 Dec 2010 12:00:28 -0000 X-Spam-Status: No, hits=-2.6 required=5.0 Original-Received: from emroute2.ornl.gov (160.91.86.17) by sws1.ornl.gov with SMTP; 15 Dec 2010 12:00:27 -0000 Original-Received: from emroute2.ornl.gov ([127.0.0.1]) by emroute2.ornl.gov (PMDF V6.5-x5 #31823) with ESMTP id <0LDG00KEQXCRA6@emroute2.ornl.gov> for tru64-unix-managers@sws1.ornl.gov (ORCPT tru64-unix-managers@ornl.gov); Wed, 15 Dec 2010 07:00:27 -0500 (EST) Original-Received: from CONVERSION-DAEMON.emroute2.ornl.gov by emroute2.ornl.gov (PMDF V6.5-x5 #31823) id <0LDG00M01XCRQ0@emroute2.ornl.gov> for tru64-unix-managers@sws1.ornl.gov (ORCPT tru64-unix-managers@ornl.gov); Wed, 15 Dec 2010 07:00:27 -0500 (EST) Original-Received: from VIRUSCAN-DAEMON.emroute2.ornl.gov by emroute2.ornl.gov (PMDF V6.5-x5 #31823) id <0LDG00M02XCJPU@emroute2.ornl.gov> for tru64-unix-managers@sws1.ornl.gov (ORCPT tru64-unix-managers@ornl.gov); Wed, 15 Dec 2010 07:00:27 -0500 (EST) Original-Received: from orbhost.net (orbhost.com [207.218.123.239]) by emroute2.ornl.gov (PMDF V6.5-x5 #31823) with ESMTP id <0LDG00E5VXCI0S@emroute2.ornl.gov> for tru64-unix-managers@sws1.ornl.gov (ORCPT tru64-unix-managers@ornl.gov); Wed, 15 Dec 2010 07:00:19 -0500 (EST) Original-Received: from [192.168.0.10] (cro10-3-88-186-79-57.fbx.proxad.net [88.186.79.57]) by orbhost.net (8.13.7/8.13.7) with ESMTP id oBFC0FWJ358934 for ; Wed, 15 Dec 2010 07:00:17 -0500 (EST) X-Envelope-from: ldg@ulysium.net User-Agent: Microsoft-Entourage/12.28.0.101117 Thread-Topic: Problem with lost configuration in LSM (more info) Thread-Index: AcucT57BXLAzln7Hck++JKd/NEkvhg== X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on spam5.ornl.gov X-Spam-Level: X-Qmail-Scanner-MOVED-X-Spam-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,BOTNET_SOHO autolearn=ham version=3.3.1 X-Spam-Virus: No X-Spam-Timing: total 4931 ms - signal_user_changed: 7 (0.1%), parse: 5 (0.1%), extract_message_metadata: 33 (0.7%), get_uri_detail_list: 37 (0.8%), tests_pri_-1000: 19 (0.4%), tests_pri_-950: 3 (0.1%), tests_pri_-900: 3 (0.1%), tests_pri_-400: 136 (2.8%), check_bayes: 119 (2.4%), tests_pri_0: 4294 (87.1%), check_dkim_signature: 2 (0.0%), check_dkim_adsp: 10 (0.2%), check_spf: 154 (3.1%), poll_dns_idle: 141 (2.9%), check_razor2: 848 (17.2%), check_dcc: 344 (7.0%), check_pyzor: 501 (10.2%), tests_pri_500: 17 (0.3%), tests_pri_1000: 14 (0.3%), total_awl: 11 (0.2%), check_awl: 1.68 (0.0%), update_awl: 3 (0.1%), learn: 354 (7.2%), rewrite_mail: 0.00 (0.0%) X-Spam-Relay-Country: US FR Xref: news.gmane.org gmane.os.tru64.managers:9470 Archived-At: Hi all again, My continued investigations and attempts at reconnecting the lost lsm configuration are pointing to a quite possible corruption of the configuration data. I forgot to mention that I'm on tru64 5.1b and I only have remote access to my machine with only the command line to work with to fix this, with no knowledgeable people on this platform on site to help me fix this. The vold daemon can start but finds no valid configuration copies: vold -k -x log lsm:vold: ERROR: enable failed: Error in disk group configuration copies Disk group has no valid configuration copies; transactions are disabled. I tried many things with vold and voldctl, even volprivutil to pull up one of the configuration copies that I know is there. The volprivutil dumpconfig that I did on the private region of the hot spare drive, which I know does contain a configuration copy, does list the configuration but also gives an error: lsm:volconfigdump: ERROR: Error (File block 8): Format error in configuration copy Which I understand as being a corrupt configuration on disk. I also assume all the configuration copies would contain the same thing, so I guess all the copies would pull up the same. When I try to run commands, the vold daemon doesn't have a valid configuration loaded, for example: volprint lsm:volprint: ERROR: No disk groups loaded If I started vold in disabled mode: voldctl mode mode: disabled And I try to enable it, I get more hints of corruption in the configuration: voldctl enable lsm:vold: ERROR: enable failed: Error in disk group configuration copies Disk group has no valid configuration copies; transactions are disabled. lsm:voldctl: ERROR: enable failed: Error in disk group configuration copies I do have an old volsave configuration from 2006, which should be fairly close to the present one because hardly anything has changed in all that time except for drive swaps and perhaps slight naming changes on plexes, subdisks small details like this. I also had added log plexes, which aren't enabled now because of this issue. The only volume I could not re-enable and re-mirror was the var volume, which also has the logging plexes and subdisks with it. With vold unable to load any valid configuration, I can't use any configuration commands and get information. Using volprivutil and editing text files manually might be my only options to troubleshoot and fix this. Having just about all the information on the configuration, I should be able to patch up whatever is broken in the configuration and attempt to get it back to a usable state, if I only knew what to patch up exactly and how. Once vold can load a configuration, I should be able to fix up whatever small detail isn't quite right in the configuration (maybe). I won't take the risk of a reboot right now, I think it's highly likely that something would go badly wrong on restart and the system would probably not get back to a stable state. Having no knowledgeable people on that platform on site would make it too difficult to fix this from remote (the machine is on the east us coast and I'm in europe at present). The only available access I have to fix this is the command line. The x11 and ssh are both disabled on that machine right now, so that doesn't leave much else. I am digging into the "tru64 filesystem administration handbook" for info on the structure and hints on how I could patch this up manually, but I haven't figured this out yet. Can anyone get me on the right track? Thanks all, on 12/13/10 11:35 PM, Didier Godefroy at ldg@ulysium.net uttered the following: > Hello all who's left on this list, > > I haven't had any troubles with my systems for years now so I haven't been > active on this list, but now I have a problem that's becoming urgent. > > What happened is that I had a failed disk that I replaced and I was only > able to reestablish part of the mirroring that was there before. > > The machine is an alpha 1200 and I have drives in all 7 bays, with the scsi > bus split and two controllers, so I have 4 drives on one controller and 3 on > the other. > > I have my disks named as dsk0..dsk6 with dsk0, dsk1, dsk2 and dsk6 on the > first scsi controller on the 4 top bays, and then dsk3, dsk4 and dsk5 on the > other controller. > > The dsk0 is the boot disk, with root, swap, usr and var in dsk0a, dsk0b, > dsk0d and dsk0f respectively. That disk was encapsulated and it is mirrored > on dsk3. > > I was thinking I had several configuration copies, and I pretty sure I did, > but now after replacing the dsk3 that had failed, after trying to > reestablish all the mirroring, something must've happened and there are no > longer any configuration copies found. > > To replace the failed disk, I swapped it physically and used hwmgr to scan > the new disk and then I swapped the name dsk3 with the newly created dsk10 > with dsfmgr so I would have that new drive in the same location and with the > same name as the previous one. > > So far, this worked fine. Then I reestablished the mirroring on the root > volume using voldiskadm with option 4 first to remove the failed disk and > then re-add it with the option 5 which worked fine. > I did the same thing with the swap volume and that also went fine. > However when I tried doing this with the usr and var volumes, I was getting > some errors such as those: > > lsm:volplex: ERROR: Volume usrvol, plex usr-pl-02, block 0: Plex write: > Error: Write failure > lsm:volplex: ERROR: sd usr-sd-02 in plex usr-pl-02 failed during attach > lsm:volplex: ERROR: I/O error on plex usr-pl-02, not attached to volume > usrvol > lsm:volplex: ERROR: DRL write to volume usrvol failed: > No such device or address > lsm:volplex: ERROR: Write of active log to volume usrvol failed: > No such device or address > lsm:volplex: ERROR: I/O error on plex usrvol-01, not attached to volume > usrvol > lsm:volplex: ERROR: Volume varvol, plex var-pl-02, block 0: Plex write: > Error: Write failure > lsm:volplex: ERROR: sd var-sd-02 in plex var-pl-02 failed during attach > lsm:volplex: ERROR: I/O error on plex var-pl-02, not attached to volume > varvol > lsm:volplex: ERROR: DRL write to volume varvol failed: > No such device or address > lsm:volplex: ERROR: Write of active log to volume varvol failed: > No such device or address > lsm:volplex: ERROR: I/O error on plex varvol-01, not attached to volume > varvol > > I think it's mostly because of the configuration copies and the fpa logging. > I had to reverse to the previous state on both and then finally I was able > to get the usr volume back to normal as well, but was left with that var > volume that still wouldn't want to come back to mirroring. > > At some point I was no longer able to get any disk or other info from the > commands like voldisk... Volprint... etc... And I thought the vold daemon > had hung or something like that, so I tried issuing a "vold -k", which > didn't change anything. I tried stopping the vold using voldctl to be able > to restart it manually but it starts and has no configuration copies to > find. > > Trying again to use voldisk, I get this: > > voldisk list > lsm:voldisk: ERROR: Cannot get records from vold: Record not in disk group > > So vold is running, responding, but has no configuration copies to find. > > I only have one disk group, rootdg and besides the mirror on dsk0/dsk3 for > the root/swap/usr/var boot disk, I have dsk1/dsk4 and dsk2/dsk5 as mirrors > for other data volumes and some space reserved on each pairs for an extra > swap volume (3 swap volumes total). > > For now everything still works on the machine but with an lsm configuration > that's broken I could get in serious trouble if something else happened now. > > I was thinking I should try to add more configuration copies, but since > nothing works right now I think it wouldn't work. And I'm not certain of the > exact commands to use to manually add configuration copies and specify where > to put them. > > Are there lsm gurus left on this list who could give me a hint? > > How can I get out of this bad situation? > > Thanks all, -- Didier Godefroy mailto:dg@ulysium.net