All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-lvm] Unable to convert a broken LVM2 RAID1 to Linear volume
@ 2013-10-23 16:50 Shi Jin
  2013-10-24 11:18 ` Marian Csontos
  0 siblings, 1 reply; 4+ messages in thread
From: Shi Jin @ 2013-10-23 16:50 UTC (permalink / raw)
  To: linux-lvm

Hi there,

I have setup a LVM2 raid1 mirror with
   lvconvert  -m 1 --type raid1 /dev/vg_data/lv_test /dev/sdd
and then after I remove one of its legs, the remaining leg keeps on
working just fine. However, I then want to convert this to a simple
Linux volume.

it would fail:

[root@shi-rhel63 ~]# lvconvert -m 0 /dev/vg_data/lv_test
  Couldn't find device with uuid QpjTRd-Cc0o-RC0y-7Gz8-GQ4u-25FM-0vO4xt.
  Cannot change VG vg_data while PVs are missing.
  Consider vgreduce --removemissing.

removemissing not working either

[root@shi-rhel63 ~]# vgreduce  --removemissing vg_data
  Couldn't find device with uuid QpjTRd-Cc0o-RC0y-7Gz8-GQ4u-25FM-0vO4xt.
  WARNING: Partial LV lv_test needs to be repaired or removed.
  WARNING: Partial LV lv_test_rmeta_1 needs to be repaired or removed.
  WARNING: Partial LV lv_test_rimage_1 needs to be repaired or removed.
  There are still partial LVs in VG vg_data.
  To remove them unconditionally use: vgreduce --removemissing --force.
  Proceeding to remove empty missing PVs.

What should I do in my case to convert the LV to linear?

My OS information:

[root@shi-rhel63 ~]#  cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.3 (Santiago)
[root@shi-rhel63 ~]# uname -a
Linux shi-rhel63 2.6.32-279.el6.x86_64 #1 SMP Wed Jun 13 18:24:36 EDT
2012 x86_64 x86_64 x86_64 GNU/Linux
[root@shi-rhel63 ~]# lvm version
  LVM version:     2.02.95(2)-RHEL6 (2012-05-16)
  Library version: 1.02.74-RHEL6 (2012-05-16)
  Driver version:  4.22.6


Thanks a lot.

Shi

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [linux-lvm] Unable to convert a broken LVM2 RAID1 to Linear volume
  2013-10-23 16:50 [linux-lvm] Unable to convert a broken LVM2 RAID1 to Linear volume Shi Jin
@ 2013-10-24 11:18 ` Marian Csontos
  2013-10-24 17:30   ` Shi Jin
  0 siblings, 1 reply; 4+ messages in thread
From: Marian Csontos @ 2013-10-24 11:18 UTC (permalink / raw)
  To: LVM general discussion and development

On 10/23/2013 06:50 PM, Shi Jin wrote:
> Hi there,
>
> I have setup a LVM2 raid1 mirror with
>     lvconvert  -m 1 --type raid1 /dev/vg_data/lv_test /dev/sdd
> and then after I remove one of its legs, the remaining leg keeps on
> working just fine. However, I then want to convert this to a simple
> Linux volume.
>
> it would fail:
>
> [root@shi-rhel63 ~]# lvconvert -m 0 /dev/vg_data/lv_test
>    Couldn't find device with uuid QpjTRd-Cc0o-RC0y-7Gz8-GQ4u-25FM-0vO4xt.
>    Cannot change VG vg_data while PVs are missing.
>    Consider vgreduce --removemissing.

Following worked for me except I ended up with unclean FS:

     lvconvert -m 0 --repair -f vg_data/lv_test

-- Marian

>
> removemissing not working either
>
> [root@shi-rhel63 ~]# vgreduce  --removemissing vg_data
>    Couldn't find device with uuid QpjTRd-Cc0o-RC0y-7Gz8-GQ4u-25FM-0vO4xt.
>    WARNING: Partial LV lv_test needs to be repaired or removed.
>    WARNING: Partial LV lv_test_rmeta_1 needs to be repaired or removed.
>    WARNING: Partial LV lv_test_rimage_1 needs to be repaired or removed.
>    There are still partial LVs in VG vg_data.
>    To remove them unconditionally use: vgreduce --removemissing --force.
>    Proceeding to remove empty missing PVs.
>
> What should I do in my case to convert the LV to linear?
>
> My OS information:
>
> [root@shi-rhel63 ~]#  cat /etc/redhat-release
> Red Hat Enterprise Linux Server release 6.3 (Santiago)
> [root@shi-rhel63 ~]# uname -a
> Linux shi-rhel63 2.6.32-279.el6.x86_64 #1 SMP Wed Jun 13 18:24:36 EDT
> 2012 x86_64 x86_64 x86_64 GNU/Linux
> [root@shi-rhel63 ~]# lvm version
>    LVM version:     2.02.95(2)-RHEL6 (2012-05-16)
>    Library version: 1.02.74-RHEL6 (2012-05-16)
>    Driver version:  4.22.6
>
>
> Thanks a lot.
>
> Shi
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [linux-lvm] Unable to convert a broken LVM2 RAID1 to Linear volume
  2013-10-24 11:18 ` Marian Csontos
@ 2013-10-24 17:30   ` Shi Jin
  2013-11-06 22:13     ` Shi Jin
  0 siblings, 1 reply; 4+ messages in thread
From: Shi Jin @ 2013-10-24 17:30 UTC (permalink / raw)
  To: LVM general discussion and development

[-- Attachment #1: Type: text/plain, Size: 2762 bytes --]

thank you very much.

when i run your command, my machine froze but after reset,  the virtual
volumes undet the raid1 are now showing as regular volumes and i was able
to lvremove them and original volume keeps on working.

thanks a lot

Shi
On 2013-10-24 5:23 AM, "Marian Csontos" <mcsontos@redhat.com> wrote:

> On 10/23/2013 06:50 PM, Shi Jin wrote:
>
>> Hi there,
>>
>> I have setup a LVM2 raid1 mirror with
>>     lvconvert  -m 1 --type raid1 /dev/vg_data/lv_test /dev/sdd
>> and then after I remove one of its legs, the remaining leg keeps on
>> working just fine. However, I then want to convert this to a simple
>> Linux volume.
>>
>> it would fail:
>>
>> [root@shi-rhel63 ~]# lvconvert -m 0 /dev/vg_data/lv_test
>>    Couldn't find device with uuid QpjTRd-Cc0o-RC0y-7Gz8-GQ4u-**
>> 25FM-0vO4xt.
>>    Cannot change VG vg_data while PVs are missing.
>>    Consider vgreduce --removemissing.
>>
>
> Following worked for me except I ended up with unclean FS:
>
>     lvconvert -m 0 --repair -f vg_data/lv_test
>
> -- Marian
>
>
>> removemissing not working either
>>
>> [root@shi-rhel63 ~]# vgreduce  --removemissing vg_data
>>    Couldn't find device with uuid QpjTRd-Cc0o-RC0y-7Gz8-GQ4u-**
>> 25FM-0vO4xt.
>>    WARNING: Partial LV lv_test needs to be repaired or removed.
>>    WARNING: Partial LV lv_test_rmeta_1 needs to be repaired or removed.
>>    WARNING: Partial LV lv_test_rimage_1 needs to be repaired or removed.
>>    There are still partial LVs in VG vg_data.
>>    To remove them unconditionally use: vgreduce --removemissing --force.
>>    Proceeding to remove empty missing PVs.
>>
>> What should I do in my case to convert the LV to linear?
>>
>> My OS information:
>>
>> [root@shi-rhel63 ~]#  cat /etc/redhat-release
>> Red Hat Enterprise Linux Server release 6.3 (Santiago)
>> [root@shi-rhel63 ~]# uname -a
>> Linux shi-rhel63 2.6.32-279.el6.x86_64 #1 SMP Wed Jun 13 18:24:36 EDT
>> 2012 x86_64 x86_64 x86_64 GNU/Linux
>> [root@shi-rhel63 ~]# lvm version
>>    LVM version:     2.02.95(2)-RHEL6 (2012-05-16)
>>    Library version: 1.02.74-RHEL6 (2012-05-16)
>>    Driver version:  4.22.6
>>
>>
>> Thanks a lot.
>>
>> Shi
>>
>> ______________________________**_________________
>> linux-lvm mailing list
>> linux-lvm@redhat.com
>> https://www.redhat.com/**mailman/listinfo/linux-lvm<https://www.redhat.com/mailman/listinfo/linux-lvm>
>> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-**HOWTO/<http://tldp.org/HOWTO/LVM-HOWTO/>
>>
>>
> ______________________________**_________________
> linux-lvm mailing list
> linux-lvm@redhat.com
> https://www.redhat.com/**mailman/listinfo/linux-lvm<https://www.redhat.com/mailman/listinfo/linux-lvm>
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-**HOWTO/<http://tldp.org/HOWTO/LVM-HOWTO/>
>

[-- Attachment #2: Type: text/html, Size: 3762 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [linux-lvm] Unable to convert a broken LVM2 RAID1 to Linear volume
  2013-10-24 17:30   ` Shi Jin
@ 2013-11-06 22:13     ` Shi Jin
  0 siblings, 0 replies; 4+ messages in thread
From: Shi Jin @ 2013-11-06 22:13 UTC (permalink / raw)
  To: LVM general discussion and development

Unfortunately, the --repair option is not working for my other case:

[root@shi-rhel63 ~]# lvs -a -o +seg_pe_ranges|grep lv_root
  Couldn't find device with uuid LoT3ad-7S1N-l1SZ-22EZ-ZStL-7gTY-1kxFrr.
  lv_root             vg_root      rwi-aom-   2.00g
         100.00         lv_root_rimage_0:0-63 lv_root_rimage_1:0-63
  [lv_root_rimage_0]  vg_root      iwi-a-r-   2.00g
                        unknown device:0-63
  [lv_root_rimage_1]  vg_root      iwi-aor-   2.00g
                        /dev/sdb2:165-228
  [lv_root_rmeta_0]   vg_root      ewi-a-r-  32.00m
                        unknown device:180-180
  [lv_root_rmeta_1]   vg_root      ewi-aor-  32.00m
                        /dev/sdb2:164-164
[root@shi-rhel63 ~]# pvs -v
    Scanning for physical volume names
  Couldn't find device with uuid LoT3ad-7S1N-l1SZ-22EZ-ZStL-7gTY-1kxFrr.
    There are 1 physical volumes missing.
    There are 1 physical volumes missing.
  PV             VG           Fmt  Attr PSize  PFree   DevSize PV UUID
  /dev/sda5      voffice-base lvm2 a--   4.76g      0    4.76g
iskp4u-CQE6-FKRF-E3bg-PlU4-RfTf-9Ir4MQ
  /dev/sdb2      vg_root      lvm2 a--  18.84g   1.22g  18.88g
pnsMYs-Ce4t-9KYR-3Zfs-GItC-k5SZ-VidQ30
  unknown device vg_root      lvm2 a-m  17.84g 224.00m      0
LoT3ad-7S1N-l1SZ-22EZ-ZStL-7gTY-1kxFrr
[root@shi-rhel63 ~]# lvconvert -m 0  --repair /dev/vg_root/lv_root
  Couldn't find device with uuid LoT3ad-7S1N-l1SZ-22EZ-ZStL-7gTY-1kxFrr.
  Aborting.  LV lv_root is now incomplete and --partial was not specified.
  Failed to suspend vg_root/lv_root before committing changes
  Device '/dev/sdb2' has been left open.
  Device '/dev/sdb2' has been left open.
  Device '/dev/sdb2' has been left open.
  Device '/dev/sdb2' has been left open.


Does anyone know how to fix it?

Thanks a lot,
Shi

On Thu, Oct 24, 2013 at 11:30 AM, Shi Jin <sjin@datagardens.com> wrote:
> thank you very much.
>
> when i run your command, my machine froze but after reset,  the virtual
> volumes undet the raid1 are now showing as regular volumes and i was able to
> lvremove them and original volume keeps on working.
>
> thanks a lot
>
> Shi
>
> On 2013-10-24 5:23 AM, "Marian Csontos" <mcsontos@redhat.com> wrote:
>>
>> On 10/23/2013 06:50 PM, Shi Jin wrote:
>>>
>>> Hi there,
>>>
>>> I have setup a LVM2 raid1 mirror with
>>>     lvconvert  -m 1 --type raid1 /dev/vg_data/lv_test /dev/sdd
>>> and then after I remove one of its legs, the remaining leg keeps on
>>> working just fine. However, I then want to convert this to a simple
>>> Linux volume.
>>>
>>> it would fail:
>>>
>>> [root@shi-rhel63 ~]# lvconvert -m 0 /dev/vg_data/lv_test
>>>    Couldn't find device with uuid QpjTRd-Cc0o-RC0y-7Gz8-GQ4u-25FM-0vO4xt.
>>>    Cannot change VG vg_data while PVs are missing.
>>>    Consider vgreduce --removemissing.
>>
>>
>> Following worked for me except I ended up with unclean FS:
>>
>>     lvconvert -m 0 --repair -f vg_data/lv_test
>>
>> -- Marian
>>
>>>
>>> removemissing not working either
>>>
>>> [root@shi-rhel63 ~]# vgreduce  --removemissing vg_data
>>>    Couldn't find device with uuid QpjTRd-Cc0o-RC0y-7Gz8-GQ4u-25FM-0vO4xt.
>>>    WARNING: Partial LV lv_test needs to be repaired or removed.
>>>    WARNING: Partial LV lv_test_rmeta_1 needs to be repaired or removed.
>>>    WARNING: Partial LV lv_test_rimage_1 needs to be repaired or removed.
>>>    There are still partial LVs in VG vg_data.
>>>    To remove them unconditionally use: vgreduce --removemissing --force.
>>>    Proceeding to remove empty missing PVs.
>>>
>>> What should I do in my case to convert the LV to linear?
>>>
>>> My OS information:
>>>
>>> [root@shi-rhel63 ~]#  cat /etc/redhat-release
>>> Red Hat Enterprise Linux Server release 6.3 (Santiago)
>>> [root@shi-rhel63 ~]# uname -a
>>> Linux shi-rhel63 2.6.32-279.el6.x86_64 #1 SMP Wed Jun 13 18:24:36 EDT
>>> 2012 x86_64 x86_64 x86_64 GNU/Linux
>>> [root@shi-rhel63 ~]# lvm version
>>>    LVM version:     2.02.95(2)-RHEL6 (2012-05-16)
>>>    Library version: 1.02.74-RHEL6 (2012-05-16)
>>>    Driver version:  4.22.6
>>>
>>>
>>> Thanks a lot.
>>>
>>> Shi
>>>
>>> _______________________________________________
>>> linux-lvm mailing list
>>> linux-lvm@redhat.com
>>> https://www.redhat.com/mailman/listinfo/linux-lvm
>>> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
>>>
>>
>> _______________________________________________
>> linux-lvm mailing list
>> linux-lvm@redhat.com
>> https://www.redhat.com/mailman/listinfo/linux-lvm
>> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/



-- 
Shi Jin, PhD | Vice President, Product Development | DataGardens Inc.
| T: 780-784-5011 | M: 780-964-8778| E: sjin@datagardens.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-11-06 22:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-23 16:50 [linux-lvm] Unable to convert a broken LVM2 RAID1 to Linear volume Shi Jin
2013-10-24 11:18 ` Marian Csontos
2013-10-24 17:30   ` Shi Jin
2013-11-06 22:13     ` Shi Jin

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.