linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] bad checksum in superblock, wanted
@ 2023-03-30  3:34 Delarians
  2023-03-30 16:01 ` Zdenek Kabelac
  0 siblings, 1 reply; 2+ messages in thread
From: Delarians @ 2023-03-30  3:34 UTC (permalink / raw)
  To: linux-lvm


[-- Attachment #1.1: Type: text/plain, Size: 3841 bytes --]

Good afternoon, I'm asking for help in recovering damaged metadata after a
220V drop on the server, when the power was restored and the server booted
up, I got an error in the Proxmox panel

Check of pool pve/data failed (status:1). Manual repair required!

then booted from LiveCD debian mounted corrupted metadata and tried to
repair

root@debian:/home/user# lvchange -ay /dev/pve/data_tdata
    Do you want to activate component LV in read-only mode? [y/n]: y
    Allowing activation of component LV.
root@debian:/home/user# lvs
      LV                                        VG                     Attr
      LSize    Pool Origin                                    Data%  Meta%
 Move Log Cpy%Sync Convert
  vm-102-disk-0                             local-hdd-volume1-pve1
-wi-a-----   50.00g
  vm-103-disk-0                             local-hdd-volume1-pve1
-wi-a-----  250.00g
  vm-104-disk-0                             local-hdd-volume1-pve1
-wi-a-----  150.00g
  vm-108-disk-0                             local-hdd-volume1-pve1
-wi-a-----   20.00g
  vm-109-disk-0                             local-hdd-volume1-pve1
-wi-a-----  160.00g
  vm-110-disk-0                             local-hdd-volume1-pve1
-wi-a-----   20.00g
  base-101-disk-0                           pve
 Vri---tz-k   20.00g data
  base-105-disk-0                           pve
 Vri---tz-k   15.00g data
  data                                      pve
 twi---tz-- <858.97g
  root                                      pve
 -wi-a-----   30.00g
  snap_vm-106-disk-0_Installed              pve
 Vri---tz-k   15.00g data
  snap_vm-106-disk-0_Installed_CspAndVipnet pve
 Vri---tz-k   15.00g data
  swap                                      pve
 -wi-a-----    8.00g
  vm-100-disk-0                             pve
 Vwi---tz--   20.00g data
  vm-100-disk-1                             pve
 Vwi---tz--   60.00g data
  vm-102-disk-0                             pve
 Vwi---tz--   20.00g data
  vm-103-disk-0                             pve
 Vwi---tz--   30.00g data
  vm-104-disk-0                             pve
 Vwi---tz--   25.00g data
  vm-106-disk-0                             pve
 Vwi---tz--   15.00g data snap_vm-106-disk-0_Installed_CspAndVipnet
  vm-107-disk-0                             pve
 Vwi---tz--   20.00g data
  vm-108-disk-0                             pve
 Vwi---tz--   30.00g data
  vm-109-disk-0                             pve
 Vwi---tz--   35.00g data
  vm-110-disk-0                             pve
 Vwi---tz--   20.00g data

root@debian:/home/user# vgs
  VG                     #PV #LV #SN Attr   VSize    VFree
  local-hdd-volume1-pve1   1   6   0 wz--n-    3.27t  <2.64t
  pve                      1  17   0 wz--n- <930.50g <16.00g

root@debian:/home/user# ls -la /dev/mapper/ | grep -v vm
total 0
drwxr-xr-x  2 root root     240 Mar 29 17:48 .
drwxr-xr-x 19 root root    3700 Mar 29 17:48 ..
crw-------  1 root root 10, 236 Mar 29 17:35 control
lrwxrwxrwx  1 root root       7 Mar 29 17:48 pve-data_tdata -> ../dm-2
lrwxrwxrwx  1 root root       7 Mar 29 17:35 pve-root -> ../dm-1
lrwxrwxrwx  1 root root       7 Mar 29 17:35 pve-swap -> ../dm-0

root@debian:/home/user# thin_dump --repair /dev/mapper/pve-data_tdata >
repaired.xml
The following field needs to be provided on the command line due to
corruption in the superblock: transaction id

root@debian:/home/user# thin_check /dev/mapper/pve-data_tdata
examining superblock
  superblock is corrupt
    bad checksum in superblock, wanted 2018675394

however, I don’t know how to specify the transaction id and, most
importantly, what id - where to find it

Kernel Version: Linux 5.15.30-2-pve #1 SMP PVE 5.15.30-3 (Fri, 22 Apr 2022
18:08:27 +0200)
PVE Manager Version: pve-manager/7.2-3/c743d6c1

[-- Attachment #1.2: Type: text/html, Size: 8213 bytes --]

[-- Attachment #2: Type: text/plain, Size: 202 bytes --]

_______________________________________________
linux-lvm mailing list
linux-lvm@redhat.com
https://listman.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

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

* Re: [linux-lvm] bad checksum in superblock, wanted
  2023-03-30  3:34 [linux-lvm] bad checksum in superblock, wanted Delarians
@ 2023-03-30 16:01 ` Zdenek Kabelac
  0 siblings, 0 replies; 2+ messages in thread
From: Zdenek Kabelac @ 2023-03-30 16:01 UTC (permalink / raw)
  To: LVM general discussion and development, Delarians

Dne 30. 03. 23 v 5:34 Delarians napsal(a):
> Good afternoon, I'm asking for help in recovering damaged metadata after a 
> 220V drop on the server, when the power was restored and the server booted up, 
> I got an error in the Proxmox panel
> 
> Check of pool pve/data failed (status:1). Manual repair required!
> 
> then booted from LiveCD debian mounted corrupted metadata and tried to repair
>

Hi

You could try  'lvconvert --repair  vg/data'

However it depends how new version of 'thin_repair' tool is present on your 
system. The newer the tool - the more error cases it's able to recover.

i.e. I'd highly recommend to use version 0.9 or better.

In case the repair will NOT be successful (aka you cannot activate your thin 
volumes)  - you will have 'original' bad metadata in the device   data_meta0 
- you could compress and upload the content of this metadata device for futher 
analysis.

Regads

Zdenek

_______________________________________________
linux-lvm mailing list
linux-lvm@redhat.com
https://listman.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/


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

end of thread, other threads:[~2023-03-30 16:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-30  3:34 [linux-lvm] bad checksum in superblock, wanted Delarians
2023-03-30 16:01 ` Zdenek Kabelac

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