SUMMARY: Patching with SVM mirroring boot drives
- From: "Romeo Theriault" <romeotheriault@xxxxxxxxx>
- Date: Wed, 31 Oct 2007 11:15:29 -0400
Thank you to the following people for replying to my question. (See original
question below.)
Santhosh Valarani
Mehran Salehi
Hike
Musa Williams
Kim DeSmaele
and especially Roberto Fratelli who provided me with the most detailed
explanation.
Original Question:
"I'm getting ready to patch some Solaris boxes with Recommended patch
clusters. The boot drives are using SVM in a mirror configuration. What I
would like to do is metadetach one of each of the mirrors submirrors out of
the configuration so if something goes wrong with the patching, I could boot
off of the detached submirrors and then resync the other disks back into a
configuration. Is this or something like this possible with SVM?"
The answers I received were a resounding "Yes, you can do it." But here are
the general instructions that Roberto Fratelli provided that I will be
working off of.
Here's an example :
/dev/md/dsk/d10 > / filesystem
/dev/md/dsk/d20 > /var filesystem
/dev/md/dsk/d50 > swap
The output of 'metastat -p' :
d50 -m d51 d52 1
d51 1 1 c1t0d0s1
d52 1 1 c1t1d0s1
d20 -m d21 d22 1
d21 1 1 c1t0d0s5
d22 1 1 c1t1d0s5
d10 -m d11 d12 1
d11 1 1 c1t0d0s0
d12 1 1 c1t1d0s0
use 'prtconf -vp | grep bootpath' to find out which
disk you booted off from. In my case, it was from
/dev/dsk/c1t0d0. So we will need to detach the
metadevices from c1t1d0.
- Detaching the mirrors :
# metadetach d10 d12
# metadetach d20 d22
# metadetach d50 d52
- Mounting the root filesystem from your mirror :
# mount /dev/dsk/c1t1d0s0 /mnt
- Edit /etc/vfstab entries to point to the disk
slices, not the svm metadevices ( let's say, instead
of /dev/md/dsk/d10 you put /dev/dsk/c1t1d0s0 ).
- Edit /etc/system and comment out ( using an asterisk
* ) the line starting with " rootdev:/pseudo/md "
- Put your system in OBP and boot from the mirror disk
( on this example, c1t1d0 )
- Check if your system booted fine. If yes, bring it
back to OBP and perform a normal boot ( from your
regular boot disk) and do the OS patching.
If you run in trouble with your recently patched OS,
you can boot from your mirror.
To continue off where Roberto left, if all goes well you can just metattach
the devices back into the mirror and let them resync or if all doesn't go
well you can boot off of the un-mirrored drives and recreate the SVM mirror
configuration so the "other" sync off of your good drives.
Thank you again,
--
Romeo Theriault
_______________________________________________
sunmanagers mailing list
sunmanagers@xxxxxxxxxxxxxxx
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
- Prev by Date: init exited on fatal signal 9
- Next by Date: V440 ce0 interface no link issue
- Previous by thread: init exited on fatal signal 9
- Next by thread: V440 ce0 interface no link issue
- Index(es):
Relevant Pages
- [HPADM] Summary MirrorDisk/UX 11.00
... disk 0 0/0/1/1.2.0 sdisk CLAIMED DEVICE HP 73.4GMAN3735MC ... Use mkboot
to place the boot utilities in the boot area and add the AUTO file. ... LVM will resynchronize
the new mirror copies. ... All you need to do is ftp it to your server, chmod 700 on the
file then run the command with the cxtxdx name ... (HP-UX-Admin) - Re: cant boot from mirrored boot drive
... If the disk containing the primary partition fails you will have to create a fault
tolerant boot floppy to recover the installation. ... Do I break the mirror, shutdown
and remove the good boot disk rdiskand just leave the disk that doesn't want to boot in and boot to the
recovery conole to check it out? ... They are sata drives, drive 0 and drive 1 on the main
system board's controller. ... (microsoft.public.windows.server.general) - RE: Windows 2003 Mirror and Boot Partition
... For your complex hardware disk situation, ... How to mirror the system
and boot partition in Windows ... | on the two new drives. ... (microsoft.public.windows.server.general) - Re: No boot on win2k3 mirror
... Boot from your floppy to disk 1, try breaking the mirror and reinstate
the ... (microsoft.public.windows.server.general) - RE: Disk 0 Raid 1 mirror problem
... I have the same issue with a Dell 1750. ... I was able to boot to Disk1
without issues. ... the failed disk and replaced it with the new disk, and low and behold,
the ... and recreate the mirror so I do have some redundancy to a point. ... (microsoft.public.windows.server.general)