Re: An easier way to mirror drives
From: Paul Robertson (probertson_at_unixway.com)
Date: 05/30/03
- Next message: Dalton Hubert: "Re: Problems with NIS Client"
- Previous message: Bernd Raschke: "Solaris and CDROMs, hsfs:nhsnode"
- In reply to: hal_at_nospam.com: "An easier way to mirror drives"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Fri, 30 May 2003 13:31:05 GMT
hal@nospam.com writes:
> I have a reburb 4500 that has two internal disks, both which were
> layed out prior to purchase. I wish to mirror the disks for fault
> tolerance. The OS is installed on one drive. The partitions are not
> layed out the same. I know how to manually delete and recreate
> partitions, and use metatools to create the partition by partition
> mirror, but this seems so antiquated and tedious. Is there an easy
> tool to tell the system to mirror one drive to the other, at the same
> time automagically recreating partitions on the second drive to match
> the first? Seem like there should be an easier way, but I am finding
> nothing in the docs.
>
> Thanks,
>
> Hal
>
Hal,
I wrote a script called "sdsinstall" that does just what you are
asking about. Assume that your existing operating system is installed
on c0t0d0, and that you want to setup a disksuite mirror to c1t0d0.
Finally, assume that you have slices c0t0d0s5 and c0t0d0s6 available
for state database replicas. The following command will setup the
metadevices, update the vfstab and dumpdevice, and synchronize the
mirrors once the system reboots:
sdsinstall -p c0t0d0 -s c1t0d0 -m s5 -m s6
Note that this script will blow away anything on c1t0d0, and warns you
accordingly. I've used the script successfully on several hundred
installs. You can find it referenced on the following page:
http://unixway.com/vm/disksuite/mirroros.html
As always, I'm interested in improving it and would appreciate any
feedback.
Cheers,
Paul
-- Paul Robertson probertson@unixway.com
- Next message: Dalton Hubert: "Re: Problems with NIS Client"
- Previous message: Bernd Raschke: "Solaris and CDROMs, hsfs:nhsnode"
- In reply to: hal_at_nospam.com: "An easier way to mirror drives"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|