Extending a DASD partition

2012-03-28 Thread Florian Bilek
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

Re: Extending a DASD partition

2012-03-28 Thread Christian Paro
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

Re: Extending a DASD partition

2012-03-28 Thread Dave Jones
Hi, Florian. There is no tool that I am aware of that would do this, but there are some manual steps you can do to expand the partition size: 1) add a new minidisk of the appropriate size to the zLinux image 2) dasdfmt it 3) make a partition: fdasd -a 4) put an ext2 (or ext3) file system on it

Re: Extending a DASD partition

2012-03-28 Thread Dave Jones
Rick Troth, in a private note to me, has made the excellent suggestion of using rsync instead of cp below, to avoid problems with symlinks: rsync -a -u -x -H -K -O -S /old/. /mnt/. Thanks Rick. DJ Hi, Florian. There is no tool that I am aware of that would do this, but there are some

Re: Extending a DASD partition

2012-03-28 Thread Florian Bilek
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

Re: Extending a DASD partition

2012-03-28 Thread Christian Paro
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

Re: Extending a DASD partition

2012-03-28 Thread Richard Troth
On Wed, Mar 28, 2012 at 10:50 AM, Florian Bilek florian.bi...@gmail.com wrote: Is there a tool that would allow to increase the partition size of a DASD partition? Assuming CDL, the following sequence should work. (Is untested, but similar to steps I have run previously.) from the CMS side

Re: Extending a DASD partition

2012-03-28 Thread Dave Jones
Florian, use the rsync command as Rick Troth has suggested,the cp -ax does not handle symlinks as we want it to. As an aside, I'm not all that thrilled by trying to expand a filesystem or partition in place, either. DJ On 3/28/2012 11:45 AM, Florian Bilek wrote: Dear Christian, Unfortunately

Re: Extending a DASD partition

2012-03-28 Thread Stephen Powell
On Wed, 28 Mar 2012 10:50:01 -0400 (EDT), Florian Bilek wrote: 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