Truenas folder not appearing on SMB and dataset

Hello all,

Looking for some assistance. I previously setup Truenas sometime last year then abandoned the project. I have now recently re setup Truenas again.

I have x2 10TB HDD Ironwolf in Mirror format. This is used to store my family pictures /videos. These drivers were not wiped and plugged directly into the machine which is hosted on Proxmox > Truenas.

When I check the dataset tab > folder structure, I can see all the folders expect for 1.

When I review the SMB tab, I can see the folder “L” but the folder looks different compared to the other folders.

I ssh’d to the TrueNas server and I can see the folder/ images.

I used these command to create the dataset, rename it and move it.

mv /mnt/Beast/storage-share/L/mnt/Beast/storage-share/L

rsync -avh /mnt/Beast/storage-share/L_old/ /mnt/Beast/storage-share/L/

Compared the folders:

ls /mnt/Beast/storage-share/L
ls /mnt/Beast/storage-share/L_old

Datasets and directories are different things. If you’re looking at a dataset overview you won’t see directories because they’re not datasets. When you’re using a file picker in UI to actually walk filesystems you’ll see different icons for directories and dataset mountpoints. Depending on SMB share configuration you won’t see items in directory listings over SMB protocol if you don’t have read access to them.

That is strange, I created the folder structure within the datasets tab. I am unsure why a directory folder was created.
Is there a way I can access the directory folder as I have very important images on there I want to recover.

I went to SMB share and selected the parent folder of “L” and granted myself full admin access and applied the ACL permission and checked the box “Apply permissions recursively” to the subfolders in the parent.
I added the IP address of the truenas on the Window device and confirmed I can access the parent folder but when I try all the sub folders, I get denied permission.

I created a Test folder within the parent sub folder and I can access that?

I have managed to solve it.

I reapplied the permission to the folder and now I can view the images/ videos.

Now I have accidently deleted the wrong folder by not paying attention and I did not have snapshots enabled :weary_face:

I have ssh’d to the Truenas machine and I can see the used this command zpool history -il Beast

I can see the folder. Is there a command to recover the ZFS file or is it a gone forever?

[user 0 (root) on truenas:linux]
2026-04-02.17:07:54 py-libzfs: zfs create -o casesensitivity=sensitive -o org.freenas:description= -o copies=1 -o xattr=sa Beast/Lokken [user 0 (root) on truenas:linux]
2026-04-02.17:08:29 [txg:447193] destroy Beast/L (355) (bptree, mintxg=1) [on truenas]
2026-04-02.17:08:29 zfs destroy -r Beast/L [user 0 (root) on truenas:linux]
2026-04-02.17:08:48 [txg:447198] destroy Beast/storage-share/Family/L (419) (bptree, mintxg=1) [on truenas]
2026-04-02.17:08:48 zfs destroy -r Beast/storage-share/Family/L [user 0 (root) on truenas:linux]
2026-04-02.17:11:29 [txg:447231] destroy Beast/storage-share/L1 (414) (bptree, mintxg=1) [on truenas]
2026-04-02.17:11:29 zfs destroy -r Beast/storage-share/L1 [user 0 (root) on truenas:linux]
2026-04-02.17:11:48 [txg:447235] create Beast/storage-share/L (516) [on truenas]
2026-04-02.17:11:48 [txg:447236] set Beast/storage-share/L (516) org.freenas:description= [on truenas]
2026-04-02.17:11:48 [txg:447236] set Beast/storage-share/L (516) copies=1 [on truenas]
2026-04-02.17:11:48 [txg:447236] set Beast/storage-share/L (516) xattr=2 [on truenas]
2026-04-02.17:11:48 (247ms) ioctl create

I tried this command : zpool import -T transaction_group_id your_pool_name

Can I use the txg 447231, and do -1

so it would be zpool import -T 447230 Beast

Thanks!

:grimacing:

I’d look at maybe going a transaction group or two further back, and definitely mounting read-only with -o readonly=on to ensure the folder is there first before committing the rollback to pool.

Thanks Honey.

Here are the steps I have followed, please correct me if I did anything incorrectly.
zpool export Beast

It says the pool or dataset is busy.

root@truenas[/home/truenas_admin]# zpool export Beast
cannot unmount ‘/var/db/system/samba4’: pool or dataset is busy
root@truenas[/home/truenas_admin]#

I have turned off SMB

I am trying to create another storage pool to replicate over data to the new storage pool but when I create a new storage pool, I get this error message:

Error: topology

Disks have duplicate serial numbers: None (sda, sdb, sdd).

root@truenas[/home/truenas_admin]# zpool import -T 447316 Beast
cannot import ‘Beast’: a pool with that name already exists
use the form ‘zpool import <pool | id> ’ to give it a new name
root@truenas[/home/truenas_admin]#

I presume I have to create another storage pool to import it into that, is that correct based on what I read on ChatGPT.

I am using Proxmox and have a HBA PCIE and mapped the drive to the cluster for Proxmox using this command:

This one maps:

qm set 103 -scsi3 /dev/disk/by-id/ata-WDC_WD40EFRX-68WT0N0_WD-WCC4E1PRZPZF

This one does not map, it has an ‘caution’ on CrystalDiskInfo for ID C5 (Current Pending sector Count is Current: 200/ Worst: 200 has 2 bad sectors.

Does having a bad hard drive not allow Truenas to map it?
qm set 103 -scsi3 /dev/disk/by-id/ata-WDC_WD40EFRX-68WT0N0_WD-WCC4E4YTFZ9T

Command to list all my hard drive.

root@pve1:~# ls /dev/disk/by-id/ | grep ata
ata-Samsung_SSD_840_Series_S19MNSAD652146J
ata-Samsung_SSD_840_Series_S19MNSAD652146J-part1
ata-Samsung_SSD_840_Series_S19MNSAD652146J-part2
ata-Samsung_SSD_840_Series_S19MNSAD652146J-part3
ata-ST10000VN0008-2PJ103_ZS512XTZ
ata-ST10000VN0008-2PJ103_ZS512XTZ-part1
ata-ST10000VN0008-2PJ103_ZS51FR3X
ata-ST10000VN0008-2PJ103_ZS51FR3X-part1
ata-WDC_WD40EFRX-68WT0N0_WD-WCC4E1PRZPZF
ata-WDC_WD40EFRX-68WT0N0_WD-WCC4E4YTFZ9T
root@pve1:~#

Trying to map x2 WD Red Nas to create a pool for backup.

ata-WDC_WD40EFRX-68WT0N0_WD-WCC4E1PRZPZF
ata-WDC_WD40EFRX-68WT0N0_WD-WCC4E4YTFZ9T

I found this forum post where someone else had a similar issue - Topology: Disks have duplicate serial numbers: None (sdb, sdc) - TrueNAS General - TrueNAS Community Forums

It may be the way you have Proxmox and the TrueNAS VM set up. You want to pass the entire HBA to TrueNAS and blacklist it from Proxmox. You risk data loss if it isn’t set up as ‘Production’.

VIRTUAL

The Truenas has the scsi appearing in the hardware section for Truenas Cluster

VirtIO SCSI single