From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,1d4c732386e69e54 X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2001-07-03 19:01:53 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!newsfeed.berkeley.edu!ucberkeley!agate.berkeley.edu!agate!not-for-mail From: "!!Tonnere de Brest" Newsgroups: comp.unix.tru64 Subject: Re: restoring system disk on tru64 alpha disklabel command is not working Date: Tue, 03 Jul 2001 19:09:02 -0700 Organization: 1000 Sabords Message-ID: <3B427AB8.2BF6239E@y.z.com> References: <3B3EB3EF.6223FFDE@y.z.com> <993977933.8127.0.nnrp-14.c2deb51d@news.demon.co.uk> <3B410967.46220240@y.z.com> <994141196.14240.0.nnrp-02.c2deb51d@news.demon.co.uk> Reply-To: sii@bilow NNTP-Posting-Host: mercutio.eecs.berkeley.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: agate.berkeley.edu 994212113 83527 128.32.138.80 (4 Jul 2001 02:01:53 GMT) X-Complaints-To: usenet@agate.berkeley.edu NNTP-Posting-Date: Wed, 4 Jul 2001 02:01:53 +0000 (UTC) X-Mailer: Mozilla 4.7 (Macintosh; I; PPC) X-Accept-Language: en,fr,de,sv,ru Xref: archiver1.google.com comp.unix.tru64:3049 Adam Price wrote: > > "!!Tonnere de Brest" wrote in message news:3B410967.46220240@y.z.com... > > Adam Price wrote: > > > > > > "!!Tonnere de Brest" wrote in message news:3B3EB3EF.6223FFDE@y.z.com... > > > > as part of installing the same operating system, patches and software on 16 > > > > workstations, I did all the work on one workstation and was hoping to duplicate > > > > the disk contents on to the other workstations. I dumped / and /usr partitions > > > > on to an external disk. I then restored those partitions on to the internal > > > > disk of another workstation, but it would not boot after that. It would not recognize the devices that represent the disk > > > partitions. Is there a > > > > command to set the boot sector? > > > > > > Yes, look at the disklabel command From the man pages for 4.0F > > > ------- > > > -t ufs|advfs| cdfs > > > Specifies which type of the local file system the boot blocks > > > describe, UFS, AdvFS, or CDFS. > > > ------- > > > BTW on version 5 systems you may have some problems with this approach since the > > > WWID's of the disks will have changed. > > > I haven't come up with a consistent way of solving this problem and it is hampering > > > my DR procedure somewhat so if anyone has any ideas about cloning a V5 system > > > onto new hardware I'd love to hear it. > > > Adam > > > > the disklabel command is not working for me: > > > > 69 Rot@congo /#hwmgr -view devices > > HWID: Device Name Mfg Model Location > > ------------------------------------------------------------------------------ > > 4: /dev/kevm > > 30: /dev/disk/dsk0c DEC RZ28D (C) DEC bus-0-targ-0-lun-0 > > 31: /dev/disk/cdrom0c DEC RRD46 (C) DEC bus-0-targ-4-lun-0 > > 32: /dev/disk/dsk1c SEAGATE ST39173N bus-0-targ-5-lun-0 > > 33: /dev/disk/dsk2c SEAGATE ST318417N bus-0-targ-3-lun-0 > > 70 Rot@congo /#disklabel -r RZ28DB > > disklabel: RZ28DB: No such file or directory > > 71 Rot@congo /#disklabel -r rz28db > > disklabel: rz28db: No such file or directory > > 72 Rot@congo /#uname -a > > OSF1 congo.EECS.Berkeley.EDU V5.1 732 alpha alpha > > OK The first problem you have is that the CDrom Drive and the first > disk in the system (The rz28D) are both set to scsi id 4. This is a > hardware problem, shut the machine down and change some jumpers. > the 1st disk has a target ID of 0 and NOT 4: /dev/disk/dsk0c DEC RZ28D (C) DEC bus-0-targ-0-lun-0 > Next... The commands you tried were wrong. You need to reference > the disk as /dev/disk/dsk0c (The device special file) not RZ28D (The > type of disk). this version of the command also gives errors: 73 Rot@congo /#disklabel -r /dev/disk/dsk0c disklabel: /dev/disk/dsk0c: not a character device > Next... The commands you tried were wrong. You need to reference > the disk as /dev/disk/dsk0c (The device special file) not RZ28D (The > type of disk). this version of the command also gives errors: 73 Rot@congo /#disklabel -r /dev/disk/dsk0c disklabel: /dev/disk/dsk0c: not a character device however, if you use the raw device, you get something: 76 Rot@congo /#disklabel -r /dev/rdisk/dsk0c # /dev/rdisk/dsk0c: type: SCSI disk: RZ28D label: disklabel -r /dev/rdisk/dsk0c also gives a similar result 78 Rot@congo /#disklabel -r dsk0 # /dev/rdisk/dsk0c: type: SCSI I could not figure out the exact command to insert a boot sector and whether you have to do it before or after restoring the / filesystem and how can you verify that the boot block is on the disk. I had one instance where I installed the tru64 operating system and then I restored the /usr filesystem from an external disk and when I tried to reboot, it failed to recognize the internal disk. After I got the miniroot prompt, hwmgr -view devices gave ? for the Device Name of RZ28D > > Also as I said using dd to copy version 5 system disks will cause you > problems. Your best bet for duplicating installs on a V5 system is to > use the 'clone' install feature (Look at the advanced installation guide > on the doc's CD). > > Hope this helps > Adam > PS Disklabel can destroy data if you don't know what you are doing > or don't have a good backup of the disk then don't play with it. Thank you very much. If you have any questions, please don't hesitate to contact me. Thanks, G Camij Toschian, gct@cory.eecs.berkeley.edu, EECS Instructional & Electronics Support Group / 386 Cory Hall / 643-6138 gct@domainmart.net, gchiht@2xtreme.net, 510 6436138, 510 5408013, 2500 Durant # 310, Bk, CA 94704, Rotating Outage Block 02