Hello.
After upgrading my proxmox from jessie -> buster, several of my containers won't start. I had added a second disk through the UI, and stored several containers on it. The volume shows up in the UI as a ZFS volume, and the containers show up under Content, but attempts to start always fail. Here is the error:
the config is:
I'm not sure why rootfs is on zfs-local, when it's showing up in Content for the MEDIA volume. Here's another container that is not starting:
So the common issue seems to be:
lxc-pve-prestart-hook 105 lxc pre-start produced output: cannot open directory //MEDIA/subvol-105-disk-0: No such file or directory
Here is the screenshot of the summary page in the UI:
There are 2 disks that make up my zfs-local RAID group, and I added a single 2TB drive named MEDIA, which was working fine under 5.x. All three disks show up under fdisk. Any idea why this disk is somehow not available when I go to start the containers?
Thanks.
After upgrading my proxmox from jessie -> buster, several of my containers won't start. I had added a second disk through the UI, and stored several containers on it. The volume shows up in the UI as a ZFS volume, and the containers show up under Content, but attempts to start always fail. Here is the error:
Code:
lxc-start 104 20200509013351.704 INFO lsm - lsm/lsm.c:lsm_init:29 - LSM security driver AppArmor
lxc-start 104 20200509013351.704 INFO conf - conf.c:run_script_argv:340 - Executing script "/usr/share/lxc/hooks/lxc-pve-prestart-hook" for container "104", config section "lxc"
lxc-start 104 20200509013353.116 DEBUG conf - conf.c:run_buffer:312 - Script exec /usr/share/lxc/hooks/lxc-pve-prestart-hook 104 lxc pre-start produced output: cannot open directory //MEDIA/subvol-104-disk-0: No such file or directory
lxc-start 104 20200509013353.138 ERROR conf - conf.c:run_buffer:323 - Script exited with status 2
lxc-start 104 20200509013353.138 ERROR start - start.c:lxc_init:804 - Failed to run lxc.hook.pre-start for container "104"
lxc-start 104 20200509013353.138 ERROR start - start.c:__lxc_start:1903 - Failed to initialize container "104"
lxc-start 104 20200509013353.138 INFO conf - conf.c:run_script_argv:340 - Executing script "/usr/share/lxcfs/lxc.reboot.hook" for container "104", config section "lxc"
lxc-start 104 20200509013353.643 INFO conf - conf.c:run_script_argv:340 - Executing script "/usr/share/lxc/hooks/lxc-pve-poststop-hook" for container "104", config section "lxc"
lxc-start 104 20200509013354.962 DEBUG conf - conf.c:run_buffer:312 - Script exec /usr/share/lxc/hooks/lxc-pve-poststop-hook 104 lxc post-stop produced output: umount: /var/lib/lxc/.pve-staged-mounts/mp0: not mounted.
lxc-start 104 20200509013354.963 DEBUG conf - conf.c:run_buffer:312 - Script exec /usr/share/lxc/hooks/lxc-pve-poststop-hook 104 lxc post-stop produced output: command 'umount -- /var/lib/lxc/.pve-staged-mounts/mp0' failed: exit code 32
lxc-start 104 20200509013355.385 ERROR lxc_start - tools/lxc_start.c:main:308 - The container failed to start
lxc-start 104 20200509013355.386 ERROR lxc_start - tools/lxc_start.c:main:314 - Additional information can be obtained by setting the --logfile and --logpriority options
the config is:
Code:
#Plex media server on Debian8
arch: amd64
cpulimit: 2
cpuunits: 1024
hostname: plex.aviate.org
memory: 2000
mp0: MEDIA:subvol-104-disk-0,mp=/usr/local/media2,size=500G
net0: bridge=vmbr0,gw=192.168.1.1,hwaddr=9A:63:CF:3E:92:1C,ip=192.168.1.100/24,ip6=auto,name=eth0,type=veth
onboot: 1
ostype: ubuntu
rootfs: zfs-local:subvol-104-disk-1,size=1250G
swap: 2000
lxc.cgroup.devices.allow: c 189:* rwm
lxc.mount.entry: /dev/bus/usb/009 dev/bus/usb/009 none bind,optional,create=file
I'm not sure why rootfs is on zfs-local, when it's showing up in Content for the MEDIA volume. Here's another container that is not starting:
Code:
#Plex media server on Debian8
arch: amd64
cpulimit: 2
cpuunits: 1024
hostname: plex.aviate.org
memory: 2000
mp0: MEDIA:subvol-104-disk-0,mp=/usr/local/media2,size=500G
net0: bridge=vmbr0,gw=192.168.1.1,hwaddr=9A:63:CF:3E:92:1C,ip=192.168.1.100/24,ip6=auto,name=eth0,type=veth
onboot: 1
ostype: ubuntu
rootfs: zfs-local:subvol-104-disk-1,size=1250G
swap: 2000
lxc.cgroup.devices.allow: c 189:* rwm
lxc.mount.entry: /dev/bus/usb/009 dev/bus/usb/009 none bind,optional,create=file
Code:
root@proxmox:~# cat lxc-105.log
lxc-start 105 20200509015743.651 INFO lsm - lsm/lsm.c:lsm_init:29 - LSM security driver AppArmor
lxc-start 105 20200509015743.651 INFO conf - conf.c:run_script_argv:340 - Executing script "/usr/share/lxc/hooks/lxc-pve-prestart-hook" for container "105", config section "lxc"
lxc-start 105 20200509015745.181 DEBUG conf - conf.c:run_buffer:312 - Script exec /usr/share/lxc/hooks/lxc-pve-prestart-hook 105 lxc pre-start produced output: cannot open directory //MEDIA/subvol-105-disk-0: No such file or directory
lxc-start 105 20200509015745.402 ERROR conf - conf.c:run_buffer:323 - Script exited with status 2
lxc-start 105 20200509015745.404 ERROR start - start.c:lxc_init:804 - Failed to run lxc.hook.pre-start for container "105"
lxc-start 105 20200509015745.404 ERROR start - start.c:__lxc_start:1903 - Failed to initialize container "105"
lxc-start 105 20200509015745.407 INFO conf - conf.c:run_script_argv:340 - Executing script "/usr/share/lxcfs/lxc.reboot.hook" for container "105", config section "lxc"
lxc-start 105 20200509015745.545 INFO conf - conf.c:run_script_argv:340 - Executing script "/usr/share/lxc/hooks/lxc-pve-poststop-hook" for container "105", config section "lxc"
lxc-start 105 20200509015746.858 DEBUG conf - conf.c:run_buffer:312 - Script exec /usr/share/lxc/hooks/lxc-pve-poststop-hook 105 lxc post-stop produced output: umount: /var/lib/lxc/105/rootfs: not mounted
lxc-start 105 20200509015746.858 DEBUG conf - conf.c:run_buffer:312 - Script exec /usr/share/lxc/hooks/lxc-pve-poststop-hook 105 lxc post-stop produced output: command 'umount --recursive -- /var/lib/lxc/105/rootfs' failed: exit code 1
lxc-start 105 20200509015746.879 ERROR conf - conf.c:run_buffer:323 - Script exited with status 1
lxc-start 105 20200509015746.880 ERROR start - start.c:lxc_end:971 - Failed to run lxc.hook.post-stop for container "105"
lxc-start 105 20200509015746.880 ERROR lxc_start - tools/lxc_start.c:main:308 - The container failed to start
lxc-start 105 20200509015746.880 ERROR lxc_start - tools/lxc_start.c:main:314 - Additional information can be obtained by setting the --logfile and --logpriority options
So the common issue seems to be:
lxc-pve-prestart-hook 105 lxc pre-start produced output: cannot open directory //MEDIA/subvol-105-disk-0: No such file or directory
Here is the screenshot of the summary page in the UI:
There are 2 disks that make up my zfs-local RAID group, and I added a single 2TB drive named MEDIA, which was working fine under 5.x. All three disks show up under fdisk. Any idea why this disk is somehow not available when I go to start the containers?
Thanks.