which will be a read writeable copy of the /data file system, while minimizing the amount of total disk space used in pool1?

The current ZFS configuration on your server is:
pool1 124K 3.91G 32K /pool1
pool1/data 31K 3.91G 31K /data
You need to create a new file system named /data2. /data2 will be a copy of the /data file system.
You need to conserve disk space on this server whenever possible.
Which option should you choose to create /data2, which will be a read writeable copy of the /data
file system, while minimizing the amount of total disk space used in pool1?

The current ZFS configuration on your server is:
pool1 124K 3.91G 32K /pool1
pool1/data 31K 3.91G 31K /data
You need to create a new file system named /data2. /data2 will be a copy of the /data file system.
You need to conserve disk space on this server whenever possible.
Which option should you choose to create /data2, which will be a read writeable copy of the /data
file system, while minimizing the amount of total disk space used in pool1?

A.
zfs set mountpoint=/data2 compression=on pool1/data2

B.
zfs snapshot pool1/data@nowzfs set mountpoint=/data2,comptession=on pool1/data@now

C.
zfs create snapshot pool1/data@nowzfs send pool1/data@now | zfs recv pool1/data2

D.
zfs create snapshot pool1/data@nowzfs clone -o mountpoint=/data2 pool1/data@now
pool1/data2

E.
zfs snapshot pool1/data@nowzfs clone -o mountpoint=/data2 -ocompression=on
pool1/data@now pool1/data2

F.
zfs snapshot pool1/data@nowzfs clone -o mountpoint=/data2 pool1/data@now pool1/data2

Explanation:
zfs snapshot [-r] [-o property=value] …
filesystem@snapname|volume@snapname
Creates a snapshot with the given name. All previous modifications by successful system calls to
the file system are part of the snapshot
zfs clone [-p] [-o property=value] … snapshot filesystem|volume
Creates a clone of the given snapshot.
Note:
Because snapshots are fast and low overhead, they can be used extensively without great

concern for system performance or disk use .
With ZFS you can not only create snapshot but create a clone of a snapshot.
A clone is a writable volume or file system whose initial contents are the same as the dataset from
which it was created. As with snapshots, creating a clone is nearly instantaneous, and initially
consumes no additional disk space. In addition, you can snapshot a clone.
A clone is a writable volume or file system whose initial contents are the same as the original
dataset. As with snapshots, creating a clone is nearly instantaneous, and initially consumes no
additional space.
Clones can only be created from a snapshot. When a snapshot is cloned, it creates an implicit
dependency between the parent and child.
Reference: man zfs



Leave a Reply 2

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