A problem occurred with the incus config device add disk, causing /opt to become unusable. Deleting the added disk device restored normal functionality

fanfan@fanfan:~$ incus start v6 
fanfan@fanfan:~$ incus info --show-log v6
Name: v6
Status: RUNNING
Type: virtual-machine
Architecture: x86_64
PID: 1030987
Created: 2025/01/16 19:05 CST
Last Used: 2025/01/16 19:05 CST
Started: 2025/01/16 19:05 CST

Resources:
  Processes: -1
  Network usage:
    eth0:
      Type: broadcast
      State: UP
      Host interface: tapc063482b
      MAC address: 00:16:3e:f7:0e:64
      MTU: 1500
      Bytes received: 0B
      Bytes sent: 164B
      Packets received: 0
      Packets sent: 2
      IP addresses:
        inet6: fd42:892a:c280:c1d4:216:3eff:fef7:e64/64 (global)

Log:


fanfan@fanfan:~$ incus config device add v6 disk-storage-device disk source=/home/fanfan/data/video  path=/opt shift=true
Device disk-storage-device added to v6
fanfan@fanfan:~$ incus info --show-log v6
Name: v6
Status: RUNNING
Type: virtual-machine
Architecture: x86_64
PID: 1030987
Created: 2025/01/16 19:05 CST
Last Used: 2025/01/16 19:05 CST
Started: 2025/01/16 19:05 CST

Operating System:
  OS: Ubuntu
  OS Version: 22.04.5 LTS (Jammy Jellyfish)
  Kernel Version: 5.15.0-130-generic
  Hostname: v6
  FQDN: localhost

Resources:
  Processes: 19
  CPU usage:
    CPU usage (in seconds): 2
  Memory usage:
    Memory (current): 201.51MiB
  Network usage:
    enp5s0:
      Type: broadcast
      State: UP
      Host interface: tapc063482b
      MAC address: 00:16:3e:f7:0e:64
      MTU: 1500
      Bytes received: 3.16kB
      Bytes sent: 2.25kB
      Packets received: 23
      Packets sent: 20
      IP addresses:
        inet:  10.152.45.107/24 (global)
        inet6: fd42:892a:c280:c1d4:216:3eff:fef7:e64/64 (global)
        inet6: fe80::216:3eff:fef7:e64/64 (link)
    lo:
      Type: loopback
      State: UP
      MTU: 65536
      Bytes received: 5.92kB
      Bytes sent: 5.92kB
      Packets received: 80
      Packets sent: 80
      IP addresses:
        inet:  127.0.0.1/8 (local)
        inet6: ::1/128 (local)

Log:


fanfan@fanfan:~$ incus restart v6
fanfan@fanfan:~$ incus info --show-log v6
Name: v6
Status: RUNNING
Type: virtual-machine
Architecture: x86_64
PID: 1031109
Created: 2025/01/16 19:05 CST
Last Used: 2025/01/16 19:06 CST
Started: 2025/01/16 19:06 CST

Resources:
  Processes: -1
  Network usage:
    eth0:
      Type: broadcast
      State: UP
      Host interface: tap841b5581
      MAC address: 00:16:3e:f7:0e:64
      MTU: 1500
      Bytes received: 0B
      Bytes sent: 164B
      Packets received: 0
      Packets sent: 2
      IP addresses:
        inet:  10.152.45.107/24 (global)
        inet6: fd42:892a:c280:c1d4:216:3eff:fef7:e64/64 (global)
        inet6: fe80::216:3eff:fef7:e64/64 (link)

Log:

qemu-system-x86_64:/run/incus/v6/qemu.conf:273: warning: '-fsdev proxy' and '-virtfs proxy' are deprecated, use 'local' instead of 'proxy, or consider deploying virtiofsd as alternative to 9p


What do you mean by unusable?
The output above doesn’t show the behavior inside of the VM.

What happens if you add the device back, don’t reboot the VM and then in the VM get:

  • cat /proc/self/mountinfo
  • ls -lh /opt/