Re: Extending a DASD partition

2012-03-31 Thread Stephen Powell
On Fri, 30 Mar 2012 13:14:37 -0400 (EDT), Mark Post wrote: On 3/30/2012 at 07:28 AM, Stephen Powell zlinux...@wowway.com wrote: Try issuing the command again, this time without ext2 specified at the end. i.e. resize 1 98.3kb 2462MB parted is not going to work with ECKD devices,

Re: Extending a DASD partition

2012-03-31 Thread Stephen Powell
On Sat, 31 Mar 2012 10:46:10 -0400 (EDT), Stephen Powell wrote: Note that, in theory, fdasd could be used, rather than parted, to create, delete, then re-create the partition at a larger size, provided that fdasd doesn't write anything to the partition when it deletes it. I don't know enough

Re: Extending a DASD partition

2012-03-31 Thread Christian Paro
The fdasd partitioning tool only alters the disk's partition table, which is outside of the partition being resized - making it suitable for extending a partition (assuming there is free formatted space after it) or shrinking a partition (assuming you have already shrunk the filesystem within it).

Re: Extending a DASD partition

2012-03-30 Thread Stephen Powell
On Thu, 29 Mar 2012 11:11:03 -0400 (EDT), Florian Bilek wrote: Yes, here is the result Model: IBM S390 DASD drive (dasd) Disk /dev/dasdl: 2462MB Sector size (logical/physical): 512B/4096B Partition Table: dasd Number Start End SizeFile system Flags 1 98.3kB 1650MB

Re: Extending a DASD partition

2012-03-30 Thread Florian Bilek
Dear Stephen, Unfortunately it doesn't work either and gives the same result: # parted GNU Parted 1.8.8 Using /dev/dcssblk0 Welcome to GNU Parted! Type 'help' to view a list of commands. (parted) select /dev/dasdl Using /dev/dasdl (parted) resize 1 98.3kb 2462MB Error: File system has an

Re: Extending a DASD partition

2012-03-30 Thread Mark Post
On 3/30/2012 at 07:28 AM, Stephen Powell zlinux...@wowway.com wrote: (parted) resize 1 98.3kb 2462MB ext2 Error: File system has an incompatible feature enabled. (parted) Try issuing the command again, this time without ext2 specified at the end. i.e. resize 1 98.3kb 2462MB

Re: Extending a DASD partition

2012-03-30 Thread Stephen Powell
On Fri, 30 Mar 2012 07:45:17 -0400 (EDT), Florian Bilek wrote: Unfortunately it doesn't work either and gives the same result: # parted GNU Parted 1.8.8 Using /dev/dcssblk0 Welcome to GNU Parted! Type 'help' to view a list of commands. (parted) select /dev/dasdl Using /dev/dasdl (parted)

Re: Extending a DASD partition

2012-03-29 Thread Richard Higson
On Wed, Mar 28, 2012 at 06:45:35PM +0200, Florian Bilek wrote: Date: Wed, 28 Mar 2012 18:45:35 +0200 From: Florian Bilek florian.bi...@gmail.com To: LINUX-390@VM.MARIST.EDU Subject: Re: Extending a DASD partition Thank you Dave for these hints. I will try it out. I was always

Re: Extending a DASD partition

2012-03-29 Thread Florian Bilek
Bilek florian.bi...@gmail.com To: LINUX-390@VM.MARIST.EDU Subject: Re: Extending a DASD partition 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. Florian well, there's always my old

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