Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Aug 2008 12:07:19 +0200
From:      Ivan Voras <ivoras@freebsd.org>
To:        freebsd-questions@freebsd.org
Subject:   Re: Migrating to gmirrored RAID1
Message-ID:  <g8bhko$b5o$1@ger.gmane.org>
In-Reply-To: <DCFA028C-C458-4436-912F-E1D4D7A4AC40@spheroid.fi>
References:  <DCFA028C-C458-4436-912F-E1D4D7A4AC40@spheroid.fi>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig683913742825AB73C87B357B
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Henry Karpatskij wrote:
> Hi,
>=20
> I have a failing IDE disk which is running my 7.0-p1 server. I've been
> investigating the possible solutions and I've decided to go with two ne=
w
> IDE disks and gmirror. However, I'm not too familiar with disk
> internals, I know how to install the system and somehow understand the
> concept of slices and partitions, but that's about it.
>=20
> I found some examples on how to install the gmirror on a running system=
,
> but they all have in common that they just add new spare disk to the
> system and turn on the mirroring to it, but I need to replace the
> current disk which is not the same size as the new ones.
>=20
> Any suggestions how one would do such an operation? Should I just
> re-install the server to a new disk, turn on the mirroring and then
> restore the configuration and files from the failing disk? Or is it
> easier to add the disks to the running system, turn on mirroring and
> then somehow dump the current disk to the mirror and then re-configure
> it to boot from the gmirror and remove the failing disk?

If the new drives have the same size as the old one, you could do it
gradually:

- Mirror the old drive to new drive #1
- Replace the old drive with new drive #2, mirror it from new drive #1

If the sizes are different, this won't work and the best would be to
install a fresh system on a new drive and transfer the configuration
from the old one.

Booting will always happen from a single drive. Since up to the point
file systems are mounted all relevant drive access is read-only, the
BIOS will happily boot one of the mirrored pair, then the kernel will
pick up and activate mirroring before file systems are mounted.

This is why all instructions start with one drive and later add a new
drive to hold the mirror; it's easy to set up a single drive and then
simply mirror it.


--------------enig683913742825AB73C87B357B
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFIqUnXldnAQVacBcgRAqtOAKDkOZEbIH5PGlzHsX4yI41Owm1klgCgylXM
xFk5zUx2fPuNjl62gzklb8c=
=+tmE
-----END PGP SIGNATURE-----

--------------enig683913742825AB73C87B357B--




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?g8bhko$b5o$1>