Vice siti v exports - zfs

Miroslav Lachman 000.fbsd at quip.cz
Wed Sep 15 10:12:59 CEST 2010


Radek Krejča wrote:
> Ahoj,
>
> diky.
>
>>
>> /usr/src /usr/obj /usr/ports    -ro -maproot=0 -network 0.0.0.0/0
>> /usr/src /usr/obj /usr/ports    -ro -maproot=0 -network ::/0
>>
>
> Jak to ale prevedu do zfs, kdy pokazde, kdyz prikaz zavolam, tak se nastaveni premaze?
>
> zfs set sharenfs="-ro -maproot=0 -network 0.0.0.0/0" /usr/src
> je pak premazano
> zfs set sharenfs="-ro -maproot=0 -network ::/0 " /usr/src

Nedelej to prikazem 'zfs' a rovnou to zapis do
/etc/zfs/exports
Pak reloadni NFS a melo by to zacit fungovat. Jen si to budes muset 
pamatovat, abys to v budoucnu nezkusil editovat tim sharenfs...

Mirek


More information about the Users-l mailing list