• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

How to verify non-global solaris zone is installed

by admin

It is important that the zone is in the appropriate installed state before one can boot it up. The configured zone has to be installed with the operating environment. That is, the zone configuration has to be instantiated and packages have to be installed under the zone’s root path. The zone status should be marked as installed.

To check the current status of the zone, run the zoneadm command with the subcommand list together with the -cv switches. The following zoneadm output confirms that the zone002 has been installed.

# zoneadm list -cv 
  ID NAME             STATUS     PATH                           BRAND    IP
   0 global           running    /                              native   shared
   - zone002          installed  /zones/zone002                 native   shared

If the zone is not yet installed, the status will be indicated as configured.

# zoneadm list -cv 
  ID NAME             STATUS     PATH                           BRAND    IP
   0 global           running    /                              native   shared
   - zone002          configured /zones/zone002                 native   shared

In this case, the zone is either detached or will have to be installed by running the zoneadm -z install command.

To check whether the zone is in state detached, check the content of the zonepath. If you find the directories dev and root and SUNWdetached.xml, then you can try to attach the zone to the system

# ls -l /zones/zone002
total 12
drwxr-xr-x  12 root     sys           50 Aug 18 14:40 dev
drwxr-xr-x   2 root     root           2 Feb  4  2014 lu
drwxr-xr-x  19 root     root          21 Aug 14 15:30 root
-rw-r--r--   1 root     root     4511578 Aug 18 14:41 SUNWdetached.xml
# zoneadm -z zone002 attach -U
Getting the list of files to remove
Removing 4 files
Remove 9 of 9 packages
Installing 6103 files
Add 10 of 10 packages
Updating editable files

The file /var/sadm/system/logs/update_log within the zone contains a log of the zone update. If the zonepath is empty, then the zone needs to be installed using zoneadm -z [zone_name] install
Example:

# zoneadm -z zone002 install 
Preparing to install zone .
Creating list of files to copy from the global zone.
Copying [2552] files to the zone.
Initializing zone product registry.
Determining zone package initialization order.
Preparing to initialize [1026] packages on the zone.
Initialized [1026] packages on zone.
Zone is initialized.
The file contains a log of the zone  installation.

Once the zone is installed, the zoneadm list -cv output will indicate the zone as installed.

Filed Under: Solaris, Zones

Some more articles you might also be interested in …

  1. Solaris – Changing from iSCSI Static Discovery to SendTargets Discovery
  2. What are the Solaris process tools
  3. Solaris 11 : How to Control Allocated Bandwidth of Network Interface on Per App/User Basis
  4. What is SUID, SGID and Sticky bit ?
  5. How to Configure iSCSI targets on Solaris 10
  6. Comparing Network configuration : Solaris 10 Vs Solaris 11
  7. How to set inactivity timeouts for logins and shells in Solaris
  8. Solaris : how to truncate the wtmpx file
  9. Solaris 11 : Increasing the size of a vdisk in LDom ( with backend device as ZFS volume )
  10. Solaris 10 patching with SVM : Traditional method (non-live upgrade)

You May Also Like

Primary Sidebar

Recent Posts

  • JavaFX ComboBox: Set a value to the combo box
  • Nginx load balancing
  • nginx 504 gateway time-out
  • Images preview with ngx_http_image_filter_module

© 2022 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright