* rsync from xfs to nfs+xfs and ACL problems
@ 2010-05-18 11:50 Michael Monnerie
2010-05-18 12:33 ` Dave Chinner
2010-05-18 16:52 ` Emmanuel Florac
0 siblings, 2 replies; 8+ messages in thread
From: Michael Monnerie @ 2010-05-18 11:50 UTC (permalink / raw)
To: xfs
[-- Attachment #1.1: Type: text/plain, Size: 1056 bytes --]
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.
--
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/
[-- Attachment #1.2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
[-- Attachment #2: Type: text/plain, Size: 121 bytes --]
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: rsync from xfs to nfs+xfs and ACL problems
2010-05-18 11:50 rsync from xfs to nfs+xfs and ACL problems Michael Monnerie
@ 2010-05-18 12:33 ` Dave Chinner
2010-05-19 11:04 ` Michael Monnerie
2010-05-20 22:05 ` Linda Walsh
2010-05-18 16:52 ` Emmanuel Florac
1 sibling, 2 replies; 8+ messages in thread
From: Dave Chinner @ 2010-05-18 12:33 UTC (permalink / raw)
To: Michael Monnerie; +Cc: xfs
On Tue, May 18, 2010 at 01:50:15PM +0200, Michael Monnerie wrote:
> 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.
NFSv3 doesn't support ACLs, IIRC.
Cheers,
Dave.
--
Dave Chinner
david@fromorbit.com
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: rsync from xfs to nfs+xfs and ACL problems
2010-05-18 12:33 ` Dave Chinner
@ 2010-05-19 11:04 ` Michael Monnerie
2010-05-19 11:20 ` Christoph Hellwig
2010-05-20 22:05 ` Linda Walsh
1 sibling, 1 reply; 8+ messages in thread
From: Michael Monnerie @ 2010-05-19 11:04 UTC (permalink / raw)
To: xfs
[-- Attachment #1.1: Type: Text/Plain, Size: 1120 bytes --]
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?
--
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/
[-- Attachment #1.2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
[-- Attachment #2: Type: text/plain, Size: 121 bytes --]
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: rsync from xfs to nfs+xfs and ACL problems
2010-05-19 11:04 ` Michael Monnerie
@ 2010-05-19 11:20 ` Christoph Hellwig
2010-05-19 11:46 ` Michael Monnerie
0 siblings, 1 reply; 8+ messages in thread
From: Christoph Hellwig @ 2010-05-19 11:20 UTC (permalink / raw)
To: Michael Monnerie; +Cc: xfs
On Wed, May 19, 2010 at 01:04:37PM +0200, Michael Monnerie wrote:
> 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
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: rsync from xfs to nfs+xfs and ACL problems
2010-05-19 11:20 ` Christoph Hellwig
@ 2010-05-19 11:46 ` Michael Monnerie
2010-05-19 11:51 ` Christoph Hellwig
0 siblings, 1 reply; 8+ messages in thread
From: Michael Monnerie @ 2010-05-19 11:46 UTC (permalink / raw)
To: xfs; +Cc: Christoph Hellwig
[-- Attachment #1.1: Type: Text/Plain, Size: 910 bytes --]
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?
--
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/
[-- Attachment #1.2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
[-- Attachment #2: Type: text/plain, Size: 121 bytes --]
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: rsync from xfs to nfs+xfs and ACL problems
2010-05-19 11:46 ` Michael Monnerie
@ 2010-05-19 11:51 ` Christoph Hellwig
0 siblings, 0 replies; 8+ messages in thread
From: Christoph Hellwig @ 2010-05-19 11:51 UTC (permalink / raw)
To: Michael Monnerie; +Cc: Christoph Hellwig, xfs
On Wed, May 19, 2010 at 01:46:38PM +0200, Michael Monnerie wrote:
> 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?
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
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: rsync from xfs to nfs+xfs and ACL problems
2010-05-18 12:33 ` Dave Chinner
2010-05-19 11:04 ` Michael Monnerie
@ 2010-05-20 22:05 ` Linda Walsh
1 sibling, 0 replies; 8+ messages in thread
From: Linda Walsh @ 2010-05-20 22:05 UTC (permalink / raw)
To: Michael Monnerie, xfs@oss.sgi.com
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.
Dave Chinner wrote:
> On Tue, May 18, 2010 at 01:50:15PM +0200, Michael Monnerie wrote:
>> 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
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: rsync from xfs to nfs+xfs and ACL problems
2010-05-18 11:50 rsync from xfs to nfs+xfs and ACL problems Michael Monnerie
2010-05-18 12:33 ` Dave Chinner
@ 2010-05-18 16:52 ` Emmanuel Florac
1 sibling, 0 replies; 8+ messages in thread
From: Emmanuel Florac @ 2010-05-18 16:52 UTC (permalink / raw)
To: Michael Monnerie; +Cc: xfs
[-- Attachment #1.1: Type: text/plain, Size: 902 bytes --]
Le Tue, 18 May 2010 13:50:15 +0200
Michael Monnerie <michael.monnerie@is.it-management.at> écrivait:
> 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,
--
------------------------------------------------------------------------
Emmanuel Florac | Direction technique
| Intellique
| <eflorac@intellique.com>
| +33 1 78 94 84 02
------------------------------------------------------------------------
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 197 bytes --]
[-- Attachment #2: Type: text/plain, Size: 121 bytes --]
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2010-05-20 23:02 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-18 11:50 rsync from xfs to nfs+xfs and ACL problems Michael Monnerie
2010-05-18 12:33 ` Dave Chinner
2010-05-19 11:04 ` Michael Monnerie
2010-05-19 11:20 ` Christoph Hellwig
2010-05-19 11:46 ` Michael Monnerie
2010-05-19 11:51 ` Christoph Hellwig
2010-05-20 22:05 ` Linda Walsh
2010-05-18 16:52 ` Emmanuel Florac
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox