Re: Disk Mirroring help
- From: ferric@xxxxxxxxxxx (Thomas H Jones II)
- Date: Sun, 25 Mar 2007 16:31:36 -0500
In article <m24poatssb.fsf@xxxxxxxxxxxxxxx>,
Frank Cusack <fcusack@xxxxxxxxxxx> wrote:
On 24 Mar 2007 09:35:43 -0700 "learner" <Zabaloch@xxxxxxxxx> wrote:
Hey gurus,
I want to mirror the disks running Sun Solaris 8. The problem is that
I never assigned slices for SDS at the time of OS installation. Now
the OS is running and I want to run fdisk or some other utilities to
define partitions in order to install and mirror the disks. Any
suggestions on how to partition slices while the OS is running?
Unfortunately, I do not have boot CD for Sun Solaris 8 since the copy
I made is not working for some absurd reason.
Can't be done unless you can unmount a slice and lose the data on it.
You're making the assumption that there are no slices free. If there
are available slices for use, then one needn't lose any data.
But since you are mirroring, you must have 2 disks, and all of the
data must be able to fit on only one disk, so if the data isn't
already on just one disk, migrate it over, then you can create a
metadata slice and data slices on the other disk, move all your data
over there, then finally attach the first disk as a mirror.
That's kind of labor intensive and possibly unnecessary (if there are
still unallocated slices). Instead of all that data moving business,
one can simply steal space from the swap partition and assign those
blocks to an available slice. Basically:
- unmount the swap device (swap -d <SwapDevice>)
- use the format tool:
- reduce the size of the swap partition by a couple cylinders
- allocate those cylinders to an available slice
- remount the swap device (swap -a <SwapDevice>)
Once the above is done, follow the procedures for mirroring root as
normal.
On a side note, if you're only using SDS for root disk mirroring and
only have metadbs on two disks, you might want to add the following
to your /etc/system (at least this used to be needed):
set md:mirrored_root_flag=1
This way, if you have to reboot and one member of the mirrored pair
is dead, you can still reboot without having to ass about with
deleting the references to the failed disk's metadb copies.
--
"You can only be -so- accurate with a claw-hammer." --me
.
- References:
- Disk Mirroring help
- From: learner
- Re: Disk Mirroring help
- From: Frank Cusack
- Disk Mirroring help
- Prev by Date: Re: disks mountable under both Solaris9 and Solaris10?
- Next by Date: Re: Containers in practice – please advice
- Previous by thread: Re: Disk Mirroring help
- Next by thread: disks mountable under both Solaris9 and Solaris10?
- Index(es):
Relevant Pages
|
|