Linux Remove an old sd device name

So from time to time I remove storage from Linux servers and don’t want to reboot the server so I run the following command works in RHEL and SLES:

echo 1 >  /sys/block/device-name/device/delete

For example 

echo 1 >  /sys/block/sde/device/delete

2 Replies to “Linux Remove an old sd device name”

Leave a Reply to Joseph Griffiths Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.