Which option assigns a zpool to a non-global zone, and …

You are creating a non-global zone on your system.
Which option assigns a zpool to a non-global zone, and gives the zone administrator permission to create zfs
file system in that zpool?

You are creating a non-global zone on your system.
Which option assigns a zpool to a non-global zone, and gives the zone administrator permission to create zfs
file system in that zpool?

A.
While creating the non-global zone, make the following entry: add deviceset match=/dev/rdsk/
c4t0d0endBoot the zone and log in the zone as root. Create the zpool: zpool create pool2 c4t0d0In the nonglobal zone, root can now create ZFS file system in the pool2 zpool

B.
In the global zone, create the zpool: global# zpool create pool2 c4t1d0While creating the no-global zone,
make the following entry: add datasetset name=pool2endadd fsset dir=pool1set special=pool1set
type=zfspool1endBoot the zone, log in the zone as root, and create the zfs file system in the pool2 zpool.

C.
In the global zone, create the zpool:global#zpool create pool2 c4t1d0While creating the global zone, make
the following entry: add datasetset name=pool2endBoot the zone, log in to the zone as root and create the
zfs file systems in the pool2 zpool.

D.
In the global zone, create the zpool and the ZFS file systems that you want to use in the non-global zone:
global#zpool create pool2 c4t1d0global#zfs create pool2/dataWhile creating the non-global zone, make the
following entry for each ZFS file system that you want to make available in the zone: add fsset dir=/dataset
special=pool2/dataset type=zfsend

E.
Create the zpool in the global zone: global#zpool create pool2 c4t1d0Boot the non-global zone, log in to the
zone as root, and issue this command to delegate ZFS permissions to root: non-global zone# zfs allow root
create , destroy, mount pool2Log in to the non-global zone create ZFS file systems in the pool2 zpool.

Explanation:
You can add a ZFS file system to a non-global zone by using the zonecfg command’s add fs subcommand.
In the following example, a ZFS file system is added to a non-global zone by a global zone administrator from
the global zone:
# zonecfg -z zion
zonecfg:zion> add fs
zonecfg:zion:fs> set type=zfs
zonecfg:zion:fs> set special=tank/zone/zion
zonecfg:zion:fs> set dir=/export/shared
zonecfg:zion:fs> end



Leave a Reply 1

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


Stoyan Stoyanov

Stoyan Stoyanov

Answer is C
D is adding/delegating ZFS DATASET