[nova] When are "_del" directories deleted?
Hi *, I stumbled across a different issue when I noticed there's a <UUID>_del directory in /var/lib/nova/instances/. It's a shared directory to enable live-migration. I noticed these "_del" directories before but I didn't really investigate, everything seems to work as expected. But I would like to understand what exactly happens with such a directory, for example currently there's just one instance having also a _del directory. The timestamp is from 2 years ago when the instance was resized the first time. Looking in the nova code [1] I found the reference to the resize function, I just don't quite understand what would happen with that instance if it was shutdown. Would nova delete it to "clean up"? Can I remove that directory safely to prevent nova from doing anything destructive to that instance? I'd appreciate any insights about this. Just to be safe I created an RBD snapshot of the disk to prevent a deletion. Best regards, Eugen [1] https://opendev.org/openstack/nova/src/commit/146b27f22327f8d60c1017c22ccf18...
On Mon, 2021-03-22 at 09:39 +0000, Eugen Block wrote:
Hi *,
I stumbled across a different issue when I noticed there's a <UUID>_del directory in /var/lib/nova/instances/. It's a shared directory to enable live-migration. I noticed these "_del" directories before but I didn't really investigate, everything seems to work as expected. But I would like to understand what exactly happens with such a directory, for example currently there's just one instance having also a _del directory. The timestamp is from 2 years ago when the instance was resized the first time. Looking in the nova code [1] I found the reference to the resize function, I just don't quite understand what would happen with that instance if it was shutdown.
Would nova delete it to "clean up"? Can I remove that directory safely to prevent nova from doing anything destructive to that instance?
I'd appreciate any insights about this. Just to be safe I created an RBD snapshot of the disk to prevent a deletion. have you enabled https://docs.openstack.org/nova/latest/configuration/config.html#workarounds...
Best regards, Eugen
[1] https://opendev.org/openstack/nova/src/commit/146b27f22327f8d60c1017c22ccf18...
Thank you, Sean.
have you enabled https://docs.openstack.org/nova/latest/configuration/config.html#workarounds...
No, this is not enabled in our environment, it's still the default "false". Zitat von Sean Mooney <smooney@redhat.com>:
On Mon, 2021-03-22 at 09:39 +0000, Eugen Block wrote:
Hi *,
I stumbled across a different issue when I noticed there's a <UUID>_del directory in /var/lib/nova/instances/. It's a shared directory to enable live-migration. I noticed these "_del" directories before but I didn't really investigate, everything seems to work as expected. But I would like to understand what exactly happens with such a directory, for example currently there's just one instance having also a _del directory. The timestamp is from 2 years ago when the instance was resized the first time. Looking in the nova code [1] I found the reference to the resize function, I just don't quite understand what would happen with that instance if it was shutdown.
Would nova delete it to "clean up"? Can I remove that directory safely to prevent nova from doing anything destructive to that instance?
I'd appreciate any insights about this. Just to be safe I created an RBD snapshot of the disk to prevent a deletion. have you enabled https://docs.openstack.org/nova/latest/configuration/config.html#workarounds...
Best regards, Eugen
[1] https://opendev.org/openstack/nova/src/commit/146b27f22327f8d60c1017c22ccf18...
participants (2)
-
Eugen Block
-
Sean Mooney