[PVE-User] Migration error because of local storage

THe_ZiPMaN flavio-pve at zipman.it
Thu Nov 29 20:56:41 CET 2012


Uhm.... some little advance with my investigation and problem solved,
but I think I found a bug

I made a strace of the qm migrate command and found something VERY strange.
The migration process looks for a qcow2 image in
/var/lib/vz/images/<VMID> and (don't know why) it finds an image.

381415 open("/var/lib/vz/images/",
O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 6
381415 fcntl(6, F_GETFD)                = 0x1 (flags FD_CLOEXEC)
381415 getdents(6, /* 3 entries */, 32768) = 72
381415 open("/var/lib/vz/images/101/",
O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 10
381415 getdents(10, /* 3 entries */, 32768) = 88
381415 lstat("/var/lib/vz/images/101/vm-101-disk-1.qcow2",
{st_mode=S_IFREG|0644, st_size=197120, ...}) = 0
381415 getdents(10, /* 0 entries */, 32768) = 0
381415 close(10)                        = 0
381415 getdents(6, /* 0 entries */, 32768) = 0
381415 close(6)                         = 0
381415 pipe([6, 10])                    = 0

I don't know why the file is there.

root at giunone02:~# ls -Al /var/lib/vz/images/101/
-rw-r--r-- 1 root root 197120 28 nov 20.44
/var/lib/vz/images/101/vm-101-disk-1.qcow2

Anyway I'm 100% sure it wasn't used; indeed it shows mod time in the
moment of the last migration (when it was copied from one host to the
other), while the VM is working right now; if it were in use the mod
time should have been updated.

The size of only 200k makes me think it is an empty disk I used during
some try I've done in the past (the VM 101 was the 1st I've installed
and was a testbed for my games) even if I don't remember anything.

I moved that file away and restarted the migration process, and now it
worked like a charm.

This is definately and undesiderable behaviour. The qm command should
look ONLY for the storages listed in the config file, and I don't know
why it looks for some other predefined locations.

If you need the trace it is available from
https://www.zipman.it/priv/strace.txt.bz2

Hope this helps

Thanks
-- 
Flavio Visentin

A computer is like an air conditioner,
it stops working when you open Windows



More information about the pve-user mailing list