Sponsored Content
Full Discussion: DiskSuite mirroring on x86 ?
Operating Systems Solaris DiskSuite mirroring on x86 ? Post 302100999 by Tornado on Tuesday 26th of December 2006 08:27:56 PM
Old 12-26-2006
Quote:
Originally Posted by Remi
This is a wonderful guide on Solaris 10. By any chance, does anyone know how to do this in Solaris 8 ?

Thanks,
Remi
Solaris 10 is the minimum supported OS release for the SunFire X4100

But Solaris 8/9 is supported on some of the older hardware...
Solaris 8 02/02 for Sun LX50 (x86), Solaris 9 12/02 (x86), Sun LX65 Server, Sun LX60 Server, Sun LX50 Server, Sun Fire V65x Server, Sun Fire V60x Server

Have a look at this: http://sunsolve.sun.com/search/docum...ey=1-9-72150-1
Code:
Document Body:

Currently the task of setting up automatic failover on a SPARC(R) is
relatively straight forward, however the same task on an x86 machine is
considerably more convoluted and difficult. For a SPARC machine, only a
couple of simple commands to set the nvalias in the NVRAM are needed to set
up automatic failover to the secondary drive. To set up automatic failover
on an x86 machine, the System Administrator needs to modify two files on
the boot floppy (boot.rc and bootenv.rc) and ALWAYS boot from the floppy.

Setting up automatic failover for a mirrored root:

Currently for automatic failover to succeed this solution requires use of
the boot floppy. The files boot.rc and bootenv.rc on the boot floppy need
to be modified and autoboot must be set. The floppy is used as a primitive
type of boot prom, as Solaris does not have control over the varied types
of BIOS that can be found on these machines, to allow the system to
automatically failover to the alternate boot device.

To set up autofailover use the following procedure:

1) Create the boot floppy from Solaris CD2 using dd.exe.

2) Modify the /floppy/floppy0/solaris/boot.rc file:

  The following line in /floppy/floppy0/boot.rc:


    run /boot/solaris/bootconf.exe ${confflags}


  should be changed to:


    run /boot/solaris/bootconf.exe -n ${confflags}


  Add these lines immediately after the previous line:


    cd /options
    if .streq ( ${root-is-mounted}X , falseX )
      echo
      echo 'Failed to mount primary bootpath:'
      echo "  ${bootpath}"
      echo
      echo 'Trying alternate boot disk:'
      echo "  ${altbootpath}"
      echo
      setprop bootpath "${altbootpath}"
      run /boot/solaris/bootconf.exe ${confflags}
    endif


3) Modify the /floppy/floppy0/solaris/bootenv.rc file as follows.

  Make sure auto-boot? is set to true:


    setprop auto-boot? True


  Set auto-boot-timeout to an appropriately low value:


    setprop auto-boot-timeout 5


  Set altbootpath to your alternate submirror:


    setprop altbootpath <backup_root_device_id>


  Make sure the bootpath is set to the location of your primary root  
  partition:


    setprop bootpath <primary_root_device_id>


  e.g.
    setprop auto-boot? true
    setprop auto-boot-timeout 5
    setprop bootpath    
      /pci@0,0/pci8086,2545@3/pci8086,1460@1d/pci8086,341a@7,1/sd@0,0:a
    setprop altbootpath
      /pci@0,0/pci8086,2545@3/pci8086,1460@1d/pci8086,341a@7,1/sd@1,0:a


SVM Failed Disk Recovery

When one of the disks fails, reboot the system with the boot floppy inserted.
During the boot you will be told that there are state databases which no longer exist.
You will then be prompted to give the root password for system maintenance.

1) Enter the root password for system maintenance.

2) Execute metadb to see which state databases have failed.

3) Delete references to the dead state databases:

    Metadb -d <failed disk> (eg c0t1d0s3)


4) Reboot the system which should come up normally, however you will see
some messages reporting that, for example, metadevice d21 is "unavailable
needs maintenance" for each of the slices which were on the failed disk.

5) Execute metastat and make a note of the slices and their disk slice
locations.

6) Shutdown the server, replace the failed drive with a replacement and power up again.

7) Create a copy of the good disk's partition information onto the new disk:

     fdisk -W /var/tmp/fdisk.dat  /dev/rdsk/c0t0d0p0  <good disk>
     fdisk -F /var/tmp/fdisk.dat  /dev/rdsk/c0t1d0p0  <replaced disk>


8) Add bootblock as per answerbook to the new drive.

  http://docs.sun.com/db/doc/806-4073/...isksxadd-45774


e.g.
installboot /usr/platform/`uname -i`/lib/fs/ufs/pboot
/usr/platform/`uname -i`/lib/fs/ufs/bootblk /dev/rdsk/c0t1d0s2 <replaced disk>

9) Copy the disk layout of the good disk with the new replacement for the failed disk:

 prtvtoc /dev/rdsk/<good disk> | fmthard -s - /dev/rdsk/<replaced disk>


10) Now create new state databases on the new disk:

       metadb -a -c3 <replaced disk>


11) Finally you have to execute metareplace for each failed slice:

       metareplace -e <SVM device> <replaced disk>


   e.g.        
       metareplace -e d30 c0t1d0s0
       metareplace -e d31 c0t1d0s1
       metareplace -e d32 c0t1d0s4
       metareplace -e d33 c0t1d0s5
       metareplace -e d34 c0t1d0s7          


You can monitor the progress of the re-sync by either using the metastat
command or by firing up the Solaris Management Console (SMC) and double
clicking on "The Computer" -> "Storage" -> "Enhanced Storage" -> "Volumes".

Issues:

There is an issue with reference to booting from the second half of an SVM
mirror on certain systems x86 systems. For example, with a failed first
half of a mirror on a V60x the system should boot from the second half of
the mirror, but instead fails with an error like the following:

 unable to mount a Solaris root file system from the device: 
 Disk target:SEGATE ST336607LSUN36G 0307 on Adaptec Ultra/320 
 on Board PCI bus 4, at Dev7, func1 Error message from mount:


 /pci@0,0/pci8086,2545@3/pci8086,1460@1d/pci8086,341a@7,1/sd@1,0:a


Workaround:

The easiest solution is to pull the failed first disk and put the second
disk in its place. The replacement disk can then be put in the free slot
and sync(ed) from there.

Tornado
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Disksuite questions

Is this correct if I have to create 2 partions of 100 Gigs each? (spread accross (6) 36 Gig drives) AVAILABLE DISK SELECTIONS: 0. c0t0d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107> /pci@1f,4000/scsi@3/sd@0,0 1. c0t1d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107> ... (10 Replies)
Discussion started by: finster
10 Replies

2. Solaris

Solstice DiskSuite

Has anybody every used Solstice DiskSuite? I am having trouble setting it up. I installed it without a problem, but do I really have to blow away the drives on the D1000 just to create a metastate database? (8 Replies)
Discussion started by: hshapiro
8 Replies

3. Solaris

mirroring the boot slice (slice 8) on x86

Hi there I am about to mirror a Solaris 10 x86 box (SunFire X4100) onto a secondary disk using svm (current system is one disk). My question is this, on X86 boxes there is a slice 8 defined as boot partition (and also a slice 9, dunno what its used for tho). Do I need to mirror this boot slice... (0 Replies)
Discussion started by: hcclnoodles
0 Replies

4. UNIX for Dummies Questions & Answers

disksuite and raidctl used together

I have a live Sunfire v440 server with 4 drives and I want to mirror drive 0 & 1 to 2 & 3. The on-board raid controller only allows for 1 live mirror. I was thinking of disksuite, but unfortunately the second disk is just one large partition with no free slices. I was thinking of using... (0 Replies)
Discussion started by: csgonan
0 Replies

5. Solaris

Disk Mirroring for Solaris 10 x86

I am having an issue with setting up disk mirroring for Solaris 10 on an x86 server. My main problem is that the volumes and slices have already been setup and our proprietary software has already been installed and configured. The entire drive has been allocated in this configuration and the... (2 Replies)
Discussion started by: chuck43
2 Replies

6. Solaris

DiskSuite dilemma

Hello, We have this system a SunFire 280R running Solaris 8 Generic_117350-46. It has 2 36GB disks in it. They are mirrored with DiskSuite 4.2.1. When we execute a metastat all the devices report an Okay status, but when we go into metatool everything is in the Critical (maintenance)... (4 Replies)
Discussion started by: mgb
4 Replies

7. Solaris

mirroring with disksuite

hi all, i want to mirror two disks with disksuite under solaris 9 , doses smeone can explain me Briefly the essential steps to do that plz ? (3 Replies)
Discussion started by: lid-j-one
3 Replies

8. Solaris

Looking for Solstice DiskSuite 4.2

Hi all, Do you know where I can download Soltice Disksuite 4.2 for Solaris 2.6 ? I haven't the CD labeled “Solaris Server Intranet Extensions 1.0” . Thanks in advance for your precious help. Bests Regards Hosni (2 Replies)
Discussion started by: hosni
2 Replies

9. Solaris

disksuite mirroring d0 to d2 and d1 to d3

I have a SOlaris 10 v240 server. I'm installing disksuite to mirror the root drive D0 to D2. I also have one partition on disk 1 that I want to mirror to D3. I am not using ZFS right now. Can I add that to my initial mirroring configuration or can I only mirror 1 drive to 1 drive? Can I... (2 Replies)
Discussion started by: csross
2 Replies

10. Solaris

Disksuite question

Hello all, I have a Solaris Disksuite question :- I will be adding 4 new drives to an E250 server and need will be configuring 2 striped volumes each consisting 2 new disks with SVM. In the end i will have 2 volumes each of 72gb. So in effect i will have 1 volume called D7 and another volume... (6 Replies)
Discussion started by: commandline
6 Replies
All times are GMT -4. The time now is 09:48 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy