[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Copieing debian image from LPAR to z/VM



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tuesday 03 June 2003 00:04, Michiel Bello (Wanadoo) wrote:
> Currently we've got Suse and Debian both running native each in their own
> LPAR. We've just installed z/VM on another LPAR and I was wondering if
> there is an easy and quick way to copy the entire debian image onto a
> minidisk under z/VM thus avoiding another full install of debian under z/VM
> ?. Our DASD's are shared between all three mentioned LPAR's and also with
> another z/OS LPAR so I've got almost every possible utility at my disposal.
> Any tips on this matter (and links to e.g. How To's) are welcome.

You can easily copy one dasd to another one with the 'dd' command.
Assuming you have two dasds '/dev/dasdb' and '/dev/dasdc' in your
LPAR, where both are formatted, partitioned, not mounted and of the 
same size and /dev/dasdb1 contains the original OS that you want to 
copy to /dev/dasdc1, one possible command is

  dd if=/dev/dasdb1 of=/dev/dasdc1 bs=4096

Now you can mount /dev/dasdc1 and update any settings that need
changes (most probably /etc/zipl.conf, /etc/fstab, /etc/network/interfaces
and /etc/chandev.conf). To be safe, do a 'chroot' into the copy and rerun 'zipl'
there.
You should be able to boot it like to original one, both in LPAR and in VM.
If you need to use a minidisk instead of the full dasd, it gets slightly more
complicated.

	Arnd <><
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+29gG5t5GS2LDRf4RAmR1AKCUNiVTvP71U3+Ir4K8vlCZkY4GdgCfXrvT
wLHYURY1dO2xTy0ypHKyajc=
=U+3F
-----END PGP SIGNATURE-----



Reply to: