This discussion is archived
1 Reply Latest reply: Feb 21, 2013 7:32 AM by bobthesungeek76036 RSS

break a mirror and remake on SVM

user13643597 Newbie
Currently Being Moderated
Hi everyone,

I have one machine with SVM, actual situation:

#df -h | grep d100
/dev/md/dsk/d100 20G 13G 6.8G 66% /

#metastat d100
d100: Mirror
Submirror 0: d101
State: Okay
Submirror 1: d102
State: Okay
Pass: 1
Read option: roundrobin (default)
Write option: parallel (default)
Size: 41945472 blocks (20 GB)

d101: Submirror of d100
State: Okay
Size: 41945472 blocks (20 GB)
Stripe 0:
Device Start Block Dbase State Reloc Hot Spare
c0t0d0s0 0 No Okay Yes


d102: Submirror of d100
State: Okay
Size: 41945472 blocks (20 GB)
Stripe 0:
Device Start Block Dbase State Reloc Hot Spare
c1t0d0s0 0 No Okay Yes



and I want break a mirror do some intervention in machine, and I will try break a mirror:

#metadetach d100 d102          

try boot with disk d102/c1t0d0s0 (mirror), just test.

and after intervention remake a mirror:


#metatach d100 d102


This its possible/correct do this?
  • 1. Re: break a mirror and remake on SVM
    bobthesungeek76036 Pro
    Currently Being Moderated
    It's possible but the results aren't what you would expect. Unless you mount the d102 partition and modify the /etc/vfstab to point to d102 or the cXtXdX device(s), when you boot it will mount the metadevice d100 so even though you are booting from second disk, you will be mounting root from the metadevice.

    So you will need to mount the d102 partition and edit the vfstab (after detaching) and you should be able to boot from it as you would expect. Make sure you have a bootblock on the disk...

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points