InterviewSolution
| 1. |
What Is The Difference Between Quota And Reservation? |
Answer»
Example: Consider a ZFS pool (data pool) of size 10 GB. Setting a reservation of 5 GB on zfs file system fs1 will reserve 5 GB for fs1 in the pool and no other dataset can use that space. But fs1 can use more than 5 GB if there is space in the pool. # zfs set reservation=5g data pool/fs1 Similarly, when we set a quota of 5 GB on fs1, it cannot use space more than 5 GB from the pool. But it’s not reserved for fs1. It means that any other dataset can use a space of 8GB out of 10 GB even if the quota for fs1 is 5GB. # zfs set quota=5g data pool/fs1 Setting both the properties on the dataset makes fs1 to use only 5 GB from the pool and no other dataset can use this 5 GB reserved for fs1. Example: Consider a ZFS pool (data pool) of size 10 GB. Setting a reservation of 5 GB on zfs file system fs1 will reserve 5 GB for fs1 in the pool and no other dataset can use that space. But fs1 can use more than 5 GB if there is space in the pool. # zfs set reservation=5g data pool/fs1 Similarly, when we set a quota of 5 GB on fs1, it cannot use space more than 5 GB from the pool. But it’s not reserved for fs1. It means that any other dataset can use a space of 8GB out of 10 GB even if the quota for fs1 is 5GB. # zfs set quota=5g data pool/fs1 Setting both the properties on the dataset makes fs1 to use only 5 GB from the pool and no other dataset can use this 5 GB reserved for fs1. |
|