Kernel: 6.1.0-18-amd64
LVM:
LVM version: 2.03.16(2) (2022-05-18)
Library version: 1.02.185 (2022-05-18)
Driver version: 4.47.0
Configuration: ./configure --build=x86_64-linux-gnu --prefix=/usr
--includedir=${prefix}/include --mandir=${prefix}/share/man
--infodir=${prefix}/share/info --sysconfdir=/etc --localstatedir=/var
--disable-option-checking --disable-silent-rules
--libdir=${prefix}/lib/x86_64-linux-gnu --runstatedir=/run
--disable-maintainer-mode --disable-dependency-tracking
--libdir=/lib/x86_64-linux-gnu --sbindir=/sbin --w
ith-usrlibdir=/usr/lib/x86_64-linux-gnu --with-optimisation=-O2
--with-cache=internal --with-device-uid=0 --with-device-gid=6
--with-device-mode=0660 --with-default-pid-dir=/run
--with-default-run-dir=/run/lvm
--with-default-locking-dir=/run/lock/lvm --with-thin=internal
--with-thin-check=/usr/sbin/thin_check
--with-thin-dump=/usr/sbin/thin_dump
--with-thin-repair=/usr/sbin/thin_repair --with-udev-prefix=/ --en
able-applib --enable-blkid_wiping --enable-cmdlib --enable-dmeventd
--enable-editline --enable-lvmlockd-dlm --enable-lvmlockd-sanlock
--enable-lvmpolld --enable-notify-dbus --enable-pkgconfig
--enable-udev_rules --enable-udev_sync --disable-readline
W dniu 22.10.2024 o 17:26, Adam Niescierowicz pisze:
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