JFTR

-------- Forwarded Message --------
Subject: Re: Bug#1109801: Mdadm fails to give error message if the wrong parameters given to add command
Date: Thu, 24 Jul 2025 19:27:03 +1200
From: Patrick Dunford <patrickjrdunf...@gmail.com>
To: dan...@debian.org

Hello
In order to create a working array the following steps of preparation are required for each disk in the array (this has been found to be the only method which works):

1. Create a GPT partition table on the disk e.g. /dev/sda
2. Create a filesystem partition (e.g. ext4) on the disk e.g. /dev/sda1
3. Add the partition to the MD array

This therefore is described in your case (b)


On 24 Jul 2025, at 17:44, Daniel Baumann <dan...@debian.org> wrote:

Hi Patrick,

thank you for your report.

On 7/24/25 03:59, Patrick Dunford wrote:
When an array is created or modified, new disks are added. The add command 
takes a parameter,
which must be a partition of an existing disk e.g. /dev/sda1
If the user only specifies a device e.g. /dev/sda, mdadm will claim the disk 
has been added
and show all normal indications and messages for the device.

To be sure that I understand you correctly, can you clarify for me which case 
you're after:

a) the correct device to be added is /dev/sda (without a /dev/sda1 being 
present) and that doesn't work like you described.

or

b) the correct device to be added is /dev/sda1 (which is being present) but 
when you add /dev/sda instead, it doesn't work like you described.

Regards,
Daniel

Reply via email to