Difference between revisions of "Zfs set quota"

From wikieduonline
Jump to navigation Jump to search
 
(7 intermediate revisions by one other user not shown)
Line 1: Line 1:
* Set a quota to a filesystems:  
+
{{lc}}
 +
Set a quota to a filesystems:  
 +
[[zfs set]] quota=50G YOUR_POOL/path/fs</code><ref>https://docs.oracle.com/cd/E19253-01/819-5461/gazud/index.html</ref>
 +
(no output)
  
  <code>[[zfs set quota]]=50G pool/home/bob</code><ref>https://docs.oracle.com/cd/E19253-01/819-5461/gazud/index.html</ref>
+
  [[zfs set quota]]=50G YOUR_POOL/path/fs
 +
cannot set property for 'YOUR_POOL/home/bob': size is less than current used or reserved space
  
  
 
  touch your_new_file
 
  touch your_new_file
 
  touch: cannot touch 'your_new_file': Disk quota exceeded
 
  touch: cannot touch 'your_new_file': Disk quota exceeded
 +
 
  To increase quota define a new quota bigger than previous one:
 
  To increase quota define a new quota bigger than previous one:
 
  zfs set quota=60G pool/home/bob
 
  zfs set quota=60G pool/home/bob
 
  (no output on success)
 
  (no output on success)
  
== Related commands ==
+
== Related terms ==
*<code>zfs list -o name,quota,used,avail -r /ZFSfilesystem</code>
+
* <code>zfs list -o name,quota,used,avail -r /ZFSfilesystem</code>
 +
* [[AWS Service Quotas]]
  
 
== See also ==
 
== See also ==

Latest revision as of 09:22, 11 November 2022

Set a quota to a filesystems:

zfs set quota=50G YOUR_POOL/path/fs[1]
(no output)
zfs set quota=50G YOUR_POOL/path/fs
cannot set property for 'YOUR_POOL/home/bob': size is less than current used or reserved space


touch your_new_file
touch: cannot touch 'your_new_file': Disk quota exceeded

To increase quota define a new quota bigger than previous one:
zfs set quota=60G pool/home/bob
(no output on success)

Related terms[edit]

See also[edit]

  • https://docs.oracle.com/cd/E19253-01/819-5461/gazud/index.html
  • Advertising: