[Parted-maintainers] Bug#605759: [s390/hercules] disk partitioning failed: no /dev/dsda1

Niko Tyni ntyni at debian.org
Sun Dec 19 07:10:42 GMT 2010


retitle 605759 [s390] parted: does not re-read DASD partition table, breaks d-i
reassign 605759 parted 2.3-4
severity 605759 serious
tags 605759 = d-i patch fixed-upstream
thanks

On Fri, Dec 17, 2010 at 08:04:39PM +0100, Ferenc Wagner wrote:
> Niko Tyni <ntyni at debian.org> writes:
> > On Thu, Dec 16, 2010 at 05:37:55PM +0100, Ferenc Wagner wrote:
> >> Niko Tyni <ntyni at debian.org> writes:
> >> 
> >>> Hercules s390 emulator installation failed at disk partitioning;
> >>> new partitions don't seem to show up in /dev.

> > It works fine if I create the partition manually with fdasd.

> > Furthermore, if I try to create a partition first with the d-i interface
> > (getting the error) and then invoke fdasd and write out a trivial no-op
> > such as change the volume serial from LIN120 to LIN120, /dev/dasda1
> > appears.

> > It looks to me like the problem is that d-i does not manage to reread
> > the partition table.

> > I'm not sure if I understand the architecture correctly here, but
> > maybe the problem is this change in parted 2.3 ?
> >
> >         libparted: remove now-worse-than-useless _kernel_reread_part_table
> >         Now that we're using BLKPG properly, there's no point in using the
> >         less-functional BLKRRPART ioctl to make the kernel reread the partition
> >         table.
> >         More importantly, this function would fail when any partition is in
> >         use, in spite of our having carefully vetted them via BLKPG ioctls.
> >
> > I see fdasd (as of s390-tools 1.8.3-3) uses BLKRRPART and not BLKPG.
> >
> > The timeline would also fit the successful reports #569209 and #575682.
> 
> This looks a fairly plausible theory, and the outcome is even more
> interesting, search for DASD in git log libparted/arch/linux.c.  As I
> understand it, 9fa0e180 may even fix this problem.

Thanks! The patch applies cleanly to 2.3-4, and I can confirm that the
it fixes the issue completely for me.

(For the sake of completeness: I built the modified parted on zelenka.d.o
 without the build dependencies libblkid-dev and check. They don't seem
 to matter in this case.)

I'm attaching the patch for convenience and reassigning this to parted.
Setting the severity to 'serious' as it looks like this breaks d-i on
s390 for everybody and not just hercules users.

Parted maintainers: feel free to downgrade if this is inflated, and
please let me know if I can help further in any way.
-- 
Niko Tyni   ntyni at debian.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-linux-remove-DASD-restriction-on-_disk_sync_part_tab.patch
Type: text/x-diff
Size: 2251 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/parted-maintainers/attachments/20101219/7bf0c885/attachment-0001.patch>


More information about the Parted-maintainers mailing list