I recently added a new disk to a workstation that just had one disk which was being used as the boot disk with a large partition being used as a zpool. I added a new disk to this system and created a new pool comprised of only the new disk in order to migrate all the data on the original zfs partition to the new disk. I don''t want to store any data on the original disk anymore. As root, I used zfs send/receive to move data from one pool to the other. The problem was that some of the original filesystems were created by different users and zfs''s creator-delegated-permissions were being used. The permission sets were preserved across the transfer, but the filesystems were created as root on the new pool so the creator permissions didn''t continue to work for the filesystem creator on the original pool. Is there a way to either preserve which user created the filesystem across a send/receive? I''m in an NFS environment. Or is there a way to manually set the creator of a fileystem? Thanks, Haik This message posted from opensolaris.org
On Tue, 11 Mar 2008, Haik Aftandilian wrote:> Or is there a way to manually set the creator of a fileystem?Not knowing any better I used a simple ''chown owner:group'' syntax. :-) You could also use ''cpio -p'' to transfer directory ownership based on the original master. Bob =====================================Bob Friesenhahn bfriesen at simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/ GraphicsMagick Maintainer, http://www.GraphicsMagick.org/
> On Tue, 11 Mar 2008, Haik Aftandilian wrote: > > Or is there a way to manually set the creator of a > fileystem? > > Not knowing any better I used a simple ''chown > owner:group'' syntax. :-)I didn''t think of that :) But, I just tried it (changing the ownership of the mountpoint) and it did not appear to have any effect.> You could also use ''cpio -p'' to transfer directory > ownership based on > the original master.True, but I''m really concerned about zfs''s idea of the filesystem creator because I''m using that specifically to enforce a policy where users can all create filesystems and then only the filesystem creator can perform certain operations like snapshot, rollback, destroy, etc. This is all done using the "zfs allow" command. Thanks, Haik> > Bob > =====================================> Bob Friesenhahn > bfriesen at simple.dallas.tx.us, > http://www.simplesystems.org/users/bfriesen/ > GraphicsMagick Maintainer, > http://www.GraphicsMagick.org/ > _____________________________________________ > zfs-discuss mailing list > zfs-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/zfs-discu > ssThis message posted from opensolaris.org