Dear List,
Is there any way to prepare a z/VM mini-disk for intended use by a Linux virtual machine beforehand? Is there a CMS equivalent for the Linux DASDFMT and MAKEFS commands?
TIA
HITACHI
DATA SYSTEMS
Raymond E. Noal
Lab Manager, San Diego Facility
Office: (858) 537 - 3268
Cell: (858) 248 - 1172
Paul Hanrahan wrote:
> Why not just run linux on vmware ?
>
--
Rich Smrcina
VM Assist, Inc.
Main: (262)392-2026
Cell: (414)491-6001
Ans Service: (360)715-2467
rich.smrcina at vmassist.com
Catch the WAVV! http://www.wavv.org
WAVV 2006 - Chattanooga, TN - April 7-11, 2006
-----Original Message-----
From: VM/ESA and z/VM Discussions [mailto:VME...@LISTSERV.UARK.EDU] On
Because it's not the right answer for every problem, and it doesn't run on
zSeries.
>Is there any way to prepare a z/VM mini-disk for intended use by a Linux
virtual machine beforehand? Is there a CMS
>equivalent for the Linux DASDFMT and MAKEFS commands?
If you are going to use the DIAG driver (currently limited to 31-bit) you
can use CMS FORMAT and RESERVE to do the basic formatting, but that doesn't
help with 64-bit or non-DIAG I/O.
I suppose it wouldn't be too hard to write something like SWAPGEN to dump
the right partition and fs blocking onto a minidisk, but I don't know that
anyone has done so yet.
I think he was looking for a way OUTSIDE of Linux to do the format and
partitioning.
Anyway, with that plus e2, you could do whatever you wanted in terms
of creation of Linux ext2 filesystems from CMS (well, you would also
want a zipl-equivalent). Not sure exactly what that would buy you--I
guess, lay down a filesystem and populate it without ever having to
boot Linux--but I don't think it'd be very hard.
Adam
> Hazy memory suggests that there was briefly such a tool back in 2.2
> days, right as Linux on 390 was getting off the ground. Maybe Rob
> van der Heij wrote it? It was basically mke2fs for a minidisk.
Wrote it back then, but it took longer to publish it. As Bruce points
out, CMS2CDL is on the VM Download pages. It takes a CMS-formatted
disk and makes it into a CDL disk with a single partition using all
space (fdasd -a). All you need is make the filesystem of your choice
on it, but YaST is willing to do so during install.
It was very helpful when we had the FORMAT hack that came with the RVA
to use snapshot under the covers.
With SLES8 the installer got upset if you had not formatted the disks
like this upfront, I think that is fixed in SLES9.
Obviously the memory usage of a Linux machine running dasdfmt is much
larger than that of a CMS user doing FORMAT...
:soapbox.
Actually, I created this after dasdfmt was fixed to remove the option
to format only part of the disk. Until then we would CMS FORMAT and
then dasdfmt only cyl0. The option was removed because the support
teams had so many calls from customers with disks that were not
completely formatted. I still believe the cause was a race condition
in the code that occasionally missed a track while formatting. That's
why one of the Redbooks comes with the silly recommendation to run CMS
FORMAT before running dasdfmt (since all you need is modify cyl0, so
missing some tracks does not hurt).
:esoapbox.
Rob
--
Rob van der Heij rvdheij @ gmail.com
Hey, I still do this. Superstitious? Probably. I should start
using CMS2CDL.
Adam