If the RBD image that is behind an nvmeof ns is being deleted, while the ns is mounted to the host, it might cause IOs to hang. We should consider 2 things:
-
Can we add a warning in the RBD CLI to warn the user if he is about to delete an image that is used by a namespace? I think that the RBD can tell that by checking the metadata (nvmeof set something there). @idryomov?
-
Can the nvmeof GW get the event that the image was deleted, and automatically delete the namespace? There is no point in keeping this namespace, if the image was deleted. @gbregman
If the RBD image that is behind an nvmeof ns is being deleted, while the ns is mounted to the host, it might cause IOs to hang. We should consider 2 things:
Can we add a warning in the RBD CLI to warn the user if he is about to delete an image that is used by a namespace? I think that the RBD can tell that by checking the metadata (nvmeof set something there). @idryomov?
Can the nvmeof GW get the event that the image was deleted, and automatically delete the namespace? There is no point in keeping this namespace, if the image was deleted. @gbregman