Creating and Using Oracle® Solaris Zones

Exit Print View

Updated: May 2015
 
 

How to Make Temporary Changes to the Running Zone

  1. Become an administrator.

    For more information, see Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.2 .

  2. Make a configuration change, such as adding a disk.
    # zonecfg -z zone1 -r 'add device; set match=/dev/rdsk/c1t3d0*;end; \
            add device; set match=/dev/dsk/c1t3d0*; end;'
       zone1: Checking: Adding device match=/dev/rdsk/c1t3d0*
       zone1: Checking: Adding device match=/dev/dsk/c1t3d0*
       zone1: Applying the changes 
  3. When you no longer need the disk you added, return the zone to the persistent configuration.
    # zoneadm -z zone1 apply
       zone 'zonename': Checking: Removing device match=/dev/rdsk/c1t3d0*
       zone 'zonename': Checking: Removing device match=/dev/dsk/c1t3d0*
       zone 'zonename': Applying changes