Re: Breaking LVM (on purpose)

2019-01-04 Thread Chris Adams
Once upon a time, Ian Malone said: > Thanks both, I'd thought about a USB drive, but didn't have one to > hand at the time that I didn't mind messing up. The sysfs route sounds > a bit safer though, and I can probably find one I don't need any more. Another thought: use something like NBD or iSCS

Re: Breaking LVM (on purpose)

2019-01-04 Thread Ian Malone
On Thu, 3 Jan 2019 at 18:13, Roger Heflin wrote: > > On Thu, Jan 3, 2019 at 11:01 AM Chris Adams wrote: > > > > Once upon a time, Ian Malone said: > > > Does anyone have suggestions for easily simulating a missing volume in > > > LVM on bare metal? > > > > Actually make a volume go missing? Th

Re: Breaking LVM (on purpose)

2019-01-03 Thread Roger Heflin
echo 1 > /sys/block/sdX/device/delete And the device should disappear. On Thu, Jan 3, 2019 at 11:01 AM Chris Adams wrote: > > Once upon a time, Ian Malone said: > > Does anyone have suggestions for easily simulating a missing volume in > > LVM on bare metal? > > Actually make a volume go missin

Re: Breaking LVM (on purpose)

2019-01-03 Thread Chris Adams
Once upon a time, Ian Malone 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 p

Breaking LVM (on purpose)

2019-01-03 Thread Ian Malone
Does anyone have suggestions for easily simulating a missing volume in LVM on bare metal? I'm trying to test behaviour like a network attached physical volume going missing (actually, a network mounted virtual disc image). The normal loopback approach to testing falls a bit short, while overwriting