Enabling time service in local zones


 
Thread Tools Search this Thread
Operating Systems Solaris Enabling time service in local zones
# 1  
Old 12-02-2010
Enabling time service in local zones

Hi,

Is it possible to enable the time service in local zones?

E.g.
Code:
erahmanz1% svcs -a | grep -i time
STATE          STIME    FMRI
disabled       Sep_10   svc:/network/daytime:dgram
disabled       Sep_10   svc:/network/daytime:stream
disabled       Sep_10   svc:/network/time:dgram
disabled       Sep_10   svc:/network/time:stream

Many Thanks
# 2  
Old 12-02-2010
I guess there should be no problem with enabling those services inside zones, as they are really simple network daemons.
This User Gave Thanks to bartus11 For This Post:
# 3  
Old 12-03-2010
It appears that ntp cannot be run from a local zone:

<Apologies, you'll have to google the links - I can't post URL links as I've only made two posts including this one>

Quote:
You'll find that ntp in a non-global zone doesn't actually work. This
is because adjtime(2) is restricted to the global zone.

Quote:
On Sun 12 Feb 2006 at 05:18PM, nawir wrote:
Dear all,

I know from sol10 faq that only global zone can be as ntp server. I already tested that ntp client also work in global zone, but I fail to make ntp client work in local zone. Any idea how to sync time local zone to at least global zone or to free ntp time server

Nawir,
Zones don't each have an independent notion of time-- see the zones FAQ entry entitled "Q: Can some non-global zones have different date and/or time settings (i.e. different clocks)?"
So "zone time" is always exactly the same as "global zone time", so there is no need to run an NTP client in a zone; just run it in your global zone. One less thing to worry about.
Quote:
Q: Can some non-global zones have different date and/or time settings (i.e. different clocks)?

A: Although different zones can ’be’ in different time zones, each zone gets its date and time clock from the same source. This means that the time zone setting gets applied after the current time data is obtained from the kernel.
If you would like the ability to have different clock sources per zone, please add a call record to RFE 5033497. [August 2010]
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. Solaris

Solaris 11.2 x86 Local Zones for Oracle RAC database, intermittent Memory corruption of db

Hi, I was wondering if any Solaris fellow out there has dealt with running Solaris 11 x86 on Local Zones for Oracle RAC (which may or may not be relevant to issue), running on HP gen h/w. Every so often could be weeks between issues or some times days, there will be a memory corruption and db... (2 Replies)
Discussion started by: crossmypath
2 Replies

2. UNIX for Dummies Questions & Answers

Enabling Telnet Service for a particular User only

Hi I want to know, whether we can enable TELNET service for a particular user only while disabling it for rest of the users? If so, then how ? Please help me in this regard (0 Replies)
Discussion started by: kashifsd17
0 Replies

3. Shell Programming and Scripting

Retrieve all DNS zones (domains) from local server

Hello, I am trying to retrieve all DNS zones from the local bind server without parsing the /var/named folder, removing .db from the zone file names and the special zones files. I am looking for some kind of named, dig etc command that would retrieve all domains from the server eventually with... (2 Replies)
Discussion started by: AndyB78
2 Replies

4. AIX

Convert UTC time to local time ?

Hello, Using AIX6.1 box. I have UTC time value and need to convert it to local time value - I mean time zone and DST should be taken into consideration. I hope it could be done using shell environment - I don't want to write a program. thanks Vilius ---------- Post updated at 02:30 PM... (2 Replies)
Discussion started by: vilius
2 Replies

5. Solaris

NFS service : offline after enabling it .

Hi all, i Followed these steps & still not able to get nfs service online ???:( bash-3.2# svcs -a | grep nfs disabled 17:48:02 svc:/network/nfs/cbd:default disabled 17:48:02 svc:/network/nfs/client:default disabled 20:56:06 svc:/network/nfs/status:default offline ... (4 Replies)
Discussion started by: saurabh84g
4 Replies

6. AIX

enabling quota for the first time

Hai, I have configured user quota for the /home directry. using #chfs -a "quota = userquota" /home #chfs -a "userquota = /home/myquota.user" /home #edquota tom By entering this command a blank file comes without any entries. when I tried to add entry like follows , bad format... (1 Reply)
Discussion started by: aix_admin
1 Replies

7. UNIX for Dummies Questions & Answers

time zones

Hi all, this is my first post so I hope someone can help me. I am currently putting code into a script that is run through the cron on a unix box where the date/time is set to EDT or Eastern Daylight Time but I am in Central Standard time. The program I am adding code to runs every hour and I put... (1 Reply)
Discussion started by: ldgriess
1 Replies
Login or Register to Ask a Question