sun.com docs.sun.com My Sun Worldwide Sites

Previous Previous     Contents     Index     Next Next

ProcedureHow to Set zone.cpu-shares in the Global Zone

This procedure is used to persistently set shares in the global zone.

You must be the global administrator in the global zone to perform this procedure.

  1. Become superuser, or assume the Primary Administrator role.

    To create the role and assign the role to a user, see "Using the Solaris Management Tools With RBAC (Task Map)" in System Administration Guide: Basic Administration.

  2. Use the zonecfg command .

    # zonecfg -z global

  3. Set five shares for the global zone.

    zonecfg:global> set cpu-shares=5

  4. Exit zonecfg.

    zonecfg:global> exit

Using the zonecfg Command to Revert or Remove a Zone Configuration

Use the zonecfg command described in zonecfg(1M) to revert a zone's configuration or to delete a zone configuration.

ProcedureHow to Revert a Zone Configuration

While configuring a zone with the zonecfg utility, use the revert subcommand to undo a resource setting made to the zone configuration.

You must be the global administrator in the global zone to perform this procedure.

  1. Become superuser, or assume the Primary Administrator role.

    To create the role and assign the role to a user, see "Using the Solaris Management Tools With RBAC (Task Map)" in System Administration Guide: Basic Administration.

  2. While configuring a zone called tmp-zone, type info to view your configuration:

    zonecfg:tmp-zone> info

    The net resource segment of the configuration displays as follows:

    .
    .
    .
    fs:
            dir: /tmp
            special: swap
            type: tmpfs
    net:
            address: 192.168.0.1
            physical: eri0
    device
            match: /dev/pts/*
    .
    .
    .

  3. Remove the net address:

    zonecfg:tmp-zone> remove net address=192.168.0.1

  4. Verify that the net entry has been removed.

    zonecfg:tmp-zone> info

    .
    .
    .
    fs:
            dir: /tmp
            special: swap
            type: tmpfs
    device
            match: /dev/pts/*
    .
    .
    .

  5. Type revert.

    zonecfg:tmp-zone> revert

  6. Answer yes to the following question:

    Are you sure you want to revert (y/[n])? y

  7. Verify that the net address is once again present:

    zonecfg:tmp-zone> info

    .
    .
    .
    fs:
            dir: /tmp
            special: swap
            type: tmpfs
    net:
            address: 192.168.0.1
            physical: eri0
    device
            match: /dev/pts/*
    .
    .
    .

ProcedureHow to Delete a Zone Configuration

Use zonecfg with the delete subcommand to delete a zone configuration from the system.

You must be the global administrator in the global zone to perform this procedure.

  1. Become superuser, or assume the Primary Administrator role.

    To create the role and assign the role to a user, see "Using the Solaris Management Tools With RBAC (Task Map)" in System Administration Guide: Basic Administration.

  2. Delete the zone configuration for the zone a-zone by using one of the following two methods:

    • Use the -F option to force the action:

      global# zonecfg -z a-zone delete -F

    • Delete the zone interactively by answering yes to the system prompt:

      global# zonecfg -z a-zone delete
      Are you sure you want to delete zone a-zone (y/[n])? y

Previous Previous     Contents     Index     Next Next
Company Info Contact Terms of Use Privacy Copyright 1994-2007 Sun Microsystems, Inc.