From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,d2c67628e8942a6a X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2002-04-22 17:34:02 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!nntp-relay.ihug.net!ihug.co.nz!cox.net!news2.west.cox.net.POSTED!53ab2750!not-for-mail From: "Peter Barone" Newsgroups: comp.unix.tru64 References: <4ce72ad5.0204200451.7d85a852@posting.google.com> Subject: Re: Duplicate system disk under Digital Tru64 Unix X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 Message-ID: <_Z1x8.4827$6b2.42923@news2.west.cox.net> Date: Tue, 23 Apr 2002 00:34:02 GMT NNTP-Posting-Host: 68.98.32.16 X-Complaints-To: abuse@cox.net X-Trace: news2.west.cox.net 1019522042 68.98.32.16 (Mon, 22 Apr 2002 20:34:02 EDT) NNTP-Posting-Date: Mon, 22 Apr 2002 20:34:02 EDT Organization: Cox Communications Xref: archiver1.google.com comp.unix.tru64:7356 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" 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!