Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
* how to clone system disk on tru64 5.1
@ 2002-03-28 15:11 Barry Wu
  2002-03-28 15:15 ` Marre des Spameurs qui prennent les add dans les news [SauroN]
  0 siblings, 1 reply; 4+ messages in thread
From: Barry Wu @ 2002-03-28 15:11 UTC (permalink / raw)


Hi, all,

I have several tru64 5.1 hard disk to replace.
In tru64 4.0F, I can use dump and restore to finish
several system disks. But in 5.1 I could not use
dump and restore commands. Besides, I use tar to
backup my / and /usr partition, but when I restore
it using tar. The disklabel is dsk1, not dsk0.
But I want it to be dsk0, I do not know how to do.
If someone knows, please help me.
TIA.

Best Regards,

Barry


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: how to clone system disk on tru64 5.1
  2002-03-28 15:11 how to clone system disk on tru64 5.1 Barry Wu
@ 2002-03-28 15:15 ` Marre des Spameurs qui prennent les add dans les news [SauroN]
  2002-03-28 17:47   ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
  0 siblings, 1 reply; 4+ messages in thread
From: Marre des Spameurs qui prennent les add dans les news [SauroN] @ 2002-03-28 15:15 UTC (permalink / raw)


with dd

"Barry Wu" <wqb123@263.net> wrote in message
news:a3fe0fc8.0203280711.66b692d6@posting.google.com...
| Hi, all,
|
| I have several tru64 5.1 hard disk to replace.
| In tru64 4.0F, I can use dump and restore to finish
| several system disks. But in 5.1 I could not use
| dump and restore commands. Besides, I use tar to
| backup my / and /usr partition, but when I restore
| it using tar. The disklabel is dsk1, not dsk0.
| But I want it to be dsk0, I do not know how to do.
| If someone knows, please help me.
| TIA.
|
| Best Regards,
|
| Barry




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: how to clone system disk on tru64 5.1
  2002-03-28 15:15 ` Marre des Spameurs qui prennent les add dans les news [SauroN]
@ 2002-03-28 17:47   ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
  2002-03-29  9:13     ` Emmanuel Choquet
  0 siblings, 1 reply; 4+ messages in thread
From: Alan Rollow - Dr. File System's Home for Wayward Inodes. @ 2002-03-28 17:47 UTC (permalink / raw)


In article <a7vc06$hev$1@s1.read.news.oleane.net>, "Marre des Spameurs qui prennent les add dans les news [SauroN]" <titi@toto.com> writes:
>
>with dd

This is less than ideal advice since it doesn't address the fact that
the new copy of the operating system remebers that its root file system
was on the source disk used for the copy.  This is likely to be a common
problem for any of the techniques that were used under V4 and earlier to
make copies of a system disk.

There is apparently a way to change the hardware database so that
this detail of the previous configuration is forgotten, allowing
the new disk to become the system disk.  The technique may have
been written up as a "Best Practices" document.  If so it will be
on the corporate web site somewhere.  The question frequently
comes up in the tru64-unix-managers mailing list, so the archives
of the mailing list may have something.  I don't have the URL for
the archives though.

>
>"Barry Wu" <wqb123@263.net> wrote in message
>news:a3fe0fc8.0203280711.66b692d6@posting.google.com...
>| Hi, all,
>|
>| I have several tru64 5.1 hard disk to replace.
>| In tru64 4.0F, I can use dump and restore to finish
>| several system disks. But in 5.1 I could not use
>| dump and restore commands. Besides, I use tar to
>| backup my / and /usr partition, but when I restore
>| it using tar. The disklabel is dsk1, not dsk0.
>| But I want it to be dsk0, I do not know how to do.

The content of the disklabel isn't likely to be the problem.  But
if you want to change it some part of the label, use the disklabel
command to edit the label as you need.

What you're most likely running up against is that in V5, devices
names are not directly associated with the physical address of the
device as they were in V4 and earlier.  There, the SCSI bus address
determine the name.  You moved a device and its name changed.  This
had serious problems when you started adding new SCSI bus adapters
that appeared "between" two existing ones.

In V5, names are assigned as disks are discovered.  The first disk
found will be dsk0, the 2nd dsk1 and so on.  Left to itself, parallel
SCSI disks are uniquely identified by their serial number (expected
to be in one of the Inquiry pages).  Fibre Channel disks just use
their world-wide name.  This allows a given disk to retain the same
name no matter what its "address" is.

So, you have two potential problems:

o  The new disk is named dsk1 instead of dsk0 (unrelated to the label).
o  The kernel remembers that its system disk was dsk0.

As I said above, I believe there are solutions to these problems,
probably around changing the hardware database on the new system
disk.  They may be documented somewhere, but I haven't kept track
of where that document is, or how to make the change.

>| If someone knows, please help me.
>| TIA.
>|
>| Best Regards,
>|
>| Barry
>
>
>
--
Alan Rollow		alan@nabeth.cxo.cpqcorp.net (previously .dec.com)



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: how to clone system disk on tru64 5.1
  2002-03-28 17:47   ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
@ 2002-03-29  9:13     ` Emmanuel Choquet
  0 siblings, 0 replies; 4+ messages in thread
From: Emmanuel Choquet @ 2002-03-29  9:13 UTC (permalink / raw)


This is my personal way to do it, NO WARRANTY. DO not use this in a
cluster

plug the new disk

# hwmgr -scan scsi

let's say it will be dsk11 and that the whole current system is on
dsk0, and
that you have a common layout with var as a separate fileset in
usr_domain

1st : label the clone disk as the original

# disklabel -r dsk0 > /syst.label
# disklabel -rR -t advfs dsk11 /syst.label

2d : create domains and filesets 

# mkfdmn /dev/disk/dsk11a new_root
# mkfset new_root root
# mkdir /nr
# mount new_root#root /nr
# mkfdmn /dev/disk/dsk11g new_usr
# mkfset new_usr usr
# mkdir /nu
# mount new_usr#usr /nu
# mkfset new_usr var
# mkdir /nv
# mount new_usr#var /nv

Now bakup existing filesets

# vdump 0f - / | ( cd /nr ; vrestore xf -)
# vdump 0f - /usr | ( cd /nu ; vrestore xf -)
# vdump 0f - /var | ( cd /nv ; vrestore xf-)

Now patch domains structure:

# cd /nr/etc/fdmns
# mv root_domain root_domain_old
# mv usr_domain usr_domain_old
# mv new_usr usr_domain
# mv new_root root_domain




Now patch sysconfigtab and mark dsk11b partition as swap

# swapon /dev/disk/dsk11b # if u dont do that, it will pause the 1st
boot on that disk
# cd /nr/etc
# vi sysconfigtab

change swapdevice to dsk11b

Check you do not declare swap using old fashion way in /nr/etc/fstab,
and remove the lines if you do so - declare swap only in sysconfigtab
-

 umount everything
 do not unplug the disk, dsk11b is used for swap !

# umount /nr /nu /nv

done !
 test it, do not forget the disk console name is bus/target/lun
dependant



Good luck


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-03-29  9:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-03-28 15:11 how to clone system disk on tru64 5.1 Barry Wu
2002-03-28 15:15 ` Marre des Spameurs qui prennent les add dans les news [SauroN]
2002-03-28 17:47   ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
2002-03-29  9:13     ` Emmanuel Choquet

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