nerdexam
Oracle

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…

Managing Storage

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

How the community answered

(50 responses)
  • A
    2% (1)
  • C
    12% (6)
  • D
    76% (38)
  • E
    6% (3)
  • F
    4% (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 if zfs recv -d were used - the -d flag 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]; a zfs recv of 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

#ZFS snapshots#zfs send/recv#Storage pools#Dataset hierarchy

Community Discussion

No community discussion yet for this question.

Full 1Z0-822 Practice