Lentes, Bernd
2019-May-15 13:22 UTC
[libvirt-users] domain still running although snapshot-file is deleted !?!
Hi, i have a strange situation: A domain is still running where domblklist points to a snapshot file and also dumpxml says the current drive is that snapshot file. But the file has been deleted hours ago. And the domain is still running. I can login via ssh, the database and the webserver are still running, domain is performant. How can that be ? Also lsof shows that the file is deleted: qemu-syst 27007 qemu 15ur REG 254,14 335609856 183599 /mnt/snap/sim.sn (deleted) qemu-syst 27007 qemu 16ur REG 254,14 335609856 183599 /mnt/snap/sim.sn (deleted) qemu-syst 27007 27288 qemu 15ur REG 254,14 335609856 183599 /mnt/snap/sim.sn (deleted) qemu-syst 27007 27288 qemu 16ur REG 254,14 335609856 183599 /mnt/snap/sim.sn (deleted) CPU\x200/ 27007 27308 qemu 15ur REG 254,14 335609856 183599 /mnt/snap/sim.sn (deleted) CPU\x200/ 27007 27308 qemu 16ur REG 254,14 335609856 183599 /mnt/snap/sim.sn (deleted) CPU\x201/ 27007 27309 qemu 15ur REG 254,14 335609856 183599 /mnt/snap/sim.sn (deleted) CPU\x201/ 27007 27309 qemu 16ur REG 254,14 335609856 183599 /mnt/snap/sim.sn (deleted) vnc_worke 27007 27321 qemu 15ur REG 254,14 335609856 183599 /mnt/snap/sim.sn (deleted) vnc_worke 27007 27321 qemu 16ur REG 254,14 335609856 183599 /mnt/snap/sim.sn (deleted) Bernd -- Bernd Lentes Systemadministration Institut für Entwicklungsgenetik Gebäude 35.34 - Raum 208 HelmholtzZentrum münchen bernd.lentes@helmholtz-muenchen.de phone: +49 89 3187 1241 phone: +49 89 3187 3827 fax: +49 89 3187 2294 http://www.helmholtz-muenchen.de/idg wer Fehler macht kann etwas lernen wer nichts macht kann auch nichts lernen Helmholtz Zentrum Muenchen Deutsches Forschungszentrum fuer Gesundheit und Umwelt (GmbH) Ingolstaedter Landstr. 1 85764 Neuherberg www.helmholtz-muenchen.de Stellv. Aufsichtsratsvorsitzender: MinDirig. Dr. Manfred Wolter Geschaeftsfuehrung: Prof. Dr. med. Dr. h.c. Matthias Tschoep, Heinrich Bassler, Kerstin Guenther Registergericht: Amtsgericht Muenchen HRB 6466 USt-IdNr: DE 129521671
Peter Crowther
2019-May-15 13:52 UTC
Re: [libvirt-users] domain still running although snapshot-file is deleted !?!
The file may have been unlinked (name to inode mapping removed from the filesystem), but the inode and therefore the data will stay until no process references the inode. I *think* this may be what's happening in your case? Peter On Wed, 15 May 2019, 14:25 Lentes, Bernd, < bernd.lentes@helmholtz-muenchen.de> wrote:> Hi, > > i have a strange situation: > A domain is still running where domblklist points to a snapshot file and > also dumpxml says the current drive is that snapshot file. > But the file has been deleted hours ago. And the domain is still running. > I can login via ssh, the database and the webserver are still running, > domain is performant. > How can that be ? > Also lsof shows that the file is deleted: > qemu-syst 27007 qemu 15ur REG 254,14 > 335609856 183599 /mnt/snap/sim.sn (deleted) > qemu-syst 27007 qemu 16ur REG 254,14 > 335609856 183599 /mnt/snap/sim.sn (deleted) > qemu-syst 27007 27288 qemu 15ur REG 254,14 > 335609856 183599 /mnt/snap/sim.sn (deleted) > qemu-syst 27007 27288 qemu 16ur REG 254,14 > 335609856 183599 /mnt/snap/sim.sn (deleted) > CPU\x200/ 27007 27308 qemu 15ur REG 254,14 > 335609856 183599 /mnt/snap/sim.sn (deleted) > CPU\x200/ 27007 27308 qemu 16ur REG 254,14 > 335609856 183599 /mnt/snap/sim.sn (deleted) > CPU\x201/ 27007 27309 qemu 15ur REG 254,14 > 335609856 183599 /mnt/snap/sim.sn (deleted) > CPU\x201/ 27007 27309 qemu 16ur REG 254,14 > 335609856 183599 /mnt/snap/sim.sn (deleted) > vnc_worke 27007 27321 qemu 15ur REG 254,14 > 335609856 183599 /mnt/snap/sim.sn (deleted) > vnc_worke 27007 27321 qemu 16ur REG 254,14 > 335609856 183599 /mnt/snap/sim.sn (deleted) > > Bernd > > -- > > Bernd Lentes > Systemadministration > Institut für Entwicklungsgenetik > Gebäude 35.34 - Raum 208 > HelmholtzZentrum münchen > bernd.lentes@helmholtz-muenchen.de > phone: +49 89 3187 1241 > phone: +49 89 3187 3827 > fax: +49 89 3187 2294 > http://www.helmholtz-muenchen.de/idg > > wer Fehler macht kann etwas lernen > wer nichts macht kann auch nichts lernen > > > Helmholtz Zentrum Muenchen > Deutsches Forschungszentrum fuer Gesundheit und Umwelt (GmbH) > Ingolstaedter Landstr. 1 > 85764 Neuherberg > www.helmholtz-muenchen.de > Stellv. Aufsichtsratsvorsitzender: MinDirig. Dr. Manfred Wolter > Geschaeftsfuehrung: Prof. Dr. med. Dr. h.c. Matthias Tschoep, Heinrich > Bassler, Kerstin Guenther > Registergericht: Amtsgericht Muenchen HRB 6466 > USt-IdNr: DE 129521671 > > > _______________________________________________ > libvirt-users mailing list > libvirt-users@redhat.com > https://www.redhat.com/mailman/listinfo/libvirt-users