This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!



I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!

Possible to configure NFS on ZFS Volume ?

Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
Brent502
NewUser
NewUser
Posts: 13
Joined: 30 Oct 2012 21:50
Status: Offline

Possible to configure NFS on ZFS Volume ?

Post by Brent502 »

-I will list out the methods I configure ZFS, let me know if it's correct
1) I format 2 disks with same capacity (10GB) as ZFS storage pool device
2) Disks|ZFS|Pools, add Virtual device
Name: raidz-1
Type: mirror
Devices: <- I select da1 and da2, which are 10GB disks
3) In Management, add pool
Name: pool1
Virtual devices: raidz-1
Default for root and Mount point
# After this size = 9.9GB
4) add Dataset
Name: dset1
Pool: pool1
5) Create a Volumes
Name: zvol1
Pool: pool1
Size: 4GB

-I was able to create Samba share in dataset
Services|CIFS/SMB
I enable CIFS, in Shares
Name: SMB Dset1
Path: /mnt/pool1/dset1

-I am able to create iSCSI
Enable iSCSI
Create Extend
Name: extend0
Path: /mnt/pool1/extend0
File size: 4GB
Create Target
LUN0 storage: extend0 (/mnt/pool1/extend0)

-For NFS, I make folder /mnt/pool1/nfs
Enable NFS, Shares path: /mnt/pool1/nfs
It will use the remainder space (6GB)

- It's possible to create an NFS share with a specified size ?? I would like to create NFS share on the ZFS Volume 'zvol1' that is 4GB ?

User avatar
daoyama
Developer
Developer
Posts: 394
Joined: 25 Aug 2012 09:28
Location: Japan
Status: Offline

Re: Possible to configure NFS on ZFS Volume ?

Post by daoyama »

hi,
Brent502 wrote:- It's possible to create an NFS share with a specified size ??
I don't know your need. But you can use dataset with Reservation and Quota.

Create new dataset for NFS.
Specify the value in Reservation and Quota.

Reservation guarantee minimum size for the dataset in the pool.
Quota limit maximum size for the dataset in the pool.

Note that if you want, you can use a dataset with compression to save the pool space.

Daisuke Aoyama
NAS4Free 10.2.0.2.2115 (x64-embedded), 10.2.0.2.2258 (arm), 10.2.0.2.2258(dom0)
GIGABYTE 5YASV-RH, Celeron E3400 (Dual 2.6GHz), ECC 8GB, Intel ET/CT/82566DM (on-board), ZFS mirror (2TBx2)
ASRock E350M1/USB3, 16GB, Realtek 8111E (on-board), ZFS mirror (2TBx2)
MSI MS-9666, Core i7-860(Quad 2.8GHz/HT), 32GB, Mellanox ConnectX-2 EN/Intel 82578DM (on-board), ZFS mirror (3TBx2+L2ARC/ZIL:SSD128GB)
Develop/test environment:
VirtualBox 512MB VM, ESXi 512MB-8GB VM, Raspberry Pi, Pi2, ODROID-C1

Brent502
NewUser
NewUser
Posts: 13
Joined: 30 Oct 2012 21:50
Status: Offline

Re: Possible to configure NFS on ZFS Volume ?

Post by Brent502 »

Thank you for the Reservation/Quota advice..it work!
So what do I use the ZFS Volume for???

User avatar
daoyama
Developer
Developer
Posts: 394
Joined: 25 Aug 2012 09:28
Location: Japan
Status: Offline

Re: Possible to configure NFS on ZFS Volume ?

Post by daoyama »

Brent502 wrote:So what do I use the ZFS Volume for???
Most case is using as iSCSI extent.
NAS4Free 10.2.0.2.2115 (x64-embedded), 10.2.0.2.2258 (arm), 10.2.0.2.2258(dom0)
GIGABYTE 5YASV-RH, Celeron E3400 (Dual 2.6GHz), ECC 8GB, Intel ET/CT/82566DM (on-board), ZFS mirror (2TBx2)
ASRock E350M1/USB3, 16GB, Realtek 8111E (on-board), ZFS mirror (2TBx2)
MSI MS-9666, Core i7-860(Quad 2.8GHz/HT), 32GB, Mellanox ConnectX-2 EN/Intel 82578DM (on-board), ZFS mirror (3TBx2+L2ARC/ZIL:SSD128GB)
Develop/test environment:
VirtualBox 512MB VM, ESXi 512MB-8GB VM, Raspberry Pi, Pi2, ODROID-C1

Post Reply

Return to “ZFS (only!)”