Solaris container date diference


 
Thread Tools Search this Thread
Operating Systems Solaris Solaris container date diference
# 1  
Old 04-13-2011
Solaris container date diference

Hi people,

I dont have a real problem, its also a so strange issue.

When i connect to my system from a ssh session or telnet normaly from putty and execute the command "date" its show me the correctly time in BRT format for root and all other users.

But when i connect from the global machine from zlogin or zlogin -C and execute the command "date" its show me the time on GMT format, like a date -u with a 3 hours difference from Brazil time for root and all other users on the system.

I think its not a problem because all external users connect from ssh, but i have other time/date issue on this machine and the only different thing i found is this.

Can anyone help me know why its happens?

Thanks very mutch all.

Observation: Its only happens on this container, in all others the date is OK from ssh and from console.

The commands out:

The console command out from the global machine (wrong):

root@n1grid20 # for a in `zoneadm list | tail -9`; do zlogin $a date; done
Wed Apr 13 18:43:37 BRT 2011
Wed Apr 13 18:43:37 BRT 2011
Wed Apr 13 18:43:37 BRT 2011
Wed Apr 13 18:43:37 BRT 2011
Wed Apr 13 18:43:37 BRT 2011
Wed Apr 13 18:43:37 BRT 2011
Wed Apr 13 18:43:37 BRT 2011
Wed Apr 13 21:43:37 GMT 2011
Wed Apr 13 18:43:37 BRT 2011
root@n1grid20 #

The command from a normal ssh (correctly):

-bash-3.00# date
Wednesday, April 13, 2011 06:43:53 PM BRT
-bash-3.00#

Im running a Solaris 10 10/09 on a M8K machine.
# 2  
Old 04-13-2011
Timezone is setup a different way than for other zones ?

Last edited by ctsgnb; 04-14-2011 at 11:55 AM.. Reason: no NTP
# 3  
Old 04-14-2011
Quote:
Originally Posted by ctsgnb
NTP or timezone is setup a different way than for other zones ?
A missing or wrong timezone setting is more than likely but it can't be NTP. There is a single clock shared by all zones so all zones are synchronized by design. NTP is configured in one zone only, usually the global one as non global zones haven't the privilege to set the clock (by default).
# 4  
Old 04-14-2011
The NTP configuration is the same on all the zones and others servers too:


-bash-3.00# ntpq -p
remote refid st t when poll reach delay offset disp
==============================================================================
*10.8.1.30 .GPS. 1 u 830 1024 377 2.50 0.359 0.21
+sbcpd04 10.8.1.30 2 u 191 1024 377 4.94 1.558 1.31
-bash-3.00#

10.8.1.30 is a Atomic time machine, samething like that and sbcpd04 is a secundary server.

My /etc/TIMEZONE


#
# Copyright 1992, 1999-2002 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
#ident "@(#)init.dfl 1.7 02/12/03 SMI"
#
# This file is /etc/default/init. /etc/TIMEZONE is a symlink to this file.
# This file looks like a shell script, but it is not. To maintain
# compatibility with old versions of /etc/TIMEZONE, some shell constructs
# (i.e., export commands) are allowed in this file, but are ignored.
#
# Lines of this file should be of the form VAR=value, where VAR is one of
# TZ, LANG, CMASK, or any of the LC_* environment variables. value may
# be enclosed in double quotes (") or single quotes (').
#
#####TZ=Brazil/East
#####CMASK=022
#####LC_COLLATE=en_US.ISO8859-1
#####LC_CTYPE=en_US.ISO8859-1
#####LC_MESSAGES=C
#####LC_MONETARY=en_US.ISO8859-1
#####LC_NUMERIC=en_US.ISO8859-1
#####LC_TIME=en_US.ISO8859-1
TZ=Brazil/East
CMASK=022
LC_COLLATE=en_US.ISO8859-1
LC_CTYPE=en_US.ISO8859-1
LC_MESSAGES=C
LC_MONETARY=en_US.ISO8859-1
LC_NUMERIC=en_US.ISO8859-1
LC_TIME=en_US.ISO8859-1



this is weird because when we connect via ssh its returns the date command a normal BRT time if i start the sap for example via ssh everything is normal, if we connect via the global machine console, start the sap he gets time wrong.

The file /etc/TIMEZONE is the same for all the zones.

Thanks for the answers.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Differences of Solaris zone and Solaris Container

Hi everyone! I am in dire need to know what are the differences between a solaris zone and a solaris container.. Explanations over the net are very confusing. Please help. Thanks! (8 Replies)
Discussion started by: arah
8 Replies

2. Solaris

solaris zones vs container..

kindly share what are difference b/w solaris zones and containers.... (8 Replies)
Discussion started by: Rajesh_Apple
8 Replies

3. Solaris

Memory usage in a Solaris Container

Hi All, We have a server with Solaris 10 installed. The total memory of the server is 64GB. In order to check the memory info of the server I use "top" utility that gives me total and free memory in real-time. I have also installed a Sun container (non-global zone) on top of parent operating... (4 Replies)
Discussion started by: Slayer
4 Replies

4. Solaris

Solaris 10 container graceful shutdown?

Hi, I've got a UPS connected to my Solaris 10 machine and I'm planning to run containers/zones on there. At the moment if the UPS agent sends the signal to the solaris machine to shutdown, all the apps shutdown gracefully and then the host goes down. If I setup containers for the apps, does... (9 Replies)
Discussion started by: fastexit
9 Replies

5. Solaris

Memory usage, free and used, using sar, top and vmstat in Solaris zone/container

Hi all, I have a server running an Oracle database that is part of a Solaris M5000 container. Presumably this is referred to as a zone within a cluster, not sure if I get the terminology right. Anyway, a third-party manages the zone and unfortunately is not "helpful/friendly" to assist me on... (1 Reply)
Discussion started by: newbie_01
1 Replies

6. Solaris

Monitoring services in zones with Solaris container Manager

I need to know how to Manage Solaris services (SMF) in sparse zone with Solaris container manager. I have navigated all the documentation and I have not found any clue. I installed the Sun management center (SMC) server on a server box and the agents on others. I can manage the SMF of the global... (5 Replies)
Discussion started by: ibroxy
5 Replies

7. Solaris

Solaris 6 container support

Is solaris 6 container support available ? Say, If I have a machine with Solaris 10 operating system.. Can i install Solaris 6 container on this machine, so that the machine will have Solaris 6 virtual environment... Does sun support Solaris 6 container ? Any ideas over this ? (1 Reply)
Discussion started by: shafi2all
1 Replies

8. Solaris

Solaris 8 Container Error

Log File: /var/tmp/server1.install.18730.log Source: /vmpool/tmp/server1.flar Installing: This may take several minutes... Postprocessing: This may take several minutes... Postprocess: ERROR: p2v module S40_setup_preload failed: 0 Postprocess: ERROR: Postprocessing failed. ... (0 Replies)
Discussion started by: cornsnap
0 Replies

9. Solaris

solaris 9 container on solaris 10

'Solaris 9 container' package/product is supported on Solaris 10 operating system with Solaris containers technology(including solaris zones). Using Solaris Container technology, A single physical machine can be divided into virtual servers called as containers in which user feels as if he is... (4 Replies)
Discussion started by: shafi2all
4 Replies

10. Solaris

Cant priocntl within solaris 10 non global container

Hello ! Can anybody help me with the following: my sparc server ( solaris 10 06/07) has 1 global and 4 non-global zones running we are using one of the non-global-zones for a jboss application server we want to levitate the JBOSS process within the non_global_zone with: < priocntl -s -c FX -p... (1 Reply)
Discussion started by: moofoo
1 Replies
Login or Register to Ask a Question