JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Oracle Solaris 11.1 Administration: Oracle Solaris Zones, Oracle Solaris 10 Zones, and Resource Management     Oracle Solaris 11.1 Information Library
search filter icon
search icon

Document Information

Preface

Part I Oracle Solaris Resource Management

1.  Introduction to Resource Management

2.  Projects and Tasks (Overview)

3.  Administering Projects and Tasks

4.  Extended Accounting (Overview)

5.  Administering Extended Accounting (Tasks)

6.  Resource Controls (Overview)

7.  Administering Resource Controls (Tasks)

8.  Fair Share Scheduler (Overview)

9.  Administering the Fair Share Scheduler (Tasks)

10.  Physical Memory Control Using the Resource Capping Daemon (Overview)

11.  Administering the Resource Capping Daemon (Tasks)

12.  Resource Pools (Overview)

13.  Creating and Administering Resource Pools (Tasks)

14.  Resource Management Configuration Example

Part II Oracle Solaris Zones

15.  Introduction to Oracle Solaris Zones

16.  Non-Global Zone Configuration (Overview)

17.  Planning and Configuring Non-Global Zones (Tasks)

18.  About Installing, Shutting Down, Halting, Uninstalling, and Cloning Non-Global Zones (Overview)

19.  Installing, Booting, Shutting Down, Halting, Uninstalling, and Cloning Non-Global Zones (Tasks)

20.  Non-Global Zone Login (Overview)

21.  Logging In to Non-Global Zones (Tasks)

22.  About Zone Migrations and the zonep2vchk Tool

23.  Migrating Oracle Solaris Systems and Migrating Non-Global Zones (Tasks)

24.  About Automatic Installation and Packages on an Oracle Solaris 11.1 System With Zones Installed

25.  Oracle Solaris Zones Administration (Overview)

26.  Administering Oracle Solaris Zones (Tasks)

Using the ppriv Utility

How to List Oracle Solaris Privileges in the Global Zone

How to List the Non-Global Zone's Privilege Set

How to List a Non-Global Zone's Privilege Set With Verbose Output

Using the zonestat Utility in a Non-Global Zone

How to Use the zonestat Utility to Display a Summary of CPU and Memory Utilization

How to Use the zonestat Utility to Report on the Default pset

Using zonestat to Report Total and High Utilization

How to Obtain Network Bandwidth Utilization for Exclusive-IP Zones

Reporting Per-Zone fstype Statistics for all Zones

How to Use the -z Option to Monitor Activity in Specific Zones

How to Display Per-Zone fstype Statistics for all Zones

Using DTrace in a Non-Global Zone

How to Use DTrace

Checking the Status of SMF Services in a Non-Global Zone

How to Check the Status of SMF Services From the Command Line

How to Check the Status of SMF Services From Within a Zone

Mounting File Systems in Running Non-Global Zones

How to Use LOFS to Mount a File System

How to Delegate a ZFS Dataset to a Non-Global Zone

Adding Non-Global Zone Access to Specific File Systems in the Global Zone

How to Add Access to CD or DVD Media in a Non-Global Zone

Using IP Network Multipathing on an Oracle Solaris System With Zones Installed

How to Use IP Network Multipathing in Exclusive-IP Non-Global Zones

How to Extend IP Network Multipathing Functionality to Shared-IP Non-Global Zones

Administering Data-Links in Exclusive-IP Non-Global Zones

How to Use dladm show-linkprop

How to Use dladm to Assign Temporary Data-Links

How to Use dladm reset-linkprop

Using the Fair Share Scheduler on an Oracle Solaris System With Zones Installed

How to Set FSS Shares in the Global Zone Using the prctl Command

How to Change the zone.cpu-shares Value in a Zone Dynamically

Using Rights Profiles in Zone Administration

How to Assign the Zone Management Profile

Backing Up an Oracle Solaris System With Installed Zones

How to Use ZFSsend to Perform Backups

How to Print a Copy of a Zone Configuration

Recreating a Non-Global Zone

How to Recreate an Individual Non-Global Zone

27.  Configuring and Administering Immutable Zones

28.  Troubleshooting Miscellaneous Oracle Solaris Zones Problems

Part III Oracle Solaris 10 Zones

29.  Introduction to Oracle Solaris 10 Zones

30.  Assessing an Oracle Solaris 10 System and Creating an Archive

31.  (Optional) Migrating an Oracle Solaris 10 native Non-Global Zone Into an Oracle Solaris 10 Zone

32.  Configuring the solaris10 Branded Zone

33.  Installing the solaris10 Branded Zone

34.  Booting a Zone, Logging in, and Zone Migration

Glossary

Index

Mounting File Systems in Running Non-Global Zones

You can mount file systems in a running non-global zone. The following procedures are covered.

How to Use LOFS to Mount a File System

You can share a file system between the global zone and non-global zones by using LOFS mounts. This procedure uses the zonecfg command to add an LOFS mount of the global zone /export/datafiles file system to the my-zone configuration. This example does not customize the mount options.

You must be the global administrator or a user in the global zone with the Zone Security rights profile to perform this procedure.

  1. Become root or assume an equivalent role.
  2. Use the zonecfg command.
    global# zonecfg -z my-zone
  3. Add a file system to the configuration.
    zonecfg:my-zone> add fs
  4. Set the mount point for the file system, /datafiles in my-zone.
    zonecfg:my-zone:fs> set dir=/datafiles
  5. Specify that /export/datafiles in the global zone is to be mounted as /datafiles in my-zone.
    zonecfg:my-zone:fs> set special=/export/datafiles
  6. Set the file system type.
    zonecfg:my-zone:fs> set type=lofs
  7. End the specification.
    zonecfg:my-zone:fs> end
  8. Verify and commit the configuration.
    zonecfg:my-zone> verify
    zonecfg:my-zone> commit
Temporary Mounts

You can add LOFS file system mounts from the global zone without rebooting the non-global zone:

global# mount -F lofs /export/datafiles /export/my-zone/root/datafiles

To make this mount occur each time the zone boots, the zone's configuration must be modified using the zonecfg command.

How to Delegate a ZFS Dataset to a Non-Global Zone

Use this procedure to delegate a ZFS dataset to a non-global zone.

You must be the global administrator or a user granted the appropriate authorizations in the global zone to perform this procedure.

  1. Become root or assume an equivalent role.
  2. From the global zone, create a new ZFS file system named fs2 on an existing ZFS pool named poolA:
    global# zfs create poolA/fs2
  3. (Optional) Set the mountpoint property for the poolA/fs2 file system to /fs-del/fs2.
    global# zfs set mountpoint=/fs-del/fs2 poolA/fs2

    Setting the mountpoint is not required. If the mountpoint property is not specified, the dataset is mounted at /alias within the zone by default. Non-default values for the mountpoint and the canmount properties alter this behavior, as described in the zfs(1M) man page.

  4. Verify that the source of the mountpoint property for this file system is now local.
    global# zfs get mountpoint poolA/fs2
    NAME       PROPERTY    VALUE        SOURCE
    poolA/fs2  mountpoint  /fs-del/fs2  local
  5. Delegate the poolA/fs2 file system or specify an aliased dataset:
    • Delegate the poolA/fs2 file system to the zone:
      # zonecfg -z my-zone
      zonecfg:my-zone> add dataset
      zonecfg:my-zone:dataset> set name=poolA/fs2
      zonecfg:my-zone:dataset> end
    • Specify an aliased dataset:
      # zonecfg -z my-zone
      zonecfg:my-zone> add dataset
      zonecfg:my-zone:dataset> set name=poolA/fs2
      zonecfg:my-zone:dataset> set alias=delegated
      zonecfg:my-zone:dataset> end
  6. Reboot the zone and display the zoned property for all poolA file systems:
    global# zfs get -r zoned poolA
    NAME      PROPERTY  VALUE   SOURCE
    poolA     zoned     off     default
    poolA/fs2 zoned     on      default

    Note that the zoned property for poolA/fs2 is set to on. This ZFS file system was delegated to a non-global zone, mounted in the zone, and is under zone administrator control. ZFS uses the zoned property to indicate that a dataset has been delegated to a non-global zone at one point in time.