linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: Raimonds Cicans <ray@apollo.lv>
To: linux-lvm@redhat.com
Subject: Re: [linux-lvm] lvconvert -m 0 /dev/varlin/distfiles /dev/md0 => zero filled logical volume
Date: Thu, 17 Mar 2016 00:56:53 +0200	[thread overview]
Message-ID: <56E9E4B5.8040300@apollo.lv> (raw)
In-Reply-To: <56E9D770.7070406@gathman.org>

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
>> command:
>> 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
>> ftp_rimage_0(0),ftp_rimage_1(0)
>>   ftpdown         varlin rwi-aor---  10,00g 100,00
>> ftpdown_rimage_0(0),ftpdown_rimage_1(0)
>>
>>
>> lvm2: 2.02.116
>> kernel: 4.4.2
>>
>>
>> Questions:
>>
>> 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.


Best regards,
Raimonds Cicans

  reply	other threads:[~2016-03-16 22:56 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-16 21:36 [linux-lvm] lvconvert -m 0 /dev/varlin/distfiles /dev/md0 => zero filled logical volume Raimonds Cicans
2016-03-16 22:00 ` Stuart Gathman
2016-03-16 22:56   ` Raimonds Cicans [this message]
2016-03-17  7:32 ` Raimonds Cicans
2016-03-20 17:41   ` Raimonds Cicans
2016-03-17 14:57 ` Heinz Mauelshagen

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=56E9E4B5.8040300@apollo.lv \
    --to=ray@apollo.lv \
    --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 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).