[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:26:45 +0200
User-agent: Mutt/1.5.21 (2010-09-15)


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?

strace parted -s /dev/md1 create primary 1M 10M

If this works for you than it is likely something in gparted.


Petr Uzel
IRC: ptr_uzl @ freenode

Attachment: pgp7Vi2yitpds.pgp
Description: PGP signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]