Happy New Year to all.
I am working on Solaris 10 testing as we are moving from Solaris 8. When I JumpStart Solaris 10, SW mirroring (RAID1) is enabled by default and metastat -p shows:
d10 -m d11 d12 1
d11 1 1 c1t0d0s0
d12 1 1 c1t1d0s0
d20 -m d21 d22 1
d21 1 1 c1t0d0s1
d22 1 1 c1t1d0s1
d30 -m d31 d32 1
d31 1 1 c1t0d0s7
d32 1 1 c1t1d0s7
One of the objective is to come up with a procedure to un-mirror the disks before an upgrade or patching activity and then re-mirror if successful, or start with the other disk if unsuccessful to get back to the state before the upgrade. I did some research and found this procedure on Sun BigAdmin (Automating Unmirror and Remirror for Solaris Volume Manager Volumes) (
BigAdmin Submitted Tech Tip: Automating Unmirror and Remirror for Solaris Volume Manager Volumes). I could successfully un-mirror and re-mirror very quick but did not do a more detailed testing yet.
Has anybody tried this? I have few concerns/questions and wondering if you can help:
- We normally have customized applications and database running on the server, is applying this procedure safe to them (especially the database)? In other words, the database is constantly updated, if you run the un-mirror script it will detach one of the disks and hence one disk will be updated with the changes before a reboot is attempted before the un-mirror is complete.
- When the un-mirror is complete and the system is rebooted, which disk the server is using?
- If upgrade or patching activity fails and you decide to revert back and start from the other disk, how to do that?
- Finally, does anyone recommend a better way or method?