Important Update: Cohesity Products Knowledge Base Articles


All Cohesity Knowledge Base Articles are now managed via the Cohesity Support Portal: https://support.cohesity.com/. The Knowledge Base articles available here will not reflect the latest information or may no longer be accessible.

How to configure VCS 5.0MP3 Mount Agent to mount ZFS filesystems in Solaris 10 local zones?

Article: 100020942
Last Published: 2022-02-22
Ratings: 0 0
Product(s): InfoScale & Storage Foundation

Problem

How to configure VCS 5.0MP3 Mount Agent to mount ZFS filesystems in Solaris 10 local zones?

 

Solution

1. Create the zpool and the filesystem
# zpool create -f ora11g_pool c1t8d0s2
# zfs create ora11g_pool/vol01
 
2. The following step is important for the ZFS filesystem to be controlled by VCS. Setting the legacy property prevents ZFS from automatically mounting and managing this file system.
# zfs set mountpoint=legacy ora11g_pool/vol01
# zfs list
NAME        USED AVAIL REFER MOUNTPOINT
ora11g_pool 113K 16.7G 24.5K //ora11g_pool
ora11g_pool/vol01 26.5K 16.7G 26.5K legacy
 
3. Now update the zone configuration to include this dataset
# zonecfg -z ora11g_zone
>add dataset
dataset>set name=ora11g_pool/vol01
 
4. Now add a VCS resource for the mount and the zpool
Mount zfs_mnt_vol01 (
     Critical= 0
     MountPoint= "/vol01"
     BlockDevice= "ora11g_pool/vol01"
     FSType= zfs
     FsckOpt= "-n"
     ContainerName= ora11g_zone
)
..
Zpool zpool_ora11g_pool (
     Critical= 0
     PoolName= ora11g_pool
     ZoneResName= ora11g_zone_res
)
 
5. Create the resource dependency as shown below.
zone require zpool
zfs_mnt require zone
 

 

Was this content helpful?