[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Confirmed Bug] Parted does not notify kernel when modifying partiti
From: |
Petr Uzel |
Subject: |
Re: [Confirmed Bug] Parted does not notify kernel when modifying partition tables in partitionable md arrays |
Date: |
Thu, 19 May 2011 17:32:02 +0200 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Thu, May 19, 2011 at 05:26:45PM +0200, Petr Uzel wrote:
> Hi!
>
> On Fri, May 13, 2011 at 09:56:39PM +0200, Christopher White wrote:
> > Greetings!
> >
> > After some serious back-and-forth on the md mailing list, it finally
> > turned out to be a bug in (g)parted, which has been reproduced by two
> > people on separate machines using the latest versions of (g)parted.
> > Here's how to reproduce the bug:
> >
> > Step 1:
> > Create a PARTITIONABLE md array with mdadm (change parameters to
> > whatever test parameters you use, but keep the --auto=partX flag to
> > make it a partitionable md array):
> > mdadm --create --level=raid5 --auto=part2 /dev/md1 --metadata=1.2
> > --raid-devices=4 /dev/sda2 /dev/sdb2 /dev/sdc2 /dev/sdd2
> >
> > Step 2:
> > Verify that the device was created (ls /dev/md* will show /dev/md1
> > and nothing else since there are no partitions yet)
>
> I just tried with parted-2.3 it seems to work fine here (I have used
> 2 devices in raid1 array, but that shouldn't make any difference).
> Strace shows that necessary BLKPG* ioctl()s have been called and
> created partition shows up (in /proc/mdstat and /proc/partitions).
>
> Could you please try to run parted in strace and post the output here?
>
> e.g.
> strace parted -s /dev/md1 create primary 1M 10M
Oops, this should read
strace parted -s /dev/md1 mkpart primary ext2 1M 10M
Petr
--
Petr Uzel
IRC: ptr_uzl @ freenode
pgpoTi1lEp48K.pgp
Description: PGP signature