IPB
>  Man Pages > Unix > Solaris 10 11/06 > Section 1M > zoneadm man page

zoneadm man page

Section 1M - Solaris 10 11/06 Man Pages

Other operating system man pages available here


Advanced Search

Hopefully, this page is exactly what you are looking for, but if not, you can always find further assistance on Unix/Linux Forum!





System Administration Commands                        zoneadm(1M)



NAME
     zoneadm - administer zones

SYNOPSIS
     zoneadm -z zonename subcommand [subcommand_options]

     zoneadm [-z zonename] list [list_options]

DESCRIPTION
     The zoneadm utility is used to administer  system  zones.  A
     zone  is  an application container that is maintained by the
     operating system runtime.

SECURITY
     Once a process has been placed in a zone other than zone  0,
     the process or any of its children cannot change zones.

OPTIONS
     The following options are supported:

     -z zonename     String identifier for a zone.



SUBCOMMANDS
     Subcommands which can result in destructive actions or  loss
     of work have a -F flag to force the action. If input is from
     a terminal device, the user is prompted if such a command is
     given  without  the -F flag; otherwise, if such a command is
     given without the -F flag, the action is disallowed, with  a
     diagnostic message written to standard error. If a zone ins-
     tallation or uninstallation is interrupted, the zone is left
     in  the incomplete state. Use uninstall to reset such a zone
     back to the configured state.

     The following subcommands are supported:

     attach [-F]

         The  attach  subcommand  takes  a  zone  that  has  been
         detached  from  one system and attaches the zone on to a
         new system. Therefore, the detach subcommand must be run
         before  the  "attach"  can take place. Once you have the
         new zone in the configured state, use the attach subcom-
         mand  to set up the zone root instead of installing. The
         -F option can  be  used  to  force  the  zone  into  the
         "installed" state with no validation. This option should
         be used with care since it can  leave  the  zone  in  an
         unsupportable state if it was moved from a source system
         to a target system that is unable to properly  host  the
         zone.




SunOS 5.10          Last change: 22 Aug 2006                    1






System Administration Commands                        zoneadm(1M)



         The zone being attached must first be  configured  using
         the zonecfg (see zonecfg(1M)) command.

         Use the following command to attach a zone:

         # zoneadm -z my-zone attach




     boot [boot_options]

         Boot (or activate) the specified zones.

         The following boot_options are supported:


         -s       Boots only to milestone  svc:/milestone/single-
                  user:default.  This  milestone is equivalent to
                  init level s. See svc.startd(1M) and init(1M).




     clone [-m method] method_params

         Copy an installed and configured zone.  This  subcommand
         is an alternative to installing the zone.

         -m method               Use     method      for cloning.
                                 Currently,    the   only   valid
                                 method for  cloning  is  "copy".
                                 The  parameter  for copy cloning
                                 is  the  name  of  the  zone  to
                                 clone.




         The source zone must be halted  before  this  subcommand
         can be used.


     detach

         Detach the specified zone. Detaching a zone is the first
         step  in  moving  a zone from one system to another. The
         full procedure to migrate a zone is  that  the  zone  is
         detached,  the  zonepath  directory  is moved to the new
         host, and then the zone is attached  on  the  new  host.
         Once  the zone is detached, it is left in the configured
         state. If you try to install or clone  to  a  configured



SunOS 5.10          Last change: 22 Aug 2006                    2






System Administration Commands                        zoneadm(1M)



         zone  that  has been detached, you will receive an error
         message and the install or clone subcommand will not  be
         allowed to proceed.

         Use the following command to detach a zone:

         # zoneadm -z my-zone detach


         The source zone must be halted  before  this  subcommand
         can be used.



     halt

         Halt the specified  zones.  halt  bypasses  running  the
         shutdown  scripts  inside  the zone. It also removes run
         time resources of the zone.

         Use:

         zlogin zone shutdown

         to cleanly shutdown the zone  by  running  the  shutdown
         scripts.



     help [subcommand]

         Display  general  help.  If  you   specify   subcommand,
         displays help on subcommand.



     install

         Install the specified zone on the system.  This  subcom-
         mand  automatically attempts to verify first. It refuses
         to install if the verify step fails. See the verify sub-
         command.



     list [list_options]

         Display the name of the current zones, or the  specified
         zone if indicated.

         By default, all running zones are  listed.  If  you  use
         this  subcommand with the zoneadm -z zonename option, it



SunOS 5.10          Last change: 22 Aug 2006                    3






System Administration Commands                        zoneadm(1M)



         lists only the specified zone, regardless of its  state.
         In this case, the -i and -c options are disallowed.

         The following list_options are supported:


         -c       Display all configured zones.




         -i       Expand the display to all installed zones.



         -p       Request machine parsable output.

                  The -v and -p options are  mutually  exclusive.
                  If  neither  -v  nor  -p is used, just the zone
                  name is listed.



         -v       Display  verbose  information,  including  zone
                  name,  id,  current  state,  root directory and
                  options.

                  The -v and -p options are  mutually  exclusive.
                  If  neither  -v  nor  -p is used, just the zone
                  name is listed.



     move new_zonepath

         Move the zonepath to  new_zonepath.  The  zone  must  be
         halted   before   this   subcommand  can  be  used.  The
         new_zonepath must be a local file system and normal res-
         trictions for zonepath apply.



     ready

         Prepares a zone for running applications  but  does  not
         start any user processes in the zone.



     reboot

         Restart the zones. This is equivalent  to  a  halt  boot



SunOS 5.10          Last change: 22 Aug 2006                    4






System Administration Commands                        zoneadm(1M)



         sequence.  This  subcommand fails if the specified zones
         are not active.



     uninstall [-F]

         Uninstall the specified zone from the system.  Use  this
         subcommand  with  caution.  It  removes all of the files
         under the zonepath of the zone in question. You can  use
         the -F flag to force the action.



     verify

         Check to make sure the configuration  of  the  specified
         zone  can  safely be installed on the machine. Following
         is a break-down of the checks by resource/property type:


         zonepath

             zonepath and its  parent  directory  exist  and  are
             owned by root with appropriate modes . The appropri-
             ate modes are that zonepath is 700,  its  parent  is
             not  group  or world-writable and so forth. zonepath
             is not over an NFS mount.  A  sub-directory  of  the
             zonepath named "root" does not exist.

             If zonepath does not  exist,  the  verify  does  not
             fail,  but  merely  warns  that a subsequent install
             will attempt to create it with proper permissions. A
             verify subsequent to that might fail should anything
             go wrong.

             zonepath cannot be a symbolic link.




         fs

             Any fs resources have their type value  checked.  An
             error  is  reported  if  the  value  is one of proc,
             mntfs, autofs, cachefs, or  nfs  or  the  filesystem
             does   not   have  an  associated  mount  binary  at
             /usr/lib/fs/<fstype>/mount.

             It is an error for the directory to  be  a  relative
             path.




SunOS 5.10          Last change: 22 Aug 2006                    5






System Administration Commands                        zoneadm(1M)



             It is an error for the path specified by raw to be a
             relative  path  or  if there is no fsck binary for a
             given filesystem type at  /usr/lib/fs/<fstype>/fsck.
             It  is  also an error if a corresponding fsck binary
             exists but a raw path is not specified.



         net

             All physical network interfaces exist.  All  network
             address resources are one of:


               o  a valid IPv4 address,  optionally  followed  by
                  "/" and a prefix length;

               o  a valid IPv6 address, which must be followed by
                  "/" and a prefix length;

               o  a host name which resolves to an IPv4 address.

             Note that hostnames that resolve to  IPv6  addresses
             are not supported.



         rctl

             It also verifies that any defined  resource  control
             values  are valid on the current machine. This means
             that the privilege level is privileged, the limit is
             lower  than  the currently defined system value, and
             that the defined action agrees with the actions that
             are valid for the given resource control.



EXIT STATUS
     The following exit values are returned:

     0        Successful completion.



     1        An error occurred.



     2        Invalid usage.





SunOS 5.10          Last change: 22 Aug 2006                    6






System Administration Commands                        zoneadm(1M)



ATTRIBUTES
     See attributes(5) for descriptions of the  following  attri-
     butes:

     ____________________________________________________________
    |       ATTRIBUTE TYPE        |       ATTRIBUTE VALUE       |
    |_____________________________|_____________________________|
    | Availability                | SUNWzoneu                   |
    |_____________________________|_____________________________|
    | Interface Stability         | Evolving                    |
    |_____________________________|_____________________________|


SEE ALSO
     svcs(1), zlogin(1), zonename(1), svcadm(1M),  svc.startd(1M)
     and  init(1M),  svc.startd(1M),  zonecfg(1M), attributes(5),
     smf(5), zones(5)

NOTES
     The zones(5) service is managed by  the  service  management
     facility, smf(5), under the service identifier:

     svc:/system/zones:default

     Administrative actions on this service,  such  as  enabling,
     disabling,  or  requesting  restart,  can be performed using
     svcadm(1M). The service's status can be  queried  using  the
     svcs(1) command.

     The act of installing a new non-global zone is a fresh  ins-
     tallation  of  the Solaris operating system. A new installa-
     tion of Solaris must not require interaction with  the  user
     (that is, it must be "hands off"). Because of this, packages
     installed in the global zone and all non-global zones cannot
     contain  request  scripts (see pkgask(1M)). If a package did
     have a request script, then the  creation  of  a  non-global
     zone  could not be done without user intervention. Any pack-
     age that contains a request script is added  to  the  global
     zone only. See pkgadd(1M).
















SunOS 5.10          Last change: 22 Aug 2006                    7





Man(1) output converted with man2html and wrapped by fishsponge

This page was generated on Wed Sep 12 11:26:52 GMT 2007

Your favourite pages:

No pages logged yet.
Trying to save cookie...

Top 10 most popular pages:

sqlite3 man page (5334 hits)
(openSUSE 10.2)

svn man page (5209 hits)
(FreeBSD 6.2)

adv_cap_autoneg man page (4870 hits)
(Solaris 10 11_06)

CPAN man page (4607 hits)
(Suse Linux 10.1)

ssh man page (4342 hits)
(Suse Linux 10.1)

ssh-socks5-proxy-connect man page (2884 hits)
(Solaris 10 11_06)

netcat man page (2717 hits)
(Suse Linux 10.1)

pprosetup man page (2492 hits)
(Solaris 10 11_06)

startproc man page (2471 hits)
(Suse Linux 10.1)

signal man page (2408 hits)
(Suse Linux 10.1)

Useful Links

Go Back

Visitor Statistics


Valid XHTML 1.0 Transitional     Valid CSS!

Partners: Cambridge Plus :: Pyrenees Prices and Terms and Conditions :: Circuit Design, Bedfordshire :: <Link Available>
Unix Man Pages / Linux Man Pages :: HiFi Forum :: SIP VoIP Phone & Provider Reviews :: UNIX/Linux Forum Archives

More info on advertising on Unix/Linux Forum