View Single Post
  #1  
Old 17th April 2013, 21:10
aFoP aFoP is offline
Junior Member
 
Join Date: Jun 2012
Location: Budapest
Posts: 7
Thanks: 1
Thanked 1 Time in 1 Post
Default Software RAID1 On A Running LVM System - Ubuntu Server

Hi All,
I used the tutorial http://www.howtoforge.com/how-to-set...buntu-11.10-p2 and everything is OK until step "5 Moving Our Data To The RAID Arrays":

Quote:
# pvmove -i 2 /dev/sda5 /dev/md1
Insufficient free space: 59557 extents needed, but only 59525 available
Unable to allocate mirror extents for pvmove0.
Failed to convert pvmove LV to mirrored
# vgreduce server1 /dev/sda5
# pvremove /dev/sda5
Can't pvremove physical volume "/dev/sda5" of volume group "userver" without -ff
Command 'pvdisplay' shows after the error:
Quote:
# pvdisplay
--- Physical volume ---
PV Name /dev/sda5
VG Name server1
PV Size 232.65 GiB / not usable 2.00 MiB
Allocatable yes (but full)
PE Size 4.00 MiB
Total PE 59557
Free PE 0
Allocated PE 59557
PV UUID l5vKiJ-dVNj-0i4G-51x1-HyIH-mdbv-f30HGo

--- Physical volume ---
PV Name /dev/md1
VG Name server1
PV Size 232.52 GiB / not usable 1.81 MiB
Allocatable yes
PE Size 4.00 MiB
Total PE 59525
Free PE 59525
Allocated PE 0
PV UUID YhxGJp-1Qbk-fxx6-zdHL-HEdv-z1ic-8O0SGv
I'm using 2 * 250GB HDDs on a fresh ubuntu server 12.04 installation...
I have put together a script which does the whole tutorial - and successfully did the process in VirtualBox environment ...and no such errors were seen during whole testing in VirtualBox ...
https://www.dropbox.com/sh/8gopfuuqej5jrog/TTK4gVsc0l
Any ideas?

Last edited by aFoP; 17th April 2013 at 21:18.
Reply With Quote
Sponsored Links