rsync from xfs to nfs+xfs and ACL problems
Hello, I'm trying to rsync from an xfs with ACLs set to another server which has an xfs filesystem. I mounted the nfs using rw,noatime,nodiratime,acl,rsize=65536,wsize=65536,nfsvers=3,proto=tcp,mountproto=tcp and I get these errors:
rsync: rsync_xal_set: lsetxattr("anse/Software ANDY/Bfort.exe","trusted.SGI_ACL_FILE") failed: Operation not supported
(95)
rsync: rsync_xal_set: lsetxattr("anse/Software ANDY/CWShredLast.exe","trusted.SGI_ACL_FILE") failed: Operation not supported (95)
rsync: rsync_xal_set: lsetxattr("anse/Software ANDY/CWSysinfo_130.zip","trusted.SGI_ACL_FILE") failed: Operation not supported (95)
Does it mean I can't sync ACLs? How could I do it? I need a full backup including ACLs, as I want to move all data and then restore.
Signature · 10 lines
mit freundlichen Grüssen, Michael Monnerie, Ing. BSc it-management Internet Services http://proteger.at [gesprochen: Prot-e-schee] Tel: 0660 / 415 65 31 // Wir haben im Moment zwei Häuser zu verkaufen: // http://zmi.at/langegg/ // http://zmi.at/haus2009/
_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs
Quoted 15 lines · Michael Monnerie
Hello, I'm trying to rsync from an xfs with ACLs set to another server which has an xfs filesystem. I mounted the nfs using rw,noatime,nodiratime,acl,rsize=65536,wsize=65536,nfsvers=3,proto=tcp,mountproto=tcp and I get these errors:
rsync:
rsync_xal_set:lsetxattr("anse/Software ANDY/Bfort.exe","trusted.SGI_ACL_FILE")failed: Operation not supported
(95)
rsync:rsync_xal_set:lsetxattr("anse/Software ANDY/CWShredLast.exe","trusted.SGI_ACL_FILE")failed: Operation not supported (95)
rsync:rsync_xal_set:lsetxattr("anse/Software ANDY/CWSysinfo_130.zip","trusted.SGI_ACL_FILE")failed: Operation not supported (95)
Quoted 2 lines
Does it mean I can't sync ACLs? How could I do it? I need a full backup including ACLs, as I want to move all data and then restore.
NFSv3 doesn't support ACLs, IIRC.
Cheers,
Dave.
Signature · 7 lines
Dave Chinner [email protected] _______________________________________________ xfs mailing list [email protected] http://oss.sgi.com/mailman/listinfo/xfs
Le Tue, 18 May 2010 13:50:15 +0200
Michael Monnerie <[email protected]> écrivait:
Quoted 2 lines
Does it mean I can't sync ACLs? How could I do it? I need a full backup including ACLs, as I want to move all data and then restore.
Use nfs4 instead, should be fine. Exports structure is different. The simple way is to simply add "fsid=0" in /etc/exports :
/mnt/whatever *(fsid=0,rw,async,no_root_squash,no_subtree_check)
Restart your nfs daemons, then mount (notice the / instead of /mnt/whatever ) :
mount -t nfs4 server:/ /mnt/nfsmount
regards,
Signature · 6 lines
------------------------------------------------------------------------
Emmanuel Florac | Direction technique
| Intellique
| <[email protected]>
| +33 1 78 94 84 02
------------------------------------------------------------------------_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs
Quoted 1 line · On Dienstag, 18. Mai 2010 Dave Chinner wrote:
NFSv3 doesn't support ACLs, IIRC.
Thank you for the hint. I remounted with nfs4 now:
type nfs4 (rw,noatime,nodiratime,rsize=65536,wsize=65536,tcp,intr,acl)
And now I get this on "rsync -aPvHAX":
rsync: chown "somedir/Cen731n.afm" failed: Invalid argument (22)
rsync: chown "somedir/Teil2" failed: Invalid argument (22)
rsync: rsync_xal_set:lsetxattr("somedir/Teil2/IMAGE.CCD","trusted.SGI_ACL_FILE") failed:
Operation not supported (95)
I changed again and defined an rsync module on the target, making a direct rsync and no more shown errors. Still, what is causing the tons of errors when rsyncing to nfs+xfs, no matter if nfs3 or nfs4? I looked manually at some files and it seems everything was copied well, despite the errors.
Could inode64 be a problem here?
Signature · 10 lines
mit freundlichen Grüssen, Michael Monnerie, Ing. BSc it-management Internet Services http://proteger.at [gesprochen: Prot-e-schee] Tel: 0660 / 415 65 31 // Wir haben im Moment zwei Häuser zu verkaufen: // http://zmi.at/langegg/ // http://zmi.at/haus2009/
_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs
Quoted 5 lines · Michael Monnerie
I changed again and defined an rsync module on the target, making a direct rsync and no more shown errors. Still, what is causing the tons of errors when rsyncing to nfs+xfs, no matter if nfs3 or nfs4? I looked manually at some files and it seems everything was copied well, despite the errors.
XFS stores ACLs different than other Linux filesystems because it's on-disk compatible to IRIX. While the other filesystems store the ACL in the same format that is used for the user interface XFS stores it in a separate trusted extended attribute. rsync should and traditionally has ignored those attributes, but it seems something in rsync changed recently so that it tries to copy these attributes in the trusted.* namespace, which fails on NFS.
_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs
Quoted 8 lines · On Mittwoch, 19. Mai 2010 Christoph Hellwig wrote:
XFS stores ACLs different than other Linux filesystems because it's on-disk compatible to IRIX. While the other filesystems store the
ACL in the same format that is used for the user interface XFS stores it in a separate trusted extended attribute. rsync should and
traditionally has ignored those attributes, but it seems something in rsync changed recently so that it tries to copy these attributes in the trusted.* namespace, which fails on NFS.
Thank you. Does that mean I can simply ignore that errors, and that everything is OK even over NFS?
Signature · 10 lines
mit freundlichen Grüssen, Michael Monnerie, Ing. BSc it-management Internet Services http://proteger.at [gesprochen: Prot-e-schee] Tel: 0660 / 415 65 31 // Wir haben im Moment zwei Häuser zu verkaufen: // http://zmi.at/langegg/ // http://zmi.at/haus2009/
_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs
Quoted 10 lines · Michael Monnerie
Quoted 8 lines · On Mittwoch, 19. Mai 2010 Christoph Hellwig wrote:
XFS stores ACLs different than other Linux filesystems because it's on-disk compatible to IRIX. While the other filesystems store the
ACL in the same format that is used for the user interface XFS stores it in a separate trusted extended attribute. rsync should and
traditionally has ignored those attributes, but it seems something in rsync changed recently so that it tries to copy these attributes in the trusted.* namespace, which fails on NFS.
Quoted 2 lines
Thank you. Does that mean I can simply ignore that errors, and that everything is OK even over NFS?
Thinks should be okay - rsync probably has copied the ACLs via the normal system namespace. You can verify this by doing a getfacl on a nfs file that should havfe ACLs.
_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs
If the NFS system doesn't handle ACL's,
you might try using "star" which can handle ACL's and extended file attributes storing them in an extended tar-format archive.
It has a "-copy" feature that I've used successfully to copy extended file attributes:
(cd sourcedir; star -acl -xattr -no-fsync . /destdir/.)&
and ACL's from one XFS file system to another, so I'm reasonably sure it's archive format (see its manpage for correct options) would also store them.
Quoted 10 lines · Dave Chinner
Quoted 3 lines · Michael Monnerie
Hello, I'm trying to rsync from an xfs with ACLs set to another server which has an xfs filesystem. I mounted the nfs using
Does it mean I can't sync ACLs? How could I do it? I need a full backup including ACLs, as I want to move all data and then restore.
NFSv3 doesn't support ACLs, IIRC.
Cheers,
Dave.
_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs