Cannot recreate md1 if partitions (ie: md1p1, md1p2) detected

Bug #1461879 reported by Alvaro Uria
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
partman-auto-raid (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

distribution: trusty
package: partman-auto-raid
Version: 22ubuntu1
file: ./lib/partman/display.d/55initial_auto_raid_fs
function: fix_raid_fs
lines: 22-29

Hi,

On non-partitioned disks, partman-auto-raid worked perfectly fine for me. Re-installing just after previous install worked fine, too.

However, if one of the created raids gets partitioned (ie: md1p1, md1p2) and a re-install is run, partman-auto-raid fails with "Error: incorrect directory for /dev/md1".

By wiping disks partitions out (ie: dd if=/dev/zero of=/dev/sda ...), under partman/early_command, RAID is not detected and partman-auto-raid works again.

partman-auto-raid should automatically partition disks no matter their previous state.

Please let me know if you would require further details.

Cheers,
-Alvaro.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in partman-auto-raid (Ubuntu):
status: New → Confirmed
Revision history for this message
Igshaan Mesias (igshaan-mesias) wrote :

Hi,

I had exactly the same behavour with 14.04 if any pre-existing raids were present.
Installer fails with: "partman-auto-raid: Error: incorrect directory for /dev/mdXXX"

I can only confirm that wiping disks with dd gets you passed this, however, using mdadm to zero the superblock instead may just work, I have not tested this.

Kind Regards,

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.