0

I have 6 USB HDDs which i use to store a externel backup of my homeserver. Over the HDDs is a Linux Software RAID5.

What is the correct way to "stop everything" and eject the HDDs safe so i can unplug them without shutdown the whole server?

After the backup process was complete, i have shutdown the server (so i do not destroy the raid with failed HDDs) and unplugged them.

I wonder if there is a other and more comfortable way to do this.
Is it just a simple mdadm --stop /dev/md/<what-ever>?

2
  • So the 6 external drives are all members of a RAID 5? Commented Nov 14, 2022 at 13:48
  • @JoepvanSteen Yes. That is correct.
    – Marc
    Commented Nov 14, 2022 at 13:48

1 Answer 1

0

I have tried it with mdadm --stop & udisksctl and it works like expected.

First unmount the volume, and then:

mdadm --stop /dev/mdX
udisksctl power-off -b /dev/sdX

Repeat the last command for each disk.
I let the question open, perhaps someone has something to say about my approach.

2
  • Does it work to only do eject /dev/sdX where X is the letter of the RAID drive?
    – harrymc
    Commented Nov 14, 2022 at 15:13
  • I have tried it before, eject had no impact on my external drives. They where still spinning and not in standby/idle.
    – Marc
    Commented Nov 14, 2022 at 15:21

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .