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

And the device should disappear.

On Thu, Jan 3, 2019 at 11:01 AM Chris Adams <li...@cmadams.net> wrote:
>
> Once upon a time, Ian Malone <ibmal...@gmail.com> said:
> > Does anyone have suggestions for easily simulating a missing volume in
> > LVM on bare metal?
>
> Actually make a volume go missing?  The easiest way to do that would be
> USB volumes (thumb drives), and just yank the drive out.  Even if you
> don't want to physically pull the drive, I think you can tell a USB
> device to power down via a sysfs attribute, so that might be sufficient.
>
> --
> Chris Adams <li...@cmadams.net>
> _______________________________________________
> users mailing list -- users@lists.fedoraproject.org
> To unsubscribe send an email to users-le...@lists.fedoraproject.org
> Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
> List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives: 
> https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org

Reply via email to