golli53 Posted July 11, 2019 Share Posted July 11, 2019 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? Quote Link to comment
JorgeB Posted July 11, 2019 Share Posted July 11, 2019 This should work: echo 1 > /sys/block/sdX/device/delete Quote Link to comment
golli53 Posted July 11, 2019 Author Share Posted July 11, 2019 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. Quote Link to comment
JorgeB Posted July 11, 2019 Share Posted July 11, 2019 Always worked for me, though know another way. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.