From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Wilson Guerrero Coltters Newsgroups: gmane.os.tru64.managers Subject: Restore root disk under RAID controller with new identity Date: Fri, 29 Oct 2004 17:39:19 -0700 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <200410291739.19934.wguerrero@csh.cl> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1099085275 2969 80.91.229.6 (29 Oct 2004 21:27:55 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 29 Oct 2004 21:27:55 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Fri Oct 29 22:40:49 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 1CNdYG-0005gg-00 for ; Fri, 29 Oct 2004 22:40:49 +0200 Original-Received: (qmail 12851 invoked by uid 5); 29 Oct 2004 20:40:12 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 12808 invoked by uid 49501); 29 Oct 2004 20:40:12 -0000 Original-Received: from wguerrero@csh.cl 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(-3.0/5.0):. Processed in 0.626186 secs); 29 Oct 2004 20:40:12 -0000 Original-Received: from unknown (HELO emroute3.ornl.gov) (160.91.4.110) by 0 with SMTP; 29 Oct 2004 20:40:11 -0000 Original-Received: from emroute3.ornl.gov (localhost [127.0.0.1]) by emroute3.ornl.gov (PMDF V6.2-X27 #30899) with ESMTP id <0I6D002WR5ES87@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Fri, 29 Oct 2004 16:40:10 -0400 (EDT) Original-Received: from VIRUSCAN-DAEMON.emroute3.ornl.gov by emroute3.ornl.gov (PMDF V6.2-X27 #30899) id <0I6D006025E3GV@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Fri, 29 Oct 2004 16:39:48 -0400 (EDT) Original-Received: from ALERCE.Huachipato.csh.cl ([200.10.221.110]) by emroute3.ornl.gov (PMDF V6.2-X27 #30899) with ESMTP id <0I6D0059U5E153@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Fri, 29 Oct 2004 16:39:39 -0400 (EDT) Original-To: tru64-unix-managers@ornl.gov Content-Disposition: inline X-Envelope-From: X-ORNL-Envelope-To: tru64-unix-managers@sws1.ctd.ornl.gov rfc822;tru64-unix-managers@ornl.gov Xref: main.gmane.org gmane.os.tru64.managers:7722 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:7722 Hi Managers, I have this problem: Tru64 4.0G Suppose: 1-. You have the boot disk under a RAID controller (KZPCC). 2-. The root disk is lost (disk failure, both from a RAID 1, go figure :)). 3-. The root partition was in /dev/ri1a. 3-. You have a working backup of the root disk. Then, a service man replace the failed disk with other, BUT he configure it through the RAID configuration utility so the ID of the disk is changed. The new identity now is ri2. So, you use the boot CD, MAKEDEV ri2 , disklabel, format, (the new ID) restore the system to, eg., /dev/ri2a (mounted on /mnt) and there you go. You modify /mnt/etc/fstab to refer now to /dev/ri2a / /dev/ri2g /usr etc. BUT, you cannot boot from the new disk because /mnt/dev/ri2a ... /mnt/dev/ri2h are not on /mnt/dev. Can you just do this? (CD prompt) # cd dev # cp -p ri2* /mnt/dev/ # cp -p rri2* /mnt/dev/ so the new disk is bootable? I ask this because that was what happened to me last weekend. I hadn't the boot CD from 4.0G but the boot CD from 5.1B from other machine, so I use the steps above and I stopped at that point. Anyway, I just used other disk already configured by the old system so the /dev/ri?[a-h] entries were already in place. But I'm already thinking about it. Read the Installation Guide, Advanced Topics from 5.1B and I understand from section 3.7 "Restoring the Root File System Image from a Damaged Disk to a New Disk" that you can use commands like /sbin/mountroot and dsfmgr to change the new disk identity. I haven't found something similar for 4.0G. Anyway, I found a boot CD from 4.0F . I don't have a spare machine to reproduce the problem right now, but I intend to do it a.s.a.p. Could a boot -fi genvmunix help? I wonder, because if you boot from the new restored disk (/dev/ri2a) you still cannot mount root (mount -u /) read write so you could create the /dev/ri2?? entries. Regards to all, Wilson wguerrero@csh.cl