Updated 22 March 2010
Linux Logo

Associate a Zone to a Resource Pool


Description:
  • This procedure describes two ways to associate a resource pool to a zone:
    • temporary
    • permanent
Prerequisites:
  • Must be on logged on to global zone as root.
  • The resource pool must exist.
  • The resource facility must be enable and running
Notes:
  • Resource pools cannot be created, modified, assigned or deleted unless pool facilities is enabled.
  • You can bind a multiple zones to a single pool. You cannot bind multiple pools to a single zone.
References:

Step Action Description
1a # /usr/sbin/poolbind -p <pool name> -i zoneid <zone name or list>
  Use /usr/sbin/poolbind to temporarily bind an exising pool to a zone.
global# poolbind -p work1-pool -i zoneid workzone1 
Notes:
  • Each zoneid can be specified as either a zone name or a numerical zone ID from the zone list generated by /usr/sbin/zoneadm list -vi on the global zone.
  • Multiple list zone ids or names can be specified after the zoneid parameter an will bind the list to that single pool.
  • zoneid can be a zone name or its zone ID number from /usr/sbin/zoneadm list -vi output.
  • A bind created by using poolbind will disappear if the global zone is rebooted.
  • The resource pool will not take affect until the zone is rebooted.
or
1b # zonecfg -z <zone name>
zonecfg:workzone1> set pool=<pool name>
zonecfg:workzone1> verify
zonecfg:workzone1> exit
  Use /usr/sbin/zonecfg to permanently assoiciate an exiting pool to an existing zone using the set pool option.
global# zonecfg -z workzone3
zonecfg:workzone1> set pool=work3-pool
zonecfg:workzone1> verify
zonecfg:workzone1> exit
global#

Verify the zone configuration has been updated by using zonecfg -z <zonename> info. This will display the updated configuration with the pool assignment displayed.

global# zonecfg -z workzone3 info
zonepath: /zones/workzone3
autoboot: true
pool: work3-pool
inherit-pkg-dir:
        dir: /lib
inherit-pkg-dir:
        dir: /platform
inherit-pkg-dir:
        dir: /sbin
inherit-pkg-dir:
        dir: /usr
inherit-pkg-dir:
        dir: /opt/sfw
net:
        address: 192.168.3.44/24
        physical: bge0
global# 
2 Reboot Zones Use zoneadm with the reboot option to reboot the zone for the new pool to take affect.
# zoneadm -z <zone name> reboot
 
global# zoneadm -z workzone1 reboot
global#
global# zonecfg -z workzone2 reboot 
global# 
global# zonecfg -z workzone3 reboot 
global# 
global# zonecfg -z workzone4 reboot 
global# 
Click for more info