Zones With ZFS
Zones With ZFS
Zones With ZFS
First, you need a virtual device for ZFS. Normally this would be raw disk (or raw
disk slice, if you prefer). However, for testing/demonstration, I'll create a regular
file (this takes a few minutes):
# mkfile 5g /ForZones
4m12.95s
Now I create a "ZFS Storage Pool" for one or more ZFS filesystems:
# zpool create zonepool /ForZone
# zpool list
NAME
SIZE
USED
Zonepool
4.97G
32.5K
AVAIL
4.97G
CAP HEALTH
0% ONLINE
ALTROOT
STATE
ONLINE
ONLINE
0
Note that /zone1 is not in /etc/vfstab. Mounting is done automatically at boot time
by ZFS:
# grep /zone1 /etc/vfstab
#
If you want to allow the filesystem to be managed inside the zone, use the zfs
zoned=on option when creating or modifying the filesystem.
sys
sys
STATUS
running
PATH
/
1/108