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?

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 device
set match=/dev/rdsk/c4t0d0
end
Boot the zone and log in the zone as root. Create the zpool:
zpool create pool2 c4t0d0
In the non-global zone, root can now create ZFS file system in the pool2 zpool

B.
In the global zone, create the zpool:
global# zpool create pool2 c4t1d0
While creating the no-global zone, make the following entry:
add dataset
set name=pool2
end
add fs
set dir=pool1
set special=pool1
set type=zfspool1
end
Boot 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 c4t1d0
While creating the global zone, make the following entry:
add dataset
set name=pool2
end
Boot 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 nonglobal zone:
global#zpool create pool2 c4t1d0
global#zfs create pool2/data
While creating the non-global zone, make the following entry for each ZFS file system that you
want to make available in the zone:
add fs
set dir=/data
set special=pool2/data
set type=zfs
end

E.
Create the zpool in the global zone:
global#zpool create pool2 c4t1d0
Boot 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 pool2
Log 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
Reference: Oracle Solaris ZFS Administration Guide, Adding ZFS File Systems to a Non-Global
Zone



Leave a Reply 4

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