Go to main content

Creating and Using Oracle® Solaris Zones

Exit Print View

Updated: April 2019

How to Make Temporary Changes to the Running Zone

  1. Become a zone administrator.

    For more information, see Assigning Limited Rights to Zone Administrators.

  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