Re: Problems cloning servers with vdump-vrestore

From: Richard Zoller (richard.zoller_at_t-online.de)
Date: 01/20/05

  • Next message: ccwallin: "Re: memory allocation for programs"
    Date: Thu, 20 Jan 2005 17:09:00 +0100
    
    

    Hi Cris,

    Have you tried a cloning procedure on bit-level.
    Target-Disk must be of same size or bigger then Source-Disk!

    $ init s (single user mode)
    $ disklabel -z /dev/disk/dsk1 (wipe disklabel of target-disk)
    $ dd if=/dev/disk/dsk0 of=/dev/disk/dsk1 bs=8192

    Take dsk1 to your target-server and try to boot.

    I´m not sure if you still have to reinitialize the hardware and
    device-database, when following this procedure..

    Hope it helps...
    Ric

    koji_nanami wrote:
    > Hi,
    >
    > I'm trying to clone a D15 (5.1b os) fully configured and working server
    > on a fresh new D15 machine with only the base OS installed. I made a
    > vdump of all the fileset and restored as I was used to do on my old D10
    > servers wirking with 4.0F .
    > As soon as I reboot the server during startup of the system it gives me
    > an error on links to partitions and starts creating a new disk device
    > dsk1 (the original was dsk0) and then the boot stops.
    > Now I can only start the server in single user mode and I managed to
    > get it working reading an old post that suggested to do a:
    > dsfmgr -e dsk1 dsk0
    > after this i removed the dsk1 devices and rebooted succeding in cloning
    > the server.
    >
    > The problem is that I've to avoid the new device creation at the first
    > startup and the system halt, finding a cloning procedure that doesn't
    > give such problems. This because the resulting cloning procedure has to
    > be monkey-user friendly. Hope to get some help soon...
    >
    > Cris
    >


  • Next message: ccwallin: "Re: memory allocation for programs"