Missing files in dataset

Scott7494

Cadet
Joined
Jan 1, 2021
Messages
5
*Disclaimer, my knowledge in this field is subpar. Your dog probably knows more than I do with Truenas

As the title states, I am missing files from a dataset. I have a server box that I use for file back up and to run plexmedia server. My buddy upgraded me to truenas from freenas and after doing so files went missing out of a dataset. He fixed it the first time, however he is completely out of pocket at the moment and I need to try and get this fixed asap.

The only affected folder is the media folder. all other files are intact.
the dataset still shows there are 1.46tb of data there. but the drive is empty.
I will also provide a zfs list below.

any assistance would be greatly appreciated.

1609530894354.png



JID IP Address Hostname Path
root@freenas:~ #
root@freenas:~ # zfs list
NAME USED AVAIL REFER MOUNTPOINT
freenas-boot 3.83G 23.8G 64K none
freenas-boot/ROOT 3.81G 23.8G 29K none
freenas-boot/ROOT/11.3-U4.1 337K 23.8G 1.01G /
freenas-boot/ROOT/11.3-U5 344K 23.8G 1.02G /
freenas-boot/ROOT/FreeNAS-12.0-RELEASE 3.81G 23.8G 1.07G /
freenas-boot/ROOT/Initial-Install 1K 23.8G 734M legacy
freenas-boot/ROOT/default 176K 23.8G 734M legacy
freenas-boot/grub 6.96M 23.8G 6.96M legacy
storage 1.63T 6.03T 140K /mnt/storage
storage/.system 937M 6.03T 752M legacy
storage/.system/configs-66311c036e824820af44b2dbf4c55f10 133M 6.03T 133M legacy
storage/.system/cores 3.45M 1021M 3.45M legacy
storage/.system/rrd-66311c036e824820af44b2dbf4c55f10 37.2M 6.03T 37.2M legacy
storage/.system/samba4 1.15M 6.03T 732K legacy
storage/.system/services 140K 6.03T 140K legacy
storage/.system/syslog-66311c036e824820af44b2dbf4c55f10 9.46M 6.03T 9.46M legacy
storage/.system/webui 128K 6.03T 128K legacy
storage/Homes 128K 6.03T 128K /mnt/storage/Homes
storage/files 47.8G 6.03T 47.8G /mnt/storage/files
storage/guest 8.15M 6.03T 8.15M /mnt/storage/guest
storage/iocage 11.7G 6.03T 9.06M /mnt/storage/iocage
storage/iocage/download 931M 6.03T 128K /mnt/storage/iocage/download
storage/iocage/download/11.2-RELEASE 272M 6.03T 272M /mnt/storage/iocage/download/11.2-RELEASE
storage/iocage/download/11.3-RELEASE 288M 6.03T 288M /mnt/storage/iocage/download/11.3-RELEASE
storage/iocage/download/12.1-RELEASE 371M 6.03T 371M /mnt/storage/iocage/download/12.1-RELEASE
storage/iocage/images 128K 6.03T 128K /mnt/storage/iocage/images
storage/iocage/jails 6.65G 6.03T 128K /mnt/storage/iocage/jails
storage/iocage/jails/plexmediaserver 6.65G 6.03T 436K /mnt/storage/iocage/jails/plexmediaserver
storage/iocage/jails/plexmediaserver/root 6.65G 6.03T 3.84G /mnt/storage/iocage/jails/plexmediaserver/root
storage/iocage/log 134K 6.03T 134K /mnt/storage/iocage/log
storage/iocage/releases 4.09G 6.03T 128K /mnt/storage/iocage/releases
storage/iocage/releases/11.2-RELEASE 1.21G 6.03T 128K /mnt/storage/iocage/releases/11.2-RELEASE
storage/iocage/releases/11.2-RELEASE/root 1.21G 6.03T 1.18G /mnt/storage/iocage/releases/11.2-RELEASE/root
storage/iocage/releases/11.3-RELEASE 1.27G 6.03T 128K /mnt/storage/iocage/releases/11.3-RELEASE
storage/iocage/releases/11.3-RELEASE/root 1.27G 6.03T 1.27G /mnt/storage/iocage/releases/11.3-RELEASE/root
storage/iocage/releases/12.1-RELEASE 1.62G 6.03T 140K /mnt/storage/iocage/releases/12.1-RELEASE
storage/iocage/releases/12.1-RELEASE/root 1.62G 6.03T 1.62G /mnt/storage/iocage/releases/12.1-RELEASE/root
storage/iocage/templates 128K 6.03T 128K /mnt/storage/iocage/templates
storage/jails 8.26G 6.03T 163K /mnt/storage/jails
storage/jails/.warden-template-pluginjail-11.0-x64 600M 6.03T 590M /mnt/storage/jails/.warden-template-pluginjail-11.0-x64
storage/jails/.warden-template-standard-11.0-x64 2.37G 6.03T 2.27G /mnt/storage/jails/.warden-template-standard-11.0-x64
storage/jails/.warden-template-standard-11.0-x64-20190203141957 2.36G 6.03T 2.27G /mnt/storage/jails/.warden-template-standard-11.0-x64-20190203141957
storage/jails/transmission 2.95G 6.03T 2.68G /mnt/storage/jails/transmission
storage/media 1.46T 6.03T 1.46T /mnt/storage/media
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
OK, so if you cd into /mnt/storage/media and ls -l can you see some files or none at all?
 

Kris Moore

SVP of Engineering
Administrator
Moderator
iXsystems
Joined
Nov 12, 2015
Messages
1,471
Did you ever setup snapshots on the system? If so, try this:

# cd /mnt/storage/media/.zfs/snapshot
# ls -al

Anything in there?
 
Joined
Oct 22, 2019
Messages
3,641
What does this yield:
zfs mount
 

Scott7494

Cadet
Joined
Jan 1, 2021
Messages
5
Warning: settings changed through the CLI are not written to
the configuration database and will be reset on reboot.

root@freenas:~ # cd /mnt/storage/media
root@freenas:/mnt/storage/media # zfs mount
freenas-boot/ROOT/FreeNAS-12.0-RELEASE /
storage /mnt/storage
storage/jails /mnt/storage/jails
storage/files /mnt/storage/files
storage/pictures /mnt/storage/pictures
storage/Homes /mnt/storage/Homes
storage/guest /mnt/storage/guest
storage/software /mnt/storage/software
storage/iocage /mnt/storage/iocage
storage/jails/.warden-template-standard-11.0-x64 /mnt/storage/jails/.warden-template-standard-11.0-x64
storage/jails/.warden-template-pluginjail-11.0-x64 /mnt/storage/jails/.warden-template-pluginjail-11.0-x64
storage/jails/.warden-template-standard-11.0-x64-20190203141957 /mnt/storage/jails/.warden-template-standard-11.0-x64-20190203141957
storage/restricted /mnt/storage/restricted
storage/jails/transmission /mnt/storage/jails/transmission
storage/iocage/images /mnt/storage/iocage/images
storage/iocage/download /mnt/storage/iocage/download
storage/iocage/jails /mnt/storage/iocage/jails
storage/iocage/templates /mnt/storage/iocage/templates
storage/iocage/releases /mnt/storage/iocage/releases
storage/iocage/download/11.2-RELEASE /mnt/storage/iocage/download/11.2-RELEASE
storage/iocage/download/11.3-RELEASE /mnt/storage/iocage/download/11.3-RELEASE
storage/iocage/releases/11.2-RELEASE /mnt/storage/iocage/releases/11.2-RELEASE
storage/iocage/download/12.1-RELEASE /mnt/storage/iocage/download/12.1-RELEASE
storage/iocage/log /mnt/storage/iocage/log
storage/iocage/releases/12.1-RELEASE /mnt/storage/iocage/releases/12.1-RELEASE
storage/iocage/releases/11.3-RELEASE /mnt/storage/iocage/releases/11.3-RELEASE
storage/iocage/releases/11.2-RELEASE/root /mnt/storage/iocage/releases/11.2-RELEASE/root
storage/iocage/releases/12.1-RELEASE/root /mnt/storage/iocage/releases/12.1-RELEASE/root
storage/iocage/releases/11.3-RELEASE/root /mnt/storage/iocage/releases/11.3-RELEASE/root
storage/.system /var/db/system
storage/.system/cores /var/db/system/cores
storage/.system/samba4 /var/db/system/samba4
storage/.system/syslog-66311c036e824820af44b2dbf4c55f10 /var/db/system/syslog-66311c036e824820af44b2dbf4c55f10
storage/.system/rrd-66311c036e824820af44b2dbf4c55f10 /var/db/system/rrd-66311c036e824820af44b2dbf4c55f10
 
Joined
Oct 22, 2019
Messages
3,641
Looks like it's not mounted.

Try this:
cd / zfs mount -a ls -lha /mnt/storage/media/

EDIT: You don't need to paste the results as long as it works. This way it's not out in public, an entire listing of your personal contents.
 

Scott7494

Cadet
Joined
Jan 1, 2021
Messages
5
This worked like a charm !!! thank you!!! Any idea how it could have become unmounted ?

Looks like it's not mounted.

Try this:
cd / zfs mount -a ls -lha /mnt/storage/media/

EDIT: You don't need to paste the results as long as it works. This way it's not out in public, an entire listing of your personal contents.
 
Joined
Oct 22, 2019
Messages
3,641
This worked like a charm !!! thank you!!! Any idea how it could have become unmounted ?

Glad to hear, and welcome! I'm not sure how it was unmounted, honestly. If you only ever used the GUI, it's not likely that a dataset would unmount on its own (unless you "lock" an encrypted one). Perhaps a script or things you tried in the Shell inadvertently unmounted it?
 
Top