Sponsored Content
Operating Systems Solaris Enabling time service in local zones Post 302477011 by ERahman on Friday 3rd of December 2010 04:40:27 AM
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]
 

7 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

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. 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

6. 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

7. 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
ntp-wait(1)							   User Commands						       ntp-wait(1)

NAME
ntp-wait - Wait for ntpd to stabilize the system clock SYNOPSIS
ntp-wait [-flags] [-flag [value]] [--option-name[[=| ]value]] All arguments must be options. DESCRIPTION
ntp-wait will send at most num-tries queries to ntpd(8), sleeping for secs-between-tries after each status return that says ntpd(8) has not yet produced a synchronized and stable system clock. ntp-wait will do this quietly, unless the -v flag is provided. This can be useful at boot time, to delay the boot sequence until after ntpd -g has set the time. OPTIONS
-n number, --tries=number Number of times to check ntpd. This option takes an integer number as its argument. The default number for this option is: 100 The maximum number of times we will check ntpd to see if it has been able to synchronize and stabilize the system clock. -s secs-between-tries, --sleep=secs-between-tries How long to sleep between tries. This option takes an integer number as its argument. The default secs-between-tries for this option is: 6 We will sleep for secs-between-tries after each query of ntpd that returns "the time is not yet stable". -v, --verbose Be verbose. By default, ntp-wait is silent. With this option, ntp-wait will provide status information. -?, --help Display usage information and exit. -!, --more-help Pass the extended usage information through a pager. -v [{v|c|n --version [{v|c|n}]}] Output version of program and exit. The default mode is `v', a simple version. The `c' mode will print copyright information and `n' will print the full copyright notice. EXIT STATUS
One of the following exit values will be returned: 0 (EXIT_SUCCESS) Successful program execution. 1 (EXIT_FAILURE) The operation failed or the command syntax was not valid. 70 (EX_SOFTWARE) libopts had an internal operational error. Please report it to autogen-users@lists.sourceforge.net. Thank you. AUTHORS
Harlan Stenn NOTES
This document corresponds to version 4.2.8p13 of NTP. This manual page was AutoGen-erated from the ntp-wait option definitions. ntp (4.2.8p13) 20 Feb 2019 ntp-wait(1)
All times are GMT -4. The time now is 01:51 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy