Last edited:
Wow! that worked like magic. Please what was the issue? and what does that command do?on a hunch - please try running `pct fsck 240` and see if this improves the situation
fsck
doesn't seem to be a permanent solution, but only until the next time the file-system is re-mounted. There are quite a few threads in the forum over the years, about the same issue with a rootfs
disk on CIFS.volume 'mysmb:143/vm-143-disk-0.raw' does not exist
error once.root@pve701:~# pct mount 143
mounted CT 143 in '/var/lib/lxc/143/rootfs'
root@pve701:~# pct unmount 143
root@pve701:~# pct mount 143
mount: /var/lib/lxc/143/rootfs: can't read superblock on /dev/loop0.
mounting container failed
command 'mount /dev/loop0 /var/lib/lxc/143/rootfs//' failed: exit code 32
root@pve701:~# pct unlock 143
root@pve701:~# pct mount 143
mount: /var/lib/lxc/143/rootfs: can't read superblock on /dev/loop0.
mounting container failed
command 'mount /dev/loop0 /var/lib/lxc/143/rootfs//' failed: exit code 32
root@pve701:~# pct unlock 143
root@pve701:~# pct fsck 143
fsck from util-linux 2.36.1
MMP interval is 10 seconds and total wait time is 42 seconds. Please wait...
/mnt/pve/mysmb/images/143/vm-143-disk-0.raw: recovering journal
/mnt/pve/mysmb/images/143/vm-143-disk-0.raw: clean, 21884/524288 files, 186373/2097152 blocks
root@pve701:~# pct mount 143
mounted CT 143 in '/var/lib/lxc/143/rootfs'
root@pve701:~# pct unmount 143
root@pve701:~# pct mount 143
volume 'mysmb:143/vm-143-disk-0.raw' does not exist
root@pve701:~# pct unlock 143
root@pve701:~# pct mount 143
mount: /var/lib/lxc/143/rootfs: can't read superblock on /dev/loop0.
mounting container failed
command 'mount /dev/loop0 /var/lib/lxc/143/rootfs//' failed: exit code 32
options cache=none
is set on the CIFS storage in /etc/pve/storage.cfg
.cache=strict
is the default.cache=none means that the client never utilizes the cache for normal reads and writes. It always accesses the server directly to satisfy a read or write request.
cache=strict means that the client will attempt to follow the CIFS/SMB2 protocol strictly. That is, the cache is only trusted when the client holds an oplock. When the client does not hold an oplock, then the client bypasses the cache and accesses the server directly to satisfy a read or write request. By doing this, the client avoids problems with byte range locks. Additionally, byte range locks are cached on the client when it holds an oplock and are "pushed" to the server when that oplock is recalled.
~ # fio --rw=write --name=test --bs=4K --size=2G --direct=0 --sync=0 --filename=/srv/test.dd --runtime=600 --time_based
### cache=none
Jobs: 1 (f=1): [W(1)][100.0%][w=18.0MiB/s][w=4600 IOPS][eta 00m:00s]
### cache=strict (default)
Jobs: 1 (f=1): [W(1)][100.0%][w=659MiB/s][w=169k IOPS][eta 00m:00s]
~ # fio --rw=read --name=test --bs=4K --size=2G --direct=0 --sync=0 --filename=/srv/test.dd --runtime=600 --time_based
### cache=none
Jobs: 1 (f=1): [R(1)][100.0%][r=21.0MiB/s][r=5376 IOPS][eta 00m:00s]
### cache=strict (default)
Jobs: 1 (f=1): [R(1)][100.0%][r=567MiB/s][r=145k IOPS][eta 00m:00s]