July 11, 20196 yr I've found myself in the situation of having to remove specific drives in my array that's in a 5in3 hotswap bay. I want to spin down (and ideally power off) the drive before removing, but the bay does NOT have individual power buttons for each drive. I stop the array then power down the device using "hdparm -Y /dev/sdX" which works fine, but it automatically powers back on and spins up 5 seconds later. Is there a way to stop it from powering back up (or a better approach to this situation), so I can hot swap safely?
July 11, 20196 yr Author 3 minutes ago, johnnie.black said: This should work: echo 1 > /sys/block/sdX/device/delete Oops I forgot to mention I tried this as well. Same thing - it works but then powers right back up.
Archived
This topic is now archived and is closed to further replies.