What command would you use to increase the disk space available to the user?

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?

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



Leave a Reply 3

Your email address will not be published. Required fields are marked *


ton_adam

ton_adam

zfs set quota=none /rpool/export/home/user1 is not correct.

The leading / before the rpool is not allowed. That will result in invalid dataset name.

Correct command would be:

zfs set quota=none rpool/export/home/user1

Banchain

Banchain

I think E is the best because the question said “command that increase the disk space”

May be the answer is write wrong
(Like ton_adam explain)

Maurizio

Maurizio

E conceptually correct (but formally incorrect )

zfs set quota=none rpool/export/home/user1