* Duplicate system disk under Digital Tru64 Unix
@ 2002-04-20 12:51 xgr
2002-04-20 14:15 ` Adam Price
` (2 more replies)
0 siblings, 3 replies; 11+ messages in thread
From: xgr @ 2002-04-20 12:51 UTC (permalink / raw)
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!
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Duplicate system disk under Digital Tru64 Unix
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-22 20:43 ` Doug Freyubrger
2002-04-23 0:34 ` Peter Barone
2 siblings, 1 reply; 11+ messages in thread
From: Adam Price @ 2002-04-20 14:15 UTC (permalink / raw)
"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
OK so you managed to boot to single user mode. This means you have
succeeded in copying the disk. However the new disk is more than
likeley called /dev/disk/dsk2c not /dev/disk/dsk0c.
Boot from the cd, mount the destination disk, change the pointer
in /etc/fdmns/root_domain to point to the correct place. (change
rz0 to rz2)
Reboot.
This should be enough.
HTH
Adam
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Duplicate system disk under Digital Tru64 Unix
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
0 siblings, 2 replies; 11+ messages in thread
From: xgr @ 2002-04-21 13:29 UTC (permalink / raw)
"Adam Price" <adam+usenet@pappnase.co.uk> wrote in message news:<a9rt5m$5i0d2$1@ID-138239.news.dfncis.de>...
> "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
> OK so you managed to boot to single user mode. This means you have
> succeeded in copying the disk. However the new disk is more than
> likeley called /dev/disk/dsk2c not /dev/disk/dsk0c.
>
Since I've removed the original disk and installed the new disk to the
slot where the original disk used to be, the new disk is recognized by
system as /dev/disk/dsk0c, I'm not clear what does you mean that it's
likely called /dev/disk/dsk2c.
> Boot from the cd, mount the destination disk, change the pointer
> in /etc/fdmns/root_domain to point to the correct place. (change
> rz0 to rz2)
>
After booting from the CD, I was unable to mount the root file system;
and if I try to change the pointer in /etc/fdmns/root_domain directly
with:
#cd /etc/fdmns/root_domain
#rm dsk0a
the system prompts:
dsk0a: readonly file system
How could I mount the destination disk in read-write mode? All file
system are AdvFS.
Thanks!
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Duplicate system disk under Digital Tru64 Unix
2002-04-21 13:29 ` xgr
@ 2002-04-21 13:41 ` Adam Price
2002-04-22 8:15 ` Tony P
1 sibling, 0 replies; 11+ messages in thread
From: Adam Price @ 2002-04-21 13:41 UTC (permalink / raw)
"xgr" <xinggr@public.bta.net.cn> wrote in message news:4ce72ad5.0204210529.be7c5fa@posting.google.com...
> "Adam Price" <adam+usenet@pappnase.co.uk> wrote in message news:<a9rt5m$5i0d2$1@ID-138239.news.dfncis.de>...
> > "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
> > OK so you managed to boot to single user mode. This means you have
> > succeeded in copying the disk. However the new disk is more than
> > likeley called /dev/disk/dsk2c not /dev/disk/dsk0c.
> >
>
> Since I've removed the original disk and installed the new disk to the
> slot where the original disk used to be, the new disk is recognized by
> system as /dev/disk/dsk0c, I'm not clear what does you mean that it's
> likely called /dev/disk/dsk2c.
The disk names have no relationship to the SCSI ID's under version 5
When you started you had a disk called dsk0 which had the original system
on.
To this you added a disk which became identified as dsk2. This disk had
a unique wwid.
The wwid is causing the device to register itself as dsk2 no matter where
you put it on the scsi bus.
Because of this even if you remove the original dsk0 the new one won't be
dsk0.
HTH
Adam
PS If you want to boot to single usermode on the new disk and then use
hwmgr to swap dsk2 and dsk0 then that should also fix the problem.
I don't have a scratch system to test the exact syntax so I won't report
it here.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Duplicate system disk under Digital Tru64 Unix
2002-04-21 13:29 ` xgr
2002-04-21 13:41 ` Adam Price
@ 2002-04-22 8:15 ` Tony P
1 sibling, 0 replies; 11+ messages in thread
From: Tony P @ 2002-04-22 8:15 UTC (permalink / raw)
"xgr" <xinggr@public.bta.net.cn> wrote in message
news:4ce72ad5.0204210529.be7c5fa@posting.google.com...
> "Adam Price" <adam+usenet@pappnase.co.uk> wrote in message
news:<a9rt5m$5i0d2$1@ID-138239.news.dfncis.de>...
> > "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
> > OK so you managed to boot to single user mode. This means you have
> > succeeded in copying the disk. However the new disk is more than
> > likeley called /dev/disk/dsk2c not /dev/disk/dsk0c.
> >
>
> Since I've removed the original disk and installed the new disk to the
> slot where the original disk used to be, the new disk is recognized by
> system as /dev/disk/dsk0c, I'm not clear what does you mean that it's
> likely called /dev/disk/dsk2c.
>
> > Boot from the cd, mount the destination disk, change the pointer
> > in /etc/fdmns/root_domain to point to the correct place. (change
> > rz0 to rz2)
> >
>
> After booting from the CD, I was unable to mount the root file system;
> and if I try to change the pointer in /etc/fdmns/root_domain directly
> with:
> #cd /etc/fdmns/root_domain
> #rm dsk0a
> the system prompts:
> dsk0a: readonly file system
>
> How could I mount the destination disk in read-write mode? All file
> system are AdvFS.
Try mount -u /
>
> Thanks!
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Duplicate system disk under Digital Tru64 Unix
2002-04-20 12:51 Duplicate system disk under Digital Tru64 Unix xgr
2002-04-20 14:15 ` Adam Price
@ 2002-04-22 20:43 ` Doug Freyubrger
2002-04-22 21:13 ` Chris Adams
2002-04-23 0:34 ` Peter Barone
2 siblings, 1 reply; 11+ messages in thread
From: Doug Freyubrger @ 2002-04-22 20:43 UTC (permalink / raw)
xgr wrote:
>
> Does anybody know how to duplicate the system disk under Digital
> True64 Unix?
AdvFS supplies utilities to do this. I don't recall the name off the
top of my head and I don't have a Tru64 machine to log into to find
it, but start with man -k advfs. Folks on a Tru64 specialist
newsgroup will know of the top of their heads how to clone a
filesystem using AdvFS native utilities.
> 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
Here's where you went wrong. You can't copy an AdvFS domain with dd.
Each AdvFS domain contains a serial number that has the serial number
of the drives it is on hashed into it. Strange but true. It is
intended to preserve the integrity of the data in the domain. This
protection against being copied with dd is either a bug/side-effect
or a feature depending on how security oriented you are.
You can copy mountable filesystems this way on Solaris UFS and VxFS,
HP-UX HFS and VXFS, and several other systems, but you can NOT do it
on Tru64 AdvFS or IRIX XFS.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Duplicate system disk under Digital Tru64 Unix
2002-04-22 20:43 ` Doug Freyubrger
@ 2002-04-22 21:13 ` Chris Adams
2002-04-23 5:43 ` Adam Price
0 siblings, 1 reply; 11+ messages in thread
From: Chris Adams @ 2002-04-22 21:13 UTC (permalink / raw)
Once upon a time, Doug Freyubrger <dfreybur@yahoo.com> said:
>xgr wrote:
>> Does anybody know how to duplicate the system disk under Digital
>> True64 Unix?
>
>AdvFS supplies utilities to do this. I don't recall the name off the
No, AFAIK you can't do it with AdvFS, but you can with LSM (but that
takes an LSM license).
You can shut down to single user mode and use vdump and vrestore to copy
each fileset (which may be enough for the original poster). It isn't
really an exact copy (as it doesn't copy things like the disklabel or
boot information).
>top of my head and I don't have a Tru64 machine to log into to find
>it, but start with man -k advfs. Folks on a Tru64 specialist
>newsgroup will know of the top of their heads how to clone a
>filesystem using AdvFS native utilities.
I thought this was a Tru64 specialist newsgroup. :-)
--
Chris Adams <cmadams@hiwaay.net>
Systems and Network Administrator - HiWAAY Internet Services
I don't speak for anybody but myself - that's enough trouble.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Duplicate system disk under Digital Tru64 Unix
2002-04-20 12:51 Duplicate system disk under Digital Tru64 Unix xgr
2002-04-20 14:15 ` Adam Price
2002-04-22 20:43 ` Doug Freyubrger
@ 2002-04-23 0:34 ` Peter Barone
2002-04-24 16:14 ` li
2 siblings, 1 reply; 11+ messages in thread
From: Peter Barone @ 2002-04-23 0:34 UTC (permalink / raw)
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!
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Duplicate system disk under Digital Tru64 Unix
2002-04-22 21:13 ` Chris Adams
@ 2002-04-23 5:43 ` Adam Price
2002-04-23 18:58 ` Chris Adams
0 siblings, 1 reply; 11+ messages in thread
From: Adam Price @ 2002-04-23 5:43 UTC (permalink / raw)
"Chris Adams" <cmadams@hiwaay.net> wrote in message news:uc8v8maqlkv3b@corp.supernews.com...
> Once upon a time, Doug Freyubrger <dfreybur@yahoo.com> said:
> >xgr wrote:
> >> Does anybody know how to duplicate the system disk under Digital
> >> True64 Unix?
> >
> >AdvFS supplies utilities to do this. I don't recall the name off the
>
> No, AFAIK you can't do it with AdvFS, but you can with LSM (but that
> takes an LSM license).
>
Surely you can just addvol the new disk and then rmvol the old one.
HTH
Adam
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Duplicate system disk under Digital Tru64 Unix
2002-04-23 5:43 ` Adam Price
@ 2002-04-23 18:58 ` Chris Adams
0 siblings, 0 replies; 11+ messages in thread
From: Chris Adams @ 2002-04-23 18:58 UTC (permalink / raw)
Once upon a time, Adam Price <adam+usenet@pappnase.co.uk> said:
>Surely you can just addvol the new disk and then rmvol the old one.
That has some problems:
1) it requires an ADVFS-UTILITIES license
2) it doesn't copy the data, it moves the data (you don't get two usable
disks)
3) you can't do that with the root filesystem (can't have multivolume
roots with AdvFS)
--
Chris Adams <cmadams@hiwaay.net>
Systems and Network Administrator - HiWAAY Internet Services
I don't speak for anybody but myself - that's enough trouble.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Duplicate system disk under Digital Tru64 Unix
2002-04-23 0:34 ` Peter Barone
@ 2002-04-24 16:14 ` li
0 siblings, 0 replies; 11+ messages in thread
From: li @ 2002-04-24 16:14 UTC (permalink / raw)
"Peter Barone" <barone1@cox.net> wrote in message news:<_Z1x8.4827$6b2.42923@news2.west.cox.net>...
>
>
>
> "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!
To duplicate the system disk.
Format the disk first by (assuming this is not advfs)
disklabel -t nfs -wr dsk1 rz1ed
Then
# mount /dev/dsk1a /mnt
# dump -0 -f - / | (cd /mnt; restore -x -f -)
# umount /mnt
# mount /dev/dsk1g /mnt
# dump -0 -f - /usr | (cd /mnt; restore -x -f -)
# umount /mnt
...
and so on.
#############
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2002-04-24 16:14 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2002-04-24 16:14 ` li
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox