vzstop stop --fast - behavior crashing box

dlasher

Renowned Member
Mar 23, 2011
229
22
83
problem: shut down Proxmox (which shuts down containers via "vzctl stop 103 --fast") and the box will crash with a kernel hang.

if you ssh/vzctl in, and shutdown the container (either with a shutdown -h now inside the container, or a NON-fast stop from the pmx CLI), then shutdown the box, no crashes, everything is fine.

from the log you can see the symptom:

Code:
[COLOR=#000000][FONT=tahoma]umount: /myth/tv: not mounted[/FONT][/COLOR][COLOR=#000000][FONT=tahoma]
[/FONT][/COLOR][COLOR=#000000][FONT=tahoma]umount: /myth/video: not mounted[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]umount: /myth/music: not mounted[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]umount: /myth/livetv: not mounted[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]umount: /myth/gallery: not mounted[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]Stopping container ...[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]shutdown failed - forcing stop now[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]Removing stale lock file /var/lib/vz/lock/103.lck[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]umount: /myth/tv: not mounted[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]umount: /myth/video: not mounted[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]umount: /myth/music: not mounted[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]umount: /myth/livetv: not mounted[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]umount: /myth/gallery: not mounted[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]Killing container ...[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]Unable to stop container: operation timed out[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]TASK ERROR: command 'vzctl stop 103 --fast' failed: exit code 33
[/FONT][/COLOR]



The 103.stop file tries to umount the directories mounted into the container, but the --fast doesn't wait long enough.

How can I either remove the --fast option from the GUI driven shutdown, or resolve the actual problem?

103.mount
Code:
#!/bin/sh
mount -n --bind /raid/myth/livetv /var/lib/vz/root/103/myth/livetv
mount -n --bind /raid/myth/tv /var/lib/vz/root/103/myth/tv
mount -n --bind /raid/myth/video /var/lib/vz/root/103/myth/video
mount -n --bind /raid/myth/music /var/lib/vz/root/103/myth/music
mount -n --bind /raid/myth/gallery /var/lib/vz/root/103/myth/gallery

103.stop
Code:
#!/bin/sh
sleep 20s
umount -l /myth/tv
umount -l /myth/video
umount -l /myth/music
umount -l /myth/livetv
umount -l /myth/gallery
sleep 10s


root@proxmox:/etc/vz/conf# pveversion -v
proxmox-ve-2.6.32: 3.1-109 (running kernel: 2.6.32-23-pve)
pve-manager: 3.1-3 (running version: 3.1-3/dc0e9b0e)
pve-kernel-2.6.32-20-pve: 2.6.32-100
pve-kernel-2.6.32-23-pve: 2.6.32-109
lvm2: 2.02.98-pve4
clvm: 2.02.98-pve4
corosync-pve: 1.4.5-1
openais-pve: 1.1.4-3
libqb0: 0.11.1-2
redhat-cluster-pve: 3.2.0-2
resource-agents-pve: 3.9.2-4
fence-agents-pve: 4.0.0-1
pve-cluster: 3.0-7
qemu-server: 3.1-1
pve-firmware: 1.0-23
libpve-common-perl: 3.0-6
libpve-access-control: 3.0-6
libpve-storage-perl: 3.0-10
pve-libspice-server1: 0.12.4-1
vncterm: 1.1-4
vzctl: 4.0-1pve3
vzprocps: 2.0.11-2
vzquota: 3.1-2
pve-qemu-kvm: 1.4-17
ksm-control-daemon: 1.1-1
glusterfs-client: 3.4.0-2
 
Last edited:
Anyone else on the forum seen this issue with bind mounts into containers? several of my friends also run ProxMox, and they're seeing this as well.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!