Jump to content
Sign in to follow this  
golli53

Can't keep individual drive powered down while array is stopped

4 posts in this topic Last Reply

Recommended Posts

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?

Share this post


Link to post
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.

Share this post


Link to post

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this