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

Re: Copieing debian image from LPAR to z/VM

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'
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

	Arnd <><
Version: GnuPG v1.2.1 (GNU/Linux)


Reply to: