user1, while in his home directory, is attempting to run the following command in his home
directory: cp bigfile verybig
The system displays the following error:
cp: cannot create verybig: Disc quota exceeded
Your initial troubleshooting shows that the df -h command indicates he is at 100% capacity. What
command would you use to increase the disk space available to the user?
A.
zfs get quota rpool/export/home/user1
B.
zfs userused@user1
C.
zfs quota=none /rpool/export/home/user1
D.
df -h | grep user1
E.
zfs set quota=none /rpool/export/home/user1
Explanation:
ZFS quotas can be set and displayed by using the zfs set and zfs get commands.
We can remove the quota restriction by setting to quota to none.
Reference: man zfs
E
Strange question, as both C and E works:
root@sol11-ai:~# zfs get quota rpool/export/home/alice
NAME PROPERTY VALUE SOURCE
rpool/export/home/alice quota none default
root@sol11-ai:~# zfs quota=5m rpool/export/home/alice
root@sol11-ai:~# zfs get quota rpool/export/home/alice
NAME PROPERTY VALUE SOURCE
rpool/export/home/alice quota 5M local
root@sol11-ai:~# zfs set quota=10m rpool/export/home/alice
root@sol11-ai:~# zfs get quota rpool/export/home/alice
NAME PROPERTY VALUE SOURCE
rpool/export/home/alice quota 10M local
However on the man pages it says u need the set word:
Example 6 Setting a Quota on a ZFS File System
The following command sets a quota of 30 GB for
pool/home/bob.
# zfs set quota=30G pool/home/bob
By the way, the dataset cannot start with /, so both is misstyped in the question!
So upon the man zfs example> [E] is correct.