Peter Karlsson
2008-Feb-19 04:38 UTC
[zfs-discuss] zpool shared between OSX and Solaris on a MacBook Pro
Hi, I got my MacBook pro set up to dual boot between Solaris and OSX and I have created a zpool to use as a shred storage for documents etc.. However got this strange thing when trying to access the zpool from Solaris, only root can see it?? I created the zpool on OSX as they are using an old version of the on disk format, if I create a zpool on Solaris all users can see it, strange.... Any ideas on what might be the issue here?? Cheers, Peter root# zpool get all zpace NAME PROPERTY VALUE SOURCE zpace bootfs - default zpace autoreplace off default zpace delegation off default root# zfs get all zpace/demo NAME PROPERTY VALUE SOURCE zpace/demo type filesystem - zpace/demo creation Sat Feb 16 13:25 2008 - zpace/demo used 66.2M - zpace/demo available 59.3G - zpace/demo referenced 66.2M - zpace/demo compressratio 1.00x - zpace/demo mounted yes - zpace/demo quota none default zpace/demo reservation none default zpace/demo recordsize 128K default zpace/demo mountpoint /Volumes/zpace/demo default zpace/demo sharenfs off default zpace/demo checksum on default zpace/demo compression off default zpace/demo atime on default zpace/demo devices on default zpace/demo exec on default zpace/demo setuid on default zpace/demo readonly off default zpace/demo zoned off default zpace/demo snapdir hidden default zpace/demo aclmode groupmask default zpace/demo aclinherit secure default zpace/demo canmount on default zpace/demo shareiscsi off default zpace/demo xattr on default zpace/demo copies 1 default zpace/demo version 2 -
Darren J Moffat
2008-Feb-19 10:27 UTC
[zfs-discuss] zpool shared between OSX and Solaris on a MacBook Pro
Peter Karlsson wrote:> Hi, > > I got my MacBook pro set up to dual boot between Solaris and OSX and I > have created a zpool to use as a shred storage for documents etc.. > However got this strange thing when trying to access the zpool from > Solaris, only root can see it?? I created the zpool on OSX as they are > using an old version of the on disk format, if I create a zpool on > Solaris all users can see it, strange....What do you mean by "only root can see it" All files are owned by root ? Users don''t see the datasets with zfs list ? Users don''t see the mounted filesystems with df ? Users don''t even see the pool with zpool status ? This looks strange: zpace delegation off default The default is "on" not off. What build of Solaris are you using ? Also see this: zpace/demo mountpoint /Volumes/zpace/demo default Do you have a /Volumes directory on Solaris ? -- Darren J Moffat
Peter Karlsson
2008-Feb-19 10:28 UTC
[zfs-discuss] zpool shared between OSX and Solaris on a MacBook Pro
On Feb 19, 2008, at 17:27, Darren J Moffat wrote:> Peter Karlsson wrote: >> Hi, >> I got my MacBook pro set up to dual boot between Solaris and OSX and >> I have created a zpool to use as a shred storage for documents etc.. >> However got this strange thing when trying to access the zpool from >> Solaris, only root can see it?? I created the zpool on OSX as they >> are using an old version of the on disk format, if I create a zpool >> on Solaris all users can see it, strange.... > > What do you mean by "only root can see it" >As root: -bash-3.2# ls -ld /zpace drwxr-xr-x 8 root root 9 Feb 19 12:28 /zpace As myself: ls -ld /zpace /zpace: Permission denied bash-3.2$ cd /zpace bash: cd: /zpace: Permission denied So I create a zpool on Solaris -bash-3.2# zpool create ztst /export/home/tst/a /export/home/tst/b /export/home/tst/c bash-3.2$ ls -ld /ztst drwxr-xr-x 2 root root 2 Feb 19 17:23 /ztst bash-3.2$ cd /ztst So that works, so something is strange with the zpool I created in OSX> All files are owned by root ?Nope, some files are owned by other users,> > Users don''t see the datasets with zfs list ?Can: bash-3.2$ /sbin/zpool list NAME SIZE USED AVAIL CAP HEALTH ALTROOT zpace 61G 715M 60.3G 1% ONLINE -> > Users don''t see the mounted filesystems with df ?Nope: /zpace (zpace ):124462673 blocks 124462673 files df: cannot statvfs /zpace/DB: Permission denied df: cannot statvfs /zpace/Download: Permission denied df: cannot statvfs /zpace/demo: Permission denied> > Users don''t even see the pool with zpool status ?Can: bash-3.2$ /sbin/zpool status pool: zpace state: ONLINE status: The pool is formatted using an older on-disk format. The pool can still be used, but some features are unavailable. action: Upgrade the pool using ''zpool upgrade''. Once this is done, the pool will no longer be accessible on older software versions. scrub: none requested config: NAME STATE READ WRITE CKSUM zpace ONLINE 0 0 0 c1d0p4 ONLINE 0 0 0 errors: No known data errors bash-3.2$ /sbin/zfs list NAME USED AVAIL REFER MOUNTPOINT zpace 715M 59.3G 586K /zpace zpace/DB 29.5K 59.3G 29.5K /zpace/DB zpace/Download 648M 59.3G 648M /zpace/Download zpace/demo 66.2M 59.3G 66.2M /zpace/demo> > > > This looks strange: > > zpace delegation off defaultThat''s the default on OSX, as I created the file system on OSX On Solaris it reports delegation on bash-3.2$ /sbin/zpool get all zpace NAME PROPERTY VALUE SOURCE zpace size 61G - zpace used 715M - zpace available 60.3G - zpace capacity 1% - zpace altroot - default zpace health ONLINE - zpace guid 2692302108782490543 - zpace version 6 local zpace bootfs - default zpace delegation on default zpace autoreplace off default zpace cachefile - default zpace failmode wait default> > > The default is "on" not off. > > What build of Solaris are you using ?snvx_b80> > > Also see this: > > zpace/demo mountpoint /Volumes/zpace/demo defaultIt was from OSX, I should note that