Solaris操作系统简介
- 格式:rtf
- 大小:286.31 KB
- 文档页数:14
.Solaris 10操作系统概述1.1 Solaris 10是什么提起Solaris,在人们印象中可能是这样一个场景:在拥挤阴暗的机房里,一个笨重的Sun SPARC服务器的屏幕上滚动着神秘的字符。
除了专门的服务器管理人员,没有人知道它在做什么。
对于大多数读者来说,Solaris有一副让人难以接近的冰冷的面孔。
而且,在这冰冷的面孔背后,还有不菲的价格。
所有这些,都让人不敢接近它,于是,Solaris 成了深闺中的宠儿,神秘而娇嫩。
然而,随着Solaris 10的发布,“深闺中的宠儿”向大众走来,渴望技术人员能了解它、掌握它、使用它。
那么,Solaris到底是什么呢?简单地说,Solaris是一种操作系统。
通过计算机操作系统可以控制计算机,可以听音乐、玩游戏、上网聊天和看新闻,还可以在操作系统上开发游戏软件,搭建网站,为大家提供新闻服务。
在这个领域中,有读者熟悉的微软公司的Windows操作系统,还有被众多自由软件爱好者喜爱的Linux操作系统。
而刚刚发布的Solaris 10到底能给我们带来些什么呢?首先,Solaris 10已经改变了冰冷的面孔,换了一副招人喜爱的样子。
Solaris 10的桌面已经窗口化和菜单化。
新的Java控制台界面使人感觉更加亲近和舒适。
在这里,用户可以通过单击图标来上网浏览和发送邮件,也可以打开StarSuite7写文档和其他应用程序。
这一切和微软的Windows非常相似。
有些读者可能知道,以前的Solaris只能安装在Sun公司的SPARC平台的计算机上,是无法安装在普通用户家中的计算机的。
但是,现在的Solaris 10拥有了专门针对普通用户计算机的x86版,它支持目前的大多数台式计算机,而且其安装界面可以选择中文,一般用户也可以轻松安装。
其次,在应用软件方面,Solaris 10不再是仅仅能运行服务器端的软件,还有大量的客户端的软件可以供桌面用户选择安装。
用户可以方便地使用系统自带的浏览器软件进行上网、发送邮件和文字处理。
--Solaris 10是什么------------------提起Solaris,在人们印象中可能是这样一个场景:在拥挤阴暗的机房里,一个笨重的Sun SPARC服务器的屏幕上滚动着神秘的字符。
除了专门的服务器管理人员,没有人知道它在做什么。
对于大多数读者来说,Solaris有一副让人难以接近的冰冷的面孔。
而且,在这冰冷的面孔背后,还有不菲的价格。
所有这些,都让人不敢接近它,于是,Solaris成了深闺中的宠儿,神秘而娇嫩。
然而,随着Solaris 10的发布,“深闺中的宠儿”向大众走来,渴望技术人员能了解它、掌握它、使用它。
那么,Solaris到底是什么呢?简单地说,Solaris是一种操作系统。
通过计算机操作系统可以控制计算机,可以听音乐、玩游戏、上网聊天和看新闻,还可以在操作系统上开发游戏软件,搭建网站,为大家提供新闻服务。
在这个领域中,有读者熟悉的微软公司的Windows 操作系统,还有被众多自由软件爱好者喜爱的Linux操作系统。
而刚刚发布的Solaris 10到底能给我们带来些什么呢?首先,Solaris 10已经改变了冰冷的面孔,换了一副招人喜爱的样子。
Solaris 10的桌面已经窗口化和菜单化。
新的Java控制台界面使人感觉更加亲近和舒适。
在这里,用户可以通过单击图标来上网浏览和发送邮件,也可以打开StarSuite7写文档和其他应用程序。
这一切和微软的Windows非常相似。
有些读者可能知道,以前的Solaris只能安装在Sun公司的SPARC平台的计算机上,是无法安装在普通用户家中的计算机的。
但是,现在的Solaris 10拥有了专门针对普通用户计算机的x86版,它支持目前的大多数台式计算机,而且其安装界面可以选择中文,一般用户也可以轻松安装。
其次,在应用软件方面,Solaris 10不再是仅仅能运行服务器端的软件,还有大量的客户端的软件可以供桌面用户选择安装。
用户可以方便地使用系统自带的浏览器软件进行上网、发送邮件和文字处理。
Solaris 操作系统的备份与恢复对于UNIX 平台,一般的灾难恢复准备工作包括维护服务器配置的详细信息。
例如,在系统信息中,您需要保留用于备份和恢复的方法的打印件。
如果使用ufsdump 将操作系统备份到本地连接的磁带机上,则要保留的信息包括所有备份文件系统、文件系统的备份顺序,以及备份磁带、操作系统级别、修补程序级别、磁盘分区、文件系统布局、第三方驱动程序等信息。
Solaris 9 和10 操作系统发行版提供了一种新的安装功能,称为“ Flash 安装”。
通过Flash 安装,您可以在一个系统(称为“主系统”)上创建Solaris 操作系统的一个引用安装。
然后,可以在任意数量的系统(称为“克隆系统”,与主系统具有相同的体系结构)上复制该安装,将其作为新的安装。
虽然Flash 安装旨在克隆主计算机,但我进行了一些测试,发现Flash 安装对于灾难恢复也非常有用。
本文档介绍了我使用flar 命令备份系统,然后使用磁带上的备份恢复系统的过程。
本测试使用了磁盘系统为RSMArray 2000 的Sun Enterprise 4000 服务器,该服务器运行的是安装了最新簇修补程序的Solaris 8 操作系统。
其中有两个16 GB 的内部磁盘。
一个安装了原始操作系统,另一个用于测试操作系统的恢复。
计算机上连接了数字线性磁带(Digital Linear Tape, DLT) 7000 磁带机。
过程1. 创建归档之前,使计算机处于单用户模式。
执行此操作有两个原因:第一,虽然可以随时运行flarcreate ,但最好还是在系统不繁忙的情况下运行此命令。
第二,使用flarcreate 命令时,从归档中排除多个文件系统会遇到问题。
(可在Solaris 9 操作系统中找到一些解决此问题的修补程序。
)在单用户模式下,flarcreate 仅归档那些在mnttab 中具有条目的文件系统。
# init 0ok> boot -s2. 以超级用户身份登录。
一、solaris 10文件系统简介1. solaris 10三大文件系统UFS文件系统几乎是所有UNIX系统的基本文件系统,Solaris当然也不例外。
除此之外Solaris 10支持三种类型的文件系统,它们分别是:(1)基于网络的文件系统;基于网络的文件系统就是网络文件系统,简称NFS文件系统。
网络文件系统(NFS)版本从3升级到4。
(2)虚拟文件系统(也叫伪文件系统)。
虚拟文件系统大多数是基于内存的文件系统,但是也有部分文件系统是基于硬盘上的包括:TMPFS文件系统:使用本地内存进行读写的文件系统。
在Solaris中的默认应用为/tmp 目录LOFS文件系统:循环文件系统(lofs)可创建一个新的虚拟的原文件系统,然后用另一个路径名来存取文件PROCFS文件系统:进程文件系统(procfs)驻留在内存中,表现为/proc目录。
在此目录中活动进程号的清单,ps等命令会用到/proc目录中的信息,调试器或其他开发工具也可能通过文件系统调用来访问这些过程的地址和空间CacheFS文件系统:用来改善远程文件系统(NFS)和CD-ROM的读取速度,将读得数据缓存在CacheFS文件系统中SWAPFS文件系统:用mkfile和swap命令建立附加的交换区时,系统核心所用的文件系统(3)基于磁盘的文件系统;包括:UFS文件系统:基于BSD快速文件系统的传统UNIX文件系统是Solaris的默认文件系统。
默认启用UFS 日志记录功能。
在早期的Solaris 版本中,UFS 日志记录功能只能手动启用。
Solaris 10在运行64位Solaris内核的系统上支持多TB UFS文件系统。
以前,UFS 文件系统在64位系统和32位系统上的大小仅限于约1 TB(Tbyte)。
现在,所有UFS文件系统命令和公用程序已更新为支持多TB UFS文件系统。
HSFS文件系统:用于CD-ROM的只读文件系统PCFS文件系统:PC文件系统,可以读写DOS型式磁盘的数据,如FAT32UDF文件系统:DVD文件系统2 solaris 10 UFS文件系统的结构下图显示了一个从根(/) 文件系统以及sbin、etc子目录开始的本地文件系统。
河南科技上OBP (Open Boot PROM )是S un 公司在其S PARC 体系的计算机上提供的引导、初始化配置的工具,可以理解为普通PC 的BIOS 的增强版,我们可以通过它来调整启动设备和启动参数,检测硬件故障,完成某些必须在操作系统启动之前完成的配置等功能。
Solaris 是S un 公司推出的主要商用UNIX 系统之一,公认的Oracle 数据库开发和部署首选平台,对J2EE 架构提供了完美支持,自S olaris9以来,不仅提供了对X86体系的支持,而且Solaris 系统免费,特别是S olaris10的发布,带来了诸多突破性技术,如Solaris Containers 、动态跟踪(DTrace )、预测性自我修复和ZFS 动态文件系统等。
JumpStart 是一种安装方式,对应交互式安装,JumpS tart 安装方法使用所创建的配置文件来自动安装或升级多个系统,不需要手动配置任何参数,例如,语言,时区,IP ,磁盘分区等参数。
通常情况下和网络安装没什么关系,只是在使用网络安装的时候,通常通过网络启动安装程序,使用JumpStart 安装方式完成自动安装。
一、Wanboot 网络安装原理OBP 不仅支持局域网方式的安装,而且能够支持广域网方式的安装。
Wanbo ot 安装方法可以使用HTTP 在广域网(WAN )上引导和安装软件。
可以通过大型的公共网络将Solaris OS 安装在基于S PARC 的系统上,同时可以使用带有安全功能的选项保证数据的保密性和安装映像的完整性。
Wanboot 使用服务器、配置文件、公共网关接口(CGI )程序以及安装文件的组合来安装基于SPARC 的远程客户机。
图1显示了Wanboot 安装的基本事件序列,在图1中,基于S PARC 的客户机通过WAN 从Web 服务器和安装服务器检索配置数据和安装文件。
其基本过程是:客户机通过在OBP 中设置网络接口变量及从OBP 命令行中获得的引导参数值,从网络引导。
Introducing Predictive Self-HealingThe Solaris™ 10 Operating System (OS) introduces a new architecture for building anddeploying systems and services capable of Predictive Self-Healing. This technology enables Sun™ systems to accurately predict component failures and mitigate many serious problems —before they actually occur. Solaris Fault Manager and Solaris Service Manager are the two main components of Predictive Self-Healing. Solaris Fault Manager receives data relating to hardware and software errors and automatically diagnoses the underlying problem. Once diagnosed, Solaris Fault Manager automatically responds by offlining faulty components. Solaris Service Manager makes services, rather than processes, into first-class citizens, permitting automatic self-healing. Base Solaris services have service descriptions which include full dependency information for start, stop, and restart; applications can easily be converted to run under Solaris Service Manager.Maximizing availabilityPredictive Self-Healing is designed to maximize the availability of the system and application services by automatically diagnosing, isolating, and recovering from faults. This helps to not only reduce hardware failures but also to reduce the impact of application failures,leading to increased system and application availability. •Reducing Hardware Failures—A self-healing system automatically diagnoses problems, and the results can be used to trigger auto-mated reactions such as dynamically taking a CPU,regions of memory, and I/O devices off line before these components can cause system failures. Solaris Fault Manager isolates and disables faulty components, and helps ensure continuous service even before admin-istrators know there is a problem. In addition, remote service agents can retrieve informa-tion from Sun that is vital to diagnosing the underlying root cause of the failure. •Reducing the Impact of Service Failures—If an application service should fail, the built-in service restart mechanism in the Solaris 10 OS automatically restarts the application or service. This mechanism also extends into Sun Cluster software failover environments for even higher availability.Automatic diagnosis and recoveryfrom failuresWith Solaris Fault Manager, the system auto-matically diagnoses faulty components, a function that in some cases can reduce analysis time from days to seconds. Once diagnosed, the system can quickly take corrective action and automatically restore application services. This powerful technology ensures that business-critical applications and essential system services can continue uninterrupted in the event of software failures, major hardware component failures, and even software misconfiguration problems.<Highlights•Maximized system and serviceavailability through predictivediagnosis and isolation of faultycomponents•Automatic diagnosis of failedcomponents and automaticrestart of failed services inmilliseconds•Simplified administration modelfor managing services, reducingcost of ownership•Fast and easy repair of problemswith links to knowledge articles•Scalable architecture can berapidly upgraded and adapted tonew problems — without requiringdowntimeCustomers can now deliver higher levels of availability and application services while minimizing downtime and associated adminis-trative costs. Reduced downtime can potentially save companies $10,000 to $6 million per hour for mission-critical environments.Simplified administrationSolaris Service Manager reduces complexity by abstracting problem diagnosis and services in a manner that is transparent to users and applications. It simplifies common administrative tasks, speeds system boot, and significantly reduces human errors associated with system failures that can lead to service downtime and inefficient management of the system.Admin-istrative tasks such as enabling and disabling services and changing properties are simplified and secure, with an undo capability to revert changes. In addition, service information is stored in a central repository,making the systems easier to manage and maintain. Self-healing technology can also help improve the productivity of support staff. They can now spend much less time investigating and resolving issues,resulting in a higher ratio of supported systems per individual. Plus, a self-healing system can lead to reduced administration costs — systems that perform many complex tasks without user intervention require staff with less expertise, experience, and salary.Fast and easy repairSolaris Fault Manager issues easy-to-understand diagnosis messages that link to knowledge articles at /msg. By providing system administrators with unique event IDs, they can access detailed information in knowledge articles, which describe what failure occurred and what the system did to fix it. These knowl-edge articles guide system administrators through any tasks that require human interven-tion, including repairs, and explain predicted or detected problems using clear language and links to repair procedures and documentation —all of which greatly reduces the complexity of repairing the system.Scalable and flexible architectureThe scalable architecture of Sun’s Predictive Self-Healing technology can be rapidly evolved to new problems and updated as new diagnosis and availability technologies are added to the system. Most future updates can be dynamically loaded and unloaded from the system while it is running and can be upgraded on the fly without requiring downtime or losing previous diagnosis data.ConclusionWith businesses operating around the clock and demanding uninterrupted service, service availability is of paramount importance. Predictive Self-Healing delivers the next generation of availability technology today, including features that keep systems and services running and simple for administrators. Over time, a rapidly evolving ecosystem of self-healing components can help provide consistent, easy-to-use, and always-available Sun systems.©2005 Sun Microsystems, Inc. All rights reserved. Sun, Sun Microsystems, the Sun logo, Solaris, the Solaris logo, and The Network is the Computer are trademarks or registered trademarks of Sun Microsystems, Inc. in theUnited States and other countries. Information subject to change without notice.11/05Sun Microsystems, Inc.4150 Network Circle, Santa Clara, CA 95054 USA Phone 1-650-960-1300 or 1-800-555-9SUN Web 2。
一、solaris 10文件系统简介1. solaris 10三大文件系统UFS文件系统几乎是所有UNIX系统的基本文件系统,Solaris当然也不例外。
除此之外Solaris 10支持三种类型的文件系统,它们分别是:(1)基于网络的文件系统;基于网络的文件系统就是网络文件系统,简称NFS文件系统。
网络文件系统(NFS)版本从3升级到4。
(2)虚拟文件系统(也叫伪文件系统)。
虚拟文件系统大多数是基于内存的文件系统,但是也有部分文件系统是基于硬盘上的包括:TMPFS文件系统:使用本地内存进行读写的文件系统。
在Solaris中的默认应用为/tmp 目录LOFS文件系统:循环文件系统(lofs)可创建一个新的虚拟的原文件系统,然后用另一个路径名来存取文件PROCFS文件系统:进程文件系统(procfs)驻留在内存中,表现为/proc目录。
在此目录中活动进程号的清单,ps等命令会用到/proc目录中的信息,调试器或其他开发工具也可能通过文件系统调用来访问这些过程的地址和空间CacheFS文件系统:用来改善远程文件系统(NFS)和CD-ROM的读取速度,将读得数据缓存在CacheFS文件系统中SWAPFS文件系统:用mkfile和swap命令建立附加的交换区时,系统核心所用的文件系统(3)基于磁盘的文件系统;包括:UFS文件系统:基于BSD快速文件系统的传统UNIX文件系统是Solaris的默认文件系统。
默认启用UFS 日志记录功能。
在早期的Solaris 版本中,UFS 日志记录功能只能手动启用。
Solaris 10在运行64位Solaris内核的系统上支持多TB UFS文件系统。
以前,UFS 文件系统在64位系统和32位系统上的大小仅限于约1 TB(Tbyte)。
现在,所有UFS文件系统命令和公用程序已更新为支持多TB UFS文件系统。
HSFS文件系统:用于CD-ROM的只读文件系统PCFS文件系统:PC文件系统,可以读写DOS型式磁盘的数据,如FAT32UDF文件系统:DVD文件系统2 solaris 10 UFS文件系统的结构下图显示了一个从根(/) 文件系统以及sbin、etc子目录开始的本地文件系统。
Solaris简介张海莉2005-12-27目录1.Solaris 的基础篇 (3)1.1 Solaris 的发展史 (3)1.2 Solaris 的主要特性 (3)1.3 Solaris 的基本结构 (4)1.4 Solaris 的基本常识 (4)1.5 Solaris 的常用命令 (6)1.5.1 一般常用命令 (6)1.5.2 用于目录操作的命令 (9)1.5.3 用于文件操作的命令 (9)1.5.4 有关状态和信息查询的命令 (14)1.5.5 用于网络和通信的命令 (16)1.5.6 Solaris 的系统编辑器 (19)1.5.6.1 全屏幕编辑工具vi (19)2.Solaris 的核心技术 (22)2.1 Solaris 的文件系统 (22)2.1.1 普通文件 (22)2.1.2 目录文件 (23)2.1.3 特殊文件 (23)2.2 Solaris 的进程调度及进程存储 (24)2.2.1 进程的基本概念 (24)2.2.2 UNIX进程调度与管理 (25)2.2.3 Solaris 的进程通信 (27)2.3 Solaris 的系统设备管理 (30)2.3.1设备管理模块 (30)2.3.2设备分类管理 (31)2.3.3 I/O传输控制技术 (31)2.3.4 UNIX设备管理体系结构 (33)2.3.5 UNIX的逻辑设备 (34)3.Solaris 的技术扩展 (35)3.1 Solaris 的系统多线程环境 (35)3.1.1 线程的基本概念 (35)3.2 网络结构及Internet技术 (38)3.2.1 网络系统 (38)3.2.2 OSI参考模型和网络协议 (39)3.2.3 UNIX网络系统结构及使用协议 (40)3.3 X-Window及其他实用程序 (43)1.Solaris 的基础篇1.1 Solaris 的发展史自从1969年UNIX有Ken Thompson和同在贝尔实验室计算机研究小组的同事们一起公开发表以来,UNIX系统发展出诸多各具特色、后来又再度汇聚的流派,其中占主导地位的有两大流派。
Solaris 10操作系统是行业领先的UNIX 平台。
它不但把Sun的企业级技术与x86平台结合起来,还提供了跟Linux几乎一样的GNU环境。
Solaris 10的软件我们可以到SUN的网站上去免费下载(需要注册用户后,才能看到如下图1所示的画面),或者去VeryCD网站去下载(如下图2所示);笔者是在图2的网站中下载了solaris 10(x86)ISO版本,大小为2.5G,刻录成一张可以引导的DVD光盘,如图3所示。
图1 点击看大图图2 点击看大图图3 点击看大图由于本文是在windows虚拟机环境下来安装Solaris 10系统,因此在这里简单说一下虚拟机软件;我们知道在Windows平台上比较流行的虚拟机软件有两个,VMware Workstation 和VirtualPC。
其中前者由VMware公司开发,后者则属于微软公司。
目前使用的最新VMware Workstation软件是5.0版,笔者就是在VMware Workstation 5环境下安装Solaris 10系统的;采用windows 2003 Server,使用的是Dell 4700 PC机来进行安装操作的。
有关VMware Workstation 5软件的新特性,软件的下载以及安装说明等网上有许多介绍的文章,由于文章篇幅有限,在这里就不多说了。
为了让大家能正确地安装操作系统,在安装之前,对PC机的系统要求和建议要有所了解。
1、安装Solaris 10 OS 的基本系统,PC机要求见下表1:表1 点击看大图也就是我们在机器中安装Solaris 10操作系统,PC机硬件必须满足以下要求:PC机内存需要128 MB 或更大,磁盘空间需要12 GB 或更大,CPU处理器速度(主频)120 MHz 或更高(并且要具有硬件浮点)。
Solaris 10 Operating System DVD 或Solaris 10 Software - 1 CD 上的Solaris 安装程序可以使用图形用户界面(GUI) 来运行,或者,使用桌面会话或控制台会话作为交互式的文本安装程序来运行。
太阳系统操作系统——SunSolaris太阳系统操作系统——Sun Solaris西南师大计算机系副教授张自力1995-12-081.共享(sharing)2.分布(distribution)3.扩展性(Scalability)4.互操作性(Interoperatilty)从这四个基本概念不难发现,UNIX的目标,不但要继承以往各种电脑系统所拥有的优点,而且还要使以后的系统更标准化、更完美化。
这也是开放系统的目标。
我们知道,一般电脑可大致分为大型机(mainframe)、小型机(Minicomputer)和个人计算机Personal Computer。
实际上,三种电脑都各有长短利弊,用途也不同。
在现代化的企业中,如美国最大的500家企业,这三种电脑都并存一起,任何单一种电脑都无法应付现代化的数据处理工作。
随着企业的变化和转型,以及企业本身的改革要求:更精简、更有效率,大、中、小电脑并存的现象将更加普遍,而系统的工作效率,更是各企业的生存命脉。
在这种情况下,连网便是各企业的必经之路。
但现在市面上的大部分网络系统,并未能很好地满足用户的各种要求。
因为系统只提供部分资源的共享,网上的微机大都在独立工作,机多网大并不能改善系统的功能和环境。
Sun Solaris就是针对这个问题而设计的一套客户服务器模式的连网系统。
Sun Solaris的连网系统,不但能使每一台网上的计算机,可以做服务器,同时也可以做客户机。
而网上的资源是可以随意共享和分布的。
在UNIX的标准下,Sun Solaris开发的软件,具有高度的兼容性。
这就是说,在386、486奔腾上所开发的原始代码,可以完全用于Sun Sparc工作站上。
Sun Solaris并不单单是一套UNIX系统,它是Sun Sofe公司(Sun MicroSystem公司的子公司),根据十多年的UNIX经验,开发出的一系列专为386、486、奔腾和Sun Sparc工作站连网使用的多种软件产品。