* Cloning system disk
@ 2001-06-11 13:35 Axel K�ster
2001-06-11 17:16 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Axel K�ster @ 2001-06-11 13:35 UTC (permalink / raw)
Hello to all,
is there any way to clone a systemdisk?
Situation: I have a node with a mirrored system disk (Volume manager
and advfs) which I would like to clone to another system with exact
the same hardware set up.
Before crashing another system: Is it possible with a command as
following:
dd if=/dev(rz0c of=/dev/rz3c bs=8192
Can be bootet from rz3c afterwards?
Thanks in davance,
Axel
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Cloning system disk
2001-06-11 13:35 Cloning system disk Axel K�ster
@ 2001-06-11 17:16 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
2001-06-12 6:11 ` Axel K�ster
2001-06-11 18:46 ` Paul Victor Novarese
2001-06-12 18:32 ` sake
2 siblings, 1 reply; 6+ messages in thread
From: Alan Rollow - Dr. File System's Home for Wayward Inodes. @ 2001-06-11 17:16 UTC (permalink / raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1070 bytes --]
In article <0sh9it8r8jcosgkon3imiik6eonbmamfai@4ax.com>, Axel K�ster <a.kuester@ostalb.netsurf.de> writes:
>is there any way to clone a systemdisk?
Lots of ways, but some depend on the version of the operating
system being used.
>Before crashing another system: Is it possible with a command as
>following:
>
>dd if=/dev(rz0c of=/dev/rz3c bs=8192
I would fix the typo and use the raw devices instead of
buffered devices, if I were going to do it this way.
You could use a large transfer size, which may help
the performance of the copy.
This method has the disadvantage that it copies data not
being used. For file systems with sufficiently low usage
and the page/swap space, this can add up. Any fragmentation
or organizational problems will be copied as well.
The use of /dev/rz device names implies V4 or earlier, so
the oddities of doing this on V5 aren't relevant.
>Can be bootet from rz3c afterwards?
If the target hardware configuration is indeed the same, it
should work..
>
>Thanks in davance,
>
>Axel
>
--
Alan Rollow alan@nabeth.cxo.dec.com
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Cloning system disk
2001-06-11 13:35 Cloning system disk Axel K�ster
2001-06-11 17:16 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
@ 2001-06-11 18:46 ` Paul Victor Novarese
2001-06-12 18:32 ` sake
2 siblings, 0 replies; 6+ messages in thread
From: Paul Victor Novarese @ 2001-06-11 18:46 UTC (permalink / raw)
Axel K?ter <a.kuester@ostalb.netsurf.de> wrote in message news:<0sh9it8r8jcosgkon3imiik6eonbmamfai@4ax.com>...
> is there any way to clone a systemdisk?
>
> Situation: I have a node with a mirrored system disk (Volume manager
> and advfs) which I would like to clone to another system with exact
> the same hardware set up.
>
> Before crashing another system: Is it possible with a command as
> following:
>
> dd if=/dev(rz0c of=/dev/rz3c bs=8192
>
> Can be bootet from rz3c afterwards?
I'd recomend vdump/vrestore. Since you're using rz devices for your
disks, I'm assuming that you have a 4.x version of Digital Unix (for
5.x the procedure is slightly different).
I'm also assuming that the new disk you want to use will be a standalone
disk and not mirrored via LSM.
First, get a good disklabel on your new disk. Be sure to use the -t
flag to put the boot blocks on.
If your filesystems are all advfs, make domains like new_root and new_usr
and then make filesets that have the same names as the filesets you have
now. If you're using UFS, use newfs on the appropriate partitions.
mount new_root#root /mnt
vdump -0 -f - / | vrestore -xf - -D /mnt
(see vdump man page, example 4)
repeat as needed for usr and whatever else you have on the boot disk.
You may need to adjust the symlinks in the *new* /etc/fdmns/root_domain
and usr_domain for your advfs filesystems and you may also have to make
changes to the new /etc/fstab for UFS filesystems. (If your cloned disk
will have the same SCSI bus, target, LUN address than you probably won't
need to change anything.)
That should do it, but YMMV.
--
paul victor novarese KF4ZLI
novarese AT novarese DOT net http://gammatron.weblogger.com
find / -user you -name "*base*" -exec chown us {} \;
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Cloning system disk
2001-06-11 17:16 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
@ 2001-06-12 6:11 ` Axel K�ster
2001-06-12 16:19 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
0 siblings, 1 reply; 6+ messages in thread
From: Axel K�ster @ 2001-06-12 6:11 UTC (permalink / raw)
Thanks Alan for the help,
On Mon, 11 Jun 2001 17:16:55 GMT, alan@nabeth.cxo.dec.com (Alan Rollow
- Dr. File System's Home for Wayward Inodes.) wrote:
>In article <0sh9it8r8jcosgkon3imiik6eonbmamfai@4ax.com>, Axel K�ster <a.kuester@ostalb.netsurf.de> writes:
>
>>is there any way to clone a systemdisk?
>
>Lots of ways, but some depend on the version of the operating
>system being used.
>
>>Before crashing another system: Is it possible with a command as
>>following:
>>
>>dd if=/dev(rz0c of=/dev/rz3c bs=8192
>
>I would fix the typo
;-))
> and use the raw devices instead of
>buffered devices, if I were going to do it this way.
What would be the benefit of using raw devices (rrz0c e.g.)? Speed?
>You could use a large transfer size, which may help
>the performance of the copy.
512k ok?
>
>This method has the disadvantage that it copies data not
>being used. For file systems with sufficiently low usage
>and the page/swap space, this can add up. Any fragmentation
>or organizational problems will be copied as well.
Ok, may be but I want to be shure that I copied both (the full mirror)
of the root disks I will have a clean booting system. With both LSM
and ADVFS configurations ok.
>
>The use of /dev/rz device names implies V4 or earlier, so
>the oddities of doing this on V5 aren't relevant.
Right, I forgot to write, the system is 4.0G
>
>>Can be bootet from rz3c afterwards?
>
>If the target hardware configuration is indeed the same, it
>should work..
>
>>
>>Thanks in davance,
>>
>>Axel
>>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Cloning system disk
2001-06-12 6:11 ` Axel K�ster
@ 2001-06-12 16:19 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
0 siblings, 0 replies; 6+ messages in thread
From: Alan Rollow - Dr. File System's Home for Wayward Inodes. @ 2001-06-12 16:19 UTC (permalink / raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 787 bytes --]
In article <t9cbit074gk5nn5kt101mcsjcbgtocv9ma@4ax.com>, Axel K�ster <a.kuester@ostalb.netsurf.de> writes:
>>>dd if=/dev(rz0c of=/dev/rz3c bs=8192
>>
>>I would fix the typo
>;-))
>> and use the raw devices instead of
>>buffered devices, if I were going to do it this way.
>What would be the benefit of using raw devices (rrz0c e.g.)? Speed?
Mostly. Last I looked (but it has been years), the I/O size that
is used by the buffered device was only 2 KB, regardless of the size
you specify with dd(1). There's also bound to be a bit of extra
latency and CPU usage as the data is copied from buffer cache to
program buffer.
>
>>You could use a large transfer size, which may help
>>the performance of the copy.
>512k ok?
Should be ok.
--
Alan Rollow alan@nabeth.cxo.dec.com
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Cloning system disk
2001-06-11 13:35 Cloning system disk Axel K�ster
2001-06-11 17:16 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
2001-06-11 18:46 ` Paul Victor Novarese
@ 2001-06-12 18:32 ` sake
2 siblings, 0 replies; 6+ messages in thread
From: sake @ 2001-06-12 18:32 UTC (permalink / raw)
Hello Axel,
when you use advfs you could use vdump/vrestore
first put an disklabel on the new disk and mount the partitions to /mnt/*
then : vdump -0f - -D / | vrestore -xf - -D /mnt/newroot
You could do that over the net as well by allowing rsh into one system
(.rhosts)
then from the system with the new disk:
rsh <Server> "/sbin/vdump -0f - -b 64 -D / " | vrestore -xf - -D
/mnt/newroot
check the Tru64 Installation Guide
have fun
sake.
>Hello to all,
>
>is there any way to clone a systemdisk?
>
>Situation: I have a node with a mirrored system disk (Volume manager
>and advfs) which I would like to clone to another system with exact
>the same hardware set up.
>
>Before crashing another system: Is it possible with a command as
>following:
>
>dd if=/dev(rz0c of=/dev/rz3c bs=8192
>
>Can be bootet from rz3c afterwards?
>
>Thanks in davance,
>
>Axel
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2001-06-12 18:32 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-06-11 13:35 Cloning system disk Axel K�ster
2001-06-11 17:16 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
2001-06-12 6:11 ` Axel K�ster
2001-06-12 16:19 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
2001-06-11 18:46 ` Paul Victor Novarese
2001-06-12 18:32 ` sake
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox