We are copying files using rsync with the –A option from a solaris 2.6
ufs box to a solaris 10 zfs box. Unfortunately after the copy we were
not able to get or set acl’s. How do I set ACL’s. Will it help if I
run rsync again without the –A option (-A, --acls
preserve ACLs (implies --perms) )
]> getfacl test
File system doesn't support aclent_t style ACL's.
See acl(5) for more information on Solaris ACL support.
setfacl -m g:files:rwx acltest
File system doesn't support aclent_t style ACL's.
See acl(5) for more information on ACL styles support by Solaris.
DID YOU "See acl(5)"? Translated into English that means see the acl
entry in section/volume 5 of the man pages. Post *after* you RTFM, if
you still don't understand.
read it, I still don’t get it, it says:
Shell-level Solaris API
The Solaris command interface supports the manipulation of ACLs. The
following Solaris utilities accommodate both ACL models:
So both acl models are supported. And it says rcp is acl aware, so is
rsync. Then why am I having this problem?
The error messages suggest that these ACLs are not compatible.
I have a few suggestions but the main issue is that ZFS uses a new
ACL model so regardless of what tool you use to migrate
the files, you're going to need to either reapply the ACLs or tweak
them because the UFS-->ZFS ACL translation can't translate all
entries because of their inherent differences.
You might have better luck by ufsdump and ufsrestore to migrate
this data.
If you were running a UFS file system on Solaris 10, you could use
tar -p or cpio -P to migrate the ACL info. Solaris 2.6 is just too old
for this support.
You can read about ZFS style ACLs, here:
http://docs.sun.com/app/docs/doc/819-5461/ftyxi?l=en&a=view
Thanks,
Cindy
Which include "ls" and "chmod".
See "man ls" and "man chmod" sections on ACLs or google for "ZFS ACLs".
I don't know! I do consider it quite possible that there is something
about the files, the ACLs, or something not yet mentioned that is
causing a problem. Solaris 2.6 is something out of the dark ages!
Suppose you create mumble.txt and put two or three lines of "Now is the
time for all good men...." in it. Now add an ACL. Doe that work? If
so, try creating another empty file and with an ACL that allows you to
write to the file. Copy whatever you like into your file. Should you
wish, you can then remove write access.
Cindy,
Thank you for replying, but I am running ufs on solaris 2.6 and
transferring files from there to a solaris 10 zfs box.
The tool I am using is rsync, which supports acl’s
I am not able to set acl’s on the files which were copied over to the
zfs solaris 10 box, I need to set acl’s, please help
I should have said that rsync will not work in this case. If you move
the Solaris 2.6 UFS files to a Solaris 10 system with ufsdump/
ufsrestore,
and then use some other tool that is ACL-aware to migrate the data to
a
ZFS file system, you would have a better chance of getting this to
work.
Or, you could just try ufsdump/ufsrestore from the 2.6 UFS file system
to
a Solaris 10 ZFS file system.
Cindy
Cindy, Richard,
I greatly appreciate your attention to this as we still are trying to
figure this out.
Rsync supports acl’s but I am still getting error messages, is there
any acl migration tool to migrate to nfs4 type acl’s which zfs
understands?
Cindy, Richard,
System>chmod A3=group@:read_data/write_data:allow testfile
system> ls -v testfile
testfile
Why do you keep changing your posting alias?
--
Ian Collins
Ian,
My "Posting Alias" has remained the same.
Can you assist with the question at hand please as we are stuck on
this?
Well there must be a lot of you asking similar questions from the same site.
> Can you assist with the question at hand please as we are stuck on
> this?
Take the straightforward approach: copy the files then read the ACLs
from the source and set them on the destination. I had to shift several
TB of data from Solaris 9 to a zfs pool on Solaris 10 and (at the time)
this was the only solution.
An alternative (untested) might be to use Solaris 10 cpio, which is ZFS
ACL aware.
--
Ian Collins
Sorry, rdist does not preserve ACL