solaris 10 stmsboot使用手册
- 格式:docx
- 大小:16.04 KB
- 文档页数:4
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 。
梯调系统配置文件一、Solaris 10安装说明将Solaris 10操作系统安装光盘(DVD版)放入光驱,在OK提示符下(# halt , 或按stop+A出现),键入boot cdrom。
1、在“Select a Language”窗口下,选择6:Simplified Chinese2、在“欢迎”窗口下,点击“下一步”3、在“网络连接”窗口下,选择“联网的”,点击“下一步”4、在“配置多个网络接口”窗口下,选择ce0、ce1,点击“下一步”5、在“主网络接口”窗口下,选择ce0,点击“下一步”6、在“ce0的DHCP”窗口下,选择“否”,点击“下一步”7、在“ce0的主机名”窗口下,输入主机名,点击“下一步”8、在“ce0的IP地址”窗口下,输入IP地址,点击“下一步”9、在“ce0的网络掩码”窗口下,输入255.255.255.0,点击“下一步”10、在“ce0的IPV6”窗口下,选择“否”,点击“下一步”11、在“ce0的缺省路由”窗口下,选择“无”,点击“下一步”12、在“ce1的DHCP”窗口下,选择“否”,点击“下一步”13、在“ce1的主机名”窗口下,输入主机名,点击“下一步”14、在“ce1的IP地址”窗口下,输入IP地址,点击“下一步”15、在“ce1的网络掩码”窗口下,输入255.255.255.0,点击“下一步”16、在“ce1的IPV6”窗口下,选择“否”,点击“下一步”17、在“ce1的缺省路由”窗口下,选择“无”,点击“下一步”18、在“Kerberos”窗口下,选择“否”,点击“下一步”19、在“名称服务”窗口下,选择“无”,点击“下一步”20、在“时区”窗口下,选择“地区性的洲/国家/地区”, 点击“下一步”21、在“洲与国家”窗口下,点击“亚洲”选择“中国”,点击“下一步”22、在“日期和时间”窗口下,输入正确时间,点击“下一步”23、在“超级用户(root)口令”窗口下,输入超级用户口令点击“下一步”24、在“确认信息”窗口下,选择“确认”25、在“欢迎”窗口下,点击“下一步”26、在“安装选项”窗口下,点击“下一步”27、在“指定媒体”窗口下,选择“CD/DVD”,点击“下一步”28、正在初始化…29、在“许可证”窗口下,选择“接受”,击“下一步”30、在“选择升级安装或初始安装”窗口下,选择“初始安装”,击“下一步”31、在“选择安装类型”窗口下,选择“自定义安装”,点击“下一步”32、在“选择软件语言环境”窗口下,选择“亚洲,中文(zh)”点击“下一步”33、在“选择系统语言环境”窗口下,选择“亚洲,中文(zh)”点击“下一步”34、在“选择附带软件”窗口下,选择“Solaris 10 Extra Value Software 87.3MB”,点击“下一步”35、在“附加产品”窗口下,选择“无”,点击“下一步”36、在“选择Solaris 软件组”窗口下,选择“整个郡组以及OEM”的“缺省包”,点击“下一步”37、在“选择磁盘”窗口下,点击“下一步”38、在“保存数据”窗口下,选择“否”,点击“下一步”39、在“分布文件系统”窗口下,选择“修改”选择“确定”,点击“下一步”31、在“准备安装”窗口下,点击“立即安装”32、重新引导后,出现“Do you need to override the system’s default NFS version 4 domain name (yes/no)?[no]:输入“no”,回车33、输入用户名:root34、输入密码:xxxx35、选择其中一个:选择“公用桌面环境”36、安装完毕二、Sun Fire V240磁盘镜像在安装系统时,到划分硬盘分区那一步时,给硬盘预留一部分的空间,可以是200MB。
Solaris10启⽤、重启和关闭服务Solaris 服务管理器(Service Management Facility, SMF)是Solaris 10以及后续版本的Solaris操作系统当中采⽤的软件服务管理⼯具。
SMF按照服务的相关性来启动、停⽌和管理服务,并兼容现有的管理习惯(如启动脚本等)。
对于使⽤过Windows的读者来说,SMF的功能类似于“控制⾯板”中的“服务”;对于使⽤过Linux和Unix的读者来说,这个功能部分替代了/etc/rc*.d中的启动脚本和超级服务器inetd/xinetd的功能。
重启⽹络服务:svcadm restart networkSMF特性简介当出现了管理错误、软件缺陷或者是硬件缺陷导致服务程序异常中⽌的时候,SMF可以⾃动按照⼀定的次序重新启动服务。
使⽤svcs命令可以查看所有的服务,⽽是⽤svcadm和svccfg命令可以管理所有的服务。
使⽤svcs -p命令可以查看与本服务相关联的其他服务。
通过服务快照设置可以很容易地实现服务的备份和恢复。
通过svcs -x命令可以很容易地对服务进⾏调试,并且可以使每个服务都有⾃⼰的固定⽇志。
所有的服务都可以通过svcadm进⾏启动和关闭。
具有相应⾓⾊的⾮root⽤户也可以启动、修改和关闭服务。
SMF服务标⽰SFM服务标识(Fault Management Resource Identifier, FMRI)指的是服务实例的命名。
举个例⼦,rlogin服务的FMRI是svc:/network/login:rlogin。
同理,类似的FMRI还有svc:/system/system-log:default。
SMF服务状态服务的状态包括如下⼏种类型:状态标⽰状态描述degraded 服务已经启动,但是在受限制的状态下运⾏。
disabled 服务处于关闭状态。
legacy_run 这个服务⽬前⽆法被SMF所管理,但是可以被SMF所监测到。
An Oracle White PaperApril 2010How to Install the Oracle® Solaris 10Operating System on x86 SystemsIntroduction.........................................................................................1 Installation Assumptions.....................................................................2 Check the Hardware Compatibility List...............................................2 Basic System Requirements...............................................................2 Obtaining Media for the x86 Platform.................................................3 Power Up and Media Boot..................................................................3 Installing the Oracle Solaris 10 5/09 Operating System.....................4 Identifying the Console...................................................................4 Selecting the Type of Installation....................................................5 System Configuration......................................................................6 For More Information........................................................................26 IntroductionThis white paper instructs users unfamiliar with the Oracle® Solaris 10 operating system installation on how to install Oracle Solaris 10 on an Oracle supported x86 system (including the family of 32-bit x86 systems as well as 64-bit AMD64™ and Intel® 64 systems). It is assumed that you are installing Oracle Solaris 10 5/09; all features described in this guide may not be available in earlier updates. This step-by-step guide, complete with screen shots, takes users through the installation process in 22 simple steps. Novice users should be able to complete an Oracle Solaris 5/09 operating system installation on a standalone x86 system using the instructions in this guide.Installation AssumptionsThis guide makes several assumptions, including•The system is an x86 system.•The system is compatible with the Oracle Solaris 10 5/09 OS and is listed on the Oracle Solaris Hardware Compatibility List (HCL).•The system has a graphical interface.While this guide is most appropriate for a standalone system that does not connect to a network or connects to a network with automatic configuration, it can be used to install a system with a fixed IP address if the network configuration information is available.If problems arise during the installation process that are not discussed in this guide, refer to the Oracle Solaris 10 OS Installation Guide: Basic Installations for more information. This guide is part of the Oracle Solaris 10 Release and Installation Collection located on the Sun Web site at/app/docs/prod/solaris.10.Check the Hardware Compatibility ListThe first step before the installation process is to verify that the system to be installed is on the hardware compatibility list located at: /bigadmin/hcl/.Note: The term x86 refers to the family of 32-bit x86-compatible architecture and 64-bit AMD64 and Intel 64.Basic System RequirementsVerify the computer system meets the following requirements. Note that the requirements below are recommended minimums. While it is possible to install Oracle Solaris 10 on a system with less disk capacity and CPU speed, it is not recommended.•Minimum 1,024 MB of physical RAM•Minimum 10 GB of available hard drive space•Minimum 400 MHz CPU speed•DVD or CD-ROM drive•Attached monitor or integrated displayFor more information on Oracle Solaris system requirements, visit /solaris. For a catalog of the more than 5000 Oracle Solaris-ready applications and solutions, visit/bigadmin/apps.Obtaining Media for the x86 PlatformThe Oracle Solaris 10 5/09 OS release is available via download from the Oracle Web site.1.Go to /solaris/ and click on the Oracle Solaris logo if you want to obtain informationabout the Oracle Solaris 10 5/09 OS; if not, proceed to step 2.2.Go to /solaris/get to begin the download process.3.Choose Oracle Solaris 10 on the list of available downloads.4.Click on the appropriate media format (Oracle Solaris for x86 systems).5.Register at the Sun Download Center, if you have not already done so.6.Answer the short questionnaire.7.Read and accept the license agreement.8.Download and burn the CDs or DVDs.See the Oracle Solaris 10 FAQs located at /solaris/get for guidance, instruction, and tips on downloading Oracle Solaris 10 or burning installation CD and DVD media.Power Up and Media BootIf you do not want to substitute your current operating system and instead you want to run Oracle Solaris as a guest OS or virtual machine, please download and install Oracle VM VirtualBox for free from /.The following procedure can be used to install Oracle Solaris 10 5/09 on a new or used system.1.Power up the system and insert the first installation CD or DVD into the drive tray.2.Restart the system.3.If the system appears to be booting from the hard disk and the Oracle Solaris OS installer doesnot start, power cycle the system (power cycle is shutting down the power on the system and then restarting the system). As the system begins to boot, enter setup mode. Typically, the systemdisplays a message indicating which key to press (such as "Enter F2 to enter setup", although the key to press varies by manufacturer; the ESC and F12 keys are other common options.) If you miss the message, simply restart the system a couple of times until you are able to view it.Once in setup mode, specify the boot device for the system. This example specifies the CD or DVD drive as the boot device. To do so, find the list that describes boot order and re-order as needed to ensure the CD or DVD drive appears first on the list. The system should boot from the CD or DVD drive to start the install process.Installing the Oracle Solaris 10 5/09 Operating SystemIdentifying the ConsoleThe next step in the installation process is to select the type of console for the hardware on which Oracle Solaris is being installed. Use the arrow keys to select the version of Oracle Solaris OS that matches the hardware configuration. For most x86 systems, use the default selection.Press the ENTER key and boot the version of operating system selected. The highlighted entry boots in 60 seconds even if a key is not pressed.Note: Prompts do not appear during the boot process. If a selection is not made, the screen times out and the systemautomatically boots the Oracle Solaris OS.Selecting the Type of InstallationAfter the ENTER key is pressed or the counter times out, a series of dots will run on the screen and you will see the basic device configuration message along with a menu with six installation options.Before this new counter times out, select option 3 to install Oracle Solaris 10 5/09 from the beginning using the Oracle Solaris ZFS as the root file system. You can get more information on Oracle Solaris ZFS from /us/products/servers-storage/storage/storage-software/031857.htm.Note: If you don’t want to use Oracle Solaris ZFS as your root file system, you can use option 1. Please refer to the previousversion of this white paper.Once option 3 is selected, you'll see the following screen with some information regarding your hardware. Keep in mind that the hardware information displayed (such as "nge0") may differ from the exact data displayed below and that each step can take up to a couple of minutes to complete.After a few seconds, you are presented with the keyboard layout configuration in case you don't have a standard keyboard or if you have a localized keyboard. If you have a US keyboard, press the [F2] key; if not, select the right language using the arrow keys to move up or down, make your selection with the [space bar] and then press [F2] to continue.Immediately, you'll see the following message. Press ENTER to continue.System ConfigurationA series of screens guides you through the Oracle Solaris configuration process. Note that the graphical screens require a mouse to be rolled over the window in order to answer questions posed throughout the configuration process.1.After you press ENTER, the system configuration process will start through a series of windows.Please roll the mouse over the window, click the mouse, and press ENTER to continue.2.Select a language for the system.3. A new window, the Oracle Solaris Install Console, appears in the bottom-right corner. Thiswindow is used to display pertinent installation messages. Another window appears in which the Oracle Solaris OS installation questions should be answered. Press [F2] to continue.4.The system identification process begins. Press [F2] to continue.5.The Network Connectivity window appears. Use the default answer, (unless you don't have anetwork) and press [F2] to continue.6.The DHCP selection appears. For most cases, just select DHCP for your network configurationusing the arrow keys and the space bar to make the selection and then press [F2] to continue.7.The IPv6 window appears. Just use the default and press [F2] to continue.8.The Confirmation window appears. If you agree with your selections, press [F2] to continue; ifnot, press [F4] and the process will go back to step 5.9.The Security Policy window appears. Use the default for No Kerberos configuration. Press [F2] tocontinue.10.For confirmation of your policy selection, press [F2] and continue to the next screen.11.The Name Service window appears. Select NONE using the arrow keys and pressing the space barto select, then press [F2] to continue.12.For confirmation of your selection, press [F2] and continue to the next screen.13.The NFSv4 domain name window appears. Let the system use the default option and press [F2] tocontinue.14.For confirmation of your selection, press [F2] to continue to the next screen.15.The Time Zone window appears. Next, set the time zone for the system. This example sets theAmericas time zone. Use the arrow keys and the space bar to make the selection. Press [F2] to continue.16.Time Zone cont'd. Set the United States Country & Region, then press [F2] to continue.17.Time Zone cont'd. Set the Pacific Time. Press [F2] to continue.18.Set current date and time. Use arrow keys and keyboard to change the proposed date and time,then press [F2] to continue.19.To confirm your selection, press [F2] to continue.20.The Root Password window appears. Set the root password. Note the password typed remainsinvisible. Re-enter the password in the second box and press [F2] to continue.21.The Network Services window appears. Click [F2] to continue.22.The Remote Services window appears. In this window, you can choose a “Secure by default”Oracle Solaris installation, but afterwards individual services should be enabled. If you are unsure of your type of installation, follow the default “Yes” to enable all remote services and press [F2] to continue.23.The Install Progress window appears. Wait for a few minutes while Oracle Solaris installs on yoursystem. After the installation is completed, the system will reboot automatically and will start the Oracle Solaris OS. Remember that in some cases, you will have to eject the media manually.24.The Eject CD/DVD window appears. Use the default. Press [F2] to continue; the system willautomatically eject the media after installation.25.The Reboot After Installation window appears. Use the default. Press [F2] to continue.26.The Confirmation window appears; press [F2] to continue. In some cases, the system will not beable to eject the media after installation. Be sure to eject it manually to avoid starting theinstallation process again; if after the installation your system didn't eject the media and the install process started again, you can simply reboot your system. During the boot process, eject the media and the system will boot from the hard disk using the freshly installed Oracle Solaris 10 image.27.The License window appears. Please read the Oracle Solaris License Agreement, and if you agree,press [F2] to continue.28.The Geographic Regions window appears. To add support for other regions, select the desiredregion; if not, press [F2] to continue.29.The System Locale window appears. Press [F2] to continue.30.The Selection of Additional Products window appears. Press [F2] to continue.31.The Root File System selection window appears. Select ZFS and press [F2] to continue.32.The Software Selection window appears. Use the default and press [F2] to continue.33.The Disk Selection window appears. Use the default and press [F2] to continue.34.The ZFS Configuration window appears. Use the default and press [F2] to continue.35.The Remote Mounts window appears. Use the default and press [F2] to continue.36.The Profile window appears. On this window, you can see a technical description of how OracleSolaris will be installed on your system. Press [F2] to continue.37.The Install Progress window appears. Wait for a few minutes while Oracle Solaris installs on yoursystem. After the installation is completed, the system will reboot automatically and will start the Oracle Solaris OS. Remember that in some cases, you will have to eject the media manually.38.Now you have successfully installed Oracle Solaris 10 5/09 on your system. Login using the rootuser and the password you assigned on step 19.For More InformationFor more information regarding the Oracle Solaris 10 OS, visit/us/products/servers-storage/solaris/index.html.TABLE 1. REFERENCESDOCUMENTATION AND COMMUNITYSun Documentation /Big Admin System Administration Portal /bigadmin/SUN BLUEPRINTS ARTICLESConfiguring JumpStart Servers to Provision Sun x86 Systems /blueprints/0205/819Performing Network Installations Without a Local Boot Server /blueprints/0504/817/blueprints/0905/819Configuring Multiboot Environments on Sun x86 Systems with AMDOpteron ProcessorsRELATED WEB SITESSolaris Hardware Compatibility List /bigadmin/hclSolaris 10 System Requirements /solaris/docs/solaris-sys.pdf NEXT STEPS TO SOLARIS 10 ADOPTIONGet hands on experience with Solaris 10 using "Solaris 10 White Papers" /solaris/whitepapers/index.jsp Get trained on Solaris 10 /pls/web_prod-plq-dad/db_pages.getpage?page_id=402&p_nl=JSOLGet a support contract /us/support/systems/operating-systems/index.htmlParticipate in the OpenSolaris community How to Install the Oracle Solaris 10 Operating System on x86 Systems April 2010Author: Angel Camacho, Larry WakeOracle Corporation World Headquarters 500 Oracle Parkway Redwood Shores, CA 94065 U.S.A.Worldwide Inquiries: Phone: +1.650.506.7000 Fax: +1.650.506.7200 Copyright © 2010, Oracle and/or its affiliates. All rights reserved.This document is provided for information purposes only and the contents hereof are subject to change without notice. This document is not warranted to be error-free, nor subject to any other warranties or conditions, whether expressed orally or implied in law, including implied warranties and conditions of merchantability or fitness for a particular purpose. We specifically disclaim any liability with respect to this document and no contractual obligations are formed either directly or indirectly by this document. This document may not be reproduced or transmitted in any form or by any means, electronic or mechanical, for any purpose, without our prior written permission.Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.AMD, Opteron, the AMD logo, and the AMD Opteron logo are trademarks or registered trademarks of Advanced Micro Devices. Intel and Intel Xeon are trademarks or registered trademarks of Intel Corporation. All SPARC trademarks are used under license and are trademarks or registered trademarks of SPARC International, Inc. UNIX is a registered trademark licensed through X/Open Company, Ltd. 0310。
Solaris技术手册一 . 基本的OS命令1.成为超级用户命令:su%su(回车)2.退出超级用户状态:exit#exit(回车)3.获取当前工作目录:pwd%pwd(回车)4.查找文件尾命令:tailtail文件名(回车)5.分页显示文件内容命令:more文件名(回车)用more找文件内容时,检索有关字符串,键入/字符串(回车)查到一个匹配的串后,继续查找,键入n(回车)退出more,则键入q(回车)或ctr+c6.显示所有登录用户:who(回车)7.显示所有登录的用户finger8.显示哪个用户登录到了哪个系统rusers -l(回车)9.显示登录的用户及其正在干什麽whodo(回车)10.显示用户的Uid和Gidid(回车)11.显示正在运行的进程ps -aef(回车)12.显示环境变量及其值%evn(回车)13.设置环境变量之值(1)Bshell和Rshell (变量名一般为大写字母)HIS=50;export HIS(2)对cshellsetenv DISPLAY SUN:O14.在文件中查找串:grep 串文件名(回车)15.显示文件类型file 文件名(回车)16.生成新文件方法(1)使用cat命令cat >>f1(回车)输入文本(回车)ctr+d(2)使用touch命令touch f1(回车)(3)cp f1 f217.文件改名mv f1 f2(回车)18.如何查找文件findfind / -name myfile -printfind /usr -name ˋ*ˊC -print19.如何删去所有core文件:find / -name core -exec rm { } ¥;20.利用管道|man cat | lp(回车)ps -aef | grep openwin(回车)21.杀掉进程kill — 9 PID22.显示所示所有路径echo $PATH23.查找某程序位于何处:which openwin(回车)24.设置路径:(1)Bshell和KshellPATH=目录:目录:目录•••••;export PATH (2)ChellSet path=(目录:目录:目录•••)25.查联机手册man lp(回车)26.显示磁盘空间使用情况df -k(回车)二 . 引导和关闭系统1. 在OK状态下引导系统到多用户OK boot(回车)2.在OK状态下引导到单用户OK boot -s(回车)3.从单用户到多用户ctrl+D4.如何下机# init 0(回车)5.如何紧急下机stop+A三. . 设备管理与使用:1.检查磁盘使用情况du(回车)or du -s(回车)2.查找磁盘信息prtvtoc /dev/rdsk/c0tld0s3(回车)3.格式化软盘使之为dos格式fdformat -d(回车)4.在软盘上生成文件系统fdformat(回车)newfs /dev/diskette(回车)5.将软盘从软区中退出eject /dev/diskette(回车)6.如何来回拉磁带mt -f /dev/rmt/o retension7.倒带mt -f /dev/rmt/o rewind8.查寻磁带驱动器的状态mt -f /dev/rmt/o status(回车)四 . 文件系统1./ect/vfstab文件中一行的意义2.显示当前已安装的文件系统mount(回车)3.检查文件系统的一致性fsck(回车)4.安装某类文件系统mount -F nfs(回车)mount 安装点5.拆卸某个文件系统umount 安装点6.用盒式磁带备分文件系统过程:(1)init s(回车)(进入单用户)(2)nfsdump cuf /dev/rmt/0 C0t0d0s3(回车)7.恢复一个备分的文件系统(1)init s(回车)(2)umount 安装点(3)newfs /dev/rdsk/c0t0d0s3(回车)(4)mount安装点(回车)(5)cd安装点(6)ufsrestore rvf /dev/rmt/0(回车)五 . 网络使用命令1.显示子网中所有机器:rup(回车)2.登录到远程系统中rlogin远程系统机器名3.判断远程系统是否可用(1)ping远程系统名(回车)(2)rup远程系统名(回车)4.在系统之间传送文件(1)ftp(2)rcp六 . 安全性:1.建立或改变用户口令:password 用户名(回车)2.设置文件的权限:chmod nnn f1(回车)3.改变文件的所有者:chown 用户名文件名4.改变文件组的属性:chgrp 组名文件名(回车)七 . 系统常用命令1.查系统的机器号sysdef -h(回车)或hostid(回车)2.查询某个系统启动了多久uptime(回车)3.查询一个系统最近何时被引导过who -b(回车)4.查系统硬件类型uname -m(回车)5.查系统的CPU类型uname -p(回车)6.查系统OS版本号uname -r(回车)7.增加系统交换区(1)列出swap文件swap -l(回车)(2)生成swap文件mkfile nnn [k/b/m]文件名(回车)(3)增加swap区swap -a [swap文件绝对路径名](4)删除可用的swap文件swap -d swap文件(5)增加一个swap文件到/etc/vfstab 文件中:swap 文件绝对路径— swap — no —8.查询系统日期daet(回车)9.显示系统配置信息sysdef(回车)或prtconf(回车)第二章.Netra系统的安装与培训一 . Netra的安装1.OK boot cdrom(回车)2.回答N(回车)3.回答Yes(回车)二 .Netra系统的配置1.进入配置界面(窗口)••••••login:键入setup(回车)••••••password:键入setup 的口令,即setup(回车)2.用鼠标左键,点击Netscape图形界面3.接下来出现用户校验窗口,再次输入用户名setup及其口令setup即可进入管理窗口界面。
Requirementss The2GB memory option(256MB DIMMS)require that the system flash PROM software be3.2.24or compatible versions before installingmemory modules.s Currently,for Solaris2.5.1operating environments,configurations are limited to a maximum total memory of56GB,configurations thatexceed56GB for this version are not supported.Solaris2.6operating environments,together with patch105181-19,support a maximumconfiguration of60GB.There is no limitation for systems runningSolaris7or8operating environments(maximum achievableconfiguration is60GB).s Do not mix different densities(8or32or128or256Mbytes)in a bank.s To install the Solaris2.6operating environment,use the"Operating Environment Installation CD(part number704-7076-10)February2000"that comes with your system(not required for installing Solaris2.5.1, Solaris7or Solaris8operating environments).For Solaris2.5.1operating environments the/usr/platform/sun4u/ sbin/prtdiag command displays erroneous memory capacity e software patch104595-09(available at:http:// )to correct this problem.Suggestions for Maximum Performances If there is more than one CPU/Memory board,install one bank of DIMMs on each board first.Then install the second bank on any board.It does not matter whether the first bank is bank0or bank1.s Begin with the largest density banks first(256Mbyte DIMMs),continue with medium density banks(32or128Mbyte DIMMs),and finish with the smallest density banks(8Mbyte DIMMs).It may be necessary to move some banks to meet this guideline.s If there are remaining banks,fill the second banks on the boards in the same order as the first banks.Removing the CPU/Memory BoardCaution–If the message:NOTICE:Hot Plug not supportedin this system is displayed during boot,do NOT attempt toremove or install a board while the system is powered on.If your system supports the hot-plug feature,a board is in low-power mode and ready for removal if one of the following is true:s All three status LEDs are off.s If the Service()LED is lit,and the Power ()LED and theRunning()LED are off.Caution–Use a padded ESD mat to prevent breakage of partsmounted on the bottom of the e a grounding wriststrap to prevent static damage.Start here if the board is already in the system.1.If the board is in low-power mode,skip this step and go to Step2.If the board is not in low-power mode,halt the system and turn offpower before proceeding.2.With a Phillips#1screwdriver,turn the two quarter-turn lockingscrews to the unlocked position().3.Pull the ends of both extraction levers toward you,then pull theboard out of the card cage.Do not let the components on the board catch on any surroundingsurfaces as you pull the board.Caution–The heatsinks on the board may be hot.Handle withcare.4.Place the board on a padded ESD mat to prevent breakage of partsmounted on the bottom of the board.Installing DIMMsInstall a set of DIMMS as a complete bank of eight DIMMS.There are twobanks,interleaved as shown in the following figure.The socket numbers(Jxx00and Jxx01)are marked on the board.1.Open the DIMM socket by pressing down on the ejector levers atboth ends of the socket.2.Align the two notches at the bottom of the DIMM with the two tabsin the socket.3.Push the DIMM firmlydown into the socket.4.Lock the DIMM in place by pushing both ejector levers into theupright position.Installing the CPU/Memory Board1.If youare installing a new board,refer to the Sun Enterprise serversystem reference manual that came with your system for rules forselecting a board slot.2.Open the extraction levers by pulling the ends of both levers towardyou.3.Insert the board in the card cage slot.!!Extraction leversQuarter-turnBank 1J3801J3701J3601J3501J3401J3301J3201J3101Bank 0J3800J3700J3600J3500J3400J3300J3200J3100sFor a 4-slot or 5-slot card cage,orient the board with the component side to the right.sFor a 16-slot or 8-slot card cage (diagram follows):Front slot installation,orient the board with the component side down.Rear slot installation,orient the board with the component side up.4.Push the board into the card cage,then simultaneously press both extraction levers to seat the board on the centerplane.Caution –Do not press on the board front panel to seat it—doing so will damage the connector pins.Caution –When inserting a board into slot 4or slot 10of a16-slot card cage,lift the board slightly to avoid damage to the centerplane connectors.Pushing both levers simultaneously avoids twisting the board and bending the connector pins.5.With a Phillips #1screwdriver,turn the two quarter-turn locking screws to the locked position ().Rear viewFront view!!Sun ™ Enterprise ™6x 00/5x 00/4x 00/3x 00 Systems DIMM Installation GuideCaution –The heatsinks on the board can bedamaged by incorrect handling.Do not touch the heatsinks while installing or moving the board.Hold the board only by the edges.If a heatsink is loose or broken,obtain a replacement board.Caution –The heatsinks on the board can bedamaged by improper packaging.When storing or shipping the board,ensure that the heatsinks have sufficient protection.Note –Make sure the DIMM and connector are freeof dust and debris.If necessary,gently clean them using the dry,stiff brush supplied.!!Part Number: 802-5032-15Revision A of January 2000Accessing Sun Documentation OnlineThe sm web site enables you to access Sun technicaldocumentation on the Web.You can browse the archive or search for a specific book title or subject at:Sun Welcomes Your CommentsWe are interested in improving our documentation and welcome your comments and suggestions.You can email your comments to us at:*******************Please include the part number (802-5032-14)of the document in the subject line of your email.Copyright 2000 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Third-party software, including font technology, is copyrighted and licensed from Sun suppliers. Sun, SunMicrosystems, the Sun Logo, SunDocs, and Solaris are trademarks or registered trademarks of Sun Microsystems, Inc. in the U.S. and other countries.RESTRICTED RIGHTS : Use, duplication, ordisclosure by the U.S. Government is subject to restrictions of FAR 52.227-14(g)(2)(6/87) and FAR 52.227-19(6/87), or DFAR 252.227-7015(b)(6/95) and DFAR 227.7202-3(a).Copyright 2000 Sun Microsystems, Inc. Tous droits réservés. Distribué par des licences qui enrestreignent l’utilization. Le logiciel détenu par des tiers, et qui comprend la technologie relative aux polices de caractères, est protégé par un copyright et licencié par des fournisseurs de Sun. Sun, SunMicrosystems,le logo Sun,SunDocs,et Solaris sont des marques de fabrique ou des marques déposées de Sun Microsystems, Inc. aux Etats-Unit et dans d’autres pay.Sun Microsystems Computer Company •901San Antonio Road •Palo Alto,CA 94303-4900USA •650960-1300•Fax 650969-91316.Reboot the system now or schedule a later time to reboot when system disruption will be minimized.The system cannot use the new board until the system is rebooted.7.If the system is running,look for a system message similar to the following example.This example is for a CPU/Memory board in slot 5:NOTICE: CPU Board Hotplugged into Slot 5NOTICE: Board 5 is ready to remove。
Solaris 10 SPARC MPxIO配置指导书1、确认MpxIO功能是否已激活# stmsboot -Lstmsboot: MPxIO is not enabledstmsboot: MPxIO disabled2、检查磁盘已正常识别,从存储上分配一个LUN,在主机通过两条路径识别到两个disk,记录存储阵列的Vendor和Product字段。
# formatSearching for disks...doneAVAILABLE DISK SELECTIONS:0. c0t1d0 <DEFAULT cyl 60797 alt 2 hd 255 sec 252>/pci@0,0/pci8086,340b@4/pci1028,1f10@0/sd@1,01. c2t500B342001026C05d0 <DEFAULT cyl 6525 alt 2 hd 255 sec 63>/pci@0,0/pci8086,3410@9/pci1077,15d@0/fp@0,0/disk@w500b342001026c05,02. c3t500B342001026E05d2 <DEFAULT cyl 6525 alt 2 hd 255 sec 63>/pci@0,0/pci8086,3410@9/pci1077,15d@0,1/fp@0,0/disk@w500b342001026e05,2 Specify disk (enter its number): 1selecting c2t500B342001026C05d0[disk formatted]FORMAT MENU:disk - select a disk...verify - read and display labelssave - save new disk/partition definitionsinquiry - show vendor, product and revisionvolname - set 8-character volume name!<cmd> - execute <cmd>, then returnquitformat> inquiryVendor: MacroSANProduct: LURevision: 1.0format>q说明:(1)在此记录存储阵列的”Vendor”和”Product”字段3、修改/kernel/drv/scsi_vhci.conf文件,在/kernel/drv/scsi_vhci.conf中将存储阵列的信息加入,示例如下:#cp /kernel/drv/scsi_vhci.conf /kernel/drv/scsi_vhci.conf.bak #备份文件#vi /kernel/drv/scsi_vhci.confdevice-type-scsi-options-list ="MacroSANLU", "symmetric-option";symmetric-option = 0x1000000;说明:(1)“MacroSAN”为存储阵列的Vendor ID,该字段必须为八个字符,对于未满八个字符的,需要用空格补齐。
Solaris10常用命令指南Solaris与linux命令基本类似,但也有一些区别,特将常用命令整理如下:(一) 基本命令1. ls 显示文件名,等同于dos下dir命令命令格式:ls [option] fileoption:-l 显示详细列表域1 :文件类型和文件权限域2 :文件连接数域3 :文件所有者名字域4 :文件用户组名字域5 :文件长度域6-8 :最近修改日期域9 :文件名-a 显示所有文件,包含隐藏文件(以. 起头的文件名)-R 显示文件及所有子目录-F 显示文件(后跟*)和目录(后跟/)-d 不l选项合用,显示目录名而非其内容2. cd 目录转换,等同于dos下cd命令注意目录分隔符为”/ ”,与dos相反命令格式:cd dirname3. pwd 显示当前路径4. cat 显示文件内容,等同于dos下type命令命令格式:cat filename5. .more 以分页方式查看文件内容.命令格式:more filename6. .rm 删除文件命令格式:rm [-r] filename (filename 可为档名,或档名缩写符号.)例子:rm file1 删除档名为file1 之文档.rm file? 删除档名中有五个字符,前四个字符为file 之所有文档.rm f* 删除档名中,以f 为字首的所有文档.rm -r dir1 删除目录dir1,及其下所有文档及子目录.7. mkdir 创建目录命令格式:mkdir [-p] directory-name例子:mkdir dir1 建立一新目录dir1.mkdir -p dir/subdir 直接创建多级目录8. rmdir 删除目录目录必须首先为空命令格式: rmdir directory9. cp 文档复制命令格式: cp [-r] source destination例子:cp file1 file2 将文档file1 复制成file2cp file1 dir1 将文档file1 复制到目录dir1 下,文件名仍为file1.cp /tmp/file1 . 将目录/tmp 下的文档file1复制到现行目录下,档名仍为file1.cp /tmp/file1 file2 将目录/tmp 下的文档file1现行目录下,档名为file2cp -r dir1 dir2 (recursive copy) 复制整个目录.若目录dir2 存在,则将目录dir1,及其所有文档和子目录,复制到目录dir2 下,新目录名称为dir1.若目录dir2不存在,则将dir1,及其所有文档和子目录,复制为目录dir2.10. mv 文件移动命令格式:mv source destination例子:mv file1 file2 将文档file1,更改档名为file2.mv file1 dir1 将文档file1,移到目录dir1 下,档名仍为file1.mv dir1 dir2 若目录dir2 存在,则将目录dir1,及其所有档案和子目录,移到目录dir2 下,新目录名称为dir1.若目录dir2 不存在,则将dir1,及其所有文档和子目录,更改为目录dir2.11. du 查看目录所占磁碟容量命令格式: du [-sk] directory例子:du dir1 显示目录dir1 的总容量及其次目录的容量du -sk dir1 显示目录dir1 的总容量,以k bytes为计量12. find 文件查找命令格式: find dir -name filename command例子:find . -name hello -print 寻找目前目录及所有的子目录内叫hello的文档.find . -ctime +7 -print 找出七天内未被更动的文档find . -size +2000m -print 找出大小超过2000 bytes的文档find /tmp -user b1234567 -print 在/tmp下属於b1234567的文档find . -name '*.c' -exec rm {} 删除所有的.c档find . -name test\* -print 显示当前目录及其子目录文件名前4位为test的文件名13. man 随机文档例子:man ls | col –b >;ls.txt 生成文本文档catman –w –M /usr/man 生成索引关键字man –k keyword 关键字查找man –s number word 不同系统类别example: man –s 3s printf14. vi 编辑器命令状态:j,k,h,l:上下左右0:行首$: 行尾i,I :插入命令,i 在当前光标处插入I 行首插入a,A:追加命令,a 在当前光标后追加,A 在行末追加o,O:打开命令,o 在当前行下打开一行,O在当前行上插入一行r,R :替换命令,r 替换当前光标处字符,R从光标处开始替换数字s: 替换指定数量字符x: 删除光标处字符dd: 删除当前行d0: 删除光标前半行d$: 删除光标后半行ctrl+f :后翻页ctrl+b:前翻页G : 文件尾数字G: 数字所指定行/string 查找字符串n 继续查找N 反向继续查找% 查找对应括号u 取消上次操作ex命令状态:set number 显示行号:set smd 显示显示状态:0 文件首:1,5 copy 7 块拷贝:1,5 del 块删除:1,5 move 7 块移动:1,$s/string1/string2/g 全文件查找string1并替换为string2:wq! 存盘退出(二) 增强命令1. ln 文档连结命令格式:ln [-s] oldname newname同一文档,可拥有一个以上之名称,可将文档做数个连结.一个符号链是指向系统另一个文件的特殊文件,当访问这种文件时,它里面存放着一个路径名,该路径名用来引导用户到卡符号链所指的文件或目录例子:ln -s file1 file2 将名称file2,连结至文档file1.2. .grep 搜索字符串命令格式:grep string filename寻找字串的方法很多,比如说我想找所有以M开头的行.此时必须引迕pattern 的观念.以下是一些简单的例,以及说明:^M 以M开头的行,^表示开始的意思M$ 以M结尾的行,$表示结束的意思^[0-9] 以数字开始的行,[]内可列举字母^[124ab] 以1,2,4,a,或b开头的行^b.503 句点表示任一字母* 星号表示0个以上的字母(可以没有)+ 加号表示1个以上的字母\. 斜线可以去掉特殊意义;cat passwd | grep ^b 列出大学部有申请帐号者名单cat passwd | grep ^s 列出交换学生申请帐号者名单cat passwd | grep '^b.503' 列出电机系各年级...grep '^\.' myfile.txt 列出所有以句点开头的行3. fgrep 搜索字符串命令格式:fgrep string file4. .file 显示文件类型命令格式:file fileall文件类型为shell script,ELF 32bit,ASCII text,data or tar file5. .diff 比较文档或目录之不同内容命令格式:diff [-r] name1 name2 ( name1 name2 可同时为档名,或目录名称.) 例子:%diff file1 file2比较文档file1 与file2 内,各行之不同处.%diff -r dir1 dir2比较目录dir1 不dir2 内,各文档之不同处.6. cmp 比较文档相同部分命令格式:cmp file1 file27. ftp 远程文件传输命令格式:ftp [hostname|IP address]在进入ftp 之後,如果不remote host 连接上了,它将会询问你username 与密码,如果输入对了就可以开始进行文档传输.注意:如用户无密码,无法注册(1) ftp 命令ascii 将传输模式设为ascii 模式.通常用于传送文字档.binary 将传输模式设为binary 模式,通常用于传送执行档,压缩档与影像cd remote-directory 将远程主机上的工作目录改变.lcd [ directory ] 更改本地主机的工作目录ls 列出远程主机上的文档.get remote [ local-file ] 取得远方的文档.mget remote-files 可使用通用字元一次取得多个文档.put local[ remote-file] 将本地主机的文档送到远程主机.mput local-files 可使用通用字元一次将多个文档放到远程主机上.help [ command ] 线上辅助指令.mkdir directory-name 在远程主机创建一个目录.prompt 更改交谈模式,若为on 则在mput 不mget 时每作一个文档之传输时均会询问.quit/bye 离开ftp .2) 后台执行ftp首先,将过程所用到的指令依顺序放入文档中,如下:%cat ftp_command!mkdir testlcd testcd testpromptbinarymget *.*bye其次,建一个.netrc档,属性为400,让ftp 自动到此读取Username 不Password,方可顺利login 到的主机,如下:%cat .netrcmachine remote login anonymous password guest3)最後再执行下面指令即可.%nohup ftp remote < ftp_command >; message &8. .telnet 远程终端访问命令格式:telnet [hostname|IP address]*注:如使用root用户登录,其权限请参见11.3.49. .IO 重新导向UNIX所有的程式执行时,均需要资料的输入以及输出资料.一般而言,资料是从键盘输入,并将资料输出到萤幕上,这就叨做标准输入及标准输出,而我们可以更改标准出输出入.A. 更改标准输入——在命令後方加"< ;" ,即可从;这个文档输入资料.B. 更改标准输出——在命令後方加">; ;" ,即可将萤幕输出的资料导向到;这个文档上.C. 更改标准输出——在命令後方加">;>; ;",功能不B.相似,叧不过这会将资料加在文档後方.D. 管道——在两个命令中间加上'|',即可将前方指令的输出当成後方指令的输入.例:cd /tmpls -l >; /tmp/ls.outcat /tmp/ls.outmore /tmp/ls.outrm /tmp/ls.outls | morels | wc -l (word count, count line number,算出文档数目)(三) 软件包管理1. pkginfo 显示软件包信息命令格式:pkginfo -d[ device|pathname] -l pkg_name例子:这三个域为:pkg_category 软件包种类,可为application,graphics 或system.pkg_name 软件包名字,如为SUN产品则机SUNW 起头.Description 软件产品的简单说明.例子:# pkginfo -d /cdrom/solaris_2_2/s0/Solaris_2.2 |more利用pkginfo -l 命令显示关亍软件包的详细信息,包括软件包的大小(按硬盘块大小计算).# pkginfo -d /cdrom/solaris_2_2/s0/Solaris_2.2 -l SUNWaudio上面输出的最后一行指示软件包的大小. 利用此信息和df -k命令来确定你是否拥有足够硬盘空间来安装此软件包.2. pkgadd 增加软件包利用pkgadd 命令增加软件包,当软件包被成功地安装以后,向root发送一个邮件.命令格式:pkgadd -d [device | pathname] pkg_name例子:# pkgadd -d /cdrom/solaris_2_2/s0/Solaris_2.2 SUNWaudio3. .pkgchk 校验软件包的安装pkgchk命令通过将软件包的属性及路径名内容不系统记录文件中的值进行对比来校验.命令格式:pkgchk [-p path1 [path2...]]此命令可以检查整个软件包或通过指定-p选项对一特殊路径名进行检查,无输出则意味着没有问题被检查出.由于/etc/group 文件大小已被改变,所以文件内容的checksum就不对.考察软件包信息pkgadd命令更新文件/var/sadm/install/contents、此文件为系统中所有已安装软件包的记录文件.没有简单的方法来确定某软件包具有某一特殊文件(或命令).对亍已安装的软件包,从/var/sadm/install/contents 记录文件中查找此软件包的路径名.4. .pkgrm 删除软件包命令格式:pkgrm pkgname1 pkgname2 …在调用pkgrm 命令后,将向你警告有依赖关系的软件包信息,并提供放弃此操作的提示.当软件包被成功地删除后,向root发送一个邮件.pkgrm命令通过文件/var/sadm/install/contents 来确定软件包的地址,并且当软件包被删除以后,更新此文件.假如此软件包被两个或更多的包共享,则一定得将这些依赖亍此包的所有软件包删除以后才删除此软件包.5. spooling 软件包转储一个软件包可以由安装CD-ROM中拷贝过来存放在系统中,但并没有安装此软件包.例如,一个服务器可以拷贝存储一个软件包,一个没有CD-ROM设备的系统可以从服务器上挂接此软件包,用以安装。
solaris 10 stmsboot使用手册
名字
stmsboot - 在Solaris中用来管理多路径特性的管理程序
语法
/usr/sbin/stmsboot [-d | -e | -u | -L | -l controller_number]
简述
Solaris的多路径I/O特性是Solaris操作系统环境下存贮设备的多通道解决方案。
该特性以前被称为Sun StorEdge Traffic Manager (STMS) 或者MPxIO.
stmsboot程序是在Solaris多路径I/O下用来管理对光纤通道设备列举的管理程序。
启用了多通道I/O的Solaris设备在scsi_vhci下被列举,提供了多通道的能力。
如果
没有启用多通道I/O,设备将在物理控制器下被列举。
在/dev和/devices的设备树中,启用了多通道I/O的Solaris设备将使用新的名字,以
表示它们是在Solaris的多通道I/O的控制下。
这意味着在Solaris的多通道I/O的控
制下,设备将会拥有一个不同于它们以前名字(在安装是确定)的新名字。
在启用
或者停用Solaris多通道I/O时,stmsboot将会自动更新/etc/vfstab和系统的dump配置信息以反映设备名字的变化。
在进行相应变动后,需要重新启动机器以让变动生效。
选项
stmsboot支持一下选项:
-e 在所有的光纤通道控制器端口上启用Solaris多通道I/O特性。
启用后,你将被提示要求重新启动机器。
在重新启动时,vfstab和dump配置将被更新以反映
设备名字的变化。
-d 在所有的光纤通道控制器端口上关闭Solaris多通道I/O特性。
关闭后,你将被提示要求重新启动机器。
在重新启动时,vfstab和dump配置将被更新以反映
设备名字的变化。
-u 在你手工修改配置以启用或者关闭特定光纤fp控制器端口上的Solaris多通道I/O 特性后,更新vfstab和dump配置。
该选项会要求你重新启动机器。
在重新启动时,vfstab和dump配置将被更新以反映设备名字的变化。
-L 显示从非Solaris多通道I/O设备名字到Solaris多通道I/O设备名字的设备名字变化情况。
-l 控制器号
显示特定控制器上的从非Solaris多通道I/O设备名字到Solaris多通道I/O设备名
字的设备名字变化情况。
使用说明:
除了主要用于启用和关闭Solaris多通道I/O特性外,stmsboot命令还可以用来更新vfstab
和dump配置以反映设备名字的变化。
为了确保系统正常工作,你必须重新配置你的使用
这些设备的相关应用,将设备名字从旧名字改为新名字。
-L和-l选项将显示新旧设备名字之间的对应关系。
该选项在对Solaris多通道I/O特性的配
置修改生效后即可正常工作。
例如,在你使用stmsboot -e并且重新启动机器后,就可以
使用这些选项。
老的设备名字必须存在以便显示对应关系。
例子:
例子1:在OS升级后启用Solaris多通道I/O特性
要启用所有光纤控制器端口上的Solaris多通道I/O特性:
#stmsboot -e
例子2:关闭Solaris多通道I/O特性
要关闭所有光纤控制器端口上的Solaris多通道I/O特性:
#stmsboot -d
例子3:启用特定端口上的Solaris多通道I/O特性
你可能希望启用某个特定光纤控制器端口上的Solaris多通道I/O特性,而关闭其他所有端口
上的Solaris多通道I/O特性。
你可以通过编辑fp.conf文件来启用和关闭特定控制器端口上的Solaris多通道I/O特性。
然后运行下面这个命令来更新vfstab和dump配置,以反映出设备名字
的变化。
#stmsboot -u
其他有关的命令:
dumpadm(1M), ufsdump(1M), dumpdates(4), vfstab(4), fcp(7D),
fctl(7D), fp(7D), qlc(7D), scsi_vhci(7D)
关于T3, 3910, 3960, 6120, 和6320存贮系统的信息,可以参见Sun StorEdge Disk Tray 或者Subsystem] Administrator's Guide。
Sun StorEdge Traffic Manager Installation and Configuration Guide
注意事项:
Solaris多通道I/O特性并不是所有的设备都支持的。
在启用了Solaris多通道I/O特性后,只有
那些支持Solaris多通道I/O特性的设备才会被Solaris多通道I/O特性所控制。
不支持的设备仍
然保持与以前一样。
对于早期的Solaris版本,-e和-d选项将会删除fp.conf文件中的的mpxio-disable属性项或者增
加一个全局的mpxio-disable属性项。
当前的Solaris操作系统版本不再支持mpxio-disable属性项。
Solaris多通道I/O特性缺省总是打
开的。
如果你想关闭Solaris多通道I/O特性,必须使用由HBA驱动提供的相应方法。
参见fp(7D)。
* 在Sun StorEdge Disk Array上使用Solaris多通道I/O特性
下面的方法可以用于Sun StoreEdge T3, 3910, 3960, 6120,和6320存贮系统。
要在你的Sun StoreEdge系统上使用Solaris多通道I/O特性,除了启用Solaris多通道I/O特性外,还必须将存贮系统的mp_support的值设置为mpxio模式。
正确的顺序应该是首先将系统的
mp_support
设置为mpxio模式,然后运行stmsboot -e。
如果Solaris多通道I/O特性已经启用,而系统的
mp_support还没有设置为moxio模式,则应该先将mp_support设置为mpxio模式,然后运行stmsboot -u。
详细信息请参见相应存贮系统的Sun StorEdge Administrator's Guide。
* ufsdump用户
ufsdump命令用来在/etc/dumpdates文件中保存文件系统dump的记录。
在这些记录项中,包括了设备名字的记录。
有影响的stmsboot选项(-e,-d和-u)的一个影响是将改变存贮设备设备名字。
stmsboot命令不会修改dumpdates文件。
正因为如此,dumpdates文件中的记录将指向老的设备
名字,也就是你运行stmsboot之前的设备名字。
dumpdates中设备名字不一致的一个影响是,在
使用stmsboot后,ufsdump在运行是会认为之前没有进行过相应的dump操作,从而会对这个文件系统进行dump存在(也就是级别为0的dump操作)。
* 在Sun Cluster环境下使用stmsboot
如果可能,请在按照Sun Cluster软件之前就使用stmsboot -e命令。
在你运行stmsboot后,就可以像正常安装一样安装你的Sun Cluster软件了。
如果你在在运行stmsboot之前安装Sun Cluster软件,必须按照以下流程进行:
在所有你想启用Solaris多通道I/O特性的cluster中的机器上,运行:
#stmsboot -e
...然后允许系统重新启动。
当系统重新启动后,输入以下命令:
1. # /usr/cluster/bin/scdidadm -C
2. # /usr/cluster/bin/scdidadm -r
之前的命令将在为新设备名字更新did映射的同时保留那些没有连接到多个cluster节点的硬
盘的did实例标号。
本地硬盘的did实例编号将不会被保留。
由于这个原因,本地硬盘的did 硬盘名字将被改变。
3. 更新/etc/vfstab文件,以反映本地硬盘设备的新的did硬盘名字。
4. 重新启动系统。
要想关闭Solaris多通道I/O特性,可以使用stmsboot -d(代替stmsboot -e),然后执行上面的流程。
想查看新老设备名字之间的对应关系,可以运行stmsboot -L。
想查看did设备名字的对应关系,可以运行/usr/cluster/bin/scdidadm -L。