Booting from disk mirror with Solstice DiskSuite

From: Andreas Hoeschler (ahoesch_at_smartsoft.de)
Date: 06/27/03

  • Next message: UnixAdmin: "SUMMARY: SSH Problem --WITH NEW PROBLEM--"
    Date: Fri, 27 Jun 2003 11:30:31 +0200
    To: sunmanagers@sunmanagers.org
    
    

    Dear managers,

    please excuse me asking again. Installing Solstice DiskSuite on a fresh
    SunFire 280R went fine following the instructions in the documentation.
    If I only could boot from the mirror so that I know I am ready for a
    disk failure. "boot disk0" does work. "boot disk1" produces the
    following:

    {0} ok boot mirrdisk
    Boot device: /pci@8,600000/SUNW,qlc@4/fp@0,0/disk@w21000004cffd1290,0:a
      File and args:
    SunOS Release 5.8 Version Generic_108528-13 64-bit
    Copyright 1983-2001 Sun Microsystems, Inc. All rights reserved.

    and then nothing. It hangs. How can I break this and get to the ok
    prompt again???

    I am trying to understand why my setup refuses to work. A few of you
    suggested to create a boot block on the second disk with

            installboot /usr/platform/`uname -i`/lib/fs/ufs/bootblk
    /dev/rdsk/c1t1d0s0

    Is this really necessary? I used the following command while creating
    the mirror. I do not exactly understand what it does but the docu said
    it would copy theVTOC and the boot block. Is this correct?
            
            dd if=/dev/rdsk/c1t0d0s2 of=/dev/rdsk/c1t1d0s2 count=16

    However, the mirror still does not boot. What else might be missing
    that is keeping it from doing what I want. I have attached my setup
    procedure again if this rings any bells.

    Thanks a lot,

       Andreas

    ************************************************************************
    *************
    Partition the first disk as follows:

            c1t0d0s0 / 20696 MByte
            c1t0d0s1 swap 7001 MByte
            c1t0d0s3 /var 5000 MByte
            c1t0d0s4 crash dumps 2000 MByte
            c1t0d0s7 state database 31 MByte

    Copy the VTOC and boot block to the mirror:
            
            dd if=/dev/rdsk/c1t0d0s2 of=/dev/rdsk/c1t1d0s2 count=16

    Create the state database replicas as follows:

            metadb -a -f -c 2 c1t0d0s7
            metadb -a -c 2 c1t1d0s7
            echo set md:mirrored_root_flag=1 >> /etc/system

    The -a and -f options used together create the initial replicas. The -a
    option attaches a new database device and automatically edits the
    /etc/system file. The -f option creates the actual database replica.

    Create the metadevices as follows:

            metainit -f d10 1 1 c1t0d0s0
            metainit -f d11 1 1 c1t0d0s1
            metainit -f d13 1 1 c1t0d0s3

            metainit d20 1 1 c1t1d0s0
            metainit d21 1 1 c1t1d0s1
            metainit d23 1 1 c1t1d0s3

            metainit d0 -m d10
            metainit d1 -m d11
            metainit d3 -m d13

    Make the system boot from the mirror as follows

            metaroot d0

    Replace the remaining partitions with metadevices in /etc/vfstab as
    follows.

            cp /etc/vfstab /etc/vfstab.tmp
            cat /etc/vfstab.tmp | \
              sed s,/dev/dsk/c1t0d0s1,/dev/md/dsk/d1, | \
              sed s,/dev/dsk/c1t0d0s3,/dev/md/dsk/d3, | \
              sed s,/dev/rdsk/c1t0d0s3,/dev/md/rdsk/d3, > /etc/vfstab

    Document the physical name on the two disks in the mirror:

            # ls -l /dev/rdsk/c1t0d0s0

    lrwxrwxrwx 1 root root 74 Jun 26 17:27
    /dev/rdsk/c1t0d0s0 ->
    ../../devices/pci@8,600000/SUNW,qlc@4/fp@0,0/
    ssd@w21000004cfef623f,0:a,raw

            # ls -l /dev/rdsk/c1t1d0s0

    lrwxrwxrwx 1 root root 74 Jun 26 17:27
    /dev/rdsk/c1t1d0s0 ->
    ../../devices/pci@8,600000/SUNW,qlc@4/fp@0,0/
    ssd@w21000004cffd1290,0:a,raw

    Halt the system:

            init 0

    Create an OBP (open boot prompt) alias for the bootable disks. Beware
    that for disks on certain controllers, the sd driver name must be
    replaced by disk. Verify this, using the OBP show-disks command

            {1} ok show-disks
            a) /pci@8,600000/SUNW,qlc@4/fp@0,0/disk
            b) /pci@8,700000/scsi@6,1/disk
            c) /pci@8,700000/scsi@6/disk
            q) NO SELECTION

    before entering the nvalias commands.

            ok setenv boot-device disk0 disk1
            ok boot

    Attach the submirrors, as follows.
            
            metattach d0 d20
            metattach d1 d21
            metattach d3 d23
    _______________________________________________
    sunmanagers mailing list
    sunmanagers@sunmanagers.org
    http://www.sunmanagers.org/mailman/listinfo/sunmanagers


  • Next message: UnixAdmin: "SUMMARY: SSH Problem --WITH NEW PROBLEM--"

    Relevant Pages

    • [HPADM] Summary MirrorDisk/UX 11.00
      ... disk 0 0/0/1/1.2.0 sdisk CLAIMED DEVICE HP 73.4GMAN3735MC ... Use mkboot to place the boot utilities in the boot area and add the AUTO file. ... LVM will resynchronize the new mirror copies. ... All you need to do is ftp it to your server, chmod 700 on the file then run the command with the cxtxdx name ...
      (HP-UX-Admin)
    • Re: cant boot from mirrored boot drive
      ... If the disk containing the primary partition fails you will have to create a fault tolerant boot floppy to recover the installation. ... Do I break the mirror, shutdown and remove the good boot disk rdiskand just leave the disk that doesn't want to boot in and boot to the recovery conole to check it out? ... They are sata drives, drive 0 and drive 1 on the main system board's controller. ...
      (microsoft.public.windows.server.general)
    • RE: Windows 2003 Mirror and Boot Partition
      ... For your complex hardware disk situation, ... How to mirror the system and boot partition in Windows ... | on the two new drives. ...
      (microsoft.public.windows.server.general)
    • RE: Disk 0 Raid 1 mirror problem
      ... I have the same issue with a Dell 1750. ... I was able to boot to Disk1 without issues. ... the failed disk and replaced it with the new disk, and low and behold, the ... and recreate the mirror so I do have some redundancy to a point. ...
      (microsoft.public.windows.server.general)
    • Re: No boot on win2k3 mirror
      ... Boot from your floppy to disk 1, try breaking the mirror and reinstate the ...
      (microsoft.public.windows.server.general)

  • Quantcast