How do I set disk reservation on a dataset in solaris zfs?
-
# zfs set reservation=
# zfs set reservation=1GB test_pool/fs1/data
Check:
# zfs get reservation test_pool/fs1/data NAME PROPERTY VALUE SOURCE test_pool/fs1/data reservation 1G local
A ZFS reservation represents an allocation of space from the pool that is guaranteed to be available to a dataset. The space must be available in the pool for you to be able to reserve it for a dataset.
NOTE: reservations are not cumulative. If you have set a reservation to 5GB and then set it again to 2GB, it will set the reservation to 2GB not 7GB).
You will see a difference in the output of "zfs list" when reservations are set:
Before reservation:
# zfs list test_pool 262K 1.95G 21K /test_pool test_pool/export 18K 1.95G 18K /export/zfs test_pool/fs1 57K 1.95G 21K /test_pool/fs1 test_pool/fs1/admin 18K 1.95G 18K /test_pool/fs1/admin test_pool/fs1/data 18K 1.95G 18K /test_pool/fs1/data test_pool/fs2 18K 1.95G 18K /test_pool/fs2 After reservation: # zfs list test_pool 1.00G 976M 21K /test_pool test_pool/export 18K 976M 18K /export/zfs test_pool/fs1 1.00G 976M 21K /test_pool/fs1 test_pool/fs1/admin 18K 976M 18K /test_pool/fs1/admin test_pool/fs1/data 18K 1.95G 18K /test_pool/fs1/data test_pool/fs2 18K 976M 18K /test_pool/fs2
© Lightnetics 2024