I have a folder on my RAIDZ1 that just seems to be broken - I know it sounds dumb but I don’t know how to describe it better.
root@truenas1:/mnt/hdd_raidz1/misc# cd ISOs/
root@truenas1:/mnt/hdd_raidz1/misc/ISOs# ls -al
total 0
root@truenas1:/mnt/hdd_raidz1/misc/ISOs# cd ..
root@truenas1:/mnt/hdd_raidz1/misc# rm -rf ISOs/
rm: cannot remove 'ISOs/': Directory not empty
root@truenas1:/mnt/hdd_raidz1/misc# ls -al /mnt/hdd_raidz1/misc/.zfs/snapshot/auto-2025-12-09_11-00/ISOs/
total 38969249
drwxrwxr-x 2 colin media 17 Oct 18 11:11 .
drwxrws--- 14 media media 20 Nov 17 14:34 ..
-rwxrwx--- 1 64055 64055 5294741504 Aug 6 2022 19045.1865.Vibranium-X64-DE-XXL-SUPER-MULTI.ISO
-rw-rw-r-- 1 libvirt-qemu libvirt-qemu 7902445568 Jul 24 07:00 26100.4770.Germanium-X64-DE-XXL-SUPER-MULTI.ISO
-rw-r--r-- 1 64055 64055 3291686912 Mar 5 2024 HBCD_PE_x64_1.0.8.iso
-rwxrw-r-- 1 64055 media 700448768 Jan 26 2022 KNOPPIX_V9.1CD-2021-01-25-DE.iso
-rwxrw-r-- 1 colin colin 16384 Oct 13 10:30 Thumbs.db
-rw-rw-r-- 1 colin colin 112386048 Sep 30 08:08 VMware-tools-windows-13.0.5-24915695.iso
-rw-rw-r-- 1 64055 64055 5026682880 Jun 25 2023 WinPE11_x64_2023.06.25.iso
-rw-r--r-- 1 64055 64055 6058381312 Sep 19 2024 WindowsServer2025_DE_Eval_x64.iso
-rw-rw-r-- 1 colin colin 7258769408 Jun 24 08:46 de-de_windows_server_2025_updated_june_2025_x64_dvd_e743555f.iso
-rw-rw-r-- 1 colin colin 589299712 May 28 2025 gparted-live-1.7.0-1-amd64.iso
-rw-rw-r-- 1 64055 64055 4022595584 Jun 15 2024 tiny11_24H2_ProWorkstation.iso
-rwxrw-r-- 1 libvirt-qemu libvirt-qemu 2773874688 Sep 20 2024 ubuntu-24.04.1-live-server-amd64.iso
-rw-rw-r-- 1 64055 64055 724434944 Dec 28 2024 virtio-win-0.1.266.iso
-rw-rw-r-- 1 64055 64055 726501376 Apr 17 2025 virtio-win-0.1.271.iso
-rw-rw-r-- 1 libvirt-qemu libvirt-qemu 789645312 Sep 15 17:52 virtio-win-0.1.285.iso
root@truenas1:/mnt/hdd_raidz1/misc# cp /mnt/hdd_raidz1/misc/.zfs/snapshot/auto-2025-12-09_11-00/ISOs/*iso ./ISOs/
cp: cannot create regular file './ISOs/HBCD_PE_x64_1.0.8.iso': No such file or directory
cp: cannot create regular file './ISOs/KNOPPIX_V9.1CD-2021-01-25-DE.iso': No such file or directory
cp: cannot create regular file './ISOs/VMware-tools-windows-13.0.5-24915695.iso': No such file or directory
cp: cannot create regular file './ISOs/WinPE11_x64_2023.06.25.iso': No such file or directory
cp: cannot create regular file './ISOs/WindowsServer2025_DE_Eval_x64.iso': No such file or directory
cp: cannot create regular file './ISOs/de-de_windows_server_2025_updated_june_2025_x64_dvd_e743555f.iso': No such file or directory
cp: cannot create regular file './ISOs/gparted-live-1.7.0-1-amd64.iso': No such file or directory
cp: cannot create regular file './ISOs/tiny11_24H2_ProWorkstation.iso': No such file or directory
cp: cannot create regular file './ISOs/ubuntu-24.04.1-live-server-amd64.iso': No such file or directory
cp: cannot create regular file './ISOs/virtio-win-0.1.266.iso': No such file or directory
cp: cannot create regular file './ISOs/virtio-win-0.1.271.iso': No such file or directory
cp: cannot create regular file './ISOs/virtio-win-0.1.285.iso': No such file or directory
root@truenas1:/mnt/hdd_raidz1/misc#
The files seem to be there but also … aren’t. I can’t delete the folder, rolling back to the snapshot shown doesn’t change the behaviour, I cannot create new files (that weren’t there before),
Any ideas how to get this folder working again or at least deleted?
The files also still show up in the new snapshot from after my post
checksums for the files in the snapshot check out
deactivating the corresponding smb share changes nothing.
Creating a linked clone from the snapshot that was created just a few minutes ago works.
Or rather the folder therein works. I could promote that dataset, delete the old one and rename the clone but there has to be a better way than that…
I’ve now created a clone from a snapshot, prmoted that and renamed the datasets from misc and misc-new to misc-old and misc. The folder works again so if anyone ever has a similar problem - thats a workaround but I’d still like to understand how this happened.
I’ll keep the old dataet lying around for a while so if anyone has an idea and would like me to run some tests its still there…