FWIW, using fdasd to extend a partition in-place does work when you have
"free" space after the end of your partition and had pre-formatted the
entire DASD (or minidisk) prior to creating your original partition table.

Also, if you have another DASD available, and are concerned about how
exactly your data is preserved by a file-based tool like rsync or cp (which
you would want to use with the "-a" option if you go that route), you can
dasdfmt that second DASD in entirety, create a larger partition on the
second DASD, `dd` the contents of your existing partition into the larger
destination partition, and use resize2fs to expand the file system.

...but recreating your file system and copying files should work fine if
you have another free disk that you can make use of instead of doing an
in-place expansion of your existing partition.

On Wed, Mar 28, 2012 at 12:45 PM, Florian Bilek <[email protected]>wrote:

> Dear Christian,
>
>
> Unfortunately this does not workout since FDASD does not allow to enter
> extends beyond the actual partition size. It tells:
> fdasd /dev/dasdl
> reading volume label ..: VOL1
> reading vtoc ..........: ok
> WARNING: This device is not fully formatted! Only 2238 of 3339 cylinders
> are available.
>
> I had formatted the device before and the old content was copied by dd.
>
> I think that there should be some option at dasdfmt to format only parts of
> the partitions as cpfmtxa can do or FDASD should not check the size of the
> partition at leased with an option. Maybe this could be taken by IBM on
> board for improvement of the s390x tools.
>
> @Dave
> Thank you Dave for these hints. I will try it out. I was always concerned
> to use cp or rsync since I was not shure how it would handle the symlinks.
>
> Kind regards,
> Florian
>
>
>
>
>
> On Wed, Mar 28, 2012 at 5:06 PM, Christian Paro <[email protected]
> >wrote:
>
> > Assuming there's free space following your existing partition, you can
> use
> > fdasd to increase the partition size (just make sure you keep the same
> > starting cylinder), and then resize your filesystem with resize2fs after
> > the partition has been extended.
> >
> > On Wed, Mar 28, 2012 at 10:50 AM, Florian Bilek <[email protected]
> > >wrote:
> >
> > > Dear all,
> > >
> > > Is there a tool that would allow to increase the partition size of a
> DASD
> > > partition?
> > >
> > > I would need to extend an ext2 filesystem on a DASD without loosing the
> > > data on it. resize2fs does not extend the partition size. Is there an
> > > appropriate tool for that on s390x?
> > >
> > > Thank you very much in advance.
> > >
> > > --
> > > Best regards
> > >
> > > Florian Bilek
> > >
> > > ----------------------------------------------------------------------
> > > For LINUX-390 subscribe / signoff / archive access instructions,
> > > send email to [email protected] 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/
> > >
> >
> > ----------------------------------------------------------------------
> > For LINUX-390 subscribe / signoff / archive access instructions,
> > send email to [email protected] 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/
> >
>
>
>
> --
>
> ----------------------------------------------------------------------
> For LINUX-390 subscribe / signoff / archive access instructions,
> send email to [email protected] 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/
>

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [email protected] 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