Hi, I'm using FreeNAS 11.3-U5 to serve 5TB of data in a couple of millions of files via afp (netatalk) to some MacOS.
I'm seeing a strange problem in a subset of 2000 files: extended attributes cannot be read or appears to be corrupted when seen from the MacOS (client) side.
Take the following two examples:
On the server side, FreeNAS everithing seems to be correct:
On the client side (MacOS, recently updated, connected via afp):
As you can see, there are two problems: the first file (Zhopper 2020_1_3.tif) exists, but the client cannot read xattrs while FreeNAS server can.
In the second case (ZAMAHA_481.pdf), a random character in the attribute name read by the Mac is changed with a newline or end of string, cutting "org.netatalk.Metadata" into "o" and "g.netatalk.Metatata". The exact position of this truncation is different for different files. But the position of truncation is fixed for a single file, even after umount and remount.
sometimes, suddenly, it starts or stop working (usually it starts or stop working after some minutes from mount):
The problem only appears for a subset of files, and this subset does not change.
Randomly removing EA from the FreeNAS file with "rmextattr user ..." make the problem disappear for that file forever. But I can't randomly remove EA from the fileserver.. . users will complain a lot ;)
Any ideas? I Would like to get correct EAs from this afp connection.
I'm seeing a strange problem in a subset of 2000 files: extended attributes cannot be read or appears to be corrupted when seen from the MacOS (client) side.
Take the following two examples:
On the server side, FreeNAS everithing seems to be correct:
Code:
root@st-graf:~ # lsextattr user "Zhopper 2020_1_3.tif" Zhopper 2020_1_3.tif org.netatalk.Metadata com.apple.metadata:_kMDItemUserTags root@st-graf:~ # lsextattr user "ZAMAHA_481.pdf" ZAMAHA_481.pdf org.netatalk.Metadata com.apple.lastuseddate#PS
On the client side (MacOS, recently updated, connected via afp):
Code:
MY-MAC-MINI:tmp user1$ xattr Zhopper 2020_1_3.tif xattr: [Errno 22] Invalid argument: 'Zhopper 2020_1_3.tif' MY-MAC-MINI:tmp user1$ xattr "ZAMAHA_481.pdf" com.apple.FinderInfo o g.netatalk.Metadata com.apple.lastuseddate#PS
As you can see, there are two problems: the first file (Zhopper 2020_1_3.tif) exists, but the client cannot read xattrs while FreeNAS server can.
In the second case (ZAMAHA_481.pdf), a random character in the attribute name read by the Mac is changed with a newline or end of string, cutting "org.netatalk.Metadata" into "o" and "g.netatalk.Metatata". The exact position of this truncation is different for different files. But the position of truncation is fixed for a single file, even after umount and remount.
sometimes, suddenly, it starts or stop working (usually it starts or stop working after some minutes from mount):
Code:
MY-MAC-MINI:tmp user1$ xattr "ZAMAHA_481.pdf" com.apple.FinderInfo com.apple.lastuseddate#PS
The problem only appears for a subset of files, and this subset does not change.
Randomly removing EA from the FreeNAS file with "rmextattr user ..." make the problem disappear for that file forever. But I can't randomly remove EA from the fileserver.. . users will complain a lot ;)
Any ideas? I Would like to get correct EAs from this afp connection.
Last edited: