* Installing five identical systems...
@ 1999-12-10 15:12 Jen-Shiang Yu
1999-12-10 15:39 ` Helge Kreutzmann
1999-12-10 15:47 ` Michal Jaegermann
0 siblings, 2 replies; 23+ messages in thread
From: Jen-Shiang Yu @ 1999-12-10 15:12 UTC (permalink / raw)
To: axp-list
I am about to install RedHat Linux together with Digital Unix
on five identical DP264 machines. Now I have done setup on one machine, and
am wondering if there is any tool that can just "duplicate" the existing
partition/data on the current system disk to the rest four new disks so as
to prevent from re-installation "from scratch". This way I can just plug the
copied system disk into another machine, boot from it and change the
configurations since the hardware setting on these five machines are all the
same.
I believe such tools exist, or how can those system vendors bear
doing the same job for one hundred times to install the 128-node cluster?
I am really appreciated for your help.
--
Jen-Shiang Kenny Yu // jsyu@Platinum.chem.nthu.edu.tw
Theoretical Chemistry Lab,
Deptartment of Chemistry,
National Tsing Hua University
Hsinchu 300, TAIWAN
^ permalink raw reply [flat|nested] 23+ messages in thread
* RE: Installing five identical systems...
@ 1999-12-10 15:19 Mike Foley
1999-12-10 23:22 ` Antonio S. Martins Jr.
0 siblings, 1 reply; 23+ messages in thread
From: Mike Foley @ 1999-12-10 15:19 UTC (permalink / raw)
To: 'axp-list@redhat.com'
I'd love something like this also. I have to build
RH systems on a regular basis and I'd love to be able
to use a consistant copy with all the updates applied.
Windows folks have something like this with things like
Norton Ghost.
I have started looking into the Kickstart portion
of RH but only briefly so far. (too busy building
systems!)
mike
-----Original Message-----
From: Jen-Shiang Yu [mailto:jsyumail@Platinum.Chem.nthu.edu.tw]
Sent: Friday, December 10, 1999 10:12 AM
To: axp-list@redhat.com
Subject: Installing five identical systems...
I am about to install RedHat Linux together with Digital Unix
on five identical DP264 machines. Now I have done setup on one machine, and
am wondering if there is any tool that can just "duplicate" the existing
partition/data on the current system disk to the rest four new disks so as
to prevent from re-installation "from scratch". This way I can just plug the
copied system disk into another machine, boot from it and change the
configurations since the hardware setting on these five machines are all the
same.
I believe such tools exist, or how can those system vendors bear
doing the same job for one hundred times to install the 128-node cluster?
I am really appreciated for your help.
--
Jen-Shiang Kenny Yu // jsyu@Platinum.chem.nthu.edu.tw
Theoretical Chemistry Lab,
Deptartment of Chemistry,
National Tsing Hua University
Hsinchu 300, TAIWAN
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 23+ messages in thread
* RE: Installing five identical systems...
@ 1999-12-10 15:24 nm
0 siblings, 0 replies; 23+ messages in thread
From: nm @ 1999-12-10 15:24 UTC (permalink / raw)
To: axp-list
At 10:19 AM 12/10/99 -0500, you wrote:
>
> I'd love something like this also. I have to build
> RH systems on a regular basis and I'd love to be able
> to use a consistant copy with all the updates applied.
> Windows folks have something like this with things like
> Norton Ghost.
>
> I have started looking into the Kickstart portion
> of RH but only briefly so far. (too busy building
> systems!)
>
> mike
>
<snip>
I dont know about you guys, but back when I did SA work with
Linux based systems, I considered this a pretty standard task.
I would keep a big tarball of a post-patch, post-update
installation (with all the goodies and utils that I wanted,
already in the tarball).
I would have two copies. One in a desktop configuration and
one in a stripped down file server configuration.
Gotta build a new rubber stamped box? Just stick the disk in
an already set up machine, and make a parititon, make it bootable
from bios, add a boot sector, newfs, untar, configure, etc...
Nick Maniscalco
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: Installing five identical systems...
1999-12-10 15:12 Installing five identical systems Jen-Shiang Yu
@ 1999-12-10 15:39 ` Helge Kreutzmann
1999-12-10 16:01 ` Michal Jaegermann
1999-12-10 17:57 ` Rich Payne
1999-12-10 15:47 ` Michal Jaegermann
1 sibling, 2 replies; 23+ messages in thread
From: Helge Kreutzmann @ 1999-12-10 15:39 UTC (permalink / raw)
To: axp-list
Hallo !
On Fri, 10 Dec 1999, Jen-Shiang Yu wrote:
> I am about to install RedHat Linux together with Digital Unix
>on five identical DP264 machines. Now I have done setup on one machine, and
>am wondering if there is any tool that can just "duplicate" the existing
>partition/data on the current system disk to the rest four new disks so as
>to prevent from re-installation "from scratch". This way I can just plug the
>copied system disk into another machine, boot from it and change the
>configurations since the hardware setting on these five machines are all the
>same.
If those disks are SCSI, you should be able to just hook all disks
parallel in the already installed system and
cp -a / /mnt/newdisk1
(then newdisk2 etc.). I don't know if you can clone aboot that way. And
you may want to double check the cp-Options.
Once finished you put each HD back into its box.
Helge
--
Helge.Kreutzmann@stud.uni-hannover.de
kreutzm@itp.uni-hannover.de
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: Installing five identical systems...
1999-12-10 15:12 Installing five identical systems Jen-Shiang Yu
1999-12-10 15:39 ` Helge Kreutzmann
@ 1999-12-10 15:47 ` Michal Jaegermann
1 sibling, 0 replies; 23+ messages in thread
From: Michal Jaegermann @ 1999-12-10 15:47 UTC (permalink / raw)
To: axp-list
Jen-Shiang Yu wrote:
>
> Now I have done setup on one machine, and
> am wondering if there is any tool that can just "duplicate" the existing
> partition/data on the current system disk to the rest four new disks so as
> to prevent from re-installation "from scratch".
If you are willing to mount a new disk on an existing machine runnig
Linux then "the tool" is called 'cp'. GNU cp "knows" how to handle
special devices, pipes and the like. The simplest is 'cp -a' but you
probably want to use 'cp -dpRx' as you do NOT want to copy things like a
contents of /proc or /dev/pts. This approach will also prevent attempts
of recursive copies of itself on itself. :-) Check 'man cp' for detailed
explanations.
You may use for the same purpose other tools, like 'cpio' or 'tar'
(writing on stdout and piping its output to another tar which extracts
stdio; a similar trick with 'dump'/'restore' pair) but 'cp' is likely
the simplest.
> I believe such tools exist, or how can those system vendors bear
> doing the same job for one hundred times to install the 128-node cluster?
A simple script may partition the whole disk (using 'sfdisk' or
'minlabel' - depending on a type of partitioning you require), format
newly created partitions, mkswap, and copy required contents to fresh
media. With a bit of creativity and a network you can boot into a
ramdisk, aquire IP number by dhcp (say), run a script which will prepare
a new disk and 'rsync' its contents over a network from a "master node".
Everything you need is there. This is another OS which goes under a
name of "No Tools". :-)
Michal
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: Installing five identical systems...
1999-12-10 15:39 ` Helge Kreutzmann
@ 1999-12-10 16:01 ` Michal Jaegermann
1999-12-10 17:57 ` Rich Payne
1 sibling, 0 replies; 23+ messages in thread
From: Michal Jaegermann @ 1999-12-10 16:01 UTC (permalink / raw)
To: axp-list
Helge Kreutzmann wrote:
>
> If those disks are SCSI, you should be able to just hook all disks
> parallel in the already installed system and
> cp -a / /mnt/newdisk1
If they are SCSI or IDE it does not matter but the command above will
attempt to make a copy of things like /proc/kcore and /mnt/newdisk1
to /mnt/newdisk1/mnt/newdisk1 - which you really DO NOT want to do.
That is why I mentioned 'cp -dpRx' in another message in this thread.
Michal
^ permalink raw reply [flat|nested] 23+ messages in thread
* RE: Installing five identical systems...
@ 1999-12-10 16:51 Paul Bunn
0 siblings, 0 replies; 23+ messages in thread
From: Paul Bunn @ 1999-12-10 16:51 UTC (permalink / raw)
To: 'axp-list@redhat.com'
There have been some good replies referencing tools such as 'cp', which is
fine if you can/don't mind putting the drive from the new system into
another system (or vice versa).
However, I thought I'd mention another idea, which is relevant if you have a
copy of NT4 Workstation or Server lying around. We wrote a *free* utility
called "Stand Alone Disaster Recovery" which was written to allow NT users
to backup or restore an entire physical drive. Although based on NT and
written for NT, it will happily backup non-NT systems (and any type of FS).
What the tool does is allow you to create a set of 3 bootable floppies (5
floppies for Alpha systems), using files mostly from the NT CD. If you have
the smarts, you can burn a CD with these files on them (just make sure that
the files on the floppies exist in the \ALPHA directory on the CD). When
the program is invoked, you can backup from one physical drive to another,
-OR- you can backup/restore the entire physical drive to a tape drive (most
are supported, although spanning is not supported so it must all fit on one
tape). It is a 68KB download from our website, just click on "download".
Regards,
Paul Bunn, UltraBac.com, 425-644-6000
Microsoft MVP - WindowsNT
http://www.ultrabac.com
-----Original Message-----
From: Jen-Shiang Yu [mailto:jsyumail@Platinum.Chem.nthu.edu.tw]
Sent: Friday, December 10, 1999 7:12 AM
To: axp-list@redhat.com
Subject: Installing five identical systems...
I am about to install RedHat Linux together with Digital Unix
on five identical DP264 machines. Now I have done setup on one machine, and
am wondering if there is any tool that can just "duplicate" the existing
partition/data on the current system disk to the rest four new disks so as
to prevent from re-installation "from scratch". This way I can just plug the
copied system disk into another machine, boot from it and change the
configurations since the hardware setting on these five machines are all the
same.
I believe such tools exist, or how can those system vendors bear
doing the same job for one hundred times to install the 128-node cluster?
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: Installing five identical systems...
1999-12-10 15:39 ` Helge Kreutzmann
1999-12-10 16:01 ` Michal Jaegermann
@ 1999-12-10 17:57 ` Rich Payne
1999-12-10 18:36 ` Greg Lindahl
1999-12-10 21:05 ` Chance Reschke
1 sibling, 2 replies; 23+ messages in thread
From: Rich Payne @ 1999-12-10 17:57 UTC (permalink / raw)
To: Helge Kreutzmann; +Cc: axp-list
cp isn't always a good way to do it, especially from a currently mounted
filesystem. The best I've found is:
Create your system, setup how you want all of them to look
Put that disk into a machine, along with your blank, and boot from a
third.
So the machine has 3 disks, the original, the blank, and the disk you're
running from.
then you can do a dd, example
dd if=/dev/sda of=/dev/sdb
now this will work perfectly if the disks are the same size, if they are
different sizes then things get a little tricky! You can also do this to a
file, then dd the file out to disks again. The other things with the file
is that you can mount it via the loop driver and delete things like /proc
that you don't want copied!
It's not good just to copy or dd from the disk the system is running on,
remember that as you copy, files are going to change on the disk (logs
etc....) not good!
--rdp
On Fri, 10 Dec 1999, Helge Kreutzmann wrote:
> Hallo !
> On Fri, 10 Dec 1999, Jen-Shiang Yu wrote:
> > I am about to install RedHat Linux together with Digital Unix
> >on five identical DP264 machines. Now I have done setup on one machine, and
> >am wondering if there is any tool that can just "duplicate" the existing
> >partition/data on the current system disk to the rest four new disks so as
> >to prevent from re-installation "from scratch". This way I can just plug the
> >copied system disk into another machine, boot from it and change the
> >configurations since the hardware setting on these five machines are all the
> >same.
>
> If those disks are SCSI, you should be able to just hook all disks
> parallel in the already installed system and
> cp -a / /mnt/newdisk1
> (then newdisk2 etc.). I don't know if you can clone aboot that way. And
> you may want to double check the cp-Options.
>
> Once finished you put each HD back into its box.
>
> Helge
>
>
> --
> Helge.Kreutzmann@stud.uni-hannover.de
> kreutzm@itp.uni-hannover.de
>
> --
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
>
Rich Payne
rpayne@alphalinux.org www.alphalinux.org
^ permalink raw reply [flat|nested] 23+ messages in thread
* RE: Installing five identical systems...
1999-12-10 17:57 ` Rich Payne
@ 1999-12-10 18:36 ` Greg Lindahl
1999-12-10 19:21 ` Rich Payne
1999-12-10 21:05 ` Chance Reschke
1 sibling, 1 reply; 23+ messages in thread
From: Greg Lindahl @ 1999-12-10 18:36 UTC (permalink / raw)
To: axp-list
> It's not good just to copy or dd from the disk the system is running on,
But it does work; fsck the result immediately, and you'll see if you had a
fatal problem or not.
-- g
^ permalink raw reply [flat|nested] 23+ messages in thread
* RE: Installing five identical systems...
1999-12-10 18:36 ` Greg Lindahl
@ 1999-12-10 19:21 ` Rich Payne
1999-12-10 21:07 ` Larry Snyder
0 siblings, 1 reply; 23+ messages in thread
From: Rich Payne @ 1999-12-10 19:21 UTC (permalink / raw)
To: Greg Lindahl; +Cc: axp-list
On Fri, 10 Dec 1999, Greg Lindahl wrote:
> > It's not good just to copy or dd from the disk the system is running on,
>
> But it does work; fsck the result immediately, and you'll see if you had a
> fatal problem or not.
I've tried it.....not always with good results.
--rdp
>
> -- g
>
> --
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
>
Rich Payne
rpayne@alphalinux.org www.alphalinux.org
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: Installing five identical systems...
1999-12-10 17:57 ` Rich Payne
1999-12-10 18:36 ` Greg Lindahl
@ 1999-12-10 21:05 ` Chance Reschke
1999-12-10 22:15 ` Greg Lindahl
1999-12-11 0:06 ` Michal Jaegermann
1 sibling, 2 replies; 23+ messages in thread
From: Chance Reschke @ 1999-12-10 21:05 UTC (permalink / raw)
To: axp-list; +Cc: Helge Kreutzmann
>
> cp isn't always a good way to do it, especially from a currently mounted
> filesystem. The best I've found is:
>
> Create your system, setup how you want all of them to look
> Put that disk into a machine, along with your blank, and boot from a
> third.
>
> So the machine has 3 disks, the original, the blank, and the disk you're
> running from.
>
> then you can do a dd, example
>
> dd if=/dev/sda of=/dev/sdb
>
> now this will work perfectly if the disks are the same size, if they are
> different sizes then things get a little tricky! You can also do this to a
> file, then dd the file out to disks again. The other things with the file
> is that you can mount it via the loop driver and delete things like /proc
> that you don't want copied!
>
> It's not good just to copy or dd from the disk the system is running on,
> remember that as you copy, files are going to change on the disk (logs
> etc....) not good!
This is the correct way to duplicate disks. Using cp or other
file-system-level tools requires you to:
first partition the target disk exactly like the source disk
then create filesystems on each partition
then initialize the swap partitions
then mount each partition
then copy the contents of each partition
dd just makes an exact block-wise copy of the source onto the target in a
single step. Do not do this with live filesystems on the source disk.
Using fsk to check the validity of the target isn't a reliable check
because the copy is done below the filesystem level.
If you create a minimal system which allows you to boot from a diskette
and connect to a network, you can perform this type of disk duplication
over your LAN (dd if=/dev/sda | rsh somehost 'dd of=/dev/sda').
- C
^ permalink raw reply [flat|nested] 23+ messages in thread
* RE: Installing five identical systems...
1999-12-10 19:21 ` Rich Payne
@ 1999-12-10 21:07 ` Larry Snyder
1999-12-12 12:21 ` marbud
0 siblings, 1 reply; 23+ messages in thread
From: Larry Snyder @ 1999-12-10 21:07 UTC (permalink / raw)
To: axp-list
Partition the disk and mount it, then:
cd /source-mount-point
tar cvf - * | (cd /dest-mount-point ; tar xvf -)
Works great as long as they're parallel and not hierarchical to each
other.
-ls-
Rich Payne <rdp@talisman.alphalinux.org> wrote:
> On Fri, 10 Dec 1999, Greg Lindahl wrote:
>
> > > It's not good just to copy or dd from the disk the system is running on,
> >
> > But it does work; fsck the result immediately, and you'll see if you had a
> > fatal problem or not.
>
> I've tried it.....not always with good results.
>
> --rdp
>
>
> >
> > -- g
> >
> > --
> > To unsubscribe: send e-mail to axp-list-request@redhat.com with
> > 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
> >
>
> Rich Payne
> rpayne@alphalinux.org www.alphalinux.org
>
> --
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 23+ messages in thread
* RE: Installing five identical systems...
1999-12-10 21:05 ` Chance Reschke
@ 1999-12-10 22:15 ` Greg Lindahl
1999-12-11 17:53 ` Jack Wathey
1999-12-13 20:43 ` Chance Reschke
1999-12-11 0:06 ` Michal Jaegermann
1 sibling, 2 replies; 23+ messages in thread
From: Greg Lindahl @ 1999-12-10 22:15 UTC (permalink / raw)
To: axp-list
> Using fsk to check the validity of the target isn't a reliable check
> because the copy is done below the filesystem level.
The second clause of this sentence is true, but the first clause doesn't go
with it. Since all the files you care about aren't changing, this technique
does work, and I've used it about 1000 times with no failures. If you are
really worried, boot into single user mode, remount the source partition
read only, and then make the copy. But it's a waste of your time.
> If you create a minimal system which allows you to boot from a diskette
> and connect to a network, you can perform this type of disk duplication
> over your LAN (dd if=/dev/sda | rsh somehost 'dd of=/dev/sda').
This is impossible on an alpha, because the binaries are too big. Intead I
wrote a program which compiles down to just 30 kbytes which configs the
interface and does the copy and uncompress.
-- g
^ permalink raw reply [flat|nested] 23+ messages in thread
* RE: Installing five identical systems...
1999-12-10 15:19 Mike Foley
@ 1999-12-10 23:22 ` Antonio S. Martins Jr.
0 siblings, 0 replies; 23+ messages in thread
From: Antonio S. Martins Jr. @ 1999-12-10 23:22 UTC (permalink / raw)
To: 'axp-list@redhat.com'
Hi folks,
Well... You can do this on various ways...
*- read the RedHat-CD HOWTO (I can't recall the exact file name), in
there are the steps to create an instalation CD from the FTP files, but
more important it explains how to upgrade packages, or change what
packages you want in your distro (I like ssh, an RH didn't come with it!).
Than You can make a Kickstart floppy and use your customized CD!
*- put the HD from the others machines on the machine you already had
Linux customized! make the partitions, format them, mount them on some
place (/mnt), and "cp -av" all the directories into it! Then put the HD
back on their original box, boot from floppy and call lilo (ops, this is
on i386, on alpha it isn't needed).
*- put the HD from the others machines on the machine you already had
Linux customized! and do "dd if=/dev/sda of=/dev/sdb"! This can work, I
hadn't tryed it yet, and you probably needs the same type of HD!
Maybe it give you some ideas!
Antonio.
On Fri, 10 Dec 1999, Mike Foley wrote:
>
> I'd love something like this also. I have to build
> RH systems on a regular basis and I'd love to be able
> to use a consistant copy with all the updates applied.
> Windows folks have something like this with things like
> Norton Ghost.
>
> I have started looking into the Kickstart portion
> of RH but only briefly so far. (too busy building
> systems!)
>
> mike
>
> -----Original Message-----
> From: Jen-Shiang Yu [mailto:jsyumail@Platinum.Chem.nthu.edu.tw]
> Sent: Friday, December 10, 1999 10:12 AM
> To: axp-list@redhat.com
> Subject: Installing five identical systems...
>
>
> I am about to install RedHat Linux together with Digital Unix
> on five identical DP264 machines. Now I have done setup on one machine, and
> am wondering if there is any tool that can just "duplicate" the existing
> partition/data on the current system disk to the rest four new disks so as
> to prevent from re-installation "from scratch". This way I can just plug the
> copied system disk into another machine, boot from it and change the
> configurations since the hardware setting on these five machines are all the
> same.
>
> I believe such tools exist, or how can those system vendors bear
> doing the same job for one hundred times to install the 128-node cluster?
>
> I am really appreciated for your help.
>
> --
> Jen-Shiang Kenny Yu // jsyu@Platinum.chem.nthu.edu.tw
>
> Theoretical Chemistry Lab,
> Deptartment of Chemistry,
> National Tsing Hua University
> Hsinchu 300, TAIWAN
>
>
> --
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
>
> --
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
>
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Antonio S. Martins Jr. - System Analist | "Only The Shadow Knows |
| WorldNet Internet Maringa - PR - Brasil | what evil lurks in the |
| E-Mail: shadow@wnet.com.br | Heart of Men!" |
| shadow@uem.br | !!! Linux User: 52392 !!! |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
This e-mail message is 100% Microsoft free!
/"\
\ / CAMPANHA DA FITA ASCII - CONTRA MAIL HTML
X ASCII RIBBON CAMPAIGN - AGAINST HTML MAIL
/ \
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: Installing five identical systems...
1999-12-10 21:05 ` Chance Reschke
1999-12-10 22:15 ` Greg Lindahl
@ 1999-12-11 0:06 ` Michal Jaegermann
1999-12-11 1:16 ` Chance Reschke
1 sibling, 1 reply; 23+ messages in thread
From: Michal Jaegermann @ 1999-12-11 0:06 UTC (permalink / raw)
To: axp-list
Chance Reschke wrote:
>
> >
> >
> > then you can do a dd, example
> >
> > dd if=/dev/sda of=/dev/sdb
> >
>
> This is the correct way to duplicate disks.
Provided that both disks you are using are **really** identical
and very often they are not even if nominally they are. It often
works but it very far from a guaranteed way. Depending on relative
**actual** sizes you may either end up wasting parts of your target
disk which will become inaccesible, or writing a partition table
which claims that there is more available blocks than in reality.
> Using cp or other
> file-system-level tools requires you to:
>
> first partition the target disk exactly like the source disk
Totally incorrect. And exactly **because** you may use different disks
and partiton and format (say, with different block sizes or i-node
density) them differently this is in general a preferred way.
Michal
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: Installing five identical systems...
1999-12-11 0:06 ` Michal Jaegermann
@ 1999-12-11 1:16 ` Chance Reschke
0 siblings, 0 replies; 23+ messages in thread
From: Chance Reschke @ 1999-12-11 1:16 UTC (permalink / raw)
To: axp-list
> > > then you can do a dd, example
> > >
> > > dd if=/dev/sda of=/dev/sdb
> > >
> >
> > This is the correct way to duplicate disks.
>
> Provided that both disks you are using are **really** identical
> and very often they are not even if nominally they are. It often
> works but it very far from a guaranteed way. Depending on relative
> **actual** sizes you may either end up wasting parts of your target
> disk which will become inaccesible, or writing a partition table
> which claims that there is more available blocks than in reality.
For identical disks the dd method works reliably. For non-identical
disks, as long as the target disk is as large as the source disk it's safe
if not not efficient.
>
> > Using cp or other
> > file-system-level tools requires you to:
> >
> > first partition the target disk exactly like the source disk
>
> Totally incorrect. And exactly **because** you may use different disks
> and partition and format (say, with different block sizes or i-node
> density) them differently this is in general a preferred way.
No, not totally incorrect. The question was how to duplicate, not how to
make a similar copy. To make a similar copy you're fine creating target
partition sizes different than the source, then using something like
tar/cpio/cp to copy files. Just be sure your target partitions are big
enough to hold everything.
- C
^ permalink raw reply [flat|nested] 23+ messages in thread
* RE: Installing five identical systems...
1999-12-10 22:15 ` Greg Lindahl
@ 1999-12-11 17:53 ` Jack Wathey
1999-12-13 20:43 ` Chance Reschke
1 sibling, 0 replies; 23+ messages in thread
From: Jack Wathey @ 1999-12-11 17:53 UTC (permalink / raw)
To: Greg Lindahl; +Cc: axp-list
On Fri, 10 Dec 1999, Greg Lindahl wrote:
> > If you create a minimal system which allows you to boot from a diskette
> > and connect to a network, you can perform this type of disk duplication
> > over your LAN (dd if=/dev/sda | rsh somehost 'dd of=/dev/sda').
>
> This is impossible on an alpha, because the binaries are too big. Intead I
> wrote a program which compiles down to just 30 kbytes which configs the
> interface and does the copy and uncompress.
>
> -- g
Greg,
Is there any way I can get a copy of your program that does this? I have
a cluster of alphas (LX machines on fast Ethernet), and I would really
like to try your technique for upgrading their OS. I suspect that other
people on the list with alpha clusters could benefit from it, too.
Jack
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: Installing five identical systems...
1999-12-10 21:07 ` Larry Snyder
@ 1999-12-12 12:21 ` marbud
0 siblings, 0 replies; 23+ messages in thread
From: marbud @ 1999-12-12 12:21 UTC (permalink / raw)
To: axp-list
Larry Snyder <larrys@lexis-nexis.com> writes:
> Partition the disk and mount it, then:
>
> cd /source-mount-point
> tar cvf - * | (cd /dest-mount-point ; tar xvf -)
Or the same thing with less syntax.
find /source-mount-point | cpio -pvd /dest-mount-point
--
Martin Budsjö, Dimension Sweden, Mölndalsvägen 85,412 85 GÖTEBORG, SWEDEN
Phone: +46 31 7502068, Mobile: +46 709 310168, Email:marbud@dimension.se
^ permalink raw reply [flat|nested] 23+ messages in thread
* RE: Installing five identical systems...
1999-12-10 22:15 ` Greg Lindahl
1999-12-11 17:53 ` Jack Wathey
@ 1999-12-13 20:43 ` Chance Reschke
1999-12-13 21:07 ` Greg Lindahl
1 sibling, 1 reply; 23+ messages in thread
From: Chance Reschke @ 1999-12-13 20:43 UTC (permalink / raw)
To: Greg Lindahl; +Cc: axp-list
On Fri, 10 Dec 1999, Greg Lindahl wrote:
> > Using fsk to check the validity of the target isn't a reliable check
> > because the copy is done below the filesystem level.
>
> The second clause of this sentence is true, but the first clause doesn't go
> with it. Since all the files you care about aren't changing, this technique
> does work, and I've used it about 1000 times with no failures. If you are
> really worried, boot into single user mode, remount the source partition
> read only, and then make the copy. But it's a waste of your time.
The second clause does, in fact, go with the first. Under certain
circumstances, making a blockwise copy from from a rw mounted disk to
another might be "safe"; however, running fsk isn't necessarily
sufficient to identify copying problems.
If dd has already copied the inode table for a given set of filesystem
blocks, then, before dd completes writing these blocks, they are
changed, fsck will be unable to identify the copying problem. This
means that any file which is written to during the copy is vulnerable
to undetectable (with fsck) corruption.
This means what? That fsck "isn't a reliable check" of blockwise
copies of rw mounted filesystems. Anyone planing to use dd to
duplicate disks should be aware of this.
> > If you create a minimal system which allows you to boot from a diskette
> > and connect to a network, you can perform this type of disk duplication
> > over your LAN (dd if=/dev/sda | rsh somehost 'dd of=/dev/sda').
>
> This is impossible on an alpha, because the binaries are too big. Intead I
> wrote a program which compiles down to just 30 kbytes which configs the
> interface and does the copy and uncompress.
When you are ready to release this I'm sure many people would find it
useful.
- C
^ permalink raw reply [flat|nested] 23+ messages in thread
* RE: Installing five identical systems...
1999-12-13 20:43 ` Chance Reschke
@ 1999-12-13 21:07 ` Greg Lindahl
1999-12-14 8:57 ` Christian Iseli
0 siblings, 1 reply; 23+ messages in thread
From: Greg Lindahl @ 1999-12-13 21:07 UTC (permalink / raw)
To: Chance Reschke; +Cc: axp-list
> If dd has already copied the inode table for a given set of filesystem
> blocks, then, before dd completes writing these blocks, they are
> changed, fsck will be unable to identify the copying problem.
This is correct, but if you know that no important files are being written,
you are OK. For example, you might know that no one is changing their
password, therefore /etc/passwd is safe.
-- g
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: Installing five identical systems...
1999-12-13 21:07 ` Greg Lindahl
@ 1999-12-14 8:57 ` Christian Iseli
1999-12-14 18:18 ` Greg Lindahl
0 siblings, 1 reply; 23+ messages in thread
From: Christian Iseli @ 1999-12-14 8:57 UTC (permalink / raw)
To: reschke, glindahl; +Cc: axp-list
glindahl@hpti.com said:
> This is correct, but if you know that no important files are being
> written, you are OK. For example, you might know that no one is
> changing their password, therefore /etc/passwd is safe.
How about taking the system down in single user, and remount all read-only.
Would that be considered safe ?
Christian
^ permalink raw reply [flat|nested] 23+ messages in thread
* RE: Installing five identical systems...
1999-12-14 8:57 ` Christian Iseli
@ 1999-12-14 18:18 ` Greg Lindahl
1999-12-14 20:37 ` Christian Iseli
0 siblings, 1 reply; 23+ messages in thread
From: Greg Lindahl @ 1999-12-14 18:18 UTC (permalink / raw)
To: Christian Iseli; +Cc: axp-list
> How about taking the system down in single user, and remount all
> read-only.
Yes, I said that one a while ago. [ Does this thread get an award for most
overkill? ]
-- g
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: Installing five identical systems...
1999-12-14 18:18 ` Greg Lindahl
@ 1999-12-14 20:37 ` Christian Iseli
0 siblings, 0 replies; 23+ messages in thread
From: Christian Iseli @ 1999-12-14 20:37 UTC (permalink / raw)
To: glindahl; +Cc: axp-list
glindahl@hpti.com said:
> Yes, I said that one a while ago. [ Does this thread get an award for
> most overkill? ]
Ack. Sorry. I thought I was paying more attention than that... I'll go back
in hiding now...
Christian
^ permalink raw reply [flat|nested] 23+ messages in thread
end of thread, other threads:[~1999-12-14 20:37 UTC | newest]
Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-12-10 15:12 Installing five identical systems Jen-Shiang Yu
1999-12-10 15:39 ` Helge Kreutzmann
1999-12-10 16:01 ` Michal Jaegermann
1999-12-10 17:57 ` Rich Payne
1999-12-10 18:36 ` Greg Lindahl
1999-12-10 19:21 ` Rich Payne
1999-12-10 21:07 ` Larry Snyder
1999-12-12 12:21 ` marbud
1999-12-10 21:05 ` Chance Reschke
1999-12-10 22:15 ` Greg Lindahl
1999-12-11 17:53 ` Jack Wathey
1999-12-13 20:43 ` Chance Reschke
1999-12-13 21:07 ` Greg Lindahl
1999-12-14 8:57 ` Christian Iseli
1999-12-14 18:18 ` Greg Lindahl
1999-12-14 20:37 ` Christian Iseli
1999-12-11 0:06 ` Michal Jaegermann
1999-12-11 1:16 ` Chance Reschke
1999-12-10 15:47 ` Michal Jaegermann
-- strict thread matches above, loose matches on Subject: below --
1999-12-10 15:19 Mike Foley
1999-12-10 23:22 ` Antonio S. Martins Jr.
1999-12-10 15:24 nm
1999-12-10 16:51 Paul Bunn
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox