zfs share issues

  • Follow


I migrated my jumpstart server from ufs to zfs root, unfortunately I
am not able to set nfs share on the zfs root filesystem, anyone have
any clues?

# ./add_install_client -e 08:00:20:a9:26:a9 -i 136.148.0.126 -s
solaris:/jumpstart/image -c solaris:/jumpstart/config -p solaris:/
jumpstart/config sun1 sun>

/ is already shared.
However, the zfs file system / must be shared
read-only with root access.  Use the "zfs set" command to
set the sharenfs property for file system / as follows:
Use ro and either anon=0 or root=sun1 for /.
This must be fixed and / shared
before sun1 can boot.
/ is already shared.
However, the zfs file system / must be shared
read-only with root access.  Use the "zfs set" command to
set the sharenfs property for file system / as follows:
Use ro and either anon=0 or root=sun1 for /.
This must be fixed and / shared
before sun1 can boot.
cleaning up preexisting install client "sun1"
removing sun1 from bootparams
updating /etc/bootparams



# zfs share -a
cannot share 'rpool/ROOT': share(1M) failed
# zfs list
NAME               USED  AVAIL  REFER  MOUNTPOINT
rpool             12.9G  3.62G    95K  /rpool
rpool/ROOT        10.9G  3.62G    18K  /rpool/ROOT
rpool/ROOT/zfsBE  10.9G  3.62G  10.9G  /
rpool/dump        1.00G  3.62G  1.00G  -
rpool/swap           1G  4.62G    16K  -
# zfs set sharenfs=on rpool/ROOT/zfsBE
cannot share 'rpool/ROOT/zfsBE': share(1M) failed
property may be set but unable to reshare filesystem
#
0
Reply dariusz.dolecki (58) 11/9/2010 8:04:56 PM

On 11/10/10 09:04 AM, Dariusz Dolecki wrote:
> I migrated my jumpstart server from ufs to zfs root, unfortunately I
> am not able to set nfs share on the zfs root filesystem, anyone have
> any clues?

Don't run add_install_client in the root filesystem, create a child file 
system that you can share.

-- 
Ian Collins
0
Reply Ian 11/9/2010 8:08:02 PM


>
> Don't run add_install_client in the root filesystem, create a child file
> system that you can share.
>
> --
> Ian Collins
# zfs create rpool/jump
# zfs set sharenfs=on rpool/jump
cannot share 'rpool/jump': share(1M) failed
property may be set but unable to reshare filesystem
#

0
Reply Dariusz 11/9/2010 8:27:42 PM

On 11/10/10 09:27 AM, Dariusz Dolecki wrote:

Please don't snip attributions!

>> Don't run add_install_client in the root filesystem, create a child file
>> system that you can share.
>>

> # zfs create rpool/jump
> # zfs set sharenfs=on rpool/jump
> cannot share 'rpool/jump': share(1M) failed
> property may be set but unable to reshare filesystem
> #

root@i7:~# zfs create rpool/jump
root@i7:~# zfs set sharenfs=on rpool/jump
root@i7:~# share
-@rpool/jump    /rpool/jump   rw   ""

You must have mucked something up.  What is the output of "share" and 
"zfs get sharenfs rpool"?

-- 
Ian Collins
0
Reply Ian 11/9/2010 8:32:58 PM

On Nov 9, 2:32=A0pm, Ian Collins <ian-n...@hotmail.com> wrote:
> On 11/10/10 09:27 AM, Dariusz Dolecki wrote:
>
> Please don't snip attributions!
>
> >> Don't run add_install_client in the root filesystem, create a child fi=
le
> >> system that you can share.
>
> > # zfs create rpool/jump
> > # zfs set sharenfs=3Don rpool/jump
> > cannot share 'rpool/jump': share(1M) failed
> > property may be set but unable to reshare filesystem
> > #
>
> root@i7:~# zfs create rpool/jump
> root@i7:~# zfs set sharenfs=3Don rpool/jump
> root@i7:~# share
> -@rpool/jump =A0 =A0/rpool/jump =A0 rw =A0 ""
>
> You must have mucked something up. =A0What is the output of "share" and
> "zfs get sharenfs rpool"?
>
> --
> Ian Collins

# share
# zfs get sharenfs rpool
NAME   PROPERTY  VALUE     SOURCE
rpool  sharenfs  off
0
Reply Dariusz 11/9/2010 8:37:30 PM

On Nov 9, 2:37=A0pm, Dariusz Dolecki <dariusz.dole...@gmail.com> wrote:
> On Nov 9, 2:32=A0pm, Ian Collins <ian-n...@hotmail.com> wrote:
>
>
>
>
>
>
>
>
>
> > On 11/10/10 09:27 AM, Dariusz Dolecki wrote:
>
> > Please don't snip attributions!
>
> > >> Don't run add_install_client in the root filesystem, create a child =
file
> > >> system that you can share.
>
> > > # zfs create rpool/jump
> > > # zfs set sharenfs=3Don rpool/jump
> > > cannot share 'rpool/jump': share(1M) failed
> > > property may be set but unable to reshare filesystem
> > > #
>
> > root@i7:~# zfs create rpool/jump
> > root@i7:~# zfs set sharenfs=3Don rpool/jump
> > root@i7:~# share
> > -@rpool/jump =A0 =A0/rpool/jump =A0 rw =A0 ""
>
> > You must have mucked something up. =A0What is the output of "share" and
> > "zfs get sharenfs rpool"?
>
> > --
> > Ian Collins
>
> # share
> # zfs get sharenfs rpool
> NAME =A0 PROPERTY =A0VALUE =A0 =A0 SOURCE
> rpool =A0sharenfs =A0off

I created a new pool and created a new zfs fs in it but I am getting
the same messages:

# zfs list
NAME                    USED  AVAIL  REFER  MOUNTPOINT
jmp                     292M  7.96G    23K  /jmp
jmp/jump                292M  7.96G   292M  /jmp/jump
rpool                  12.9G  3.62G    96K  /rpool
rpool/ROOT             10.9G  3.62G    18K  /rpool/ROOT
rpool/ROOT/zfsBE       10.9G  3.62G  10.9G  /
rpool/ROOT/zfsBE/jump    19K  3.62G    19K  /jump
rpool/dump             1.00G  3.62G  1.00G  -
rpool/jump               19K  3.62G    19K  /rpool/jump
rpool/swap                1G  4.62G    16K  -
# zfs set sharenfs=3Don jmp/jump
cannot share 'jmp/jump': share(1M) failed
property may be set but unable to reshare filesystem
# zfs set sharenfs=3Don jmp
cannot share 'jmp': share(1M) failed
cannot share 'jmp/jump': share(1M) failed
property may be set but unable to reshare filesystem
#
# zfs get sharenfs jmp
NAME  PROPERTY  VALUE     SOURCE
jmp   sharenfs  on        local
# share
#


0
Reply Dariusz 11/9/2010 9:06:35 PM

On 11/10/10 10:06 AM, Dariusz Dolecki wrote:
>
> I created a new pool and created a new zfs fs in it but I am getting
> the same messages:
>
> # zfs list
> NAME                    USED  AVAIL  REFER  MOUNTPOINT
> jmp                     292M  7.96G    23K  /jmp
> jmp/jump                292M  7.96G   292M  /jmp/jump
> rpool                  12.9G  3.62G    96K  /rpool
> rpool/ROOT             10.9G  3.62G    18K  /rpool/ROOT
> rpool/ROOT/zfsBE       10.9G  3.62G  10.9G  /
> rpool/ROOT/zfsBE/jump    19K  3.62G    19K  /jump
> rpool/dump             1.00G  3.62G  1.00G  -
> rpool/jump               19K  3.62G    19K  /rpool/jump
> rpool/swap                1G  4.62G    16K  -
> # zfs set sharenfs=on jmp/jump
> cannot share 'jmp/jump': share(1M) failed
> property may be set but unable to reshare filesystem
> # zfs set sharenfs=on jmp
> cannot share 'jmp': share(1M) failed
> cannot share 'jmp/jump': share(1M) failed
> property may be set but unable to reshare filesystem
> #
> # zfs get sharenfs jmp
> NAME  PROPERTY  VALUE     SOURCE
> jmp   sharenfs  on        local
> # share
> #

Try sharing the filesystem manually with share and see whet errors are 
reported.

-- 
Ian Collins
0
Reply Ian 11/9/2010 9:21:11 PM

On Nov 9, 3:21=A0pm, Ian Collins <ian-n...@hotmail.com> wrote:
> On 11/10/10 10:06 AM, Dariusz Dolecki wrote:
>
>
>
>
>
>
>
>
>
>
>
> > I created a new pool and created a new zfs fs in it but I am getting
> > the same messages:
>
> > # zfs list
> > NAME =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0USED =A0AVAIL =A0REFER =A0M=
OUNTPOINT
> > jmp =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 292M =A07.96G =A0 =A023K =
=A0/jmp
> > jmp/jump =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0292M =A07.96G =A0 292M =A0/jmp/=
jump
> > rpool =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A012.9G =A03.62G =A0 =A096K =A0/=
rpool
> > rpool/ROOT =A0 =A0 =A0 =A0 =A0 =A0 10.9G =A03.62G =A0 =A018K =A0/rpool/=
ROOT
> > rpool/ROOT/zfsBE =A0 =A0 =A0 10.9G =A03.62G =A010.9G =A0/
> > rpool/ROOT/zfsBE/jump =A0 =A019K =A03.62G =A0 =A019K =A0/jump
> > rpool/dump =A0 =A0 =A0 =A0 =A0 =A0 1.00G =A03.62G =A01.00G =A0-
> > rpool/jump =A0 =A0 =A0 =A0 =A0 =A0 =A0 19K =A03.62G =A0 =A019K =A0/rpoo=
l/jump
> > rpool/swap =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A01G =A04.62G =A0 =A016K =A0-
> > # zfs set sharenfs=3Don jmp/jump
> > cannot share 'jmp/jump': share(1M) failed
> > property may be set but unable to reshare filesystem
> > # zfs set sharenfs=3Don jmp
> > cannot share 'jmp': share(1M) failed
> > cannot share 'jmp/jump': share(1M) failed
> > property may be set but unable to reshare filesystem
> > #
> > # zfs get sharenfs jmp
> > NAME =A0PROPERTY =A0VALUE =A0 =A0 SOURCE
> > jmp =A0 sharenfs =A0on =A0 =A0 =A0 =A0local
> > # share
> > #
>
> Try sharing the filesystem manually with share and see whet errors are
> reported.
>
> --
> Ian Collins

# share -F nfs -o ro,anon=3D0 /jmp/jump/jumpstart
# share
-               /jmp/jump/jumpstart   ro,anon=3D0   ""
#


But an add_install_client in this "child" filesystem still generates
errors:

# ./add_install_client -e 08:00:20:a9:26:a9 -i 192.168.0.126 -s
solaris:/jmp/jump/jumpstart/imaage -c solaris:/jmp/jump/jumpstart/
config -p solaris:/jmp/j>
/jmp/jump is already shared.
However, the zfs file system /jmp/jump must be shared
read-only with root access.  Use the "zfs set" command to
set the sharenfs property for file system /jmp/jump as follows:
Use ro and either anon=3D0 or root=3DCCC for /jmp/jump.
This must be fixed and /jmp/jump shared
before CCC can boot.
/jmp/jump is already shared.
However, the zfs file system /jmp/jump must be shared
read-only with root access.  Use the "zfs set" command to
set the sharenfs property for file system /jmp/jump as follows:
Use ro and either anon=3D0 or root=3DCCC for /jmp/jump.
This must be fixed and /jmp/jump shared
before CCC can boot.
cleaning up preexisting install client "CCC"
removing CCC from bootparams
updating /etc/bootparams
#
0
Reply Dariusz 11/9/2010 9:25:44 PM

7 Replies
1242 Views

(page loaded in 0.121 seconds)

Similiar Articles:













7/21/2012 7:34:08 PM


Reply: