• 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

Solaris 11.2 : Adding new resources to a running zone online

by admin

Solaris 11.2 provides a supported way to add new resources to a running zone online. Prior to this version, a reboot of the non-global zone was required to make the changes effective. The post describes an example of adding a raw disk device online to a non-global zone.

Example:
1. Check the Solaris OS version.

# uname -a
SunOS test 5.11 11.2 sun4v sparc SUNW,T5240

2. List the zones available on the system. In our example we will be adding disk resource to the zone – zone01

# zoneadm list -cv
  ID NAME             STATUS      PATH                         BRAND      IP
   0 global           running     /                            solaris    shared
   1 zone01           running     /zones/zone01                    solaris    shared

3. Verify the availability of the disk being assigned to the zone.

# ls -l /dev/dsk/c1d2s0
lrwxrwxrwx   1 root     root          62 Jan  4 17:14 /dev/dsk/c1d2s0 -> ../../devices/virtual-devices@100/channel-devices@200/disk@2:a

4. Start modifying the zone configuration. Assign the disk to the zone – zone01.

# zonecfg -z zone01
zonecfg:zone01> add device
zonecfg:zone01:device>  set match=/dev/dsk/c1d2s0
zonecfg:zone01:device> set match=/dev/rdsk/c1d2s0
zonecfg:zone01:device> end
zonecfg:zone01> commit
zonecfg:zone01> exit

5. If you check the /dev/rdsk path in the zone, currently you will not find any disk available. This is because we have not yet applied the changes to the non-globa zone.

# zlogin zone01 ls -l /dev/rdsk
total 0

6. Apply the changes to the zone.

# zoneadm -z zone01 apply
zone 'zone01': Checking: Removing net physical=net0
zone 'zone01': Checking: Adding net physical=net0
zone 'zone01': Checking: Adding device match=/dev/rdsk/c1d2s0
zone 'zone01': Applying the changes

7. Verify the new disk under /dev/rdsk directory :

# zlogin zone01 ls -l /dev/rdsk
total 0
crw-------   1 root     sys      264, 16 Jan  4 18:29 c1d2s0

Filed Under: Solaris 11, Zones

Some more articles you might also be interested in …

  1. Solaris ZFS : How to Create and Manage Mirrored Storage Pools
  2. How to Import Zpool and Mount of BE When Booted From Alternate Device in Solaris 11
  3. How to find the space consumed by ZFS snapshots
  4. How to delegate NTP service to non-global zone in Solaris
  5. Solaris ZFS : How to Offline / Online / Detach / Replace device in a storage pool
  6. How to Configure Integrated Load Balancer (ILB) in Solaris 11
  7. Understanding the sysconfig utility in Solaris 11
  8. How to configure rsyslog on Solaris 11.1 to send messages to a remote host using TCP
  9. How to configure link aggregation in Solaris 11
  10. How To Use ‘zpool split’ to Split rpool in solaris 11 (SPARC)

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