Search This Blog

Friday 29 June 2018

Solaris Kernel Zone under VCS A/P cluster

Zone Configuration: 

Zone root volume is on zfs block device.Zpool is on shared disk.

-bash-4.4# zonecfg -z mprs023 export
create -b
set brand=solaris-kz
set autoboot=true
set autoshutdown=shutdown
set hostid=0x2279686c
add anet
set lower-link=net0
set configure-allowed-address=true
set link-protection=mac-nospoof
set mac-address=auto
set vlan-id=208
set id=0
end
add anet
set lower-link=net1
set configure-allowed-address=true
set link-protection=mac-nospoof
set mac-address=auto
set vlan-id=208
set id=1
end
add device
set storage=dev:/dev/zvol/dsk/mprs023-pool/rvol
set bootpri=0
set id=1
end
add capped-memory
set physical=16G
end
add virtual-cpu
set ncpus=8
end
add keysource
set raw="{base64}uGaTTZLhlWTekkc3QpKlhA=="
end



VCS Configuration (main.cf)


group mprs023-SG (
        SystemList = { mprs067 = 0, mprs069 = 1 }
        ContainerInfo = { Name = mprs023, Type = Zone, Enabled = 1 }
        AutoStartList = { mprs067, mprs069 }
        )

        Zone mprs023-zone (
                Pool = mprs023-zpool-res
                BootState = multi-user-server
                ShutdownGracePeriod = 5
                ForceAttach = 0
                AttachOptions = "-x force-takeover"
                )

        Zpool mprs023-zpool-res (
                PoolName = mprs023-pool
                AltRootPath = "/"
                ChkZFSMounts = 0
                ZoneResName = mprs023-zone
                ForceRecoverOpt = 1
                )

        mprs023-zone requires mprs023-zpool-res