1Z0-822 · Question #90
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…
The correct answer is D. bpool/curly bpool/[email protected]. Option D is correct because zfs recv without the -d flag uses only the last path component of the source dataset as the name under the destination pool. The source dataset is rpool/export/home/curly (the leaf dataset for user curly), so its last component - curly - is appended…
Question
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]
Options
- Abpool/export/home/ bpool/export/home/curly
- Bbpool/export/home/ bpool/export/home/curly bpool/export/[email protected]
- Cbpool/export/home/ bpool/export/home/curly [email protected]
- Dbpool/curly bpool/[email protected]
- Ebpool/curly
- Fbpool/curly
How the community answered
(50 responses)- A2% (1)
- C12% (6)
- D76% (38)
- E6% (3)
- F4% (2)
Explanation
Option D is correct because zfs recv without the -d flag uses only the last path component of the source dataset as the name under the destination pool. The source dataset is rpool/export/home/curly (the leaf dataset for user curly), so its last component - curly - is appended to bpool, yielding bpool/curly. The receive operation also creates the accompanying snapshot bpool/[email protected], which corresponds to the snapshot embedded in the send stream for that dataset.
Why the other options are wrong:
- A, B, C are wrong because they preserve the intermediate path components
export/home, which would only happen ifzfs recv -dwere used - the-dflag instructs ZFS to replicate the full source path (minus the pool name) under the destination. - E and F are wrong (and identical) because they omit the snapshot
bpool/[email protected]; azfs recvof a snapshot stream always creates both the dataset and its snapshot.
Memory tip: Think of -d as "directory structure preserved" - with -d, ZFS recreates the full path; without -d, only the last component is used. When in doubt, ask: "did the command use -d?" If not, strip everything but the leaf.
Topics
Community Discussion
No community discussion yet for this question.