Breaking mirror for patches, sun/os 5.9


 
Thread Tools Search this Thread
Operating Systems Solaris Breaking mirror for patches, sun/os 5.9
# 1  
Old 11-14-2005
Breaking mirror for patches, sun/os 5.9

Hi,

Going to be applying patches to Sun prod (dev 1st) boxes soon,
I'm going to break the mirror's on 3 file systems on the root disk prior to that (/, /var, /swap),then run 9_Recommended. Then, run it for a day or 2 before re-syncing the mirrors.

But, what if I want to backout of this post-patch cluster?

I have never done this, so: heres what i think i should do:

Boot into S mode, edit vfstab to mount the archived disk on boot.
modify the boot prom if needed, boot it.

Prolly 30 minutes of guesswork beyond there.
Any help to save me some time before i begin testing?
# 2  
Old 11-14-2005
c0t0d0 - primary disk
c0t1d0 - secondary disk

Save output from metastat - it will show you what slice each sub-mirror is and save output from metadb -i (it will show where your disksuite databases are placed)

booted up normal:
1. break mirror
metadetach dX dXX (run metadetach command against all the sub-mirrors of the secondary disk
2. Clear sub-mirror
metaclear dXX (run metaclear on all the sub-mirrors you just detached)
3. fsck /dev/dsk/c0t1d0s0 <<-- or which ever slice would be / partition of disk you just removed from SDS
4. Mount secondary disk / partition on /mnt - cd /mnt/etc
vi /mnt/etc/vfstab - change all occurances of /dev/md to /dev/ - change all dXX to c0t1d0sX (this will allow the secondary disk to boot using all partitions on secondary disk)
vi /mnt/etc/system - remove all info dealing with disksuite

You don't state which OS version you are running - find your md.cf and mddb.cf files and rename them to oldmd.cf and oldmddb.cf

5. cd / ; umount /mnt
6. Check the physical disk location in format if you don't know it - it may not be set up already at the OBP for you to use to boot from
7. Still on booted system: cd /etc - vi vfstab - change all occurances of /dev/md to /dev/ - change all dXX to c0t0d0sX (get this info from the metastat output)
8. vi /etc/system - remove all info dealing with disksuite
9. move your md.cf and mddb.cf to oldmd.cf and oldmddb.cf
10. shutdown - you should now be able to boot either of those disks as a non-mirrored system - which means you can patch one and leave the other as a backup/backout. If after you run with the patches for a few days, you can simply recreate the one side of the mirror and then reboot and attach the second side.

Look at the different docs at docs.sun.com under troubleshooting for more help.

Last edited by RTM; 11-15-2005 at 02:01 PM..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

VxVM breaking mirror for migrating storage

We are in the process of migrating storage from one array to another. I know the commands I would use in LVM but I am not very familiar with VxVM. The goal is to attach the new LUNs from the new array and add them to the disk group. Then mirror the data online to these new LUNs using VxVM... (4 Replies)
Discussion started by: keelba
4 Replies

2. HP-UX

What is the difference between DRD and Root Mirror Disk using LVM mirror ?

what is the difference between DRD and Root Mirror Disk using LVM mirror ? (3 Replies)
Discussion started by: maxim42
3 Replies

3. AIX

List of Installed patches for AIX from given set of patches

I need to find out list of installed patches from given list of patches. I have tried using instfix -f <File containing list of patches> -i -c But I was not able to understand the output of this command. It was like below. bos.perf.tools: :0.0.0.0:?: bos.rte.libc: :0.0.0.0:?: ... (4 Replies)
Discussion started by: Saurabh Agrawal
4 Replies

4. Red Hat

breaking a hard drive mirror

Hey guys i have a machine running redhat enterprise 3.8 (i believe) and it has two hard drives that are mirrored. what would i have to do to get them to act as two seperate hard drives so i have 120gb capacity total as opposed to just 60? also, what would i do if i just wanted to take one of... (4 Replies)
Discussion started by: pacman529
4 Replies

5. Solaris

x86 Sun Machine and Solaris Soft Mirror

Hi everyone, Normally it always easier in Sparc machine, i can set or manually use the boot-device in NVram to boot the mirrored disk. However I have a big trouble about x86 mirror for a long time. I have been doing anything i can: search document, google, ask the others. Recently i did as... (5 Replies)
Discussion started by: tien86
5 Replies

6. Shell Programming and Scripting

Comparison of 2 sun server patches using script

Hi, I am not sure what I am missing, tried to debug but was not successful, any help on this will be much appreciated. #!/bin/sh rm -f /tmp/t? host1=`cat $1|grep Hostname: | awk '{print $2}'` host2=`cat $2|grep Hostname: | awk '{print $2}'` rel1=`cat $1|grep Release: | awk '{print... (1 Reply)
Discussion started by: Sathvik
1 Replies

7. Solaris

Solaris 10 - breaking of mirror and change new hard disk

Hi, am a newbie at solaris. Need advice and help on this. 1) How do I break the mirror between 2 hard disks. (wish to keep 1 good hard disk as backup) 2) After remove 1 hard disk and put in new hard disk, how do I initialise or fomat the new hard disk? 3) How do I put back the backup... (3 Replies)
Discussion started by: chongkls77
3 Replies

8. Solaris

Sun Patches question

I have Solaris 9 on my server. From SunSolve site, I see: Solaris9 Sun Alert Patch Cluster (184.9 M) & Solaris9 (204.3 M) What is the difference between the Sun Alert Patch Cluster and the "regular" patch cluster? Thanks! (1 Reply)
Discussion started by: FredSmith
1 Replies

9. UNIX for Advanced & Expert Users

sun mirror

I have a solaris 9 machine which I would like to mirror it system disk using disk suite but my sun solaris machine has one internal disk which has the OS installed on. I have spare external disk of the same size, is it possible to mirror and internal disk with external disk using disk suite? ... (3 Replies)
Discussion started by: hassan2
3 Replies

10. HP-UX

Breaking Mirror

Can some one point this UNIX newbie to a web site or directions on the steps needed to break a mirror in HP-UNIX to change a bad hard drive. (4 Replies)
Discussion started by: egress1
4 Replies
Login or Register to Ask a Question