What will be created in the pool bpool as a result of this operation?

Consider the following ZFS configuration:

You have created snapshots of the home directories which are as follows:

You have another storage pool named bpool on the same system. You use the following
command to store the snapshots in this pool:
# zfs send rpool/export/[email protected] | zfs recv -F [email protected]
What will be created in the pool bpool as a result of this operation?
[email protected]

Consider the following ZFS configuration:

You have created snapshots of the home directories which are as follows:

You have another storage pool named bpool on the same system. You use the following
command to store the snapshots in this pool:
# zfs send rpool/export/[email protected] | zfs recv -F [email protected]
What will be created in the pool bpool as a result of this operation?
[email protected]

A.
bpool/export/home/ bpool/export/home/curly

B.
bpool/export/home/ bpool/export/home/curly bpool/export/[email protected]

C.
bpool/export/home/ bpool/export/home/curly [email protected]

D.
bpool/curly bpool/[email protected]

E.
bpool/curly

F.
bpool/curly

Explanation:
* zfs receive

Syntax: zfs receive [-vnF ] filesystem|volume|snapshot
Parameter –F
-F Force a rollback of the filesystem to the most recent snapshot before performing the receive operation.
* The zfs receive command creates a snapshot whose contents are specified in the stream that is
provided on standard input. If a full stream is received, a new file system is created as well. You
can send ZFS snapshot data and receive ZFS snapshot data and file systems with these
commands.



Leave a Reply 4

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


Mir

Mir

A option is correct, because home contain home directory as well as curly directory. I go with A option.

Sandis

Sandis

A is not correct, because no export/home/ subdirs created during recv.
recv creates snapshot [email protected] and folder curly under /bpool
I do not see correct answers 🙁

root@solaris:~# zpool list
NAME SIZE ALLOC FREE CAP DEDUP HEALTH ALTROOT
rpool 199G 4.75G 194G 2% 1.00x ONLINE –
root@solaris:~# zfs list
NAME USED AVAIL REFER MOUNTPOINT
rpool 4.81G 191G 4.64M /rpool
rpool/ROOT 2.77G 191G 31K legacy
rpool/ROOT/solaris 2.77G 191G 2.46G /
rpool/ROOT/solaris/var 307M 191G 306M /var
rpool/VARSHARE 2.52M 191G 2.43M /var/share
rpool/VARSHARE/pkg 63K 191G 32K /var/share/pkg
rpool/VARSHARE/pkg/repositories 31K 191G 31K /var/share/pkg/repositories
rpool/VARSHARE/zones 31K 191G 31K /system/zones
rpool/data 31K 2.00G 31K /data
rpool/dump 1.01G 191G 1000M –
rpool/export 134K 191G 32K /export
rpool/export/home 102K 191G 33K /export/home
rpool/export/home/admin 34K 191G 34K /export/home/admin
rpool/export/home/curly 35K 191G 35K /export/home/curly
rpool/swap 1.03G 191G 1.00G –
root@solaris:~#
root@solaris:~# zpool create bpool c1t3d0
root@solaris:~# zfs snapshot -r rpool/export/[email protected]
root@solaris:~# zpool list
NAME SIZE ALLOC FREE CAP DEDUP HEALTH ALTROOT
bpool 15.9G 85K 15.9G 0% 1.00x ONLINE –
rpool 199G 4.75G 194G 2% 1.00x ONLINE –
root@solaris:~# zfs list -t all
NAME USED AVAIL REFER MOUNTPOINT
bpool 85K 15.6G 31K /bpool
rpool 4.81G 191G 4.64M /rpool
rpool/ROOT 2.77G 191G 31K legacy
rpool/ROOT/solaris 2.77G 191G 2.46G /
rpool/ROOT/solaris@install 7.99M – 2.34G –
rpool/ROOT/solaris/var 307M 191G 306M /var
rpool/ROOT/solaris/var@install 1.67M – 305M –
rpool/VARSHARE 2.52M 191G 2.43M /var/share
rpool/VARSHARE/pkg 63K 191G 32K /var/share/pkg
rpool/VARSHARE/pkg/repositories 31K 191G 31K /var/share/pkg/repositories
rpool/VARSHARE/zones 31K 191G 31K /system/zones
rpool/data 31K 2.00G 31K /data
rpool/dump 1.01G 191G 1000M –
rpool/export 134K 191G 32K /export
rpool/export/home 102K 191G 33K /export/home
rpool/export/[email protected] 0 – 33K –
rpool/export/home/admin 34K 191G 34K /export/home/admin
rpool/export/home/[email protected] 0 – 34K –
rpool/export/home/curly 35K 191G 35K /export/home/curly
rpool/export/home/[email protected] 0 – 35K –
rpool/swap 1.03G 191G 1.00G –
root@solaris:~# ls -la /bpool/
total 24
drwxr-xr-x 2 root root 2 Nov 18 15:02 .
drwxr-xr-x 26 root root 29 Nov 18 15:02 ..
root@solaris:~#
root@solaris:~# zfs send rpool/export/[email protected] | zfs recv -F [email protected]
root@solaris:~# zfs list -t all
NAME USED AVAIL REFER MOUNTPOINT
bpool 91.5K 15.6G 33K /bpool
[email protected] 0 – 33K –
rpool 4.81G 191G 4.64M /rpool
rpool/ROOT 2.77G 191G 31K legacy
rpool/ROOT/solaris 2.77G 191G 2.46G /
rpool/ROOT/solaris@install 7.99M – 2.34G –
rpool/ROOT/solaris/var 307M 191G 306M /var
rpool/ROOT/solaris/var@install 1.67M – 305M –
rpool/VARSHARE 2.52M 191G 2.43M /var/share
rpool/VARSHARE/pkg 63K 191G 32K /var/share/pkg
rpool/VARSHARE/pkg/repositories 31K 191G 31K /var/share/pkg/repositories
rpool/VARSHARE/zones 31K 191G 31K /system/zones
rpool/data 31K 2.00G 31K /data
rpool/dump 1.01G 191G 1000M –
rpool/export 134K 191G 32K /export
rpool/export/home 102K 191G 33K /export/home
rpool/export/[email protected] 0 – 33K –
rpool/export/home/admin 34K 191G 34K /export/home/admin
rpool/export/home/[email protected] 0 – 34K –
rpool/export/home/curly 35K 191G 35K /export/home/curly
rpool/export/home/[email protected] 0 – 35K –
rpool/swap 1.03G 191G 1.00G –
root@solaris:~# ls -la /bpool/
total 30
drwxr-xr-x 4 root root 4 Nov 18 15:00 .
drwxr-xr-x 26 root root 29 Nov 18 15:03 ..
drwxr-xr-x 2 root root 2 Jul 9 19:32 admin
drwxr-xr-x 2 root root 2 Nov 18 15:00 curly
root@solaris:~#