From: Andreas Dilger <adilger@turbolinux.com>
To: linux-lvm@sistina.com
Subject: Re: [linux-lvm] Setup for RAID1 with LVM
Date: Thu, 8 Feb 2001 12:15:39 -0700 (MST) [thread overview]
Message-ID: <200102081915.f18JFdc17650@webber.adilger.net> (raw)
In-Reply-To: <3A827F18.4B387240@suse.de> from Jens Bruckmann at "Feb 8, 2001 12:12:25 pm"
Jens, you write:
> I would like to setup a configuration with LVM and RAID1. Poorly you
> can't just do a lvextend -m 1 like on HP-UX :-))
>
> I have two SCSI-Disks of nearly the same size, on Disk 1 I already have
> a working installation of Linux.
You need to use MD to do mirroring on Linux, not LVM (as in HP-UX and AIX).
> /usr, /opt and /var reside on LVs. I want these three LVs to be mirrored
> online to the second disk as it is possible on HP-UX.
You _may_ be able to create an MD RAID-0 mirror of your existing disk,
and then run vgscan again to detect the new configuration. However, this
has probably never been done - normally, you would create the MD mirror
first and then create VG/LV on top of it. It may NOT work, because I
recall something about MD storing a backup superblock at the end of the
MD device, and this would break LVM I think (LVM aligns the PEs at the
end of the partition as well).
> Can someone shortly describe, how to setup such a configuration?
The safest would be to backup your system, and start with creating an
MD device, and then adding LVM on top of it. If you have a backup,
you could test to see if mirroring an existing LVM disk works, because
this may be something people want to do in the future.
It is also be possible (if you have extra disk space) to create a mirrored
MD device, make a PV of it, add it into the VG, and pvmove all of your
existing LVs to the mirrored device. You can then vgreduce the old
(unmirrored) PV out of the VG.
Cheers, Andreas
--
Andreas Dilger \ "If a man ate a pound of pasta and a pound of antipasto,
\ would they cancel out, leaving him still hungry?"
http://www-mddsp.enel.ucalgary.ca/People/adilger/ -- Dogbert
next prev parent reply other threads:[~2001-02-08 19:15 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-02-08 11:12 [linux-lvm] Setup for RAID1 with LVM Jens Bruckmann
2001-02-08 13:51 ` James
2001-02-08 19:15 ` Andreas Dilger [this message]
-- strict thread matches above, loose matches on Subject: below --
2001-02-08 13:56 Jean-Eric Cuendet
2001-02-08 20:51 ` Heinz J. Mauelshagen
[not found] <"Csuk, Ferenc"'s message of "Thu, 15 Nov 2001 16:57:44 +0100">
2001-11-15 10:01 ` Csuk, Ferenc
2001-11-15 10:09 ` Jason L Tibbitts III
2001-11-15 13:36 ` Brent Harding
2001-11-17 9:04 ` Wolfgang Weisselberg
2001-11-19 3:37 ` yves.alloyer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200102081915.f18JFdc17650@webber.adilger.net \
--to=adilger@turbolinux.com \
--cc=linux-lvm@sistina.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).