Solaris 9 4/04 Installation Guide

Chapter 11 Creating RAID-1 Volumes (Mirrors) During Installation (Planning)

This chapter describes the requirements and guidelines that are necessary to create mirrored file systems with the custom JumpStart or Solaris Live Upgrade installation methods.

This chapter describes the following topics.

For additional information about planning to create mirrored file systems with the Solaris Live Upgrade installation method, see General Guidelines for Creating Mirrored File Systems.

For instructions about how to create mirrored file systems with the custom JumpStart installation method, see filesys Profile Keyword (Creating Mirrored File Systems) and metadb Profile Keyword (Creating State Database Replicas).

System Requirement

To create mirrored file systems on specific slices, the disks that you plan to use for mirroring must be directly attached and available to the system during the installation.

Volume Name Requirements and Guidelines

The custom JumpStart installation method automatically assigns volume names to RAID-0 submirrors during the installation. You can optionally assign a name to RAID-1 volumes (mirrors) with the filesys JumpStart keyword.

Observe the follwoing rules when assigning names for volumes.

To simplify the administration of volumes, consider using the following standard naming conventions.

For detailed information about Solaris Volume Manager naming requirements, see Solaris Volume Manager Administration Guide.

State Database Replicas Guidelines and Requirements

You should distribute state database replicas across slices, drives, and controllers, to avoid single points of failure. You want a majority of replicas to survive a single component failure. If you lose a replica, when a device fails, for example, the failure might cause problems with running Solaris Volume Manager software or when rebooting the system. Solaris Volume Manager software requires at least half of the replicas to be available to run, but a majority (half plus one) to reboot into multiuser mode.

For detailed instructions about creating and administering state database replicas, see Solaris Volume Manager Administration Guide.

Selecting Slices for State Database Replicas

Before selecting slices for state database replicas, consider the following guidelines and recommendations.

Choosing the Number of State Database Replicas

Before choosing the number of state database replicas, consider the following guidelines.

Distributing State Database Replicas Across Controllers

If multiple controllers exist, replicas should be distributed as evenly as possible across all controllers. This strategy provides redundancy if a controller fails and also helps balance the load. If multiple disks exist on a controller, at least two of the disks on each controller should store a replica.

Mirror and Submirror Requirements and Guidelines

When you are working with RAID-1 volumes (mirrors) and RAID-0 volumes (single-slice concatenations), consider the following guidelines.

Custom JumpStart and Solaris Live Upgrade Guidelines

The custom JumpStart installation method and Solaris Live Upgrade support a subset of the features that are available in the Solaris Volume Manager software. When you create mirrored file systems with these installation programs, consider the following guidelines.

Guidelines for Selecting Disks and Controllers

When you choose the disks and controllers that you want to use to mirror a file system, consider the following guidelines.

Guidelines for Selecting Slices

When you choose the slices that you want to use to mirror a file system, consider the following guidelines.

How Booting Into Single-User Mode Affects RAID-1 Volumes

If a system with mirrors for root (/), /usr, and swap is booted into single-user mode, the system indicates that these mirrors are in need of maintenance. When you view these mirrors with the metastat command, these mirrors, and possibly all mirrors on the system, appear in the “Needing Maintenance” state.

Though this situation appears to be potentially dangerous, do not be concerned. The metasync -r command, which normally occurs during boot to resynchronize mirrors, is interrupted when the system is booted into single-user mode. After the system is rebooted, the metasync -r command runs and resynchronizes all mirrors.

If this interruption is a concern, run the metasync -r command manually.

For more information on the metasync, see the metasync(1M) man page, and Solaris Volume Manager Administration Guide.