On 10/11/2012 11:20 PM, Scott Rohling wrote:
The easiest thing to do is bring the guest down and  LINK these 2 disks
from another running Linux ..  mount them as /mnt /mnt/disk1 and 2 and copy
- I would use rsync:

rsync -av /mnt/disk1/  /mnt/disk2

In case you follow down this path, don't forget to rewrite the bootloader since the boot files are now at different places on the disk after having copied the content file by file:
chroot /mnt/disk2
zipl -V
exit

Unmount, detach - and swap the disks in the directory so the big disk is
the same address as the old small one.

In case you don't want to / cannot rename the DASD devno, you can adjust it in above workflow between the chroot and the zipl call with:
vi /etc/fstab
vi /etc/zipl.conf
# use the distro mechanism to configure root devno such that it'll
# set it (or them in case of multi-PV LVM rootfs) online during boot
mkinitrd # not necessary with RHEL6

With zfcp attached scsi disks this is usually mandatory since one can hardly influence target WWPN and LUN to be the same after moving to another disk (or even a disk in another storage system).

If you don't have another running Linux you can do something similar by
booting the install kernel from the reader and getting into the recovery
shell..   I don't think the rsync command is there, so you'd have to use
the 'cp' command or a tar pipe.

Scott Rohling


On Thu, Oct 11, 2012 at 12:41 PM, Ben Duncan <b...@linux4ms.net> wrote:

Hi group. Need to some help in transferring and recreating the ROOT ( /
) dasd device to another dasd
Specifically we want to migrate from a 300MB partition and replace it
with a 2Gb partition which is
already formatted and prepped.


Any pointer or how to's on this ?

Steffen Maier

Linux on System z Development

IBM Deutschland Research & Development GmbH
Vorsitzende des Aufsichtsrats: Martina Koederitz
Geschäftsführung: Dirk Wittkopp
Sitz der Gesellschaft: Böblingen
Registergericht: Amtsgericht Stuttgart, HRB 243294

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390
----------------------------------------------------------------------
For more information on Linux on System z, visit
http://wiki.linuxvm.org/

Reply via email to