linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* lvconvert --type raid5 failure
@ 2024-10-22 15:26 Adam Niescierowicz
  2024-10-22 17:59 ` Adam Niescierowicz
  0 siblings, 1 reply; 2+ messages in thread
From: Adam Niescierowicz @ 2024-10-22 15:26 UTC (permalink / raw)
  To: linux-lvm

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

Hi,

I have LV type raid1 and after adding couple disk to VG I anted to 
change raid1 to raid5 so I did:

 > # lvconvert --type raid5 /dev/first/lxc-owncloud-data-new

it converted LV to RAID5 but didn't add new spare so:

 > # lvconvert --stripes 2 /dev/first/lxc-owncloud-data-new

After this LV have 3 device but I didn't saw any sync action and 
movement on the disk so to resync data I used:

 > # lvchange --resync /dev/first/lxc-owncloud-data-new

It was like conversion from 6 to 12TB so after 40 hours when resync was 
done I do mount and XFS complain about FS.

What I did wrong?
Is there a chance that I can recover data?


 From LVM Archive

> # Orginal LV
> lxc-owncloud-data-new {
>     id = "4D3gRF-19uK-kCTX-DaYS-tmEx-Egs5-zRs7xp"
>     status = ["READ", "WRITE", "VISIBLE"]
>     flags = []
>     creation_time = 1713726446  # 2024-04-21 21:07:26 +0200
>     creation_host = "lxc4"
>     segment_count = 1
>
>     segment1 {
>         start_extent = 0
>         extent_count = 1572864  # 6 Terabytes
>
>         type = "raid1"
>         device_count = 2
>         region_size = 8192
>
>         raids = [
>             "lxc-owncloud-data-new_rmeta_0", 
> "lxc-owncloud-data-new_rimage_0",
>             "lxc-owncloud-data-new_rmeta_1", 
> "lxc-owncloud-data-new_rimage_1"
>         ]
>     }
> }
>
>
> # After lvconvert --type raid5 /dev/first/lxc-owncloud-data-new
> lxc-owncloud-data-new {
>     id = "4D3gRF-19uK-kCTX-DaYS-tmEx-Egs5-zRs7xp"
>     status = ["READ", "WRITE", "VISIBLE"]
>     flags = []
>     creation_time = 1713726446  # 2024-04-21 21:07:26 +0200
>     creation_host = "lxc4"
>     segment_count = 1
>
>     segment1 {
>         start_extent = 0
>         extent_count = 1572864  # 6 Terabytes
>
>         type = "raid5"
>         device_count = 2
>         region_size = 8192
>         stripe_size = 128
>
>         raids = [
>             "lxc-owncloud-data-new_rmeta_0", 
> "lxc-owncloud-data-new_rimage_0",
>             "lxc-owncloud-data-new_rmeta_1", 
> "lxc-owncloud-data-new_rimage_1"
>         ]
>     }
> }
>
>
> # After lvconvert --stripes 2 /dev/first/lxc-owncloud-data-new
> lxc-owncloud-data-new {
>     id = "4D3gRF-19uK-kCTX-DaYS-tmEx-Egs5-zRs7xp"
>     status = ["READ", "WRITE", "VISIBLE"]
>     flags = []
>     creation_time = 1713726446  # 2024-04-21 21:07:26 +0200
>     creation_host = "lxc4"
>     segment_count = 1
>
>     segment1 {
>         start_extent = 0
>         extent_count = 3145730  # 12 Terabytes
>
>         reshape_count = 1   # 4 Megabytes
>         type = "raid5"
>         device_count = 3
>         region_size = 16384
>         stripe_size = 128
>
>         raids = [
>             "lxc-owncloud-data-new_rmeta_0", 
> "lxc-owncloud-data-new_rimage_0",
>             "lxc-owncloud-data-new_rmeta_1", 
> "lxc-owncloud-data-new_rimage_1",
>             "lxc-owncloud-data-new_rmeta_2", 
> "lxc-owncloud-data-new_rimage_2"
>         ]
>     }
> }
>
> # Didn't have progress of reshape in LVS
>
> lxc-owncloud-data-new {
>     id = "4D3gRF-19uK-kCTX-DaYS-tmEx-Egs5-zRs7xp"
>     status = ["READ", "WRITE", "VISIBLE"]
>     flags = []
>     creation_time = 1713726446  # 2024-04-21 21:07:26 +0200
>     creation_host = "lxc4"
>     segment_count = 1
>
>     segment1 {
>         start_extent = 0
>         extent_count = 3145728  # 12 Terabytes
>
>         type = "raid5"
>         device_count = 3
>         region_size = 16384
>         stripe_size = 128
>
>         raids = [
>             "lxc-owncloud-data-new_rmeta_0", 
> "lxc-owncloud-data-new_rimage_0",
>             "lxc-owncloud-data-new_rmeta_1", 
> "lxc-owncloud-data-new_rimage_1",
>             "lxc-owncloud-data-new_rmeta_2", 
> "lxc-owncloud-data-new_rimage_2"
>         ]
>     }
> }
>
> # lvchange --resync /dev/first/lxc-owncloud-data-new


-- 
---
Pozdrawiam
Adam Nieścierowicz

[-- Attachment #2: adam_niescierowicz.vcf --]
[-- Type: text/vcard, Size: 195 bytes --]

begin:vcard
fn;quoted-printable:Adam Nie=C5=9Bcierowicz
n;quoted-printable:Nie=C5=9Bcierowicz;Adam
email;internet:adam.niescierowicz@justnet.pl
x-mozilla-html:TRUE
version:2.1
end:vcard


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

end of thread, other threads:[~2024-10-22 17:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-22 15:26 lvconvert --type raid5 failure Adam Niescierowicz
2024-10-22 17:59 ` Adam Niescierowicz

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).