On 4/26/07, Roch - PAE <[EMAIL PROTECTED]> wrote:

You might set zil_disable to 1 (_then_ mount the fs to be
shared). But you're still exposed to OS crashes; those would
still corrupt your nfs clients.


For the love of God do NOT do stuff like that.

Just create ZFS on a pile of disks the way that we should, with the
write cache disabled on all the disks and with redundancy in the ZPool
config .. nothing special :

# zpool create -m legacy -f zpool0 mirror c2t8d0 c3t8d0 mirror c2t9d0 c3t9d0
mirror c2t10d0 c3t10d0 mirror c2t11d0 c3t11d0 mirror c2t12d0 c3t12d0 mirror
c2t13d0 c3t13d0
#

# zpool list
NAME                    SIZE    USED   AVAIL    CAP  HEALTH     ALTROOT
zpool0                 1.63T     66K   1.63T     0%  ONLINE     -
#

# zpool status zpool0
 pool: zpool0
state: ONLINE
scrub: none requested
config:

       NAME         STATE     READ WRITE CKSUM
       zpool0       ONLINE       0     0     0
         mirror     ONLINE       0     0     0
           c2t8d0   ONLINE       0     0     0
           c3t8d0   ONLINE       0     0     0
         mirror     ONLINE       0     0     0
           c2t9d0   ONLINE       0     0     0
           c3t9d0   ONLINE       0     0     0
         mirror     ONLINE       0     0     0
           c2t10d0  ONLINE       0     0     0
           c3t10d0  ONLINE       0     0     0
         mirror     ONLINE       0     0     0
           c2t11d0  ONLINE       0     0     0
           c3t11d0  ONLINE       0     0     0
         mirror     ONLINE       0     0     0
           c2t12d0  ONLINE       0     0     0
           c3t12d0  ONLINE       0     0     0
         mirror     ONLINE       0     0     0
           c2t13d0  ONLINE       0     0     0
           c3t13d0  ONLINE       0     0     0


The create some filesystem in there :

# zfs create zpool0/test

Give it a mount point :

# zfs set mountpoint=/test zpool0/test

# zfs list
NAME                   USED  AVAIL  REFER  MOUNTPOINT
zpool0                  98K  1.60T  1.50K  legacy
zpool0/test           24.5K  1.60T  24.5K  /test

Maybe set a quota :

# zfs set quota=400G zpool0/test
# zfs list
NAME                   USED  AVAIL  REFER  MOUNTPOINT
zpool0                  98K  1.60T  1.50K  legacy
zpool0/test           24.5K   400G  24.5K  /test
#

# df -F ufs -k
Filesystem           1024-blocks        Used   Available Capacity  Mounted on
/dev/md/dsk/d0           5819164     3862268     1665938    70%    /
/dev/md/dsk/d3           4068216      869404     2995404    23%    /var
/dev/md/dsk/d5          20654976       20504    19601728     1%    /data
# df -F zfs -k
Filesystem           1024-blocks        Used   Available Capacity  Mounted on
zpool0/test            419430400          24   419430375     1%    /test
#

# zfs list
NAME                   USED  AVAIL  REFER  MOUNTPOINT
zpool0                  98K  1.60T  1.50K  legacy
zpool0/test           24.5K   400G  24.5K  /test
#

For NFS just share it. Nothing special at all :

# zfs set sharenfs=nosub\,nosuid\,rw\=nfsclient\,root\=nfsclient zpool0/test

# zfs get -o property,value,source all zpool0/test
PROPERTY       VALUE                      SOURCE
type           filesystem                 -
creation       Sun Apr 15 12:12 2007      -
used           24.5K                      -
available      400G                       -
referenced     24.5K                      -
compressratio  1.00x                      -
mounted        yes                        -
quota          400G                       local
reservation    none                       default
recordsize     128K                       default
mountpoint     /test                      local
sharenfs       nosub,nosuid,rw=nfsclient,root=nfsclient  local
checksum       on                         default
compression    off                        default
atime          on                         default
devices        on                         default
exec           on                         default
setuid         on                         default
readonly       off                        default
zoned          off                        default
snapdir        hidden                     default
aclmode        groupmask                  default
aclinherit     secure                     default
#


thats it .. no big deal.  It just works.

Dennis
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to