[linux-lvm] lvconvert -m 0 /dev/varlin/distfiles /dev/md0 => zero filled logical volume
ray at apollo.lv
Wed Mar 16 22:56:53 UTC 2016
On 17.03.2016 00:00, Stuart Gathman wrote:
> On 03/16/2016 05:36 PM, Raimonds Cicans wrote:
>> I am trying to move LVM setup from old RAID md0 to new RAID md1
>> I did "lvconvert -m 1 /dev/path/to/logical_volume /dev/md1" on bunch
>> of logical volumes.
>> Everything went without problems.
>> Then I tried to remove md0 from one of logical volumes by running
>> lvconvert -m 0 /dev/varlin/distfiles /dev/md0
>> I tried to mount this logical volume, but failed.
>> Then I checked first megabyte of logical volume it was zero filled.
>> Partial output of "lvs -o+devices":
>> LV VG Attr LSize Pool Origin Data% Meta%
>> Move Log Cpy%Sync Convert Devices
>> backup varlin -wi-ao---- 100,00g /dev/md0(6304)
>> backup varlin -wi-ao---- 100,00g /dev/md0(8544)
>> data varlin -wi-ao---- 20,00g /dev/md0(28384)
>> distfiles varlin -wi-a----- 20,00g /dev/md1(2738)
>> ftp varlin rwi-aor--- 10,00g 100,00
>> ftpdown varlin rwi-aor--- 10,00g 100,00
>> lvm2: 2.02.116
>> kernel: 4.4.2
>> 1) What I did wrong?
> I would have used pvmove. Using lvconvert, I think you needed to sync
> the mirrors before removing a leg.
How do I sync mirror before removing leg? I thought 100 in Cpy%Sync
column mean - everything is in sync.
More information about the linux-lvm