Welcome to the Linux Foundation Forum!

24.8 RAID Hot Spares

Regarding the example, the slide shows...

sudo mdadm --create /dev/md0 -l 5 -n3 -x 1 /dev/sda8 /dev/sda9 /dev/sda10 /dev/sda11

Then to test...

sudo mdadm --fail /dev/md0 /dev/sdb2

It says that this would test the redundancy and hot spare of the array.

Shouldn't the device be from what was used to define md0?
Like sda8, sda9, sda10, or sda11?

How is /dev/sdb2 factored into /dev/md0?

I'm confused.

Comments

  • lee42x
    lee42x Posts: 380

    You are correct. We want to mark one of the data elements in the RAID as failed.
    Sorry for the confusion.
    Lee

  • Hi @ddspell ,

    Shouldn't the device be from what was used to define md0?
    Like sda8, sda9, sda10, or sda11?

    Absolutely right! It should be one of the component devices. If not, how is it gonna fail?

    Thanks for reporting the issue.

    Luis.

Categories

Upcoming Training