From owner-freebsd-bugs@FreeBSD.ORG Mon Mar 9 16:14:40 2015 Return-Path: Delivered-To: freebsd-bugs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 93C16BFA for ; Mon, 9 Mar 2015 16:14:40 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 752D7ED0 for ; Mon, 9 Mar 2015 16:14:40 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id t29GEeEL028108 for ; Mon, 9 Mar 2015 16:14:40 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 198457] zfs acl lost after zfs send-receive. Kernel panic Date: Mon, 09 Mar 2015 16:14:40 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 10.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: danmer@danmer.net X-Bugzilla-Status: New X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Mar 2015 16:14:40 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D198457 Bug ID: 198457 Summary: zfs acl lost after zfs send-receive. Kernel panic Product: Base System Version: 10.1-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: freebsd-bugs@FreeBSD.org Reporter: danmer@danmer.net 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 =D0=BC=D0=B0=D1=80 14:39= .DS_Store -rw-rwx---+ 1 tabolin domain admins 4096 3 =D0=BC=D0=B0=D1=80 18:51= ._.DS_Store drwxrwx---+ 3 tabolin domain admins 3 14 =D0=BC=D0=B0=D0=B9 2012= Books drwxrwx---+ 3 tabolin domain admins 3 5 =D0=BC=D0=B0=D1=80 2014= Common drwxrwx---+ 5 root domain admins 5 11 =D1=84=D0=B5=D0=B2 2011= GVP -rw-rwx---+ 1 tabolin domain admins 609280 13 =D0=B4=D0=B5=D0=BA 2012= IT-Servers.vsd drwxrwx---+ 9 tabolin domain admins 16 3 =D0=BE=D0=BA=D1=82 08:50= Other drwxr-x---+ 135 root wheel 137 18 =D1=84=D0=B5=D0=B2 17:00= Print-History drwxrwx---+ 9 gavrilov domain admins 9 1 =D0=BE=D0=BA=D1=82 2011= SF drwxrwx---+ 8 tabolin domain admins 240 4 =D0=BC=D0=B0=D1=80 13:14= Showroom-video drwxrwx---+ 10 gavrilov domain admins 13 6 =D0=BD=D0=BE=D1=8F 15:57= Software d---rwx---+ 101 root domain admins 128 10 =D1=84=D0=B5=D0=B2 11:19= TS drwxrwx---+ 21 tabolin domain admins 31 16 =D1=84=D0=B5=D0=B2 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@-2015-02-24 | ssh tabolin@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 =D0=BC=D0=B0=D1=80 14:39 .DS_Sto= re -rw-rwx---+ 1 gavrilov 10007 4096 3 =D0=BC=D0=B0=D1=80 18:51 ._.DS_S= tore drwxrwx---+ 3 gavrilov 10007 3 14 =D0=BC=D0=B0=D0=B9 2012 Books drwxrwx---+ 3 gavrilov 10007 3 5 =D0=BC=D0=B0=D1=80 2014 Common drwxrwx---+ 5 root 10007 5 11 =D1=84=D0=B5=D0=B2 2011 GVP -rw-rwx---+ 1 gavrilov 10007 609280 13 =D0=B4=D0=B5=D0=BA 2012 IT-Serv= ers.vsd drwxrwx---+ 9 gavrilov 10007 16 3 =D0=BE=D0=BA=D1=82 08:50 Other drwxr-x---+ 135 root wheel 137 18 =D1=84=D0=B5=D0=B2 17:00 Print-H= istory drwxrwx---+ 9 10000 10007 9 1 =D0=BE=D0=BA=D1=82 2011 SF ls: /pool1/samba/IT/Showroom-video: No such file or directory drwxrwx--- 8 gavrilov 10007 240 4 =D0=BC=D0=B0=D1=80 13:14 Showroo= m-video drwxrwx---+ 10 10000 10007 13 6 =D0=BD=D0=BE=D1=8F 15:57 Software d---rwx---+ 101 root 10007 128 10 =D1=84=D0=B5=D0=B2 11:19 TS drwxrwx---+ 21 gavrilov 10007 31 16 =D1=84=D0=B5=D0=B2 15:49 Ustorage # ls -l /pool1/samba/IT/Showroom-video total 1515210995=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 ls: /pool1/samba/IT/Showroom-video/.DS_Store: No such file or directory -rwxrwx--- 1 gavrilov 10007 24580 18 =D0=B0=D0=BF=D1=80 2014 .DS_= Store -rwxrwx---+ 1 gavrilov 10007 4096 15 =D1=8F=D0=BD=D0=B2 2014 ._.D= S_Store -rwxrwx---+ 1 gavrilov 10007 4096 3 =D0=B4=D0=B5=D0=BA 2012 ._AV00_01_30-02_54_04.avi -rwxrwx---+ 1 gavrilov 10007 4096 3 =D0=B4=D0=B5=D0=BA 2012 ._AV00_02_24-02_01_10.avi ----rwx---+ 1 gavrilov 10007 4096 18 =D0=B0=D0=BF=D1=80 2014 ._= =D0=B9=D0=9D=D0=9F=D0=A4 =D0=B1. =D0=BD=D0=90=D0=A1=D0=92=D0=95=D0=9C=D0=A5= =D0=95 =D0=B4=D1=81=D0=BE =D0=9E=D0=9D Jira =D0=A5 Confluence.avi -rwxrwx---+ 1 gavrilov 10007 1421801430 17 =D1=81=D0=B5=D0=BD 2013 13_09_17-11_05_59_=D0=B0=D0=95=D0=9A=D0=9D=D0=93=D0=95=D0=9F=D0=92=D0=A5=D0= =99_HD.mp4 -rwxrwx---+ 1 gavrilov 10007 235532535 11 =D1=84=D0=B5=D0=B2 12:09 2015-02-10_15.32_=D0=B4=D0=95=D0=9B=D0=9D=D0=9C=D0=AF=D0=A0=D0=9F=D0=AE=D0= =96=D0=A5=D0=AA_=D0=AE=D0=9C=D0=AE=D0=9A=D0=A5=D0=A0=D0=A5=D0=99=D0=A5_SAS.= _=D0=B0=D0=95=D0=9A=D0=9D=D0=93=D0=95=D0=9F=D0=92=D0=A5=D0=99.wmv -rwxrwx---+ 1 gavrilov 10007 594386969 22 =D1=8F=D0=BD=D0=B2 14:51 22-01-2015_13-26-38_=D0=B3=D0=A1=D0=90=D0=9D=D0=91.mp4 ----rwx---+ 1 10001 10007 5190520832 28 =D0=BD=D0=BE=D1=8F 2011 AV00= _01_01-00_24_30.avi ----rwx---+ 1 gavrilov 10007 13026264576 28 =D1=84=D0=B5=D0=B2 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 bug, I checked another couple of FreeBSD zfs server= s. And there I was found the same problem with lost acl after send-receive dat= a. 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 =3D=3D zfs_acl_node_read(dzp, B_TRUE, &paclp, =D0= =92_FALS=D0=95)=E2=80=9A file: /usr/src/sys/modules/zfs/../../cddl/contrib/opensolaris/uts/common/fs/zfs/z= fs_acl.c, line: 1718 cpuid =3D 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=D1=85=D0=B3=D0=B3=D0=B3=D0=B3=D0=B3=D0=B3=D0=B3=D0=B3809dde49 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, w= hich have lost acl. Thanks for any help! --=20 You are receiving this mail because: You are the assignee for the bug.=