Solaris 11 usful commands
root@edus007:~# beadm list
BE Active Mountpoint Space Policy Created
-- ------ ---------- ----- ------ -------
solaris - - 36.08M static 2012-11-09 12:48
solaris-1 - - 699.78M static 2012-11-09 15:27
solaris-2 - - 700.16M static 2012-11-09 16:29
solaris-3 - - 700.18M static 2012-11-09 17:13
solaris-4 - - 22.08M static 2012-11-09 22:28
solaris-5 NR / 10.74G static 2012-11-10 00:56
root@edus007:/zpool# pkg update
No updates available for this image.
Planning linked: 0/4 done; 1 working: zone:dubus004vm
Linked image 'zone:dubus004vm' output:
| No updates available for this image.
`
Planning linked: 1/4 done; 1 working: zone:dubus001vm
Linked image 'zone:dubus001vm' output:
| No updates available for this image.
`
Planning linked: 2/4 done; 1 working: zone:dubus003vm
Linked image 'zone:dubus003vm' output:
| No updates available for this image.
`
Planning linked: 3/4 done; 1 working: zone:dubus002vm
Linked image 'zone:dubus002vm' output:
| No updates available for this image.
`
Planning linked: 4/4 done
root@edus007:/zpool# pkg list -u
pkg: no packages have newer versions available
root@edus007:/zpool# pkg info -r system/zones
Name: system/zones
Summary: Solaris Zones configuration and administration
Description: The Solaris Zones partitioning technology is used to virtualize
operating system services and provide an isolated, secure,
lightweight, and high performance environment for running
applications. A zone is a virtualized operating system
environment created within a single instance of the operating
system.
Category: System/Core
State: Installed
Publisher: solaris
Version: 0.5.11
Build Release: 5.11
Branch: 0.175.1.0.0.24.2
Packaging Date: September 19, 2012 06:53:03 PM
Size: 3.50 MB
FMRI: pkg://solaris/system/zones@0.5.11,5.11-0.175.1.0.0.24.2:20120919T185303Z
root@edus007:/zpool# zfs destroy zpool/dubus008vm
cannot destroy 'zpool/dubus008vm': filesystem has children
use '-r' to destroy the following datasets:
zpool/dubus008vm/rpool/ROOT
zpool/dubus008vm/rpool
root@edus007:/zpool#
Delete Zone:
root@edus007:/zpool# zonecfg -z dubus006vm delete -F
or
root@edus007:/zpool# zonecfg -z dubus006vm delete
Uninstall Zone:
root@edus007:/zpool# zoneadm -z dubus006vm uninstall -F
reboot zone:
root@edus007:/zpool# zoneadm -z dubus006vm reboot
BE Active Mountpoint Space Policy Created
-- ------ ---------- ----- ------ -------
solaris - - 36.08M static 2012-11-09 12:48
solaris-1 - - 699.78M static 2012-11-09 15:27
solaris-2 - - 700.16M static 2012-11-09 16:29
solaris-3 - - 700.18M static 2012-11-09 17:13
solaris-4 - - 22.08M static 2012-11-09 22:28
solaris-5 NR / 10.74G static 2012-11-10 00:56
root@edus007:/zpool# pkg update
No updates available for this image.
Planning linked: 0/4 done; 1 working: zone:dubus004vm
Linked image 'zone:dubus004vm' output:
| No updates available for this image.
`
Planning linked: 1/4 done; 1 working: zone:dubus001vm
Linked image 'zone:dubus001vm' output:
| No updates available for this image.
`
Planning linked: 2/4 done; 1 working: zone:dubus003vm
Linked image 'zone:dubus003vm' output:
| No updates available for this image.
`
Planning linked: 3/4 done; 1 working: zone:dubus002vm
Linked image 'zone:dubus002vm' output:
| No updates available for this image.
`
Planning linked: 4/4 done
root@edus007:/zpool# pkg list -u
pkg: no packages have newer versions available
root@edus007:/zpool# pkg info -r system/zones
Name: system/zones
Summary: Solaris Zones configuration and administration
Description: The Solaris Zones partitioning technology is used to virtualize
operating system services and provide an isolated, secure,
lightweight, and high performance environment for running
applications. A zone is a virtualized operating system
environment created within a single instance of the operating
system.
Category: System/Core
State: Installed
Publisher: solaris
Version: 0.5.11
Build Release: 5.11
Branch: 0.175.1.0.0.24.2
Packaging Date: September 19, 2012 06:53:03 PM
Size: 3.50 MB
FMRI: pkg://solaris/system/zones@0.5.11,5.11-0.175.1.0.0.24.2:20120919T185303Z
root@edus007:/zpool# zfs destroy zpool/dubus008vm
cannot destroy 'zpool/dubus008vm': filesystem has children
use '-r' to destroy the following datasets:
zpool/dubus008vm/rpool/ROOT
zpool/dubus008vm/rpool
root@edus007:/zpool#
Delete Zone:
root@edus007:/zpool# zonecfg -z dubus006vm delete -F
or
root@edus007:/zpool# zonecfg -z dubus006vm delete
Uninstall Zone:
root@edus007:/zpool# zoneadm -z dubus006vm uninstall -F
reboot zone:
root@edus007:/zpool# zoneadm -z dubus006vm reboot
Comments