dbzone is currently running on your server.
Which two methods would you use to safely and cleanly shut down dbzone and all of its
applications?
A.
zlogin �z dbzone halt
B.
zoneadm �z dbzone shutdown �i0
C.
zoneadm �z dbzone shutdown
D.
zoneadm �z dbzone halt
E.
zlogin dbzone shutdown �i0
Explanation:
D: zoneadm halt command halts the specified zones. halt bypasses running the
shutdown scripts inside the zone. It also removes run time resources of the zone.
E: Use: zlogin zone shutdown
to cleanly shutdown the zone by running the shutdown scripts.
Use this procedure to cleanly shut down a zone.
1. Become superuser, or assume the Primary Administrator role.
2. Log in to the zone to be shut down, for example, my-zone, and specify shutdown as the name
of the utility and init 0 as the state.
global# zlogin my-zone shutdown -y -g0 -i 0
Reference: System Administration Guide: Oracle Solaris Containers-Resource Management and
Oracle Solaris Zones, How to Use zlogin to Shut Down a Zone
Reference: man zoneadm
C & E are correct
Agree
Think C and E as zoneadm shutdown command is equivalent to shutting down to init level 0 according to zoneadm(1m) man page from Solaris 11 OS. Halt is not clean as it bypasses shutdown scripts and removes run time resources.
Correct answer is C and E
# zoneadm -z amp shutdown -i 0
-i: illegal option — i
usage: shutdown [-r [– boot_arguments]
Cleanly shut down (or reboot) the zone.
See zoneadm(1m) for valid boot arguments.
shutdown [-r [– boot_options]]
Cleanly shut down the zone (equivalent to running
/usr/sbin/init 0 in the zone). The shutdown subcommand
waits until the zone is successfully shut down; a
zoneadm halt can be used to forcibly halt the zone, if
the shutdown process takes a long time.
If -r is specified, reboot the zone. See the boot sub-
command for supported boot options
I have tried B,C and E and they work
C & E correct & tested
A is not safety
B incorrect syntax
D is not safety