zfs acl lost after zfs send-receive

Yuriy Tabolin tabolin at speechpro.com
Thu Mar 5 15:58:35 UTC 2015


I have a server FreeBSD 10.1-RELEASE with some zfs pools and datasets on 
it. There are acl on datasets on source server:

# ls -l /pool1/samba/IT
-rw-rwx---+   1 tabolin   domain admins   10244  4 мар 14:39 .DS_Store
-rw-rwx---+   1 tabolin   domain admins    4096  3 мар 18:51 ._.DS_Store
drwxrwx---+   3 tabolin   domain admins       3 14 май  2012 Books
drwxrwx---+   3 tabolin   domain admins       3  5 мар  2014 Common
drwxrwx---+   5 root      domain admins       5 11 фев  2011 GVP
-rw-rwx---+   1 tabolin   domain admins  609280 13 дек  2012 IT-Servers.vsd
drwxrwx---+   9 tabolin   domain admins      16  3 окт 08:50 Other
drwxr-x---+ 135 root      wheel             137 18 фев 17:00 Print-History
drwxrwx---+   9 gavrilov  domain admins       9  1 окт  2011 SF
drwxrwx---+   8 tabolin   domain admins     240  4 мар 13:14 Showroom-video
drwxrwx---+  10 gavrilov  domain admins      13  6 ноя 15:57 Software
d---rwx---+ 101 root      domain admins     128 10 фев 11:19 TS
drwxrwx---+  21 tabolin   domain admins      31 16 фев 15:49 Ustorage

# getfacl /pool1/samba/IT/Showroom-video
# file: /pool1/samba/IT/Showroom-video
# owner: tabolin
# group: domain admins
      user:gurashov:rwxpDdaARWc--s:fd----:allow
       user:account:rwxpDdaARWc--s:fd----:allow
          user:raev:rwxpDdaARWc--s:fd----:allow
        user:becker:rwxpDdaARWc--s:fd----:allow
    user:zaretskaya:rwxpDdaARWc--s:fd----:allow
     user:dmitrieva:rwxpDdaARWc--s:fd----:allow
           user:ddv:rwxpDdaARWc--s:fd----:allow
          everyone@:------a-R-c--s:------:allow
             owner@:rwxpD-aARWcCos:------:allow
    user:ovcharenko:rwxpDdaARWc--s:fd----:allow
       user:stepkin:rwxpDdaARWc--s:fd----:allow
       user:khitrov:rwxpDdaARWc--s:fd----:allow
          user:ivan:rwxpDdaARWc--s:fd----:allow
      user:egorov-s:rwxpDdaARWc--s:fd----:allow
         user:julia:rwxpDdaARWc--s:fd----:allow
     user:polyakova:rwxpDdaARWc--s:fd----:allow
         user:koval:rwxpDdaARWc--s:fd----:allow
        user:victor:rwxpDdaARWc--s:fd----:allow
          user:korg:rwxpDdaARWc--s:fd----:allow
        user:zharov:rwxpDdaARWc--s:fd----:allow
     user:semenov-y:rwxpDdaARWc--s:fd----:allow
     user:kiselev-v:rwxpDdaARWc--s:fd----:allow
             group@:rwxpDdaARWcCos:fd----:allow
group:domain users:r-x---a-R-c--s:fd----:allow


I used zfs send-receive for backup datasets to another server

# zfs send -vR pool1/samba/IT at -2015-02-24 | ssh tabolin at stor sudo zfs 
recv -v pool1/samba/IT

Send-receive ends without any error, but on destination server on same 
files and folders acl is lost (see Showroom-video folder)

# ls -l /pool1/samba/IT
total 3264
-rw-rwx---+   1 gavrilov  10007   10244  4 мар 14:39 .DS_Store
-rw-rwx---+   1 gavrilov  10007    4096  3 мар 18:51 ._.DS_Store
drwxrwx---+   3 gavrilov  10007       3 14 май  2012 Books
drwxrwx---+   3 gavrilov  10007       3  5 мар  2014 Common
drwxrwx---+   5 root      10007       5 11 фев  2011 GVP
-rw-rwx---+   1 gavrilov  10007  609280 13 дек  2012 IT-Servers.vsd
drwxrwx---+   9 gavrilov  10007      16  3 окт 08:50 Other
drwxr-x---+ 135 root      wheel     137 18 фев 17:00 Print-History
drwxrwx---+   9 10000     10007       9  1 окт  2011 SF
ls: /pool1/samba/IT/Showroom-video: No such file or directory
drwxrwx---    8 gavrilov  10007     240  4 мар 13:14 Showroom-video
drwxrwx---+  10 10000     10007      13  6 ноя 15:57 Software
d---rwx---+ 101 root      10007     128 10 фев 11:19 TS
drwxrwx---+  21 gavrilov  10007      31 16 фев 15:49 Ustorage

# ls -l /pool1/samba/IT/Showroom-video
total 1515210995
ls: /pool1/samba/IT/Showroom-video/.DS_Store: No such file or directory
-rwxrwx---  1 gavrilov  10007        24580 18 апр  2014 .DS_Store
-rwxrwx---+ 1 gavrilov  10007         4096 15 янв  2014 ._.DS_Store
-rwxrwx---+ 1 gavrilov  10007         4096  3 дек  2012 
._AV00_01_30-02_54_04.avi
-rwxrwx---+ 1 gavrilov  10007         4096  3 дек  2012 
._AV00_02_24-02_01_10.avi
----rwx---+ 1 gavrilov  10007         4096 18 апр  2014 ._йНПФ б. 
нАСВЕМХЕ дсо ОН Jira Х Confluence.avi
-rwxrwx---+ 1 gavrilov  10007   1421801430 17 сен  2013 
13_09_17-11_05_59_аЕКНГЕПВХЙ_HD.mp4
-rwxrwx---+ 1 gavrilov  10007    235532535 11 фев 12:09 
2015-02-10_15.32_дЕЛНМЯРПЮЖХЪ_ЮМЮКХРХЙХ_SAS._аЕКНГЕПВХЙ.wmv
-rwxrwx---+ 1 gavrilov  10007    594386969 22 янв 14:51 
22-01-2015_13-26-38_гСАНБ.mp4
----rwx---+ 1 10001     10007   5190520832 28 ноя  2011 
AV00_01_01-00_24_30.avi
----rwx---+ 1 gavrilov  10007  13026264576 28 фев  2012 
AV00_01_01-03_26_14.avi


# getfacl /pool1/samba/IT/Showroom-video
# file: /pool1/samba/IT/Showroom-video
# owner: gavrilov
# group: 10007
getfacl: /pool1/samba/IT/Showroom-video: No such file or directory

# chmod o+r  /pool1/samba/IT/Showroom-video
/pool1/samba/IT/Showroom-video: No such file or directory

Same problem is with hundreds of folders and files on this pool and 
another one. After I found this problem, I checked another couple of 
FreeBSD zfs servers. And there I was found the same problem with lost 
acl after send-receive data.


Second part of problem is a kernel panic when I create file or directory 
in any of thats "No such file or directory".
# cd /pool1/samba/IT/Showroom-video
# mkdir 1111

panic: solaris assert: 0 == zfs_acl_node_read(dzp, B_TRUE, &paclp, 
В_FALSЕ)‚ file: 
/usr/src/sys/modules/zfs/../../cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_acl.c, 
line: 1718
cpuid = 16
KDB: stack backtrace:
#0 0xffffffff8096cb00 at kdb_backtrace+0x60
#1 0xffffffff80931c25 at panic+0x155
#2 0xffffffff81b7c1fd at assfail+0x1d
#3 0xffffffff81ab28af at zfs_acl_ids_create+0x1ef
#4 0xffffffff81ad292a at zfs_freebsd_mkdir+0x21a
#5 0xffffffff80e17dd7 at VOP_MKDIR_APV+0xa7
#6 0хгггггггг809dde49 at kern_mkdirat+0x209
#7 0xffffffff80cfa581 at amd64_syscall+0x351
#8 0xffffffff80cdf79b at Xfast_syscall+0xfb
Uptime: 11d1h0m35s

Kernel panic appears always when I create file or directory in 
directory, which have lost acl.

Thanks for any help!

-- 
With best regards, Yuriy Tabolin



More information about the freebsd-bugs mailing list