1

For example if i have a 4TB ZFS Volume, is it possible to create 3 folders and then limit each folder to, say, 2GB. If so, how?

I have googled hard and wide but to no avail - all i get is info on the 18TB license restriction.

All and any advice gladly taken.

---EDIT

After testing all the below answers worked, I'm giving my correct answer to GUI related answer as i feel its the most correct solution to the problem, however the rest are useful to read.

James Butler
  • 388
  • 1
  • 4
  • 14

3 Answers3

3

In the web GUI, navigate to Data Management -> Shares and select the necessary folder.

Under Read-Write Parameters, you can enter a quota to limit to how much space the folder can consume (Referenced Quota), or how much the folder and its snapshots, etc. can take (Quota). The normal suffixes (G,M,K) apply.

enter image description here

ewwhite
  • 197,159
  • 92
  • 443
  • 809
1

What you were looking for is the "quota" feature of zfs.

To set a 2GB quota on dir/whereever in a pool named pool:

zfs set quota=2G pool/dir/whereever

And, to check a quota:

zfs get quota pool/dir/whereever
Shane Madden
  • 114,520
  • 13
  • 181
  • 251
  • I had thought about that but wasn't sure if it was the correct solution to the problem and just assumed it would cause chaos as nexenta would throw errors when the limit was hit – James Butler Aug 23 '11 at 15:28
1

In the NMS admin panel, you can set this via going to Data Management -> Data Sets -> Folders -> Show -> -> Quota

enter image description here

This is essentially the same thing as "zfs set quota". Note the quota applies to that entire ZFS filesystem (or Folders), not just within specified folders. If you need different quotas, you'll have to use different filesystems.

churnd
  • 4,077
  • 5
  • 34
  • 42