Solaris 10下双机时间同步

合集下载

Solaris 10 操作系统说明书

Solaris 10 操作系统说明书

Enterprises are under tremendous pressure to do more with less, roll out new businessservices faster, fit more servers into the same space, and comply with new regulations, all while their budgets are shrinking and headcount is frozen. Can an operating system really help you address these issues and turn IT into a business advantage? The answer is yes, with the Solaris™ Operating System.The Solaris OS is the strategic platform for today’s demanding enterprise. It’s the only open operating system that has delivered proven results, running everything from mission-critical enterprise databases to high performance Web farms, from large-scale SMP systems to industry-standard x86 systems from HP, IBM, Dell, and Sun.For customers facing challenging business and technical requirements — such as lowering costs, simplifying system administration, and maintaining high service levels — the Solaris 10 OS is the ideal cross-platform choice. Its innovative, built-in features deliver break-through virtualization and utilization, high availability, advanced security, and industry leading performance to meet these stringent requirements — all at a great price.Ten things to know about the Solaris OS1. Great productThe constant demonstrated innovation within the Solaris OS pays off by delivering benefits that can save companies time, hardware costs, power and cooling, while preserving investments in software and training. In short: innovation matters, because it saves you money.2. Great priceSolaris 10 support pricing is 20% to 50% lower than equivalent support from other open OS vendors. No-cost end user licensing lowers barriers to entry, while overall efficiency lowers costs of operation.3. Open sourceThe Solaris OS code base is the foundation of the OpenSolaris™ open source community (visit ). In addition, the Solaris OS includes the leading Web 2.0 open source packages, ready to run and optimized for the over 1,000 x64 and SPARC system platforms supported by Solaris 10.4. Application compatibility — guaranteed The Solaris OS delivers binary compatibility from release to release and source compati-bility between SPARC® and x86 processors; with the Solaris Application Guarantee backing it, it’s something you can count on. And for the ultimate in conversion ease, use Solaris 8 and Solaris 9 Containers on Solaris 10, a “Physical to Virtual”way to quickly and easily run your existing application environ-ments on the latest SPARC systems.5. One Solaris — same features on hundreds of systemsWith a single source code base, the Solaris OS runs on x86 and SPARC and processor-based systems — and delivers the same features on all platforms. You can develop and optimize applications on the Solaris OS for use on over 1000 system models from leading vendors such as Sun, HP, IBM, and Dell.<HighlightsThe Solaris™ Operating Systemmeets and exceeds expectations for:•Virtualization: Optimize resourceutilization to deliver predictableservice levels with SolarisContainers•Networking: Attain near-wirespeedthroughput with the open, program-mable Solaris networking stack•Security: Implement a securefoundation for deploying serviceswith Solaris leading-edge securityfeatures•Availability: Increase uptime withPredictive Self Healing6. Designed to run securely all the timeThe leading-edge security features in the Solaris 10 OS help you reduce the risk of intrusions, secure your applications and data, assign the minimum set of privileges and roles needed by users and applications, and control access to data based on its sensitivity label. Solaris 10 has been inde-pendently evaluated at EAL4+ at three Protection Profiles, one of the highest levels of Common Criteria certifications.7. Designed for observabilitySolaris Dynamic Tracing (DTrace) technology makes it fast and easy to identify perform-ance bottlenecks, especially on production systems. System administrators can use this to troubleshoot even the most difficult problems in minutes instead of days; devel-opers can use it to optimize applications, with significant performance gains possible — real-world use has yielded increases up to 50 times previous performance.8. Designed for virtualizationSolaris 10 has powerful virtualization features built in at no additional charge. With Solaris Containers, you can maintain a one application per virtual server deploy-ment model while consolidating dozens or even hundreds of applications onto one server and OS instance. Share hardware resources while maintaining predictable service levels; increase utilization rates, cut system and licensing costs while gaining the ability to quickly provision and move workloads from system to system. Logical Domains and Xen-based paravirtualization support add even more virtualization flexibility.9.Designed for high availabilityPredictive Self Healing is a key feature in the Solaris 10 OS that helps you increase system and service availability. It automati-cally detects, diagnoses, and isolates system and software faults before they cause downtime. And it spans the full range from diagnosis to recovery on SPARC, AMD Opteron™ and Athlon, and Intel® Xeon®and Core Duo processor-based systems.10.Designed for performanceThe Solaris 10 OS has set over 244 priceperformance records since its release,unleashing even more power from existingapplications. Download the latest Sun™Studio compilers and developer tools tobring even greater performance to yourapplications.For business, industry, and developersThe Solaris 10 OS offers the technology, flexi-bility, and versatility you need to get down tobusiness immediately, whether you’re a smalldeveloper, a large enterprise, or anything inbetween.OpenSolaris participation and OS releaseMore than an open source project, OpenSolarisis also a community, a Web site for collabora-tion — and now provides a supported, leadingedge release every six months. The OpenSolarisrelease is available at , andSolaris source code, downloads, developertools, mailing lists, user groups, and events areall available at . OpenSolaristechnology features a single source base forSPARC and x86 platforms. It includes the keyinnovations delivered in the Solaris 10 OS, aswell as providing access to new technologiesas they’re being developed. The OpenSolarisproject and release provide a low-risk optionfor evaluating emerging OS technologies, plusan excellent opportunity to participate inshaping the direction of the Solaris OS.Development toolsDevelopers need integrated, ready-to-use toolsthat are compatible with all the environmentsin which they must deploy applications. Withthat in mind, Sun includes popular softwaretools from the free and open source world andcomplements them with access to key Sundeveloper technologies like the Sun Studiocompilers and tools and unique Solaris 10utilities such as DTrace.Solaris 10 technologiesWith the Solaris OS, you get compelling newfeatures that your applications can take advan-tage of immediately with few, if any, changes.Binary and source compatibility with previousreleases also helps make it easier to move toSolaris 10 from earlier releases of Solaris.DTraceSystem administrators, integrators, and devel-opers can use the dynamic instrumentation andtracing capabilities in the Solaris OS to see what’sreally going on in the system. Solaris DTracecan be safely used on production systems —without modifying applications. It is a powerfultool that gives a comprehensive view of theentire system, from kernel to application, eventhose running in a Java™ Virtual Machine. Thislevel of insight reduces the time for diagnosingproblems from days and weeks to minutes andhours and ultimately reduces the time to fixthose problems.Solaris ContainersSolaris Containers is an OS-level virtualizationtechnology built into the Solaris 10 OS. Usingflexible, software-defined boundaries to isolatesoftware applications and services, this break-through approach allows multiple privateexecution environments to be created withina single instance of the Solaris OS. Each envi-ronment has its own identity, including adiscrete network stack, separate from theunderlying hardware, so it behaves as if it’srunning on its own system — making consoli-dation simple, safe, and secure.By dynamically controlling application andresource priorities, businesses can define andachieve predictable service levels. Systemadministrators can easily meet changingrequirements by quickly provisioning newSolaris Containers or moving them from systemto system or disk to disk within the same systemas capacity or configuration needs change.Containers can be patched in parallel, increasing speed by up to 300% on systems with multiple containers configured. This also raises the bar on the number of contain-ers that can be realistically run on a system. Containers also offer the ability to emulate other environments, prior Solaris releases, such as Solaris 8 and Solaris 9, as well as support for Linux applications.In addition to Solaris Containers, Sun also offers Logical Domains (LDoms), a hardware partitioning technology that allows multiple instances of the Solaris OS to run on a single Sun CoolThreads™ server.Solaris ZFSThe Solaris ZFS file system is designed from the ground up to deliver a general-purpose file system that spans from the desktop to the datacenter. Anyone who has ever lost important files, run out of space on a partition, spent weekends adding new storage to servers, tried to grow or shrink a file system, or experienced data corruption knows the limitations of tradi-tional file systems and volume managers. Solaris ZFS addresses these challenges efficiently and with minimal manual intervention.Predictive Self HealingPredictive Self Healing is an innovative capability in the Solaris 10 OS that automatically diagnoses, isolates, and helps you recover from many hardware and application faults. As a result, business-critical applications and essential system services can continue uninterrupted in the event of software failures, major hardware component failures, and even software config-uration problems.• Solaris Fault Manager continuously monitorsdata relating to hardware and softwareerrors. It automatically and silently detectsand diagnoses the underlying problem andcan automatically take the faulty componentoffline on SPARC, Intel Xeon, and AMD Opteronprocessor based systems. Easy-to-understanddiagnostic messages link to articles in Sun’sknowledge base to help clearly guide admin-istrators through corrective tasks requiringhuman intervention.• Solaris Service Manager (SMF) creates astandardized control mechanism for applica-tion services by turning them into first-classobjects that administrators can observe andmanage in a uniform way. These servicescan automatically be restarted if they’reaccidentally terminated by an administrator,fail as the result of a software programmingerror, or interrupted by an underlyinghardware problem.PerformanceOptimizing performance and efficiency inSolaris 10 is the result of many factors: under-lying technologies, system configuration andutilization, tools, applications, and systemtuning. An enhanced networking stack mini-mizes latency and offers improved networkperformance for most applications out ofthe box.With DTrace, you can delve deeply into today’scomplex systems when troubleshooting systemicproblems or diagnosing performance bottlenecks— in real time and on the fly. Additional built-in technologies that help deliver increasedapplication performance include:• High-performance networking stack• Filesystem performance• Tools and libraries• Multiple page-size support (MPSS)• Memory placement optimization (MPO)SecuritySecurity is more than a mix of technologies;it’s an ongoing discipline. Sun understandsthis and continues its 20-year commitment toenhancing security in the Solaris OS. SolarisUser and Process Rights Management plusSolaris Containers enable the secure hostingof hundreds of applications and multiplecustomers on the same system. Administratorscan use features such as Secure by Default tominimize and harden the Solaris OS even more.Additionally, Solaris Trusted Extensions providestrue multi-level security for the first time in acommercial-grade OS, running all your existingapplications and supported on over 1,000different system models.• Verify your system’s integrity by employingSolaris Secure Execution and file verificationfeatures• Reduce risk by granting only the privilegesneeded for users and processes• Simplify administration and increase privacyand performance by using the standards-based Solaris Cryptographic Framework• Secure your system using dynamic serviceprofiles, including a built-in, reduced-exposurenetwork services profile• Control access to data based on its sensitivitylevel by using the labeled security technologyin Solaris Trusted ExtensionsNetworkingExponential growth in Web connectivity, services,and applications is generating a critical needfor increased network performance. With theSolaris 10 OS, Sun meets current and futurenetworking challenges by significantly improvingnetwork performance without requiring changesto existing applications. The Solaris 10 OS speedsapplication performance via the Network Layer7 Cache and enhanced TCP/IP and UDP/IPperformance. The latest networking techno-logies, such as 10-Gigabit Ethernet and hardwareoff-loading, are all supported out of the box.Additionally, the Solaris 10 OS supports current IPv6 specifications, high availability, streaming, and Voice over IP (VoIP) networking through extended routing and protocol support —meeting the carrier-grade needs of a growing customer base.Platform choiceThe Solaris 10 OS is optimized for Sun and third-party systems running 64-bit SPARC, AMD, and Intel processors. This makes it possible to create horizontally and vertically scaled infra-structures and offers the flexibility to easily add compute resources. The OS runs on hardware ranging from laptops and single-board computers to datacenter and grid installations, while serving applications ranging from military command-and-control systems to telecommunications switch gear and stock trading.InteroperabilityThe Solaris 10 OS provides interoperability from the desktop to the datacenter across a range of hardware systems, operating platforms, and technologies, making it the ideal platform for today’s heterogeneous compute environments. Not only does it interoperate with both Linux and Microsoft Windows, it also supports popular open source applications and open standards such as Universal Description, Discovery, and Integration (UDDI); Simple Object Access Protocol (SOAP); Web Services Description Language (WSDL); and eXtensible Markup Language (XML).• Source and binary compatibility for Linux applications and interoperability with Microsoft Windows systems• Includes Perl, PHP, and other widely used scripting languages• Includes Apache, Samba, sendmail, IP Filter, BIND, and other popular open source software • Supports Java application development and deployment with the Java Platform, Enterprise Edition (Java EE) and Java Platform, Standard Edition (Java SE)• Includes authentication support for LDAP-based directory servers and Kerberos-based infrastructures© 2009 Sun Microsystems, Inc. All rights reserved. Sun, Sun Microsystems, Solaris, OpenSolaris, Java , and CoolThreads are trademarks or registered trademarks of Sun Microsystems, Inc. or its subsidiaries in the United States and other countries. All SPARC trademarks are used under license and are trademarks or registered trademarks of SPARC International, Inc. in the US and other countries. Products bearing SPARC trademarks are based upon an architecture developed by Sun Microsystems, Inc. AMD, Opteron, the AMD logo, the AMD Opteron logo are trademarks or registered trademarks of Advanced Micro Devices. Intel® Xeon® is a trademark or registered trademark of Intel Corporation or its subsidiaries in the United States and other countries. Information subject to change without notice. SunWIN #420130 Lit. #SWDS12147-4 09/09 Sun Microsystems, Inc.4150 Network Circle, Santa Clara, CA 95054 USA Phone1-650-960-1300 or 1-800-555-9SUN Web 。

完美解决苹果电脑双系统时间同步问题

完美解决苹果电脑双系统时间同步问题

完美解决苹果电脑双系统时间同步自从苹果公司収布Bootcamp技术以来,苹果电脑已经完全兼容Windows操作系统,使苹果电脑不再是高端用户的最爱,普通用户也可以使用堪称世界一流硬件的苹果计算机了。

但是在苹果电脑上使用Macintosh和Windows 双操作系统时有一个问题始终困扰着我们,Macintosh操作系统和Windows 操作系统的系统时间始终不能同步。

例如:以天津为例,假设天津本地时间是下午1:00,我们启动苹果电脑迚入Windows操作系统,调整Windows操作系统的系统时间为13:00,然后重新启动苹果电脑迚入Macintosh操作系统,这时我们会収现Macintosh操作系统的系统时间是21:00;相反,如果我们首先迚入Macintosh操作系统,调整系统时间为1:00,然后重新启动苹果电脑迚入Windows操作系统,这时Windows操作系统的系统时间是上午5:00。

Windows操作系统和Macintosh 操作系统的系统时间始终不能同步并两者相差8个小时。

为什么会出现运行在苹果电脑上的Windwos操作系统和Macintosh操作系统时间不能同步的奇怪现象呢?这要从操作系统的系统时间说起。

无论是Windows操作系统还是Macintosh操作系统,操作系统的系统时间是从两个方面同步,一是通过互联网和互联网时间服务器迚行校准,二是通过从计算机本地主板硬件时钟迚行校准。

明白了操作系统系统时间的由来,我们再来看看导致苹果电脑上Windows操作系统和Macintosh操作系统时间不能同步的原因。

两个操作系统默认都是从本地计算机硬件时钟迚行校准,Macintosh操作系统把来自计算机主板硬件时钟的时间当成GMT时间来处理,即GMT+0;而Windows操作系统把来自计算机主板硬件上的时间当作使用者所在地的时区时间,以天津为例,即GMT+8。

这种Windows操作系统和Macintosh操作系统在处理时间上的不同是导致两个操作时间不能同步的真正原因。

交换机时间同步解决方案

交换机时间同步解决方案

交换机时间同步解决方案在计算机网络系统中,交换机起到连接不同设备之间的桥梁作用。

准确的时间同步对于网络运行和数据传输至关重要。

以下是一些解决方案,用于保证交换机之间的时间同步性。

1. 使用网络时间协议(Network Time Protocol,NTP): NTP是一种用于同步计算机中时间的协议。

交换机可以连接到具有精确时间源的NTP服务器,从而确保其时间与服务器同步。

NTP使用时间服务器提供的时间信息,通过网络传输到各个交换机,以保持时间同步。

2. 使用时间同步协议(Time Sync Protocol,TSP):TSP是一种专门用于同步网络设备时间的协议。

交换机可以运行TSP客户端,并连接到TSP服务器。

服务器会将准确的时间信息传输给交换机,从而确保交换机之间的时间同步。

3. 使用单一主控交换机:在某些网络环境下,可能会选择设置单一的主控交换机来管理整个网络。

这个主控交换机将提供时间同步功能,并将准确的时间信息传输给其他交换机。

其他交换机可以通过连接到主控交换机来同步时间。

4. 使用自动时间同步功能:现代交换机通常具有内置的自动时间同步功能。

管理员可以通过启用此功能,在交换机之间自动进行时间同步。

交换机将连接到时间服务器或其他时间源,以确保其时间与网络中的其他设备保持同步。

5. 使用GPS同步时间:某些高端交换机可能支持通过连接GPS接收器来同步时间。

GPS接收器可以提供高精度的时间信息,从而确保交换机的时间准确性。

需要注意的是,在实施交换机时间同步解决方案时,需要确保网络中的所有设备都参与到时间同步过程中。

同时,网络管理员还应定期检查和更新时间源,并确保解决方案持续有效。

综上所述,交换机时间同步对于网络系统的稳定运行和数据传输至关重要。

通过使用适当的时间同步解决方案,可以确保交换机之间的时间同步性,从而提高网络的可靠性和性能。

交换机时间同步对于计算机网络的运行和管理非常重要,特别是在需要准确记录和比较时间戳的应用中,如日志记录、安全审计、数据备份等。

SOLARIS10 双机系统配置

SOLARIS10 双机系统配置
以root用户登录10.71.100.165系统,执行如下命令,ping与公网相连的两个IP地址,检查网络。
#ping 10.71.100.210
#ping 10.71.100.211
如果网络不通请检查网卡及网络是否物理隔断。
11.2
本节主要介绍双机系统的配置过程,INFOX GW系统采用双机主备组网方式。
----结束
启动资源组成功后,双机系统已经运行起来,执行如下命令,可查看双机资源组状态。
root@infox01#scstat -g
执行结果:
-- Resource Groups and Resources --
Group Name Resources
Resources:infox_rgserver_ipinfox_appinfoxdg_rs datadg_rsoracle_svr oracle_lsnr
数据库和应用合设情况下,/clustershell/appora/sun_sc3.1目录下文件:
sun_sc3.1
sun_sc3.1/etc
sun_sc3.1/etc/HW.smc
sun_sc3.1/bin
sun_sc3.1/bin/gethostnames
sun_sc3.1/bin/smgw_mon_start.ksh
scrgadm -a -jinfoxdg_rs-ginfox-rg -t SUNW.HAStoragePlus:2 -x GlobalDevicePaths="infox" -x FileSystemMountPoints='/export/home/infoxshare,' -y Resource_dependencies=server_ip

配置solaris时间

配置solaris时间
NTP 定义了时间同步的机制,应用于分布式时间服务器和客户端之间的时间同步。从理 论上讲,精度可达到十亿分之一秒。
移动网络中的时间同步使用标准协议 NTP/SNTP 实现。其基本原理是由服务器广播时间 信息,客户端接受信息并通过计算逐步调整本地时间。NTP 和 SNTP 协议兼容,主要区 别在于 NTP 提供消息加密以保证安全。
前提条件
l 以 root 用户登录节点 1 和节点 2。 l 停止 M2000 和 Sybase 服务。
背景信息
l Sun Cluster 使用 NTP 来维持群集节点间的时间同步。
l 当 M2000 服务器作为网络设备的 NTP 服务器时,在修改 M2000 服务器时间的同 时,网络设备时间也会同步更新。
华为技术有限公司
文档版本 04 (2007-06-08)
M2000 高可用系统 管理员指南 (S10)
4 配置 M2000 时间(高可用系统)
# date mmddHHMMYYYY.SS
要将系统日期和时间设置为 2005-11-17 16:30:43,执行以下命令: # date 111716302005.43 Mon Nov 17 16:30:43 CST 2005
l 修改服务器时间时,请确保修改的时间未超出服务器上安装软件的许可证的有效 期,否则可能导致某些服务不可启动。
操作步骤
步骤 1 在节点 1 和节点 2 上,分别执行命令,检查系统日期和时间。 # date 如果系统日期和时间不正确,执行下面的步骤修改。
步骤 2 在主节点上执行命令,关闭群集系统。 # /usr/cluster/bin/scshutdown -g0 -y
4-2
华为技术有限公司
文档版本 04理员指南 (S10)

Solaris平台NTP Client设置方法

Solaris平台NTP Client设置方法

Solaris平台NTP Client设置方法目录一、概述 (3)二、同步方案 (3)三、Solaris平台时钟同步Client实现方法 (3)四.NTP监控 (4)一、概述本文件描述了包括DNS服务器、CEM服务器、NTP服务器、FACN、AAA 服务器等基于SUN Sloaris操作平台的NTP客户端配置信息二、同步方案1.具有公网IP的设备直接锁定公网NTP Server,私网IP设备再与该域的公网IP设备进行时钟同步,事先需做好做好私网设备同该域的公网设备的路由2.选一公网IP设备锁定公网NTP Server,其余设备再与其进行时钟同步,事先需做好私网设备同该域的公网设备的路由3.建设NTP Server,全部锁定该NTP Server,事先需做好私网设备同该域的公网设备的路由此次吉林联通分组域工程未包含NTP Server的构建,但能通过Internet与北京NTP Server进行同步;鉴于同步设备中存在私网IP,且在吉林联通分组域网内存在相应的路由设置,所以此次工程,方案二为实施方案在具体实施中,具体做法:CEM 锁公网NTP Server,FACN 锁CEM,PDSN 锁CEM或公网NTP Server三、Solaris平台时钟同步Client实现方法1.用root用户登陆,执行# cp /etc/inet/ntp.client /etc/inet/ntp.conf2.用vi编辑器对ntp.conf进行配置# vi /etc/inet/ntp.confserver 220.192.8.59 //这里220.192.8.59为NTP Server IPdriftfile /var/ntp/ntp.drift //时钟漂移记录,便于日后查看漂移LOG#multicastclient 224.0.1.1 //注释掉这条语句,其中224.0.1.1是NTP协议所占有的组播地址存盘,退出;3.创建时钟漂移记录文件“/var/ntp/ntp.drift”# touch /etc/inet/ntp.conf4.开启NTP服务,执行命令# /etc/init.d/xntpd start5.查看服务是否启动# ntpq –p6.停止NTP服务,执行命令# /etc/init.d/xntpd stop事后建议修改ntp.conf文件属性:chmod 400 /etc/inet/ntp.conf 四.NTP监控为保证时间同步的正常运作,了解NTP工作状况,需要定时对NTP Client 进行监控1.确保NTP Client与NTP Server通讯正常在NTP Server上#ping xxx.xxx.xxx.xxx(被关注的NTP Client IP 地址)在NTP Cilent上#ping xxx.xxx.xxx.xxx(被关注的NTP Server IP地址)ping包通畅,说明网络不存在故障2.在NTP Server与NTP Client上,查看NTP服务是否启动# ps -ef | grep ntp | grep -v greproot 551 550 1 10:02:03 pts/2 0:00 /usr/sbin/ntpdate -s -w 10.8.160.18 root 550 1 0 10:02:03 pts/2 0:00 /sbin/sh /etc/init.d/xntpd start若未启动,执行命令:# /etc/init.d/xntpd start3.监控NTP 工作状况已root用户登陆,执行命令:# snoop | grep -i ntpUsing device /dev/pcn (promiscuous m ode)facn1 -> xxx.xxx.xxx.xxx NTP client (Fri Apr 18 09:33:19 2003)xxx.xxx.xxx.xx -> facn1 NTP server (Fri Apr 18 09:33:20 2003)facn1 -> xxx.xxx.xxx.xxx NTP client (Fri Apr 18 09:34:23 2003)xxx.xxx.xxx.xx -> facn1 NTP server (Fri Apr 18 09:34:24 2003) 其中xxx.xxx.xxx.xxx为NTP Server IP地址。

时间同步服务器设置

时间同步服务器设置

时间同步服务器设置时间同步是一个重要的技术,它确保计算机、服务器和其他网络设备上的时钟都保持准确的时间。

在现代网络中,时间同步对于确保一致性和安全性至关重要。

本文将介绍时间同步服务器的设置过程及相关事项。

一、时间同步的重要性时间同步在计算机网络中扮演着不可或缺的角色。

它对于网络中各个设备的协同操作和数据一致性有着至关重要的影响。

以下是时间同步的几个重要方面:1. 协同操作:在一个分布式系统中,各个设备需要协同工作,确保任务的有序执行。

时间同步可以确保各个设备的操作按照正确的时间顺序进行,避免出现错误或冲突。

2. 数据一致性:在数据库和分布式存储系统中,时间戳是判断数据一致性的重要依据。

只有所有设备的时钟都同步,才能保证数据的正确排序和一致性。

3. 安全性:时间同步对于网络安全也至关重要。

许多安全协议和加密算法都依赖于准确的时间戳。

时间同步确保了安全协议的正确执行和数据的安全传输。

二、时间同步协议为了进行时间同步,常用的协议有NTP(Network Time Protocol)、SNTP(Simple Network Time Protocol)和PTP(Precision Time Protocol)等。

1. NTP(Network Time Protocol)是最常见的时间同步协议,它在广域网和局域网中被广泛应用。

NTP使用UDP协议进行通信,通过多个时间服务器进行时钟同步。

2. SNTP(Simple Network Time Protocol)是NTP的简化版本,它适用于资源有限或性能要求不高的设备。

SNTP可以通过单个时间服务器进行时间同步。

3. PTP(Precision Time Protocol)是一种高精度的时间同步协议,主要用于需要微秒级或纳秒级精度的应用。

PTP通过握手和时间戳等机制,实现高精度的时钟同步。

三、时间同步服务器的设置步骤以下是设置时间同步服务器的步骤,以NTP协议为例:1. 选择时间服务器:选择一个可信赖的时间服务器作为参考源。

解决Windows与Ubuntu双系统时间同步问题

解决Windows与Ubuntu双系统时间同步问题

解决Windows与Ubuntu双系统时间同步问题Ubuntu和Windows默认的时间管理方式不同,所以双系统发生时间错乱是正常的。

Ubuntu默认时间是把BIOS时间当成GMT+0时间,也就是世界标准时,而我国在东八区(GMT+8),所以如果你的Ubuntu位置是中国的话你系统显示的时间就是BIOS时间+8小时。

假如现在是早上8点,那么你Ubuntu会显示8点,这时BIOS中的时间是0点。

而当你切换到Windows系统时就会发生时间错乱,因为Windows会认为BIOS时间就是你的本地时间,结果就是Windows 显示时间为0点……而假如你在Windows下同步时间,恢复显示为8点,这时BIOS时间也会被Windows改写成8点,再次进入Ubuntu 时显示时间又变成了8+8=16点……解决的办法有两个,一个是让Windows使用Ubuntu的时间管理方式,就是启用UTC(世界协调时)另一个就是让Ubuntu按照Windows的方式管理时间,就是让Ubuntu禁用(世界协调时)。

个人建议第二种,因为通常Windows是主系统,不推荐对Windows进行这种修改,不过我还是都介绍一下:在Windows下启用UTC打开运行窗口(快捷键Win+R),然后输入regedit启动注册表编辑器,并找到一下目录位置:HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Control/TimeZoneInformation/添加一项类型为REG_DWORD的键值,命名为RealTimeIsUniversal,值为1然后重启后时间即回复正常。

在Ubuntu下关闭UTC这个用这个方法是我比较推荐的:按Ctrl+Alt+T调出终端,输入:sudo gedit /etc/default/rcS按Ctrl+F调出查找,找到UTC=yes这一行,改成UTC=no,保存即可,时间修改立即生效。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

软件环境:Solaris 10+Sun cluster3.1u4+SVM+Oracle 10g AS
硬件环境:2*V440+1*SE3320
下面这个是在安装Sun cluster之前完成的!系统上线以后最好采用NTP,冒然同步可能对数据产生影响!仅供学习参考!
双机相互信任关系建立完成后,需要对双机进行时钟同步校正,以保证双机时钟同步。

具体步骤如下:
查看当前主机时钟。

在校正前,必须保证作为校正标准的主机系统时钟和实际时间一致。

相关命令如下(在主机DB1上执行):
# date
修改主机时钟。

如果主机时间和实际时间不一致,必须以root用户登录,修改主机时间,相关命令如下(在主机DB1上执行):
# date mmddHHMMCCYY
注意:
(1) date命令格式说明:mm(月)dd(日)HH(小时/24时制)MM(分钟)CC(世纪减一,如21世纪则为20)YY(年),即CCYY为四位表示的年份;以上数字均为两位数,不足两位前面补零。

如“date 122014302001”表示将时间调整为2001年12月20日14时30分。

(2) 此命令平时尽量不用,系统时间变化可能带来不可预料的问题。

同步双机时钟。

solaris 10下双机时间同步需要先在两台主机上执行下面命令:
# svcs -a |grep time
disabled 13:31:24 svc:/network/daytime:dgram
disabled 13:31:24 svc:/network/daytime:stream
disabled 13:31:24 svc:/network/time:dgram
disabled 13:31:24 svc:/network/time:stream
# svcadm enable time:stream
# svcadm enable time:dgram
# svcs -a |grep time
disabled 13:31:24 svc:/network/daytime:dgram
disabled 13:31:24 svc:/network/daytime:stream
online 13:55:40 svc:/network/time:stream
online 13:55:45 svc:/network/time:dgram
如果不做上面操作,会报错:
# rdate DB1
rdate: connect: Connection refused
当修改主机系统时间和实际时间一致后,就可以用主机时钟来同步备机时钟,相关命令如下(在备机DB2上执行):
# rdate DB1
如果是现网双机要同步时间的话,可以参考下面思路,可适用的系统环境:solaris 6~10
1. 成为群集中任一节点上的超级用户。

2. 在任一节点关闭群集并将其转到OBP 提示符下。

# scshutdown -g0 -y
3. 将各个节点都引导成非群集节点。

ok boot -x
4. 在node1节点上,通过运行date 命令来设置时间。

# date HHMMSS
5. 在其他机器上,通过运行rdate 命令来使它们的时间与前面的那个节点的时间同步。

# rdate node1
6. 引导每个节点以重新启动该群集。

# reboot
7. 检验是否所有的群集节点均已做相应的更改。

在每个节点上,运行date 命令。

# date。

相关文档
最新文档