
I have a server that has an iscsi connection that should have been disabled, and the volume group is enabled on it. I noticed the volume group after I had disconnected the iscsi connection, and am trying not to add the iscsi back, or to reboot the server.
lvscan gave a billion errors but I used dmsetup to manually remove the entries for the lv's. Now I just have the volume group that something seems to know about as when I do vgchange I get:
# vgchange -a n vg-drbd /dev/mapper/mpathd: read failed after 0 of 4096 at 3900547923968: Input/output error /dev/mapper/mpathd: read failed after 0 of 4096 at 3900547981312: Input/output error /dev/mapper/mpathd: read failed after 0 of 4096 at 0: Input/output error /dev/mapper/mpathd: read failed after 0 of 4096 at 4096: Input/output error Volume group "vg-drbd" not found
I want to tell the kernel to forget that vg-drbd exists altogether as it is no longer reachable and shouldn't be on that machine anyway.
Any suggestions?
Nevermind. Once I had used dmsetup to remove all the lv's I found I could then flush the multipath entry for mpathd (couldn't before) and now it's all good again! James