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
begin:vcard
fn;quoted-printable:Adam Nie=C5=9Bcierowicz
n;quoted-printable:Nie=C5=9Bcierowicz;Adam
email;internet:adam.niescierowicz@xxxxxxxxxx
x-mozilla-html:TRUE
version:2.1
end:vcard