From: Tony Arnold <tony.arnold@manchester.ac.uk>
To: linux-lvm@redhat.com
Subject: Re: [linux-lvm] Problems creating/converting large logical volume to RAID1
Date: Thu, 26 Nov 2015 10:29:15 +0000 [thread overview]
Message-ID: <5656DEFB.7020602@manchester.ac.uk> (raw)
In-Reply-To: <22100.38142.696227.209012@quad.stoffel.home>
John,
On 24/11/15 16:49, John Stoffel wrote:
> Can I make a suggestion to you? Instead of trying to do the mirroring
> in LVM, build yourself an MD mirror, then layer LVM ontop of that
> instead. You get nice seperation.
>
> You can also take that /dev/sdb3, make it into an MD RAID1 array with
> just one device, add it into the VG, then move the LVs onto the new
> device. Once that's done, you remove the sda3 from the VG, then add
> it into the MD device. Something like this...
>
>> mdadm --create /dev/md1 --level=1 --raid-devices=2 /dev/sdb3 missing
>> cat /proc/mdstat
>> pvcreate -v /dev/md1
>> vgextend -v vg0 /dev/md1
>> pvmove -v sda3
>> vgreduce -v vg0 sda3
>> mdadm --add /dev/md0 /dev/sda3
>> cat /proc/mdstat
>
> And you will now be mirrored, etc.
Thanks for your suggestion which I have now implemented. The pvmove took
a few hours (1.5TB to move!) and then also some more hours while the
mirror set synchronised. But it's all done and I now have my volumes
mirrored.
I'm still curious though why the LVM based RAID1 didn't work. I'll just
have to stay curious!
Thanks once again.
Regards,
Tony.
--
Tony Arnold, IT Security Analyst, University of Manchester.
T: +44 (0) 161 275 6093, F: +44 (0) 705 344 3082,
M: +44 (0) 773 330 0039, E: tony.arnold@manchester.ac.uk
next prev parent reply other threads:[~2015-11-26 10:29 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-24 9:52 [linux-lvm] Problems creating/converting large logical volume to RAID1 Tony Arnold
2015-11-24 16:49 ` John Stoffel
2015-11-26 10:29 ` Tony Arnold [this message]
2015-11-26 14:07 ` Zdenek Kabelac
2015-11-27 14:25 ` John Stoffel
2015-11-27 14:25 ` John Stoffel
2015-11-27 15:06 ` Tony Arnold
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=5656DEFB.7020602@manchester.ac.uk \
--to=tony.arnold@manchester.ac.uk \
--cc=linux-lvm@redhat.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.