Recently migrated from ESXi to PVE with very little issues. I installed a new HDD to backup primary VMs (critical data is rsync'd to cloud storage) in the event I needed to restore for some reason. A few days after installing the HDD, I started to get two daily notifications from S.M.A.R.T. daemon.
Of course, now I get them everyday as they have not been fixed. I tried using fsck and e2fschk to see about repairing the sectors but get additional errors.
and
Also, fdisk found that the partition doesn't start on the physical sector (which may be a limitation of fdisk due to GPT partition table).
As stated, critical data from the VMs is backed up elsewhere, but I like the idea of having VM backups local if needed. My questions are:
Thanks in advance.
-Ernie
Code:
Device: /dev/sdb [SAT], 2 Currently unreadable (pending) sectors
Device: /dev/sdb [SAT], 2 Offline uncorrectable sectors
Of course, now I get them everyday as they have not been fixed. I tried using fsck and e2fschk to see about repairing the sectors but get additional errors.
Code:
root@pve:~# fsck -t ext4 /dev/sdb
fsck from util-linux 2.38.1
e2fsck 1.47.0 (5-Feb-2023)
ext2fs_open2: Bad magic number in super-block
fsck.ext4: Superblock invalid, trying backup blocks...
fsck.ext4: Bad magic number in super-block while trying to open /dev/sdb
The superblock could not be read or does not describe a valid ext2/ext3/ext4
filesystem. If the device is valid and it really contains an ext2/ext3/ext4
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>
or
e2fsck -b 32768 <device>
Found a gpt partition table in /dev/sdb
Code:
root@pve:~# e2fsck /dev/sdb
e2fsck 1.47.0 (5-Feb-2023)
ext2fs_open2: Bad magic number in super-block
e2fsck: Superblock invalid, trying backup blocks...
e2fsck: Bad magic number in super-block while trying to open /dev/sdb
The superblock could not be read or does not describe a valid ext2/ext3/ext4
filesystem. If the device is valid and it really contains an ext2/ext3/ext4
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>
or
e2fsck -b 32768 <device>
Found a gpt partition table in /dev/sdb
Also, fdisk found that the partition doesn't start on the physical sector (which may be a limitation of fdisk due to GPT partition table).
Code:
root@pve:~# fdisk -l | grep /sd
Partition 1 does not start on physical sector boundary.
Disk /dev/sda: 3.64 TiB, 4000787030016 bytes, 7814037168 sectors
/dev/sda1 34 2047 2014 1007K BIOS boot
/dev/sda2 2048 2099199 2097152 1G EFI System
/dev/sda3 2099200 7814037134 7811937935 3.6T Linux LVM
Disk /dev/sdb: 931.51 GiB, 1000200658432 bytes, 1953516911 sectors
/dev/sdb1 2048 1953515519 1953513472 931.5G Linux filesystem
Partition 2 does not start on physical sector boundary.
- Are these critical errors (I believe unreadable pending sectors will be moved if a write there is attempted) to be addressed immediately?
- Is there another utility to fix/mark the bad sectors?
- Should I wipe the partition table and reformat to get rid of the errors (and obviously run fresh backups)?
Thanks in advance.
-Ernie