Question about container migration and formatting

Icar

New Member
Jul 12, 2017
15
0
1
52
Hello,
i have a question about migration :

3 clustered nodes, NFS storage and a container (raw).
When i migrate the container for the first time from a node to another, migration only takes few seconds and all is working fine.
After this first time per node, i have this :

2017-07-12 10:00:39 volume 'NFS:1000/vm-1000-disk-1.raw' is on shared storage 'NFS'
2017-07-12 10:00:39 found local volume 'Backup-Local:1000/vm-1000-disk-1.raw' (via storage)
2017-07-12 10:00:39 found local volume 'local:1000/vm-1000-disk-1.raw' (via storage)
Formatting '/var/lib/vz/images/1000/vm-1000-disk-1.raw', fmt=raw size=68719476736

and formatting is very long.

I really dont understand why. Can anyone can help me please ?

Thx
 
what your pveversion -v?
and can you post your container config and storage config?
 
proxmox-ve: 5.0-15 (running kernel: 4.10.15-1-pve)
pve-manager: 5.0-23 (running version: 5.0-23/af4267bf)
pve-kernel-4.10.15-1-pve: 4.10.15-15
libpve-http-server-perl: 2.0-5
lvm2: 2.02.168-pve2
corosync: 2.4.2-pve3
libqb0: 1.0.1-1
pve-cluster: 5.0-10
qemu-server: 5.0-12
pve-firmware: 2.0-2
libpve-common-perl: 5.0-16
libpve-guest-common-perl: 2.0-11
libpve-access-control: 5.0-5
libpve-storage-perl: 5.0-12
pve-libspice-server1: 0.12.8-3
vncterm: 1.5-2
pve-docs: 5.0-8
pve-qemu-kvm: 2.9.0-2
pve-container: 2.0-14
pve-firewall: 3.0-1
pve-ha-manager: 2.0-2
ksm-control-daemon: 1.2-2
glusterfs-client: 3.8.8-1
lxc-pve: 2.0.8-3
lxcfs: 2.0.7-pve2
criu: 2.11.1-1~bpo90
novnc-pve: 0.6-4
smartmontools: 6.5+svn4324-1

storage.cfg

dir: local
path /var/lib/vz
content rootdir,images,vztmpl,backup,iso
maxfiles 0
shared 0

dir: Backup-Local
path /var/lib/vz
content backup
maxfiles 2
shared 0

nfs: NFS
export /var/lib/vz/NFS
path /mnt/pve/NFS
server 62.xxx.xxx.xxx
content backup,images,rootdir
maxfiles 4
options vers=3


#Template %C3%A0 utiliser pour d%C3%A9ploiement CT
arch: amd64
cores: 1
hostname: ViergeDebian9
memory: 1000
net0: name=eth0,bridge=vmbr1,hwaddr=46:21:C5:54:0A:F3,ip=dhcp,type=veth
ostype: debian
rootfs: NFS:1000/vm-1000-disk-1.raw,size=64G
swap: 1000
 
first, why do you have an extra storage for backup defined with the same path as local?
either use a different directory, or use the 'local' storage for this

second, do you know why the file /var/lib/vz/images/1000/vm-1000-disk-1.raw is there?
 
I removed extra storage and i removed vm-1000-disk-1.raw from 3 nodes (in local storage).
No more formatting :)

I don't know why vm was there... i'll make tests for validate migrations.
Thank you very much.