From: tyler_durden0x0@yahoo.com (Paul Victor Novarese)
Subject: Re: Cloning system disk
Date: 11 Jun 2001 11:46:48 -0700 [thread overview]
Message-ID: <ad15cd44.0106111046.3610c14@posting.google.com> (raw)
In-Reply-To: 0sh9it8r8jcosgkon3imiik6eonbmamfai@4ax.com
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 {} \;
next prev parent reply other threads:[~2001-06-11 18:46 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2001-06-12 18:32 ` sake
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