Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

moving ACL from UFS to ZFS

320 views
Skip to first unread message

SDRGuy

unread,
Aug 20, 2010, 11:21:16 AM8/20/10
to
Hello All,


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.

Richard B. Gilbert

unread,
Aug 20, 2010, 11:38:55 AM8/20/10
to

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.

SDRGuy

unread,
Aug 20, 2010, 12:11:27 PM8/20/10
to
On Aug 20, 10:38 am, "Richard B. Gilbert" <rgilber...@comcast.net>
wrote:

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?

cindy

unread,
Aug 20, 2010, 12:30:09 PM8/20/10
to

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

Oscar del Rio

unread,
Aug 20, 2010, 12:35:55 PM8/20/10
to
On 08/20/10 12:11 PM, SDRGuy wrote:
> On Aug 20, 10:38 am, "Richard B. Gilbert"<rgilber...@comcast.net>
>> DID YOU "See acl(5)"?
>
> 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:

Which include "ls" and "chmod".
See "man ls" and "man chmod" sections on ACLs or google for "ZFS ACLs".

Richard B. Gilbert

unread,
Aug 20, 2010, 1:07:10 PM8/20/10
to

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.

SDRGuy

unread,
Aug 20, 2010, 1:09:14 PM8/20/10
to


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

cindy

unread,
Aug 20, 2010, 1:15:22 PM8/20/10
to

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

SDRGuy

unread,
Aug 20, 2010, 1:51:11 PM8/20/10
to

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?

SDRGuy

unread,
Aug 20, 2010, 2:13:34 PM8/20/10
to

Cindy, Richard,

System>chmod A3=group@:read_data/write_data:allow testfile

system> ls -v testfile

testfile

Ian Collins

unread,
Aug 20, 2010, 4:46:08 PM8/20/10
to
On 08/21/10 03:21 AM, SDRGuy wrote:
> Hello All,

Why do you keep changing your posting alias?

--
Ian Collins

SDRGuy

unread,
Aug 20, 2010, 5:10:19 PM8/20/10
to

Ian,


My "Posting Alias" has remained the same.

Can you assist with the question at hand please as we are stuck on
this?

Ian Collins

unread,
Aug 20, 2010, 6:09:43 PM8/20/10
to
On 08/21/10 09:10 AM, SDRGuy wrote:
> On Aug 20, 3:46 pm, Ian Collins<ian-n...@hotmail.com> wrote:
>> On 08/21/10 03:21 AM, SDRGuy wrote:
>>
>>> Hello All,
>>
>> Why do you keep changing your posting alias?
>
> Ian,
>
> My "Posting Alias" has remained the same.

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

kartikvashishta108

unread,
Aug 21, 2010, 9:51:57 PM8/21/10
to
rdist works with ACL's

kartikvashishta108

unread,
Aug 24, 2010, 10:24:13 PM8/24/10
to
On Aug 21, 8:51 pm, kartikvashishta108 <kartik.u...@gmail.com> wrote:
> rdist works with ACL's

Sorry, rdist does not preserve ACL

0 new messages