From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Mike Broderick Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: how to use disklabel to change fstpe on boot disk on 4.0g Date: Thu, 15 Aug 2002 13:03:33 -0400 Organization: Information Systems/ASST Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <3D5BDEE5.90005@mit.edu> References: <3D59A729.4020004@mit.edu> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1029431041 12089 127.0.0.1 (15 Aug 2002 17:04:01 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 15 Aug 2002 17:04:01 +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 17fO2R-00038s-00 for ; Thu, 15 Aug 2002 19:04:00 +0200 Original-Received: (qmail 7782 invoked by uid 5); 15 Aug 2002 17:04:54 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 7774 invoked from network); 15 Aug 2002 17:04:54 -0000 Original-Received: from unknown (HELO emroute2.cind.ornl.gov) (128.219.159.41) by 0 with SMTP; 15 Aug 2002 17:04:54 -0000 Original-Received: from emroute2.cind.ornl.gov (LOCALHOST [127.0.0.1]) by emroute2.cind.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0H0W00L7QA453I@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 15 Aug 2002 13:04:54 -0400 (EDT) Original-Received: from fort-point-station.mit.edu (FORT-POINT-STATION.MIT.EDU [18.7.7.76]) by emroute2.cind.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0H0W00DIHA3UFF@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 15 Aug 2002 13:04:43 -0400 (EDT) Original-Received: from central-city-carrier-station.mit.edu (CENTRAL-CITY-CARRIER-STATION.MIT.EDU [18.7.7.72]) by fort-point-station.mit.edu (8.9.2/8.9.2) with ESMTP id NAA26763 for ; Thu, 15 Aug 2002 13:04:41 -0400 (EDT) Original-Received: from melbourne-city-street.mit.edu (MELBOURNE-CITY-STREET.MIT.EDU [18.7.21.86]) by central-city-carrier-station.mit.edu (8.9.2/8.9.2) with ESMTP id NAA13002 for ; Thu, 15 Aug 2002 13:04:41 -0400 (EDT) Original-Received: from mit.edu (VBALL.MIT.EDU [18.94.0.87]) by melbourne-city-street.mit.edu (8.9.2/8.9.2) with ESMTP id NAA06202 for ; Thu, 15 Aug 2002 13:04:41 -0400 (EDT) Original-To: tru64-unix-managers X-Accept-Language: en-us User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.5) Gecko/20011013 Xref: main.gmane.org gmane.os.tru64.managers:1371 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:1371 Thanks to the any replies from Roberto Mackun, Andrew Macneil, Jim Belonis, Gabor Zelenak, Oisin McGuinness, Matt Morris, alan@nabath. osf_boot was not missing as some suggested. It was that I somehow didn't set the file system type to advfs (to get an advfs boot block). These command worked for me to re-write the label proerly w/o destrying data: # disklabel -r rz8 >FILE # disklabel -Rrt afvfs rz8 FILE RZxx (Needed the 'RZxx' for 4.0g, but not in 5.1a) Other suggested formats for the latter cmd were: disklabel -R -r -t advfs /dev/rrz8a FILE /mdec/rzboot.advfs /mdec/bootrz.advfs disklabel -t advfs -R rz18 FILE The correct way to specify the file system type initially is # disklabel -rw -t advfs rz8 _Mike Mike Broderick wrote: > > I'm trying to do a late night urgent restore of a 4.0g system w/ hw/ > problems to new h/w. I restored the o/s file sets (all advfs) but > cannot boot the disk... > > >>>boot -fl s dqb0 > pga0.0.0.15.0 - LINK_DOWN timeout > inserting onto pollq. > (boot dqb0.0.1.13.0 -flags s) > block 0 of dqb0.0.1.13.0 is a valid boot block > reading 13 blocks from dqb0.0.1.13.0 > bootstrap code read in > base = 200000, image_start = 0, image_bytes = 1a00 > initializing HWRPB at 2000 > initializing page table at 1ff40000 > initializing machine state > setting affinity to the primary CPU > jumping to bootstrap code > Removing from poll queue. > can't open osf_boot > > halted CPU 0 > > halt code = 5 > HALT instruction executed > PC = 20000030 > > > I think I've seen this before and the problem is the disklabel type is > not set to advfs. I had this problem on 5.1a and rewrote the label with... > > # disklabel -r dsk0 >dsk0label > # disklabel -Rrt advfs dsk0 rz0label > > This does not work on 4.0g... > > # disklabel -r rz8 >/tmp/rz8label > # disklabel -Rrt afvfs rz8 /tmp/rz8label > Usage: > Read ... > ... > # > > Anyone know how to do this? >