Solstice DiskSuite 4.2.1 User's Guide

Creating Mirrors

This section describes how to create a mirror from scratch, and how to mirror an existing file system, including root (/).


Note -

In the past, when creating a mirror for a file system, the mount point would change. Now, in certain instances, you can create mirrors without having to change the mount point. Refer to "How to Create a Mirror From an Existing Concat/Stripe (Command Line)" for more information.


Preliminary Information for Creating Mirrors

How to Create a Mirror From Unused Slices (DiskSuite Tool)

The high-level steps in this procedure are:

  1. Make sure you have met the prerequisites ("Prerequisites for Creating DiskSuite Objects"), and have read the preliminary information ("Preliminary Information for Creating Mirrors").

  2. Click the Mirror template.

    An unassigned and uncommitted Mirror object appears on the canvas. The metadevice name is automatically assigned.

  3. [Optional] Change the default metadevice name.

    Display the object's pop-up menu and select Info. Type the new metadevice name in the Device Name field and click Attach. Then click Close.

  4. To create a one-way mirror, drag the first Concat/Stripe object (submirror) from the Objects list into the Mirror template. Click the top rectangle of the mirror, then click Commit.

  5. To create a two-way mirror, drag the second Concat/Stripe object (submirror) from the Objects list into the Mirror. Click the top rectangle of the mirror then click Commit.

    A resync of the second submirror begins. The Mirror object displays the resync progress.

  6. To verify that the mirror was committed, display the Configuration Log.

Example -- Committed Mirror Object

This example shows a committed mirror object, d5, consisting of two striped metadevices (submirrors), d3 and d4.

Graphic

Where to Go From Here

To prepare the newly created mirror for a file system, refer to "How to Create a File System on a Metadevice (File System Manager)". An application, such as a database, that uses the raw metadevice must have its own way of recognizing the metadevice.

How to Create a Mirror From Unused Slices (Command Line)

The high-level steps in this procedure are:

Check the prerequisites ("Prerequisites for Creating DiskSuite Objects"), and the preliminary information ("Preliminary Information for Creating Mirrors"), before beginning. Refer to the metainit(1M) and metattach(1M) man pages for more information.

Example -- Creating a Two-Way Mirror


# metainit d51 1 1 c0t0d0s2
d51: Concat/Stripe is setup
# metainit d52 1 1 c1t0d0s2
d52: Concat/Stripe is setup
# metainit d50 -m d51
d50: Mirror is setup
# metattach d50 d52
d50: Submirror d52 is attached

This example creates a two-way mirror, d50. The metainit(1M) command creates two submirrors (d51 and d52), which are actually concatenations. The metainit -m command creates the one-way mirror from the d51 concatenation. The metattach(1M) command attaches d52, creating a two-way mirror and causing a mirror resync. (Any data on the attached submirror is overwritten by the other submirror during the resync.) The system verifies that the objects are set up.

Where to Go From Here

To prepare a newly created mirror for a file system, refer to "How to Create a File System on a Metadevice (Command Line)". An application, such as a database, that uses the raw metadevice must have its own way of recognizing the metadevice.

How to Create a Mirror From a File System That Can Be Unmounted (DiskSuite Tool)

Use this procedure to mirror file systems that can be unmounted.


Note -

Some file systems can be unmounted, while other file systems (like root (/), /usr, /opt, or swap) cannot be unmounted. To mirror these file systems, refer to "How to Create a Mirror From a File System That Cannot Be Unmounted (DiskSuite Tool)".


The high-level steps in this procedure are:


Caution - Caution -

Do not create a multi-way mirror at first. Instead, commit a one-way mirror, then drag the additional submirror to the mirror template and commit the mirror again. This procedure initiates a mirror resync, ensuring that data is not corrupted.


  1. Make sure you have met the prerequisites ("Prerequisites for Creating DiskSuite Objects"), and have read the preliminary information ("Preliminary Information for Creating Mirrors").

  2. Click Slices to display the Slice Browser window.

    DiskSuite Tool should display the file system's name next to the name of the slice upon which it is mounted. If you mount a file system after starting DiskSuite Tool, select Rescan Configuration from the File menu.

  3. Click the Concat/Stripe template.

    DiskSuite Tool displays an unassigned and uncommitted Concat/Stripe object on the canvas and gives it a metadevice name.

  4. [Optional] Change the default metadevice name.

    Display the object's pop-up menu and select Info. Type the new metadevice name in the Device Name field and click Attach. Then click Close.

  5. Drag the file system's slice from the Slice Browser window into the Concat/Stripe object.

    When the slice is dropped, a warning dialog box is displayed that the slice is mounted. Click Continue.

  6. Make sure the Concat/Stripe object is selected, then click Commit.

    Click Really Commit on the warning dialog box that appears. This creates a metadevice that contains the file system, which will be used as the first submirror.


    Note -

    If an entry exists in the /etc/vfstab file for the file system, and the file system is currently mounted, DiskSuite Tool automatically updates it to use the concatenation's name.


  7. Click the Concat/Stripe template.

    DiskSuite Tool displays an unassigned and uncommitted Concat/Stripe object on the canvas and gives it a metadevice name.

  8. [Optional] Change the default metadevice name.

    See Step 4.

  9. Drag a slice from the Slice Browser window into the Concat/Stripe object.

    Select an unused slice, a slice that contains a state database replica, or more than one slice that is the same size or greater as the existing file system.

  10. Make sure the Concat/Stripe object is selected, then click Commit.

    This creates a metadevice, which will be used as the second submirror.

  11. Click the Mirror template.

    DiskSuite Tool displays an unassigned and uncommitted mirror object on the canvas and gives it a metadevice name.

  12. [Optional] Change the default metadevice name.

    See Step 4.

  13. Drag the Concat/Stripe object containing the file system (created in Step 6) into the Mirror template. A warning dialog box appears. Click Continue.


    Note -

    If an entry exists in the /etc/vfstab file for the file system, and the file system is currently mounted, DiskSuite Tool automatically updates it to use the mirror's metadevice name.


  14. Click the top rectangle of the Mirror object, then click Commit.

    This creates the one-way mirror.

  15. Unmount the file system.

    For example, use the umount(1M) command, or File System Manager.

  16. Select Rescan Configuration from the File menu.

    DiskSuite Tool updates the file system's current mount status.

  17. Remount the file system on the mirror.

    For example, use the mount(1M) command or File System Manager. (The mount point has now changed from the slice name to the mirror name.)

  18. Select Rescan Configuration from the File menu.

    DiskSuite Tool updates the file system's mount point. The Mirror object shows that it is being used by the file system.

  19. Drag the second Concat/Stripe object (created in Step 10) into the Mirror object. Click on the top rectangle of the Mirror object then click Commit.

    Data from the first submirror is resynced to the second mirror automatically.

  20. To verify that the mirror was committed, display the Configuration Log.

Example -- Committed Mirror Object with a Mounted File System

This example shows a committed two-way mirror consisting of submirrors d0 and d7, which in turn consist of slices c1t1d0s2 and c2t1d0s2, respectively. The file system, /fs1, is mounted on the mirror, d2.

Graphic

How to Create a Mirror From a File System That Can Be Unmounted (Command Line)

Use this procedure to mirror an existing file system that can be unmounted.


Note -

To use the command line to mirror /usr, /opt, or swap, refer to "How to Create a Mirror From a File System That Cannot Be Unmounted (Command Line)". To use the command line to mirror root (/), refer to "SPARC: How to Create a Mirror From root (/) (Command Line)", or "x86: How to Create a Mirror From root (/) (Command Line)".


The high-level steps in this procedure are:

Check the prerequisites ("Prerequisites for Creating DiskSuite Objects"), and the preliminary information ("Preliminary Information for Creating Mirrors"), before beginning. Refer to the metainit(1M) and metattach(1M) man pages for more information.


Caution - Caution -

Do not create a multi-way mirror. Rather, create a one-way mirror with the metainit(1M) command then attach the additional submirrors with the metattach(1M) command. When the metattach(1M) command is not used, no resync operations occur and data could become corrupted. Also, do not create a two-mirror for a file system without first unmounting the file system and editing the /etc/vfstab file to reference the mirror metadevice before attaching the second submirror.


Example -- Creating a Two-Way Mirror


# metainit -f d1 1 1 c1t0d0s0
d1: Concat/Stripe is setup
# metainit d2 1 1 c2t0d0s0
d2: Concat/Stripe is setup
# metainit d0 -m d1
d0: Mirror is setup
# umount /master
(Edit the /etc/vfstab file so that the file system references the mirror)
# mount /master
# metattach d0 d2
d0: Submirror d2 is attached

The -f option forces the creation of the first concatenation, d1, which contains the mounted file system /master on /dev/dsk/c1t0d0s0. The second concatenation, d2, is created from /dev/dsk/c2t0d0s0. (This slice must be the same size or greater than that of d1.) The metainit command with the -m option creates the one-way mirror, d0, from d1.

Next, /master is unmounted and its entry changed in the /etc/vfstab file to reference the mirror. For example, the following line:


/dev/dsk/c1t0d0s0 /dev/rdsk/c1t0d0s0 /master ufs 2 yes -

should be changed to:


/dev/md/dsk/d0 /dev/md/rdsk/d0 /master ufs 2 yes -

Finally, the /master file system is remounted and submirror d2 attached to the mirror, causing a mirror resync. (The system verifies that the concatenations and the mirror are set up, and that submirror d2 is attached.)

How to Create a Mirror From a File System That Cannot Be Unmounted (DiskSuite Tool)

Use this procedure to mirror file systems, such as root (/), /usr, /opt, and swap, that cannot be unmounted during normal system usage.

The high-level steps in this procedure are:


Note -

When mirroring root (/), it is essential that you record the secondary root slice name to reboot the system if the primary submirror fails. This information should be written down, not recorded on the system, which may not be available. See Chapter 7, Troubleshooting the System for details on recording the alternate boot device, and on booting from the alternate boot device.


  1. Make sure you have met the prerequisites ("Prerequisites for Creating DiskSuite Objects"), and have read the preliminary information ("Preliminary Information for Creating Mirrors").

  2. Click the Concat/Stripe template.

    DiskSuite Tool displays an unassigned and uncommitted Concat/Stripe object on the canvas and gives it a metadevice name.

  3. [Optional] Change the default metadevice name.

    Display the object's pop-up menu and select Info. Type the new metadevice name in the Device Name field and click the Attach button. Then click the Close button.

  4. Click Slices to display the Slice Browser window.

  5. Drag the slice containing the file system you want to mirror to the top rectangle of the Concat/Stripe object.

    When you drop the slice, DiskSuite Tool displays a warning dialog box. Click the Continue button.

  6. Click the top rectangle of the Concat/Stripe object, then click Commit.

    Click the Really Commit button if DiskSuite Tool displays a warning dialog box. This creates a one-way concatenation that contains the file system, which will be used as the first submirror.


    Note -

    If an entry exists in the /etc/vfstab file for the file system, and the file system is currently mounted, DiskSuite Tool automatically updates it to use the concatenation's metadevice name.


  7. Click the Concat/Stripe template.

    DiskSuite Tool displays an unassigned and uncommitted Concat/Stripe object on the canvas and gives it a metadevice name.

  8. [Optional] Change the default metadevice name.

    See Step 3.

  9. Drag a slice from the Slice Browser window to this Concat/Stripe object.

    When creating this one-way concatenated metadevice, use an unused slice that is the same size as or greater than the existing file system.

  10. Click the top rectangle of the Concat/Stripe object then click Commit.

    This creates the second submirror.

  11. Click the Mirror template.

    DiskSuite Tool displays an unassigned and uncommitted Mirror object on the canvas and gives it a metadevice name.

  12. [Optional] Change the default metadevice name.

    See Step 3.

  13. Drag the Concat/Stripe object that contains the file system into the Mirror template.

    Click the Continue button if DiskSuite Tool displays a warning dialog box.


    Note -

    If an entry exists in the /etc/vfstab file for the file system, and the file system is currently mounted, DiskSuite Tool automatically updates it to use the mirror's metadevice name.


  14. Click the top rectangle of the Mirror object then click Commit.

  15. Reboot.

  16. Restart DiskSuite Tool.

  17. Drag the second Concat/Stripe object created in Step 10 into the Mirror object to create the two-way mirror. Then click Commit.

    Data from the first submirror is resynced to the second mirror.

  18. If you are mirroring root (/), record the alternate boot path.

    Refer to Chapter 7, Troubleshooting the System for more information.

  19. To verify that the mirror was committed, display the Configuration Log.

Example -- Committed Mirror for /usr

This example shows a committed mirror containing the /usr file system.

Graphic

How to Create a Mirror From a File System That Cannot Be Unmounted (Command Line)

Use this procedure to mirror file systems, such as /usr, /opt, and swap, that cannot be unmounted during normal system usage.

To save the crash dump when you have mirrored swap, use the dumpadm(1M) command to configure the dump device as a metadevice. For instance, if the swap device is named /dev/md/dsk/d2, use dumpadmdumpadm to set this as the dump device.


Note -

To use the command line to mirror root (/), refer to "SPARC: How to Create a Mirror From root (/) (Command Line)", or "x86: How to Create a Mirror From root (/) (Command Line)".


The high-level steps in this procedure are:


Caution - Caution -

Do not create a multi-way mirror. Rather, create a one-way mirror with the metainit(1M) command, then attach the additional submirrors with the metattach(1M) command. When the metattach(1M) command is not used, no mirror resync occurs and data could become corrupted.


After checking the prerequisites ("Prerequisites for Creating DiskSuite Objects"), and the preliminary information ("Preliminary Information for Creating Mirrors"), use the metainit(1M) and metattach(1M) commands to create the mirror.

Example -- Creating a Mirror From /usr


# metainit -f d12 1 1 c0t3d0s6
d12: Concat/Stripe is setup
# metainit d22 1 1 c1t0d0s6
d22: Concat/Stripe is setup
# metainit d2 -m d12
d2: Mirror is setup
(Edit the /etc/vfstab file so that /usr references the mirror)
# reboot
...
# metattach d2 d22
d2: Submirror d22 is attached

The -f option forces the creation of the first concatenation, d12, which contains the mounted file system /usr on /dev/dsk/c0t3d0s6. The second concatenation, d22, is created from /dev/dsk/c1t0d0s6. (This slice must be the same size or greater than that of d12.) The metainit command with the -m option creates the one-way mirror d2 using the concatenation containing /usr. Next, the /etc/vfstab file must be edited to change the entry for /usr to reference the mirror. For example, the following line:


/dev/dsk/c0t3d0s6 /dev/rdsk/c0t3d0s6 /usr ufs 1 yes -

should be changed to:


/dev/md/dsk/d2 /dev/md/rdsk/d2 /usr ufs 1 yes -

After a reboot, the second submirror d22 is attached to the mirror, causing a mirror resync. (The system verifies that the concatenations and the mirror are set up, and that submirror d22 is attached.)

Example -- Creating a Mirror From swap


# metainit -f d11 1 1 c0t0d0s1
d11: Concat/Stripe is setup
# metainit d21 1 1 c1t0d0s1
d21: Concat/Stripe is setup
# metainit d1 -m d11
d1: Mirror is setup
(Edit the /etc/vfstab file so that swap references the mirror)
# reboot
...
# metattach d1 d21
d1: Submirror d21 is attached

The -f option forces the creation of the first concatenation, d11, which contains the mounted file system swap on /dev/dsk/c0t0d0s1. The second concatenation, d21, is created from /dev/dsk/c1t0d0s1. (This slice must be the same size or greater than that of d11.) The metainit command with the -m option creates the one-way mirror d1 using the concatenation containing swap. Next, if there is an entry for swap in the /etc/vfstab file, it must be edited to reference the mirror. For example, the following line:


/dev/dsk/c0t0d0s1 - - swap - no -

should be changed to:


/dev/md/dsk/d1 - - swap - no -

After a reboot, the second submirror d21 is attached to the mirror, causing a mirror resync. (The system verifies that the concatenations and the mirror are set up, and that submirror d21 is attached.)

SPARC: How to Create a Mirror From root (/) (Command Line)

Use this task to mirror root (/) on a SPARC system.


Note -

The task for using the command line to mirror root (/) on an x86 system is different from the task used for a SPARC system. To mirror root (/) on an x86 system, refer to "x86: How to Create a Mirror From root (/) (Command Line)". When mirroring root (/), it is essential that you record the secondary root slice name to reboot the system if the primary submirror fails. This information should be written down, not recorded on the system, which may not be available. See Chapter 7, Troubleshooting the System for details on recording the alternate boot device, and on booting from the alternate boot device.


The high-level steps in this procedure are:

Make sure you have met the prerequisites ("Prerequisites for Creating DiskSuite Objects"), and have read the preliminary information ("Preliminary Information for Creating Mirrors"). For more information refer to the metainit(1M), metaroot(1M), and metattach(1M) man pages.

Example -- SPARC: Creating a Mirror From root (/)


# metainit -f d11 1 1 c0t3d0s0
d11: Concat/Stripe is setup
# metainit d12 1 1 c1t3d0s0
d12: Concat/Stripe is setup
# metainit d10 -m d11
d10: Mirror is setup
# metaroot d10
# lockfs -fa
# reboot
...
# metattach d10 d12
d10: Submirror d12 is attached
# ls -l /dev/rdsk/c1t3d0s0
lrwxrwxrwx   1 root     root          88 Feb  8 15:51 /dev/rdsk/c1t3d0s0 ->
../../devices/iommu@f,e0000000/vme@f,df010000/SUNW,pn@4d,1080000/ipi3sc@0,0/i
d@3,0:a,raw

The -f option forces the creation of the first concatenation, d11, which contains the mounted file system root (/) on /dev/dsk/c0t3d0s0. The second concatenation, d12, is created from /dev/dsk/c1t3d0s0. (This slice must be the same size or greater than that of d11.) The metainit command with the -m option creates the one-way mirror d10 using the concatenation containing root (/). Next, the metaroot command edits the /etc/vfstab and /etc/system files so that the system may be booted with the root file system (/) on a metadevice. (It is a good idea to run lockfs -fa before rebooting.) After a reboot, the submirror d12 is attached to the mirror, causing a mirror resync. (The system verifies that the concatenations and the mirror are set up, and that submirror d12 is attached.) The ls -l command is run on the root raw device to determine the path to the alternate root device in case the system needs to be booted from it.

x86: How to Create a Mirror From root (/) (Command Line)

Use this task to mirror root (/) on an x86 system.


Note -

When mirroring root (/), it is essential that you record the secondary root slice name to reboot the system if the primary submirror fails. This information should be written down, not recorded on the system, which may not be available. See Chapter 7, Troubleshooting the System for details on recording the alternate boot device, and on booting from the alternate boot device.


The high-level steps in this task are:


Note -

You cannot mirror root (/) on an IDE drive.


For the purpose of the following procedures, assume that the alternate disk is c0t1d0.

Create a Solaris Partition

Use these steps to create a Solaris partition on an x86 system.

  1. Create the disk partition using the fdisk(1M) command.


    # fdisk /dev/rdsk/c0t1d0p0
    
    1. If this is the first time you have run fdisk(1M), you see the following:


      The recommended default partitioning for your disk is:
       
      a 100% "SOLARIS System" partition
       
      To select this, please type "y". To partition your disk
      differently, type "n" and the "fdisk" program will let you
      select other partitions.
    2. If you have previously run fdisk(1M), you see a menu similar to the following:


              Total disk size is 1855 cylinders
              Cylinder size is 1110 (512 byte) blocks
       
      Partition    Status    Type        Start    End    Length    %
      =========    ======    ========    =====    ===    ======   ===
          1        Active    SOLARIS         1   1854     1854    100
       
       
      SELECT ONE OF THE FOLLOWING:
       
           1.  Create a partition
           2.  Change Active (Boot from) partition
           3.  Delete a partition
           4.  Exit (Update disk configuration and exit)
           5.  Cancel (Exit without updating disk configuration)
      Enter Selection:
  2. Select menu items to ensure that you have a Solaris partition large enough for the root (/) mirror. The Solaris partition should be five cylinders larger than the size needed to hold the root (/) slice.

    Make sure that the Solaris partition is active. Otherwise, you will be unable to boot from it.

  3. Run the format(1M)command on the Solaris partition to create a slice for the root (/) mirror:


    # format
    Searching for disks...done
     
    AVAILABLE DISK SELECTIONS:
           0. c0t0d0 <DEFAULT cyl 2676 alt 2 hd 9 sec 85>
              /eisa/ncrs@8000,0/cmdk@0,0
           1. c1t1d0 <DEFAULT cyl 1865 alt 2 hd 7 sec 80>  ABCDEFG
              /eisa/eha@1000,0/cmdk@1,0
           2. c1t2d0 <DEFAULT cyl 1461 alt 2 hd 9 sec 64>
              /eisa/eha@1000,0/cmdk@2,0
           3. c1t3d0 <DEFAULT cyl 1461 alt 2 hd 9 sec 64>
              /eisa/eha@1000,0/cmdk@3,0
           4. c1t4d0 <DEFAULT cyl 1865 alt 2 hd 7 sec 80>
              /eisa/eha@1000,0/cmdk@4,0
    Specify disk (enter its number): 1
     
    selecting c1t1d0: ABCDEFG
    [disk formatted]
     
    FORMAT MENU:
    			disk 					- select a disk
    			type					- select (define) a disk type
    			partition					- select (define) a partition table
    			current					- describe the current disk
    			format					- format and analyze the disk
    			fdisk					- run the fdisk program
    			repair					- repair a defective sector
    			label					- write label to the disk
    			analyze					- surface analysis
    			defect					- defect list management
    			backup					- search for backup labels
    			verify					- read and display labels
    			save					- save new disk/partition definitions
    			inquiry					- show vendor, product and revision
    			volname					- set 8-character volume name
    			quit
  4. Select partition to define a partition:


    format> partition
     
    PARTITION MENU:
            0      - change `0' partition
            1      - change `1' partition
            2      - change `2' partition
            3      - change `3' partition
            4      - change `4' partition
            5      - change `5' partition
            6      - change `6' partition
            7      - change `7' partition
            select - select a predefined table
            modify - modify a predefined partition table
            name   - name the current table
            print  - display the current table
            label  - write partition map and label to the disk
            quit
    partition> 0
    Part				Tag				Flag			Cylinders							Size				Blocks
      0			unassigned   wm	     0														0				(0/0/0)
     
    Enter partition id tag [unassigned]: root
    Enter partition permission flags [wm]: wm
    Enter new starting cyl [0]: 4
    Enter partition size [0b, 0c, 0.00mb]: 400mb
    partition> label
    Ready to label disk, continue? y
    partition>
  5. Exit from the partition menu and the format(1M) program by typing the quit command twice.


    partition> quit
     
    FORMAT MENU:
            disk       - select a disk
            type       - select (define) a disk type
            partition  - select (define) a partition table
            current    - describe the current disk
            format     - format and analyze the disk
            repair     - repair a defective sector
            label      - write label to the disk
            analyze    - surface analysis
            defect     - defect list management
            backup     - search for backup labels
            verify     - read and display labels
            save       - save new disk/partition definitions
            inquiry    - show vendor, product and revision
            volname    - set 8-character volume name
            quit
    format> quit
    

    Note the following important information about the Solaris root (/) partition:

    • Its I.D. tag must be "root"

    • Its size must be greater than or equal to the size of the original root partition

    • It should not use cylinders 0-2

Install Boot Information

Use the installboot(1M) command to install the boot information on the alternate boot disk:


# installboot /usr/lib/fs/ufs/pboot
/usr/lib/fs/ufs/bootblk  /dev/rdsk/c0t1d0s0

Example -- x86: Creating a Mirror From root (/)

This example assumes that a Solaris partition has been created and installed with the boot information using the tasks above.


# metainit -f d10 1 1 c0t0d0s0
d10:Concat/Stripe is setup
# metainit d20 1 1 c1t0d0s0
d20: Concat/Stripe is setup
# metainit d0 -m d10
d10: Mirror is setup
# metaroot d0
# lockfs -fa
# reboot
...
# metattach d0 d20
d0: Submirror d20 is attached
# ls -l /dev/rdsk/c1t0d0s0
lrwxrwxrwx 1  root root  55 Mar 5 12:54  /dev/rdsk/c1t0d0s0 -> ../.
devices/eisa/eha@1000,0/cmdk@1,0:a

The -f option forces the creation of the first concatenation, d10, which contains the mounted file system root (/) on /dev/dsk/c0t0d0s0. The second concatenation, d20, is created from /dev/dsk/c1t0d0s0. (This slice must be the same size or greater than that of d10.) The metainit command with the -m option creates the one-way mirror d0 using the concatenation containing root (/). Next, the metaroot command edits the /etc/vfstab and /etc/system files so that the system may be booted with the root file system (/) on a metadevice. After a reboot, the submirror d20 is attached to the mirror, causing a mirror resync. (The system verifies that the concatenations and the mirror are set up, and that submirror d20 is attached.) Using the ls -l command on the root raw device determines the path to the alternate root device in case the system needs to be booted from it.