Maybe I left something out.
Since this is CDL format there is a VTOC with an entry for the partition
extent.
I can use a free CMS program LXFMT to update that label without destroying
any data.
The gotcha is that I (LINUX) cannot use the additional DASD because it is
not in a 4K format.

Another solution I thought of would be to define the mdisk to VSE (I suppose
z/OS would work too) then I could use JCL to create a file appending the
current LINUX partition and write a program (any language) to open the file,
write 4K records to the end. and close the file.

Then go back to CMS for LXFMT to update the partition label.. and then
to LINUX to expand the file system..

Safer than me calculating where to DDR copy to, but still a mess...

On Mon, Jun 27, 2011 at 1:57 PM, Jonathan Quay <jonathan.q...@ihg.com>wrote:

> I don't think you can do what you want to do because the linux partition
> table won't see the extra cylinders.  Nothing jumps off the page on the
> s390tools site.  I think you are stuck with defining a bigger minidisk and
> copying the data over.  LVM's are easy to extend and that is what I use for
> almost all my filesystems.
>
>
> On Mon, Jun 27, 2011 at 4:44 PM, Thomas Kern <tlk_sysp...@yahoo.com>wrote:
>
>> CPFMTXA can do that cylinder range formatting, but I don't know if Linux
>> will then allow you to do the resize2fs to enlarge the filesystem control
>> blocks. It would be worth a try on a TEST MINIDISK.
>>
>> /Tom Kern
>>
>>
>> On Mon, 27 Jun 2011 13:28:49 -0700, Tom Huegel <tehue...@gmail.com>
>> wrote:
>>
>> >Tom,
>> >Yea that would work too.
>> >It just seems so simple to be able to format a cylinder range (either in
>> >LINUX or CMS) ie FORMAT A10 4K cyl 100:199.. It would just write 4K
>> blocks
>> >x'00's and be almost done with it. Then LINUX could expand the filesystem
>> >and away we go.
>> >
>> >At least it sounds simple.
>> >
>> >
>> >
>> >On Mon, Jun 27, 2011 at 1:11 PM, Thomas Kern <tlk_sysp...@yahoo.com>
>> wrote:
>> >
>> >> I always did it the old-fashioned way:
>> >> 1) allocate a new 200 cyl minidisk
>> >> 2) format it in linux
>> >> 3) use linux tools to copy data from old to new
>> >> 4) mount new instead of old
>> >> 5) remove old from linux configuration
>> >>
>> >> /Tom Kern
>> >>
>> >>
>> >> On Mon, 27 Jun 2011 10:35:46 -0700, Tom Huegel <tehue...@gmail.com>
>> wrote:
>> >>
>> >> >I have a minidisk that LINUX uses. It is defined and formatted h use
>> CDL
>> >> >format.
>> >> >The MDISK is 100 cylinders but I want to expand it to 200 cylinders.
>> >> >
>> >> >How can I write the proper format on cylinders 99 to 199?
>> >> >
>> >> >The only way I found was to create another mdisk with 200 cylinders
>> and
>> >> >format it, then DDR copy cyl 99 to 199 to my old disk.
>> >> >There must be a better way.
>> >> >
>> >> >Does anyone know of a utility that will format specific cylinders on a
>> >> disk?
>> >> >
>> >> >Thanks
>> >> >
>> >>
>> >
>>
>
>
>
> --
>
> *Jonathan Quay*
>
> **Systems Engineer - Enterprise Servers and Virtualization
>
> Global Technology
>
> Direct Line: 770-442-7026
> Fax: 770-442-7191
>
> *http://www.ihg.com
> *
>
>

Reply via email to