0 Replies Latest reply on Nov 4, 2007 11:08 AM by Greg_Kroon NameToUpdate

    Solaris Disk suite and Mirroring boot disk

      Hi Guys


      Recently I was doing some research for a POC that has been put on hold .

      One of the requirements was to be able to automatically mirror the boot disk with Bladelogic .

      Below are the commands and references I used to do it in a manual fashion , I have also attached a script I found on Big Admin that automatically does this for x86 and Sparc , with a little tweaking it can run completely unattended .


      reference http://unixway.com/vm/disksuite/mirroros.html


      prtvtoc /dev/rdsk/c1t0d0s2 | fmthard -s - /dev/rdsk/c1t1d0s2




      metadb -a -f c1t0d0s5

      metadb -a c1t0d0s6

      metadb -a c1t1d0s5

      metadb -a c1t1d0s6


      metainit -f d10 1 1 c1t0d0s0

      metainit -f d20 1 1 c1t1d0s0

      metainit d0 -m d10



      metaroot d0


      metainit -f d11 1 1 c1t0d0s1

      metainit -f d21 1 1 c1t1d0s1

      metainit d1 -m d11


      metainit -f d14 1 1 c1t0d0s3

      metainit -f d24 1 1 c1t1d0s3

      metainit d4 -m d14



      1. edit vfstab here





      lockfs -fa


      sync;sync;sync;init 6



      metattach d0 d20

      metattach d1 d21

      metattach d4 d24



      metastat -p | tee /etc/lvm/md.tab


      dumpadm -d /dev/md/dsk/d1


      #ls -l /dev/dsk/c1t0d0s0 /dev/dsk/c1t1d0s0


      eeprom "nvramrc=devalias sds-root /pci@1c,600000/scsi@2/disk@0,0 devalias sds-mirror /pci@1c,600000/scsi@2/disk@1,0"


      eeprom "use-nvramrc?=true"

      Echo set md:mirrored_root_flag=1 >> /etc/system



      reference http://unixway.com/vm/disksuite/mirroros.html