JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
System Administration Guide: Basic Administration     Oracle Solaris 10 8/11 Information Library
search filter icon
search icon

Document Information

About This Book

1.  Oracle Solaris Management Tools (Road Map)

2.  Working With the Solaris Management Console (Tasks)

3.  Working With the Oracle Java Web Console (Tasks)

4.  Managing User Accounts and Groups (Overview)

5.  Managing User Accounts and Groups (Tasks)

6.  Managing Client-Server Support (Overview)

7.  Managing Diskless Clients (Tasks)

8.  Introduction to Shutting Down and Booting a System

9.  Shutting Down and Booting a System (Overview)

10.  Shutting Down a System (Tasks)

11.  Modifying Oracle Solaris Boot Behavior (Tasks)

12.  Booting an Oracle Solaris System (Tasks)

Booting a SPARC Based System (Task Map)

Booting a SPARC Based System

SPARC: How to Boot a System to Run Level 3 (Multiuser Level)

SPARC: How to Boot a System to Run Level S (Single-User Level)

SPARC: How to Boot a System Interactively

SPARC: How to Boot a Kernel Other Than the Default Kernel

Booting From a Specified ZFS Root File System on a SPARC Based System

SPARC: How to List Available Bootable Datasets Within a ZFS Root Pool

SPARC: How to Boot From a Specified ZFS Root File System

Booting a SPARC Based System in Failsafe Mode

How to Boot a SPARC Based System in Failsafe Mode

Booting a SPARC Based System From the Network

SPARC: How to Boot a System From the Network

Booting an x86 Based System by Using GRUB (Task Map)

x86: How to Boot a System to Run Level 3 (Multiuser)

x86: How to Boot a System to Run Level S (Single-User Level)

x86: How to Boot a System Interactively

x86: Booting From a Specified ZFS Root File System on an x86 Based System

x86: How to Display a List of the Available ZFS Boot Environments

x86: How to Boot From a Specified ZFS Root File System

Booting an x86 Based System in Failsafe Mode

How to Boot an x86 Based System in Failsafe Mode

x86: How to Boot in Failsafe Mode to Forcibly Update a Corrupt Boot Archive

Booting an x86 Based System From the Network

x86: About DHCP Macros

x86: How to Perform a GRUB Based Boot From the Network

Accelerating the Reboot Process on the SPARC Platform (Task Map)

Initiating a Fast Reboot of a SPARC Based System

How to Initiate a Fast Reboot of a SPARC Based System

Performing a Standard Reboot of a SPARC Based System

Managing the Boot Configuration Service

13.  Managing the Oracle Solaris Boot Archives (Tasks)

14.  Troubleshooting Booting an Oracle Solaris System (Tasks)

15.  x86: GRUB Based Booting (Reference)

16.  x86: Booting a System That Does Not Implement GRUB (Tasks)

17.  Working With the Oracle Solaris Auto Registration regadm Command (Tasks)

18.  Managing Services (Overview)

19.  Managing Services (Tasks)

20.  Managing Software (Overview)

21.  Managing Software With Oracle Solaris System Administration Tools (Tasks)

22.  Managing Software by Using Oracle Solaris Package Commands (Tasks)

23.  Managing Patches

A.  SMF Services

Index

Booting From a Specified ZFS Root File System on a SPARC Based System

To support booting from an Oracle Solaris ZFS on the SPARC platform, two new boot options have been added:

-L

Displays a list of available bootable datasets within a ZFS pool.


Note - The boot -L command is executed from the OBP, not from the command line.


-Z dataset

Boots the root file system for the specified ZFS bootable dataset.

If you are booting a system from a ZFS root file system, first use the boot command with the -L option from the OBP to print a list of the available BEs on the system. Then, use the -Z option to boot the specified BE.

For more information, see the boot(1M) man page.

SPARC: How to List Available Bootable Datasets Within a ZFS Root Pool

On SPARC based systems, the menu.lst file contains the following two GRUB commands:

To display a list of the bootable datasets within a ZFS pool, choose from the following methods:

The following procedure describes how to use the boot -L command to list available BEs on a system. To boot a specified BE after running this command, follow the instructions that are printed on the screen.

  1. Become superuser or assume an equivalent role.

    Roles contain authorizations and privileged commands. For more information about roles, see Configuring RBAC (Task Map) in System Administration Guide: Security Services.

  2. Bring the system to the ok PROM prompt.
    # init 0
  3. List the available BEs in a ZFS pool:
    ok boot device-specifier -L
  4. To boot one of the entries that is displayed, type the number that corresponds to the entry.
  5. Boot the specified BE by following the directions that are printed on the screen.

    For instructions, see SPARC: How to Boot From a Specified ZFS Root File System.

Example 12-5 SPARC: Displaying a List of Available BEs on a System by Using boot -L

# init 0
# svc.startd: The system is coming down. Please wait.
svc.startd: 94 system services are now being stopped.
svc.startd: The system is down.
syncing file systems... done
Program terminated
ok boot -L
.
.
.
Boot device: /pci@1f,0/pci@1/scsi@8/disk@0,0 File and args: -L
zfs-file-system
Loading: /platformsun4u/bootlst
1.s10s_nbu6wos
2 zfs2BE
Select environment to boot: [ 1 - 2 ]: 2

to boot the selected entry, invoke:
boot [<root-device] -Z rpool/ROOT/zfs2BE

See Also

For more information, see Chapter 5, Installing and Booting an Oracle Solaris ZFS Root File System, in Oracle Solaris ZFS Administration Guide.

SPARC: How to Boot From a Specified ZFS Root File System

Booting from Oracle Solaris ZFS differs from booting from UFS. When booting from ZFS, a device specifier identifies a storage pool, not a single root file system. A storage pool can contain multiple bootable datasets, or root file systems. Therefore, when booting from ZFS, you must also identify a root file system within the pool that is identified by the boot device as the default. By default, the default boot device is identified by the pool's bootfs property. This procedure shows how to boot the system by specifying a ZFS bootable dataset. See the boot(1M) man page for a complete description of all the boot options that are available.


Note - If the bootfs property was previously set up correctly, for example, if you used the luactivate command to activate a BE, the system boots a ZFS root automatically.


For more information, see zpool(1M) man page.

  1. Become superuser or assume an equivalent role.

    Roles contain authorizations and privileged commands. For more information about roles, see Configuring RBAC (Task Map) in System Administration Guide: Security Services.

  2. Bring the system to the ok PROM prompt.
    # init 0
  3. (Optional) To display a list of available BEs, use the boot command with the -L option.

    For instructions, see SPARC: How to List Available Bootable Datasets Within a ZFS Root Pool.

  4. To boot a specified entry, type the number of the entry and press Return:
    Select environment to boot: [1 - 2]:
  5. To boot the system, follow the instructions that are printed to the screen:
    To boot the selected entry, invoke:
    boot [<root-device>] -Z rpool/ROOT/dataset
    ok boot -Z rpool/ROOT/dataset

    For example:

    # boot -Z rpool/ROOT/zfs2BE
  6. After the system has booted, type the following command to verify the active BE:
    # prtconf -vp | grep whoami
    • To display the boot path for the active BE, type:
      # prtconf -vp | grep bootpath
    • Alternately, you can use the df -lk command to determine whether the correct BE was booted.

Example 12-6 SPARC: Booting From a Specified ZFS Root File System

This example shows how to use the boot -Z command to boot a ZFS dataset on a SPARC based system.

# init 0
# svc.startd: The system is coming down. Please wait.
svc.startd: 79 system services are now being stopped.
svc.startd: The system is down.
syncing file systems... done
Program terminated
ok boot -Z rpool/ROOT/zfs2BEe
Resetting
LOM event: =44d+21h38m12s host reset
g ...

rProcessor Speed = 648 MHz
Baud rate is 9600
8 Data bits, 1 stop bits, no parity (configured from lom)

Firmware CORE Sun Microsystems, Inc.
@(#) core 1.0.12 2002/01/08 13:00
software Power ON
Verifying nVRAM...Done
Bootmode is 0
[New I2C DIMM address]
.
.
.
Environment monitoring: disabled
Executng last command: boot -Z rpool/ROOT/zfs2BE
Boot device: /pci@1f,0/pci@1/scsi@8/disk@0,0 File and args: -Z rpool/ROOT/zfs2Be
zfs-file-system
Loading: /platform/SUNW,UltraAX-i2/boot_archive
Loading: /platform/sun4u/boot_archive
ramdisk-root hsfs-file-system
Loading: /platform/SUNW,UltraAX-i2/kernel/sparcv9/unix
Loading: /platform/sun4u/kernel/sparcv9/unix
.
.
.
Hostname: mallory
NIS domainname is boulder.Central.Sun.COM
Reading ZFS config: done.
Mounting ZFS filesytems: (6/6)

mallory console login:

See Also

For information about booting the failsafe archive for a specified ZFS bootable dataset, see How to Boot a SPARC Based System in Failsafe Mode.