Solaris Express Installation Guide: Solaris Live Upgrade and Upgrade Planning
Previous Next

Example of Detaching and Upgrading One Side of a RAID-1 Volume (Mirror)

This example shows you how to do the following tasks:

  • Create a RAID-1 volume (mirror) on a new boot environment

  • Break the mirror and upgrade one half of the mirror

  • Attach the other half of the mirror, the concatenation, to the new mirror

Figure 10-1 shows the current boot environment, which contains three physical disks.

Figure 10-1 Detaching and Upgrading One Side of a RAID-1 Volume (Mirror)
The context describes the illustration.
  1. Create a new boot environment, second_disk, that contains a mirror.

    The following command performs these tasks.

    • lucreate configures a UFS file system for the mount point root (/). A mirror, d10, is created. This mirror is the receptacle for the current boot environment's root (/) file system, which is copied to the mirror d10. All data on the mirror d10 is overwritten.

    • Two slices, c0t1d0s0 and c0t2d0s0, are specified to be used as submirrors. These two submirrors are attached to mirror d10.

    # lucreate -c first_disk -n second_disk \ -m /:/dev/md/dsk/d10:ufs,mirror \ -m /:/dev/dsk/c0t1d0s0:attach \ -m /:/dev/dsk/c0t2d0s0:attach
  2. Activate the second_disk boot environment.

    # /sbin/luactivate second_disk
    # init 6
  3. Create another boot environment, third_disk.

    The following command performs these tasks.

    • lucreate configures a UFS file system for the mount point root (/). A mirror, d20, is created.

    • Slice c0t1d0s0 is removed from its current mirror and is added to mirror d20. The contents of the submirror, the root (/) file system, are preserved and no copy occurs.

    # lucreate -n third_disk \ -m /:/dev/md/dsk/d20:ufs,mirror \ -m /:/dev/dsk/c0t1d0s0:detach,attach,preserve
  4. Upgrade the new boot environment, third_disk

    # luupgrade -u -n third_disk \ -s /net/installmachine/export/Solaris_11/OS_image
  5. Add a patch to the upgraded boot environment.

    # luupgrade -t n third_disk -s /net/patches 222222-01
  6. Activate the third_disk boot environment to make this boot environment the currently running system.

    # /sbin/luactivate third_disk
    # init 6
  7. Delete the boot environment second_disk.

    # ludelete second_disk
  8. The following commands perform these tasks.

    • Clear mirror d10.

    • Check for the number for the concatenation of c0t2d0s0.

    • Attach the concatenation that is found by the metastat command to the mirror d20. The metattach command synchronizes the newly attached concatenation with the concatenation in mirror d20. All data on the concatenation is overwritten.

    # metaclear d10 # metastat -p | grep c0t2d0s0
    dnum 1 1 c0t2d0s0
    # metattach d20 dnum
    num

    Is the number found in the metastat command for the concatenation

The new boot environment, third_disk, has been upgraded and is the currently running system. third_disk contains the root (/) file system that is mirrored.

Figure 10-2 shows the entire process of detaching a mirror and upgrading the mirror by using the commands in the preceding example.

Figure 10-2 Detaching and Upgrading One Side of a RAID-1 Volume (Mirror) (continued)
The context describes the illustration.
Previous Next