From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: pchapin@ecet.vtc.edu Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: Rebuilding boot disk. Date: Wed, 18 Sep 2002 13:59:12 -0400 (EDT) Sender: tru64-unix-managers-owner@ornl.gov Message-ID: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: main.gmane.org 1032371927 6745 127.0.0.1 (18 Sep 2002 17:58:47 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 18 Sep 2002 17:58:47 +0000 (UTC) Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.20.101]) by main.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 17rj63-0001kS-00 for ; Wed, 18 Sep 2002 19:58:43 +0200 Original-Received: (qmail 8282 invoked by uid 5); 18 Sep 2002 17:58:54 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 8273 invoked by uid 49493); 18 Sep 2002 17:58:54 -0000 Original-Received: from pchapin@ecet.vtc.edu by sws1 by uid 49491 with qmail-scanner-1.14 (clamscan: 0.24. spamassassin: 2.50-cvs. Clear:SA:0(-1.5/5.0):. Processed in 0.466278 secs); 18 Sep 2002 17:58:54 -0000 Original-Received: from unknown (HELO emroute1.cind.ornl.gov) (160.91.4.119) by 0 with SMTP; 18 Sep 2002 17:58:53 -0000 Original-Received: from emroute1.cind.ornl.gov (localhost [127.0.0.1]) by emroute1.cind.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0H2N0075HBA25L@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Wed, 18 Sep 2002 13:58:53 -0400 (EDT) Original-Received: from morning.ecet.vtc.edu (morning.ecet.vtc.edu [155.42.13.8]) by emroute1.cind.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0H2N00I53B9QXO@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Wed, 18 Sep 2002 13:58:39 -0400 (EDT) Original-Received: from localhost (pchapin@localhost) by morning.ecet.vtc.edu (8.11.6/8.11.6) with ESMTP id g8IHxCM19378 for ; Wed, 18 Sep 2002 13:59:12 -0400 Original-To: tru64-unix-managers@ornl.gov Xref: main.gmane.org gmane.os.tru64.managers:1761 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:1761 Today I rebuilt my boot disk using advice from several people on this list combined with information in the Tru64 documentation. There's a section in the AdvFS administration document that was particularly useful. I thank Bluejay Adametz alan Cory Erickson Simon Millard Dr Thomas Blinn Timothy Brown Greg Freemyer John Galt I was able to install a new boot disk and restore my system without any major problems, although I did run into a couple of quirks. Here is the procedure I used (cleaned up a bit to make it sound more straightforward than it actually was): + I installed the disk. It was a SCSI device with about size the capacify of the original. + I booted the installation CD and at the first "normal" window, selected "Shell Window" from the File menu. This brought up an interactive prompt. + I used "hwmgr -view devices" to see if the new disk was recognized. It was. I noticed that it was shown as "dsk0". + I created a "standard" disklabel on the new disk using # disklabel -wr -t advfs /dev/rdisk/dsk0c I had to indicate the AdvFS type since I wanted to rebuild my AdvFS domains (all file systems on the previous system were AdvFS including the root file system). + I then read back the disklabel with the "-r" option and saw that some of the partition sizes were not to my liking. I used the "-e" option to edit the disklabel into something more suitable. NOTE: the root domain *must* be on the 'a' partition. If it is not, the SRM boot code will not be able to locate the osf_boot file. + I used "dn_setup -install_tape" to make the tape drive available. I verified this with "hwmgr -view devices". + I created my file domains and file sets. # mkfdmn -r /dev/disk/dsk0a root_domain # mkfdmn /dev/disk/dsk0h usr_domain # mkfset root_domain root # mkfset usr_domain usr # mkfset usr_domain local + I restored my files. # mount root_domain#root /mnt # vrestore -v -x -f /dev/ntape/tape0 -D /mnt # umount /mnt # mount usr_domain#usr /mnt # vrestore -v -x -f /dev/ntape/tape0 -D /mnt # umount /mnt # mount usr_domain#local /mnt # vrestore -v -x -f /dev/tape/tape0 -D /mnt I used the "ntape" device because on my last backup (level 0) the various file sets are loaded back-to-back on the tape. Thus I did not want to rewind after the first two file sets. + Now.. because I put my rebuilt usr_domain on a different partition than on the original system (making this needlessly complicated) I had to remount my new root_domain and do # cd /mnt/etc/fdmns/usr_domain # ln -s /dev/disk/dsk0h dsk0h # rm dsk0g The old partition was dsk0g. + Finally I halted the system with "halt", checked the bootdef_dev environment variable in the SRM console, and did >>> boot -fl s to bring the system up in single user mode for inspection. When the system started I used "bcheckrc" to mount all file systems and I encountered problems with /usr and /usr/local. It turned out that the system had renamed my disk from dsk0 to dsk2. I thus had to change the links in /etc/fdmns/usr_domain and /etc/fdmns/root_domain. I also had to edit /etc/sysconfigtab to change the location of the swap partition from /dev/disk/dsk0b to /dev/disk/dsk2b. I restarted the system again and all was well.