You are not logged in.

#1 2024-12-15 22:38:40

BasT
Member
Registered: 2010-08-28
Posts: 117

[solved] LVM pvmove aborted - how to avoid data loss

I was moving the logical volume containing the /home partition to a different drive and the pvmove command was aborted by some system crash (probably unrelated KDE plasmashell issue).
The process was at 39,33% when it stopped and gave the error:

Error reading device /dev/nvme0n1p3 at 4096 length 512.
Failed to read metadata area header on /dev/nvme0n1p3 at 4096
Error reading device /dev/nvme0n1p3 at 4096 length 512.
Failed to read metadata area header on /dev/nvme0n1p3 at 4096
Failed to read vg VolGroup01 from /dev/nvme0n1p3
WARNING: reading /dev/nvme0n1p3 mda1 failed to read metadata.
WARNING: repair VG metadata on /dev/nvme0n1p3 with vgck --updatemetadata.
/dev/sdb1: Moved: 39,33%
lvmpolld failed to process a request. The reason was: polling of lvm command
For more information see lvmplld messages in syslog or lvmpolld log file.

Although the VT is still open, bash no longer accepts any commands, e.g.:

bash: systemctl: command not found

The KDE session has crashed.

Is there anything I should try before restarting from a recovery USB? What is the best path to avoid data loss?
I'm guessing the home partition is currently unavailable and I will need to perform the pvmove to continue or pvmove --abort to be able to access the partition. Should I also run the vgck --updatemetadata?

Last edited by BasT (2024-12-15 23:21:17)

Offline

#2 2024-12-15 23:21:06

BasT
Member
Registered: 2010-08-28
Posts: 117

Re: [solved] LVM pvmove aborted - how to avoid data loss

I rebooted into a USB recovery system and aborted the pvmove. Data seems to be fine.

Offline

Board footer

Powered by FluxBB