Having an issue with datasets and snapshots.
Basically for some reason, snapshots in .zfs directories can't be listed either in the console or in a samba share. I get this errors
nas4free: snapshot # pwd
/mnt/usb-backup/Daily-Backups/mypool/home/andreas/.zfs/snapshot
nas4free: snapshot # ls -la
ls: 20130721_1829_autosnap_HOURLY: File name too long
ls: 20130721_2330_autosnap_HOURLY: File name too long
ls: 20130722_0936_autosnap_HOURLY: File name too long
total 0
dr-xr-xr-x 5 root wheel 5 Jul 22 10:11 .
dr-xr-xr-x 4 root wheel 4 Jul 6 00:26 ..
nas4free: snapshot # ls
ls: 20130721_1829_autosnap_HOURLY: File name too long
ls: 20130721_2330_autosnap_HOURLY: File name too long
ls: 20130722_0936_autosnap_HOURLY: File name too long
All I found is a few mentions of this about 3-4 years ago and no resolutions.
Anyone have a clue?
This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!
I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!
it will taken offline by the end of march 2021!
I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!
ZFS Snapshots - File name too long
- kkd
- Forum Moderator

- Posts: 306
- Joined: 08 May 2013 21:47
- Location: Budapest, Hungary
- Contact:
- Status: Offline
Re: ZFS Snapshots - File name too long
http://en.wikipedia.org/wiki/Comparison_of_file_systems
so i think the limit is 255 chars.
try to compress the files, or rename the directories to shorter names.
so i think the limit is 255 chars.
try to compress the files, or rename the directories to shorter names.
XigmaNAS x64-embedded | INTEL Intel(R) Core(TM) i3-2100 CPU @ 3.10GHz | 9216MiB RAM | X x YTB WD Red ZFS mirror compressed
-
Onichan
- Advanced User

- Posts: 238
- Joined: 04 Jul 2012 21:41
- Status: Offline
Re: ZFS Snapshots - File name too long
That says the name limit is 255, not the directory. So I don't think renaming the directory will help, but I would agree it seems like some filename is too long.kkd wrote:http://en.wikipedia.org/wiki/Comparison_of_file_systems
so i think the limit is 255 chars.
try to compress the files, or rename the directories to shorter names.
- kkd
- Forum Moderator

- Posts: 306
- Joined: 08 May 2013 21:47
- Location: Budapest, Hungary
- Contact:
- Status: Offline
Re: ZFS Snapshots - File name too long
if (length(dirs) + length(filename))>255 then error="filename is too long"Onichan wrote:That says the name limit is 255, not the directory. So I don't think renaming the directory will help, but I would agree it seems like some filename is too long.kkd wrote:http://en.wikipedia.org/wiki/Comparison_of_file_systems
so i think the limit is 255 chars.
try to compress the files, or rename the directories to shorter names.
XigmaNAS x64-embedded | INTEL Intel(R) Core(TM) i3-2100 CPU @ 3.10GHz | 9216MiB RAM | X x YTB WD Red ZFS mirror compressed
- raulfg3
- Site Admin

- Posts: 4865
- Joined: 22 Jun 2012 22:13
- Location: Madrid (ESPAÑA)
- Contact:
- Status: Offline
Re: ZFS Snapshots - File name too long
But example is not the case: 59 + 29 =88 less than 255. So user problem is other ( i do not know what)
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)
Wiki
Last changes
HP T510
Wiki
Last changes
HP T510
-
fsbruva
- Advanced User

- Posts: 378
- Joined: 21 Sep 2012 14:50
- Status: Offline
Re: ZFS Snapshots - File name too long
UTF-8 doesn't always use a single byte per character.
Try copying one of the snapshots to another file location, and see if you can "ls" it then.
Try copying one of the snapshots to another file location, and see if you can "ls" it then.