Advertisement
tonicabs

Untitled

Feb 9th, 2018
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.95 KB | None | 0 0
  1. Hi There,
  2. Do you know about LVM Thin?
  3.  
  4. This particular case is that LVM repair is not possible. And the LVM Thin LVs cannot be activated.
  5.  
  6. We need to recover the VM Files.
  7.  
  8. Few details below.
  9.  
  10.  
  11. # lsblk
  12. NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
  13. sda 8:0 0 447.1G 0 disk
  14. ├─sda1 8:1 0 1M 0 part
  15. ├─sda2 8:2 0 256M 0 part
  16. └─sda3 8:3 0 446.9G 0 part
  17. ├─pve-root 251:0 0 96G 0 lvm /
  18. └─pve-swap 251:1 0 8G 0 lvm [SWAP]
  19.  
  20. # vgchange -a y pve
  21. Check of pool pve/data failed (status:1). Manual repair required!
  22. 2 logical volume(s) in volume group "pve" now active
  23.  
  24. # lvchange -a y pve/data
  25. Check of pool pve/data failed (status:1). Manual repair required!
  26.  
  27. #lvconvert --repair pve/data
  28. bad checksum in superblock
  29. Repair of thin metadata volume of thin pool pve/data failed (status:1). Manual repair required!
  30.  
  31. This is what happen when trying to FSCK from rescue boot
  32.  
  33. [liveuser@localhost —]$ sudo e2fsck -y /dev/sda3
  34. e2fsck 1.42.9 (28-Dec-2013)
  35. ext2fs_open2: Bad magic number in super-block
  36. e2fsck: Superblock invalid, trying backup blocks…
  37. e2fsck: Bad magic number in super-block while trying to open /dev/sda3
  38.  
  39. The superblock could not be read or does not describe a correct ext2
  40. filesystem. If the device is valid and it really contains an ext2
  41. filesystem (and not swap or ufs or something else), then the superblock
  42. is corrupt, and you might try running e2fsck with an alternate superblock:
  43. e2fsck -b 8193
  44.  
  45. Then I tried backup block, but still not working
  46.  
  47. [liveuser@localhost —]$ sudo e2fsck -b 8193 /dev/sda3
  48. e2fsck 1.42.9 (28-Dec-2013)
  49. e2fsck: Bad magic number in super-block while trying to open /dev/sda3
  50.  
  51. The superblock could not be read or does not describe a correct ext2 filesystem. If the device is valid and it really contains an ext2 filesystem (and not swap or ufs or something else), then the superblock is corrupt, and you might try running e2fsck with an alternate superblock:
  52. e2fsck -b 8193 <device>
  53.  
  54.  
  55.  
  56. LVS -a is also not showing any percentage in data column
  57.  
  58. # lvs -a
  59. LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy %Sync Convert
  60. data pve twi—tz-- 326.88g
  61. [data_tdata] pve Twi------- 326.88g
  62. [data_tmeta] pve ewi------- 84.00m
  63. [lvol0_pmspare] pve ewi------- 84.00m
  64. root pve -wi-ao---- 96.00g
  65. swap pve -wi-ao---- 8.00g
  66. vm-100-disk-1 pve Vwi—tz-- 10.00g data
  67. vm-101-disk-1 pve Vwi—tz-- 10.00g data
  68. vm-102-disk-1 pve Vwi—tz-- 32.00g data
  69. vm-103-disk-1 pve Vwi—tz-- 30.00g data
  70. vm-104-disk-1 pve Vwi—tz-- 32.00g data
  71. vm-105-disk-1 pve Vwi—tz-- 32.00g data
  72. vm-106-disk-1 pve Vwi—tz-- 32.00g data
  73. vm-107-disk-1 pve Vwi—tz-- 32.00g data
  74. vm-108-disk-1 pve Vwi—tz-- 32.00g data
  75. vm-109-disk-1 pve Vwi—tz-- 32.00g data
  76. vm-110-disk-1 pve Vwi—tz-- 160.00g data
  77. vm-111-disk-1 pve Vwi—tz-- 60.00g data
  78. vm-112-disk-1 pve Vwi—tz-- 60.00g data
  79. vm-113-disk-1 pve Vwi—tz-- 60.00g data
  80.  
  81. To check the server I can provide TeamViewer to a computer with a terminal that is already login as root.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement