Can i reboot a zone when i logged in the zone


 
Thread Tools Search this Thread
Operating Systems Solaris Can i reboot a zone when i logged in the zone
# 1  
Old 04-23-2012
Bug Can i reboot a zone when i logged in the zone

I am curious to know if I can reboot a zone while I was inside the zone itself.
By doing so can I know what happens to the zone and what are the pros and cons.
Is it recommended or not?
Is that zone will properly shuts down;

SmilieSmilieSmilie
# 2  
Old 04-23-2012
Sure you can. That's the usual way to reboot a zone. If you are logged to the console, you'll see all the shutdown and boot messages in it.
# 3  
Old 04-23-2012
Then what is the difference between shutting down while inside a zone
or shutting down from a global zone.

Why i have this question because,
I've rebooted a zone from the zone itself, from the global zone it showed its shutting down and returned the prompt. Alternately i was checking the ping status, its continuously pinging but not shutting down.
So i thought it was not the right way and i again tried shutdown from global zone with zoneadm command. Still the non-global zone status is shutting down only.
That's why i ask is there any problem by doing so?

Last edited by srinivas1049; 04-23-2012 at 02:35 AM.. Reason: spell check
# 4  
Old 04-23-2012
If you are asking what is the difference between shutdown and reboot, then the former leave the zone halted while the latter leave the zone in the running state. Whether you initiate these commands from the global zone or not doesn't matter a lot, in any case, the command is eventually executed in the non global zone.
# 5  
Old 04-25-2012
Okay that helps. Thank you Jilliagre.
# 6  
Old 05-08-2012
i was always do zoneadm -z zone123 reboot
# 7  
Old 05-08-2012
Even that also kept me in shutting_down state.
How to overcome that.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

Solaris 11 zone has no external network access (except to Global Zone)

Hi, hoping someone can help, its been a while since I used Solaris. After creating a NGZ (non global zone), the NGZ can access the GZ (Global Zone) and the GZ can access the NGZ (using ssh, zlogin) However, the NGZ cannot access any other netwqork devices, it can't even see the default router ... (2 Replies)
Discussion started by: GazinLincoln
2 Replies

2. Solaris

Changing only time zone file not the timezone without reboot

Hello all, I just want to update the timezone file with new file to update the time, so the zone in /etc/TIMEZONE will be the same but the file it refers to will be changed, and the local time should be changed, can this take effect without rebooting Solaris 10? (9 Replies)
Discussion started by: Amr.Es
9 Replies

3. UNIX for Advanced & Expert Users

Solaris 10: I forgot to detach a zone before zpool export. Uninstall zone?

Dear all, recently, I migrated a solaris zone from one host to another. The zone was inside of a zpool. The zpool cotains two volumes. I did the following: host1: $ zlogin zone1 shutdown -y -g0 -i0 #Zone status changes from running to installed $ zpool export zone1 host2: $ zpool... (2 Replies)
Discussion started by: custos
2 Replies

4. Solaris

showing 2 different time zones in global zone and nonglobal zone

can some one help me out as it is showing 2 different time zones in global zone and nonglobal zone .In global zone it is showing in GMT while in nonglobal zone i it showing as PDT. System in running with solaris 10 (3 Replies)
Discussion started by: ravijanjanam12
3 Replies

5. Solaris

Zone failes to boot due to mount issue, dir exists in zone.

I have two physical servers, with zones that mount local storage. We were using "raw device" in the zonecfg to point to a metadevice on the global zone (it was not mounted in the global zone at any point). It failed to mount on every boot because the directory existed in the zone. I... (6 Replies)
Discussion started by: BG_JrAdmin
6 Replies

6. Solaris

how to add a default gateway in a zone of different VLAN of global zone

Hi Greetings... I have an issue in connecting the zone from outside the network and it is because of default gateway. I can ping default gateway from inside the zone and not able to ping from global zone due to different VLAN issue. If i add two different gateways and restart network services,... (2 Replies)
Discussion started by: vvpotugunta
2 Replies

7. Solaris

Strange behavior of zone after reboot

Hi All, I have Solaris-10 M4000 server with VxVM file-system and 7 zones. I rebooted the server and after that one of the zone shows me in running state, but after zlogin, it is showing no df and other output. It is also throwing lot of core dumps # uname -a SunOS tssoaq01-ztbgps17 5.10... (7 Replies)
Discussion started by: solaris_1977
7 Replies

8. Solaris

Non global zone does not reboot.

Hello. I have a problem where the non global zone does not reboot when I issue init 6 from withinit. I logon to the zone do init 6 can the see "shuttingdown on signal 15" message but nothing more happens. after 10 minutes in var adm messages there is no more information written after the... (2 Replies)
Discussion started by: vettec3
2 Replies

9. Solaris

Bind zone transfer recategorises zone file?

Hi, I have a primary/slave Bind 9 setup running on a Solaris 10 platform. Everything is hunky dorey, except for when I make a zone file change and up the serial the file that is transferred to the slave looses all its comments, and the entries are place in alphabetical order. I administer many... (1 Reply)
Discussion started by: fulhamfcboy
1 Replies
Login or Register to Ask a Question