Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: "!!Tonnere de Brest" <x@y.z.com>
Subject: Re: restoring system disk on tru64 alpha disklabel command  is not   working
Date: Tue, 03 Jul 2001 19:09:02 -0700	[thread overview]
Message-ID: <3B427AB8.2BF6239E@y.z.com> (raw)
In-Reply-To: 994141196.14240.0.nnrp-02.c2deb51d@news.demon.co.uk

Adam Price wrote:
> 
> "!!Tonnere de Brest" <x@y.z.com> wrote in message news:3B410967.46220240@y.z.com...
> > Adam Price wrote:
> > >
> > > "!!Tonnere de Brest" <x@y.z.com> 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


  parent reply	other threads:[~2001-07-04  2:09 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-07-01  5:24 restoring system disk on tru64 alpha !!Tonnere de Brest
2001-07-01  8:57 ` Adam Price
2001-07-02 23:53   ` restoring system disk on tru64 alpha disklabel command is not working !!Tonnere de Brest
2001-07-03  6:18     ` Adam Price
2001-07-03 16:45       ` !!Tonnere de Brest
2001-07-04  2:09       ` !!Tonnere de Brest [this message]
2001-07-04  7:21         ` Adam Price
2001-07-02 13:20 ` restoring system disk on tru64 alpha Axel K�ster
2001-07-02 17:16   ` Mike Simon
2001-07-02 18:15     ` Adam Price
2001-07-02 22:56     ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox