break solaris mirror


 
Thread Tools Search this Thread
Operating Systems Solaris break solaris mirror
# 1  
Old 06-24-2008
break solaris mirror

Hi All,

How do I break the solaris 8 mirror? And how do I make sure I will point the first hd mirror on reboot.

If the first break mirror won't boot. How do I make the copy mirror to boot?

Thanks in advance,
itik
# 2  
Old 06-24-2008
i think you are working on a production environment?! please take trainings on solaris on how to do such things!

just for learning you need to read about the commands:

in solaris
- metastat
- metadetach
- metattach
- fortmat

in obp
- nvalias
- printenv
- boot

don't do "try and error" on a production environment!
# 3  
Old 06-24-2008
Here is my procedure...it is a little bit clunky, but it works.

You should have the openboot variable "boot-device" set to something like
"disk0 disk1". You control which side you are booting from by explicitly
mentioning in the boot command at the ok prompt. Assuming that
disk0 c1t0d0
disk1 c1t1d0
is my root fs mirror...

Boot to single user mode from the installation CD.
ok boot -s cdrom

fsck root to ensure that everthing is ok and that you have the layout right
# fsck /dev/rdsk/c1t0d0

Then mount it
# mount /dev/dsk/c1t0d0 /a

Now, the only time that I use this procedure is when the root filesystem has been damaged to the point of not booting. So this is where I would fix it. But I am only fixing one side of the mirror. This is why I must now break the mirror. So assuming that I fixed the problem....

Edit /a/etc/system and remove the line that contains
rootdev

Edit /a/etc/vfstab and change
/dev/md/dsk/d0 /dev/md/rdsk/d0 / ufs ...
to
/dev/dsk/c1t0d0s0 /dev/rdsk/c1t0d0s0 / ufs ...

Then
cd /
umount /a
and get back to ok prompt (I just hit a break, but you may not be using a serial connection)

Boot into single user mode from the disk you just edited...
ok boot -s disk0

# metaclear -f -r d0
# init 0
ok boot disk0

And you should come up on one side of the mirror.

I have used this and it works for me. But it is a dangerous procedure. I
also doubt that my procedure is optimal. So proceed at your own risk. And again, I do this only on unbootable systems (or a test system to reherse).

There may be other slices still mirrored and I leave them that way. Once the box comes up, I then remirror root with the standard procedure.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. AIX

AIX break rootvg mirror from system down

Hello, aix 5.2, mirrored rootvg on hdisk0 and hdisk1. hdisk0 is dead. I can boot to cd, into sms, into maintenance mode. I can fsck all the various partitions on hdisk1 (the hd4 hd2 hd3, etc...) all is fine. But without the hdisk0 part of the mirror I cannot get the system to boot. ystem hangs on... (6 Replies)
Discussion started by: sshapiro
6 Replies

2. Solaris

Healthy mirror on Solaris 10

Dear All I have question and I want some one to answer it .. in Solaris 10 I have two mirrors as below .. c3t0d0s0 & c3t1d0s0 NAME STATE READ WRITE CKSUM rpool ONLINE 0 0 0 mirror-0 ONLINE 0 0 0 ... (1 Reply)
Discussion started by: top.level
1 Replies

3. Solaris

Solaris patching using mirror disk backup? need help!

hi friends, need help.. it is my first time patching using mirror disk backup approach, not so sure about the steps :confused: how do you detach, patch it, boot it and reattach it ? any kind soul here can advise ? thanks in advance..:) below is the information from my machine: Filesystem ... (3 Replies)
Discussion started by: Exposure
3 Replies

4. Linux

LVM - break mirror taking out orignal copy

Hi Guys, I have a mirrored LVM volume, and wish to break the mirror leaving only copy1 (effectively removing copy 0). Here's the config: # lvs -a -o +devices lvdata vg01 mwi-ao 2.19T lvdata_mlog 100.00 lvdata_mimage_0(0),lvdata_mimage_1(0) vg01... (0 Replies)
Discussion started by: badoshi
0 Replies

5. Solaris

Solaris Volume Manager: Break Mirror and use to make a 2nd machine

Hello: I have a machine built on 2 drives and mirrors have been created to a second set of 2 drives (4 total) on the same platform. SVM. Might anyone provide guidance to create a second machine by breaking the mirrored set, moving the two mirrors (2) to another machine (same platform type),... (1 Reply)
Discussion started by: 4dailyrunner
1 Replies

6. Solaris

patch update and break mirror

Hi All, How do you know if you need to break the mirror on solaris 8 patch update? Here's the patch example, 117350-54. On the site, it's just a low type update and not a medium or critical. Is breaking a mirror a best practice only or really a requirement to some patch? Thanks, itik (1 Reply)
Discussion started by: itik
1 Replies

7. HP-UX

Break mirror so that it can be used later

Hello again, We need to install patches to HP-UX B.11.11 but would like to break the mirror it has (with out damaging it) so that in case of failure we can use this a meassure procedure. Any ideas on how to do this Thank you! (2 Replies)
Discussion started by: AQG
2 Replies

8. Solaris

Disk Mirror in Solaris 9 via Solaris Volume Manager

Hello, I am trying to do mirror in solaris 9. I have total 0-7 disks 4 5 6 7 0 1 2 3 Drive 0 and Drive 4 = Boot Drives Need to Mirror following drives. Drive 1 and Drive 5 = Need to mirror Drive 1 was mounted on: /prod1, /prod2, /prod3, /prod4, /prod5. Then i... (3 Replies)
Discussion started by: deal732
3 Replies

9. Solaris

Mirror solaris

Hi everyone. I have a Sun Solaris box which is running on only one internal disk and obviously that is not a good thing, if the disk should fail. This is a pritty straight forward operation in AIX, where my experties are. I have never done this in solaris and would therefore appriciate any help... (3 Replies)
Discussion started by: sprellari
3 Replies
Login or Register to Ask a Question