Home > Articles

📄 Contents

  1. Flash Installation
  2. Solaris Live Upgrade
This chapter is from the book

Solaris Live Upgrade

With Solaris Live Upgrade, you can create separate, inactive boot environments without affecting the currently running system. After you have created the boot environment (BE) and installed it, you activate that BE and reboot. The original BE remains available, and you can revert to it with a simple reboot.

With Solaris Live Upgrade you can do the following tasks.

  • Upgrade a system.

  • Change the disk configuration on the new boot environment to different file system types, sizes, and layouts.

  • Maintain numerous boot environments with different images. For example, you can create a boot environment that contains current patches and create a boot environment that contains an Update release.

To use the Solaris Live Upgrade process, you perform the following tasks.

  • Create a BE.

  • Copy critical file systems to the BE.

  • Upgrade the BE.

  • Activate the BE.

  • Reboot the system.

Describing the Solaris Live Upgrade method is beyond the scope of this book. Refer to the Solaris 9 Installation Guide for complete instructions.

Solaris Live Upgrade Commands

The Solaris Live Upgrade feature provides the commands listed in Table 26.

Table 26. Solaris Live Upgrade Commands

Command

Description

live_upgrade(5)

Overview of the Live Upgrade feature.

lu(1M)

FLMI-based interface to Live Upgrade functions.

luactivate(1M)

Activate a boot environment.

lucancel(1M)

Cancel a scheduled Live Upgrade copy or create procedure.

lucompare(1M)

Compare boot environments.

lucreate(1M)

Create a new boot environment.

lucurr(1M)

Display the name of the current active boot environment.

ludelete(1M)

Delete a boot environment.

ludesc(1M)

Display or set boot environment description.

lufslist(1M)

List configuration of a boot environment.

lumake(1M)

Populate a boot environment.

lumount(1M)

Mount all file systems in a boot environment.

lurename(1M)

Rename a boot environment.

lustatus(1M)

Display status of boot environments.

lutab(4)

List boot environments.

luumount(1M)

Unmount all file systems in a boot environment.

luupgrade(1M)

Install, upgrade, and perform other functions on software on a boot environment.

Creating a Boot Environment

You can create one or more boot environments and copy critical file systems from an active BE to the new BE. You can reorganize the disk if necessary and customize file systems.

You can create a boot environment on an unused partition on an existing hard drive or on a separate hard drive.

Creating a BE can be a bit tricky. Refer to the Solaris 9 Installation Guide for complete instructions. This section provides a single example. Describing the complete process for creating all of the possible boot environment configurations is beyond the scope of this book.

Solaris Live Upgrade distinguishes between critical file systems and shareable file systems. Critical file systems required by the Solaris Operating Environment are separate mount points in the vfstab file of the active and inactive boot environments. Examples are root (/), /usr, /var, or /opt. You always copy these file systems from the source to the inactive BE.

Live Upgrade duplicates only file systems that are specific to the operating environment configuration. Live Upgrade considers operating environment file systems critical. When you create a new boot environment, Live Upgrade makes sure that these critical file systems are copied to different slices and that Live Upgrade updates the /etc/vfstab in the new boot environment accordingly. By contrast, shareable file systems are those that need not be duplicated, for example, user files such as those in the /export directory. Thus, when you create a boot environment, the /etc/vfstab file in the new boot environment does not update such shared file systems. Instead, it points to the same file system as the original boot environment.

The sharing of swap is a special circumstance. All swap slices are shared by default, but you can specify a destination directory for swap and copy the swap slice. A swap slice is not required.

Part of creating a new BE involves copying critical file systems to another slice. You may need to prepare the disk before you create the new BE. Check the disk to make sure it is formatted properly.

  • Identify slices large enough to hold the file systems to be copied. If these slices do not exist on the disk on which you intend to create the new boot environment, you must create them manually with either the format(1M) or fmthard(1M) command.

  • Identify file systems that contain directories that you want to share among boot environments.

Note

NOTE. The slice must not be mounted or listed in the /etc/vfstab file.

You can use the (undocumented) /usr/lib/lu/ludevices command to list available spare partitions. In the following example, partition c1t0d0s4 is available for use as a BE.

# /usr/lib/lu/ludevices
   /dev/dsk/c1t0d0s4 9216144
   #
   

You can use the /usr/lib/lu/ludevices -x 9 option to display complete debugging information for all devices on a system.

Use the following steps to create a boot environment on a free slice on an existing disk.

  1. Become superuser.

  2. Type lu and press Return.

    The Live Upgrade character screen is displayed.

  3. Use the arrow keys to highlight the Create menu option and press F3.

    The Live Upgrade Create screen is displayed.

  4. Press the F2 function key (CHOICE) to choose an available slice for the BE.

    The slice you chose is displayed in the root (/) Device field.

  5. Press F3 to save the changes.

    The slice you specified for the BE you specified is activated and formatting begins. Formatting takes some time. When the process is complete, the Live Upgrade character screen is displayed and shows the message Live Upgrade Create operation completed successfully.

The following example shows the progress message for successfully creating a BE named s9beta on slice c1d0t0s4 on the same disk as the active BE.

Updating system configuration files.

Creating configuration for boot environment <s9beta>.

**********************************************************************

Beginning process of creating Boot Environment <s9beta>.
No more user interaction is required until this process is complete.

**********************************************************************

Creating file systems on BE <s9beta>.
Creating <ufs> file system on </dev/dsk/c1t0d0s4>.
Mounting file systems for BE <s9beta>.
Calculating required sizes of file systems for BE <s9beta>.
Populating file systems on BE <s9beta>.
Copying file system contents to BE <s9beta>.
Copying of file system / directory </> is in progress...

Upgrading a Boot Environment

After you have created a BE, it remains unchanged until you are ready to upgrade it. You can upgrade the BE at any time. The upgrade does not affect any files in the active BE. When you are ready, you activate the new release and reboot the system.

Instead of upgrading a BE, you can install a Flash archive on a BE. The Flash installation feature enables you to create a single reference installation of the Solaris Operating Environment, including third-party software, on a master system. You can then replicate that installation on a number of clone systems. The inactive BE is considered a clone. See "Flash Installation" on page 102 for more information about the Flash installation feature.

Activating a Boot Environment

When the inactive BE is configured and upgraded, you use the following procedure to activate the new boot environment.

  1. Become superuser.

  2. Type lu and press Return.

    The Live Upgrade character screen is displayed.

  3. Choose the Activate menu item and press F3.

    The Activate a Boot Environment window is displayed.

  4. Type the name of the boot environment you want to activate and press F3.

    The BE you specified is activated.

  5. Press F6 to exit the screens, then use the arrow keys to scroll down to the Exit menu item and press Return.

    The Live Upgrade program is terminated.

  6. Type init 6 and press Return.

    The system is rebooted, using the newly activated BE.

Alternatively, you can use the luactivate command to activate a BE.

InformIT Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from InformIT and its family of brands. I can unsubscribe at any time.

Overview


Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information


To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.

Surveys

Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites, develop new products and services, conduct educational research and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.

Newsletters

If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email information@informit.com.

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information


Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.

Security


Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.

Children


This site is not directed to children under the age of 13.

Marketing


Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information


If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.

Choice/Opt-out


Users can always make an informed choice as to whether they should proceed with certain services offered by InformIT. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.informit.com/u.aspx.

Sale of Personal Information


Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

Supplemental Privacy Statement for California Residents


California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure


Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.

Links


This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact


Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice


We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020