NethServer Version: 7.4 plus all updates (as of a couple of weeks ago).
Module: N/A
Found the Nethserver server unresponsive earlier today. Not looked at for a couple of weeks. After an enforced reboot, the server goes into emergency mode.
The error file points to a message “XFS (dm-0): Corruption of in-memory data detected” as the key issue.
Seems the root partition (located in a lvm2 volume group) is corrupt (as are all the partitions in the volume group).
Searching the web found various suggests ions to fix, but none have proved successful.
Seems to be more of a CentOS/XFS problem than a Nethserver issue, but any suggestions???
A few things I’ve tried and the results are below. The key checks have been run from both the emergency mode and from a separate Live CD (running LinuxMint).
vgdisplay -v
… the volume group and logical volumes look correct.
vgscan -v
Wiping cache of LVM-capable devices
Wiping internal VG cache
Reading all physical volumes. This may take a while…
Finding all volume groups
Finding volume group "vg01"
Found volume group “vg01” using metadata type lvm2
(Run from emergency mode)
mount /dev/mapper/vg01-root /mnt
…
Corruption of in-memory data detected. Shutting down filesystem
Please umount the filesystem and rectify the problem(s).
…
mount: /dev/mapper/vg01-root: can’t read superblock
(Run from Live CD)
mount /dev/mapper/vg01-root /mnt
mount: Structure needs cleaning
xfs_repair /dev/mapper/vg01-root
Phase 1 - find and verify superblock…
bad primary superblock - bad or unsupported version !!!
attempting to find secondary superblock…
…Sorry, could not find valid secondary superblock
Exiting now.
PS: Server running on hardware. No VM involved!