The Solaris Corner Column: Reliable and Practical Root Disk Mirroring Part 2
Peter Baer Galvin
http://www.samag.com/solaris/column/0106.htm
Content Level: Advanced
Content Audience: Solaris Administrators and Managers
Abstract
There are several approaches to mirroring the root disk on Solaris machines. In last month's column, I discussed the pros and cons of each of the major ones. This month I will conclude the topic with a "best practice" solution that solves the issues pointed out last month, and has proven functional and reliable in the field.
The Problem
As mentioned last month, the best disk mirroring solution should include these features:
It must automatically recover from a single disk failure.
It must allow easy removal for system upgrades.
It must not adversely affect performance.
It must allow other disk management solutions to be installed and used.
The solutions presented last month include manual, periodic disk copying, the use of Veritas Volume Manager, and the use of Solstice Disk Suite. None of these solutions provide all of the desirable features, and most have a down-side as well. In next month's column, I'll include a script for manual root disk mirroring.
The Best of All Worlds
I'll now discuss the "best practice" solution. It was developed at my company, Corporate Technologies by Manny Korkodilos and Kyle Oliver.
This method uses DiskSuite to mirror all of the root disk partitions. Additionally, it creates a small slice for a rootdg partition for Veritas Volume Manager. VXVM requires a rootdg disk group, and does not allow that disk group to be exported to any other system (e.g., if the primary system fails, or during a cluster fail-over). Therefore, no external disks should be in the rootdg, but a rootdg is needed. Rather than let VXVM have its way with our internal root disks, we give it a few megabytes to keep it happy.
This method has quite a few steps, but the effort is worth while, as this solution meets all four of our criteria:
It usually recovers automatically from the failure of one of the mirror pair of disks. Note, however, that the disk failure must be detected and corrected to avoid having the other disk fail, thus taking down the system, which has occurred at sites that lack sufficient attention.
To upgrade a system in this configuration, DiskSuite must be removed but VXVM can stay installed, unaffected by the upgrade.
Performance is the same as Disksuite mirroring alone, which is quite good.
Disksuite can be used for what it is good at -- management of a few disks -- and VXVM can do its job of managing the rest.