Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: "Peter Barone" <barone1@cox.net>
Subject: Re: Duplicate system disk under Digital Tru64 Unix
Date: Tue, 23 Apr 2002 00:34:02 GMT	[thread overview]
Message-ID: <_Z1x8.4827$6b2.42923@news2.west.cox.net> (raw)
In-Reply-To: 4ce72ad5.0204200451.7d85a852@posting.google.com

To copy system disk dsk0 to dsk1 and make dsk1 the new system disk

disklabel -z dsk1 (output disk must not be labeled)

dd -if= /dev/rdisk/dsk0c of=/dev/rdisk/dsk1c bs=64k

Change the links from dsk0 to dsk1

cd /etc/fdmns

These are symbolic links
root_domain
usr_domain
var_domain
anyother_domains

Remove the symbolic links to dsk0
rm /etc/fdmns/root_domain/dsk0a
rm /etc/fdmns/usr_domain/dsk0g
rm /etc/fdmns/var_domain/dsk0h

Make new symbolic links to dsk1
ln -s /dev/dsk/dsk1a /etc/fdmns/root_domain/dsk1a

repeat this for usr and var and any other advfs domains you may have on dsk0

vi /etc/sysconfigtab

search for vm: and change the swapdevice to dsk1b

reboot your system

Regards
Peter Barone



"xgr" <xinggr@public.bta.net.cn> wrote in message
news:4ce72ad5.0204200451.7d85a852@posting.google.com...
> All,
>
> Does anybody know how to duplicate the system disk under Digital
> True64 Unix? I try to use dd to duplicate system disk to another disk
> as following:
>   1, boot from CD-ROM
>   2, clear label of target disk: disklabel -z /dev/rdisk/dsk2c
>   3, duplicate with dd: dd if=/dev/disk/dsk0c of=/dev/disk/dsk2c
> bs=10240k
>
> After exchanging slots of these 2 disks, I was able to boot with the
> duplicated disk to single user mode, but when I issue following
> command:
>   #mount -a
> the system prompts error:
>   msfs_mount: The mount device does not match the linked device.
>       check linked device in /etc/fdmns/domain
>   msfs_mount: setting root device name to root_device RW
>
> The contents in /etc/fdmns/ and /etc/fstab are the same as the source
> disk, but the root file system mounted is different: in the source
> disk, it's root_domain; but in the target disk, it's root_device.
> Following is the output of df when booted with the target disk:
>   #df
>   file system                 mounted on
>   root_device                 /
>   /proc                       /proc
>   user_domain#usr             /usr
>   var_domain#var              /var
>   home_domain#home            /home
>
> where, root_device should be root_domain#root.
>
> Can somebody tell me what the wrong with the system? and is there
> another way to duplicate system disk? All filesystems are created with
> Tru64Unix v5.1 AdvFS.
>
> Thanks in advance!




  parent reply	other threads:[~2002-04-23  0:34 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-20 12:51 Duplicate system disk under Digital Tru64 Unix xgr
2002-04-20 14:15 ` Adam Price
2002-04-21 13:29   ` xgr
2002-04-21 13:41     ` Adam Price
2002-04-22  8:15     ` Tony P
2002-04-22 20:43 ` Doug Freyubrger
2002-04-22 21:13   ` Chris Adams
2002-04-23  5:43     ` Adam Price
2002-04-23 18:58       ` Chris Adams
2002-04-23  0:34 ` Peter Barone [this message]
2002-04-24 16:14   ` li
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