Is it possible to mirror disks without physically removing disk the incompletely mirrored disk

Is it possible to mirror disks without physically removing disk the incompletely mirrored disk

Post by pravin.pa.. » Tue, 08 Mar 2005 05:03:52



# format
Searching for disks...done

AVAILABLE DISK SELECTIONS:
       0. c1t0d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107>

       1. c1t1d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107>

Specify disk (enter its number): 0
selecting c1t0d0
[disk formatted]

format> part

partition> print
Current partition table (original):
Total disk cylinders available: 24620 + 2 (reserved cylinders)

The following is an incomplete mirror disks example, on the SUN36G
V480:
c1t0d0:
Part      Tag    Flag     Cylinders         Size            Blocks
  0       root    wm       0 -  1417        1.95GB    (1418/0/0)
4096602
  1       swap    wu    1418 -  7225        8.00GB    (5808/0/0)
16779312
  2     backup    wm       0 - 24619       33.92GB    (24620/0/0)
71127180
  3 unassigned    wm    7226 -  7296      100.16MB    (71/0/0)
205119
  4 unassigned    wm    7297 -  8714        1.95GB    (1418/0/0)
4096602
  5 unassigned    wm    8715 - 21074       17.03GB    (12360/0/0)
35708040
  6        usr    wm   21075 - 22492        1.95GB    (1418/0/0)
4096602
  7 unassigned    wm   22493 - 24619        2.93GB    (2127/0/0)
6144903

c1t1d0:
Part      Tag    Flag     Cylinders         Size            Blocks
  0 unassigned    wm       0 -  1417        1.95GB    (1418/0/0)
4096602
  1 unassigned    wm    1418 -  7225        8.00GB    (5808/0/0)
16779312
  2     backup    wu       0 - 24619       33.92GB    (24620/0/0)
71127180
  3 unassigned    wm    7226 -  7296      100.16MB    (71/0/0)
205119
  4 unassigned    wm    7297 -  8714        1.95GB    (1418/0/0)
4096602
  5 unassigned    wm       0                0         (0/0/0)
 0
  6 unassigned    wm    8715 - 10132        1.95GB    (1418/0/0)
4096602
  7 unassigned    wm   10133 - 12259        2.93GB    (2127/0/0)
6144903

The issue is the 2nd disk on the V480 (Solaris 8) has slice 5 to 7 not
mirrored. Is it possible mirror the 2nd disk without removing it
physically and inserting back in? The second disk is not bad, but it is
not just fully mirrored.

We don't use Volume Manager. The recoverSystemDisks script we use does
the following:

"This script validates DiskSuite meta-devices in the two system disks.
If damages caused by single disk failure are found, it also tries to
help operator repair the damages."
# We assume that disk disk0 has 6 (7 if 7X) sub-mirrors:
#       d80, d81, d83, d84, d86, d87 (plus d85 if 7X)
# and that disk disk1 has 6 (7 if 7X) sub-mirrors:
#       d90, d91, d93, d94, d96, d97 (plus d95 if 7X)
# A disk is declared "good" if metastat shows all
# its sub-mirrors have state "Okay".

Delete replicas on the bad disk if any

# this function just print instructions on screen
display_instructions() {
    echo "  "
    echo
"----------------------------------------------------------------"
    echo "Do you have a functioning, formatted disk in drive ${disk}?"
    echo " "
    echo "If you think so, press <Return> to continue."
    echo " "
    echo "If you do not have a replacement disk on hand, press Ctrl-c
to"
    echo "abort.  Re-run this script when the part is ready."
    echo "  "
    echo "If you can replace the disk without shutting down the
server,"
    echo "replace it now and then press <Return>."
    echo "(Note: allow at least 60 seconds for the new disk to spin
up)"
    echo " "
    echo "If you need to shut down the server in order to replace the
disk,"
    echo "press Ctrl-c to exit this script and follow the normal shut
down"
    echo "procedure.  After the replacement and system booting, run
this"
    echo "script again."
    echo "  "
    echo "Refer to System Recovery Procedures if in doubt."
    echo "  "
    echo "Press <Return> to continue, Ctrl-c to cancel"

Quote:}

# Request the operator to replace disk if necessary; partition the new
disk
# and create database replicas on it

# Replace bad slices in mirrors
#  After each replace, allow proper time for resyncing.
#  Without the sleeps, all mirrors will be resyncing at
#  the same time, cause a lot of disk head movements.

etc... etc...

 
 
 

1. Unable to mirror OS (Sol10) disk using BIOS Integrated Mirror on SF X4200.

blackfin# uname -a
SunOS blackfin 5.10 Generic_Patch_118844-30 i86pc i386 i86pc

Four 73 GB SAS drives installed.

LSI BIOS/ILOM code upgrade to version 9306

Entering the LSI Logic MPT Setup Utility

Choosing 'RAID Properties'

Choosing 'Create IM Volume'

Selecting drive '0' ('+' in column 'RAID Disk')

Selecting 'M' to keep existing data

  *"WARNING! There is currently not enough empty space at the end of        *
  *this disk to create an array. Using this disk in an array will           *
  *result in loss of ALL data on the disk.                                  *

Creating an Integrated Mirror on disks 2 and 3 works fine but the BIOS also
insists on erasing the Primary (=source) disk, which is no major problem in
the case of a non-system disk.

Eric.

2. Red Hat 7.0 and Kernel 2.4.0-test9 question?

3. Unable to mirror OS disk (0) using BIOS Integrated Mirror on SF 4200.

4. What is Solaris 2.8? Is it same as Solaris 8?

5. Double-disk, disk mirror

6. C/C++ man pages?

7. Is a hot spare disk needed for disk mirroring?

8. Something is filling up my /usr

9. Looking for Disk-Shadowing/Disk Mirroring Software.

10. Mirroring/Backup from Smaller disk to larger disk

11. How-to mirror system disk using disk suite

12. Solaris 10 SVM fails to boot from mirrored disk on 2 disk system; need help!

13. Software RAID 1 - disks mirror but the secondary disk does not boot.