

Code: Select all
[ 2.505185] EXT4-fs (sda4): INFO: recovery required on readonly filesystem
[ 2.505186] EXT4-fs (sda4): write access will be enabled during recovery
[ 2.525064] EXT4-fs (sda4): recovery complete
[ 2.535354] EXT4-fs (sda4): mounted filesystem with ordered data mode. Opts: (null)
...
[ 13.065817] EXT4-fs error (device sda4): mb_free_blocks:1457: group 401, block 13141532:freeing already freed block (bit 1564); block bitmap corrupt.
[ 13.065838] EXT4-fs error (device sda4): ext4_mb_generate_buddy:747: group 401, block bitmap and bg descriptor inconsistent: 31468 vs 31469 free clustersCode: Select all
block bitmap and bg descriptor inconsistentCode: Select all
[ 2.518061] EXT4-fs (sda4): mounted filesystem with ordered data mode. Opts: (null)
...
[ 7.861686] EXT4-fs (sda5): mounted filesystem with ordered data mode. Opts: (null)Code: Select all
ID# ATTRIBUTE_NAME FLAGS VALUE WORST THRESH FAIL RAW_VALUE
5 Reallocated_Sector_Ct PO--CK 200 200 140 - 0
9 Power_On_Hours -O--CK 036 036 000 - 47386
197 Current_Pending_Sector -O--CK 200 200 000 - 0Code: Select all
Error 53 [4] occurred at disk power-on lifetime: 47371 hours (1973 days + 19 hours)
When the command that caused the error occurred, the device was active or idle.
After command completion occurred, registers were:
ER -- ST COUNT LBA_48 LH LM LL DV DC
-- -- -- == -- == == == -- -- -- -- --
40 -- 51 00 00 00 00 00 64 21 74 ef 00 Error: UNC at LBA = 0x0f642174 = 258220404Code: Select all
Error: UNC 240 sectors at LBA = 0x0f642174 = 258220404Code: Select all
Extended self-test routine
recommended polling time: ( 174) minutes.
Okay... I think it could have been at a power break, although I have an APC but sure it only last for a few minutes, so if I'm not around. The last mount data as I dug up earlier, August last year, I think that fir with when they were here and completed my Optic Fiber connection. It's possible they broke power or simply pulled a plug or whatever. Whatsoever, as memory clears here it must have happened in connection with that event.NeddySeagoon wrote:MoonWalker,
Looking at your first dmesrThat suggests unclean shutdown on the previous boot that rootfsck was mostly able to fix.Code: Select all
[ 2.505185] EXT4-fs (sda4): INFO: recovery required on readonly filesystem [ 2.505186] EXT4-fs (sda4): write access will be enabled during recovery [ 2.525064] EXT4-fs (sda4): recovery complete [ 2.535354] EXT4-fs (sda4): mounted filesystem with ordered data mode. Opts: (null) ... [ 13.065817] EXT4-fs error (device sda4): mb_free_blocks:1457: group 401, block 13141532:freeing already freed block (bit 1564); block bitmap corrupt. [ 13.065838] EXT4-fs error (device sda4): ext4_mb_generate_buddy:747: group 401, block bitmap and bg descriptor inconsistent: 31468 vs 31469 free clusters
Enough for the boot to proceed anyway.
Theis some of the remaining damage.Code: Select all
block bitmap and bg descriptor inconsistent
fsck will make the fields consistent again but it says nothing for and data you may have there. Essentially, the fs has lost track of its free space.
It's possible. I just tried to do aNeddySeagoon wrote: The second boot showswhicn is correct. Somehow the free space tracking was fixed.Code: Select all
[ 2.518061] EXT4-fs (sda4): mounted filesystem with ordered data mode. Opts: (null) ... [ 7.861686] EXT4-fs (sda5): mounted filesystem with ordered data mode. Opts: (null)
Does that mean you lost some data though?
Code: Select all
# emerge --syncI don't know if it can be due to data loss, but indicates something is off. Net now seems to work as it should though and I can also connect "remote" from my Windows box with kitty.>>> Syncing repository 'gentoo' into '/usr/portage'...
* Using keys from /usr/share/openpgp-keys/gentoo-release.asc
* Refreshing keys via WKD ... [ !! ]
* Refreshing keys from keyserver hkps://keys.gentoo.org ...OpenPGP keyring refresh failed:
gpg: refreshing 4 keys from hkps://keys.gentoo.org
gpg: keyserver refresh failed: Server indicated a failure
OpenPGP keyring refresh failed:
gpg: refreshing 4 keys from hkps://keys.gentoo.org
gpg: key
server refresh failed: Server indicated a failure
...
OpenPGP keyring refresh failed:
gpg: refreshing 4 keys from hkps://keys.gentoo.org
gpg: key
server refresh failed: Server indicated a failure
Well, it's a quite old drive really. According to the on disk label it will celebrate 10 years on 15 June, but lately it hasn't been running continuously. I kinda remember now how it was, I used this drive as a backup of the running server disk. It's actually my old desktop disk, so every time I upgraded the kernel or something like that, major, I cloned the main disk to this one. Then the main (Seagate Barracuda) disk failed and for various reasons (covid being one) I never got a new drive for it.NeddySeagoon wrote: From smartctl,
With 47386 running hours the drive is middle aged.Code: Select all
ID# ATTRIBUTE_NAME FLAGS VALUE WORST THRESH FAIL RAW_VALUE 5 Reallocated_Sector_Ct PO--CK 200 200 140 - 0 9 Power_On_Hours -O--CK 036 036 000 - 47386 197 Current_Pending_Sector -O--CK 200 200 000 - 0
It has not used any of the spare sectors since it was new and it has no sectors that it knows about that it can't read. I was expecting one or both of those numbers to be non zero.
I don't know. dumpe2fs -h gives this outputNeddySeagoon wrote: There have been several read errors atIs LBA 258220404 your sda4 superblock?Code: Select all
Error 53 [4] occurred at disk power-on lifetime: 47371 hours (1973 days + 19 hours) When the command that caused the error occurred, the device was active or idle. After command completion occurred, registers were: ER -- ST COUNT LBA_48 LH LM LL DV DC -- -- -- == -- == == == -- -- -- -- -- 40 -- 51 00 00 00 00 00 64 21 74 ef 00 Error: UNC at LBA = 0x0f642174 = 258220404
which is odd as -h should show only the superblock but not sure I see it there. Is there a better way, maybe it's due to /dev/sda4 is mounted?# dumpe2fs -h /dev/sda4
dumpe2fs 1.46.3 (27-Jul-2021)
Filesystem volume name: <none>
Last mounted on: /
Filesystem UUID: 2ac59fdb-4dd1-4242-b9ec-39bf73b60596
Filesystem magic number: 0xEF53
Filesystem revision #: 1 (dynamic)
Filesystem features: has_journal ext_attr resize_inode dir_index filetype needs_recovery extent 64bit flex_bg sparse_super large_file huge_file uninit_bg dir_nlink extra_isize
Filesystem flags: signed_directory_hash
Default mount options: user_xattr acl
Filesystem state: clean
Errors behavior: Continue
Filesystem OS type: Linux
Inode count: 15597568
Block count: 62390272
Reserved block count: 3119513
Free blocks: 50913385
Free inodes: 14684990
First block: 0
Block size: 4096
Fragment size: 4096
Group descriptor size: 64
Reserved GDT blocks: 1024
Blocks per group: 32768
Fragments per group: 32768
Inodes per group: 8192
Inode blocks per group: 512
Flex block group size: 16
Filesystem created: Wed Oct 4 08:42:20 2017
Last mount time: Tue Mar 29 12:46:18 2022
Last write time: Mon Mar 28 23:47:02 2022
Mount count: 3
Maximum mount count: -1
Last checked: Mon Mar 28 23:47:02 2022
Check interval: 0 (<none>)
Lifetime writes: 771 GB
Reserved blocks uid: 0 (user root)
Reserved blocks gid: 0 (group root)
First inode: 11
Inode size: 256
Required extra isize: 32
Desired extra isize: 32
Journal inode: 8
Default directory hash: half_md4
Directory Hash Seed: e3601eac-3663-4599-8886-68d26c107b46
Journal backup: inode blocks
Journal features: journal_incompat_revoke journal_64bit
Total journal size: 1024M
Total journal blocks: 262144
Max transaction length: 262144
Fast commit length: 0
Journal sequence: 0x0011a66a
Journal start: 1
Ok, I will run that test, but from the sound of it, it appears as if it could break the drive, so wonder if it wouldn't make sense to clone or copy the whole system to another drive first, just in case?NeddySeagoon wrote: andThe drive is not happy. This is all internal drive information too. The interface is in the clear.Code: Select all
Error: UNC 240 sectors at LBA = 0x0f642174 = 258220404
Use smartctl to run the long test. Leave it for 3 hours.Then post the smart data again. A non zero Current_Pending_Sector count means that the drive cannot read is own writing any more, so it's scrap.Code: Select all
Extended self-test routine recommended polling time: ( 174) minutes.
That's not supposed to happen, when sectors get difficult to read, they should get mapped to a spare. That increments Reallocated_Sector_Ct. That's a sign of wear and the drive operating as designed.

Code: Select all
* Refreshing keys from keyserver hkps://keys.gentoo.org ...OpenPGP keyring refresh failed:
gpg: refreshing 4 keys from hkps://keys.gentoo.org
gpg: keyserver refresh failed: Server indicated a failure
OpenPGP keyring refresh failed: 
Code: Select all
# smartctl -t long /dev/sda
Code: Select all
fdisk -l /dev/sdaCode: Select all
SMART Extended Self-test Log Version: 1 (1 sectors)
No self-tests have been logged. [To run self-tests, use: smartctl -t]
<here>
NeddySeagoon wrote:MoonWalker,
It will stop when it completes, or before that if it fails.
Its supposed to take 173 min. ... so 3 hours at least.
All that's happened is that smartctl has issued a command to the drive.
There is noting to see. It the test is interrupted, it will be logged as interrupted and cannot be resumed, its start over.
Getting back to where is LBA = 0x0f642174 = 258220404.
Yourwill help.Code: Select all
fdisk -l /dev/sda
Code: Select all
~ # fdisk -l /dev/sda
Disk /dev/sda: 931.51 GiB, 1000204886016 bytes, 1953525168 sectors
Disk model: WDC WD1002FAEX-0
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 2DF4CAAD-4487-426F-9820-A1967B10FF15
Device Start End Sectors Size Type
/dev/sda1 2048 6143 4096 2M BIOS boot
/dev/sda2 6144 460799 454656 222M Linux filesystem
/dev/sda3 460800 10483711 10022912 4.8G Linux filesystem
/dev/sda4 10483712 509605887 499122176 238G Linux filesystem
/dev/sda5 509605888 968284159 458678272 218.7G Linux filesystem
/dev/sda6 968284160 976656383 8372224 4G Linux filesystem

Code: Select all
# smartctl -x /dev/sda
Code: Select all
SMART Extended Self-test Log Version: 1 (1 sectors)
Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error
# 1 Extended offline Completed without error 00% 47411 Code: Select all
wgetpaste -SCode: Select all
/dev/sda4 10483712 509605887 499122176 238G Linux filesystem
Code: Select all
# emerge --ask --emptytree --usepkg=n @world



What came before that was something about installing grub, which apparently worked in the end as the cloned disk indeed boots, but red text is always something to take serious and I know initramfs is related to the kernel. Well, I know (remember) that I boot my kernel with it. Also, I know my kernel (4.19.108) is old and for reasons I cannot remember now I haven't updated genkernel (which I used to create initramfs for 4.19.108 with) to version 4 but still runs 3.5.3.3 and finally then my question as such - is this something I have to worry about regarding my clone backup? I figure it may have something to do with my old "stuff" here and maybe it all pans out as things gets updated, but not sure about these things.Yes, we are able to chroot the restored OS partition /dev/sdb4.
The tool to update initramfs was NOT found in function do_run_update_initrd_from_restored_os!
Failed to create initrd in the restored OS.
*************************************************
...
******************************************
Press "Enter" to continue...




Is it safe just to delete these symlinks as from what I understand the system should now be 100% 64bit? On the other hand, it almost seems as if there still are parts of the system that "hasn't got the memo", so to speak, and tries to preserve what is meant to be lost - or maybe it's just to expect too much of portage, that it will clean up after me having taken those actions.* One or more symlinks to directories have been preserved in order to
* ensure that files installed via these symlinks remain accessible. This
* indicates that the mentioned symlink(s) may be obsolete remnants of an
* old install, and it may be appropriate to replace a given symlink with
* the directory that it points to.
*
* /lib32
* /usr/lib32
*
* Messages for package sys-libs/libxcrypt-4.4.28:
*
* Directory symlink(s) may need protection:
*
* /lib32
* /usr/lib32
*
* Use the UNINSTALL_IGNORE variable to exempt specific symlinks
* from the following search (see the make.conf man page).
*
* Searching all installed packages for files installed via above symlink(s)...
*
* One or more symlinks to directories have been preserved in order to
* ensure that files installed via these symlinks remain accessible. This
* indicates that the mentioned symlink(s) may be obsolete remnants of an
* old install, and it may be appropriate to replace a given symlink with
* the directory that it points to.
*
* /lib32
* /usr/lib32
*
* Messages for package sys-apps/sandbox-2.29:
*
* Directory symlink(s) may need protection:
*
* /usr/lib32
*
* Use the UNINSTALL_IGNORE variable to exempt specific symlinks
* from the following search (see the make.conf man page).
*
* Searching all installed packages for files installed via above symlink(s)...
*
* The above directory symlink(s) are all safe to remove. Removing them now...
*


Yes. of course I did and everything went fine from what I can see, but the migration instruction doesn't really touch on no-multilib, in fact rather the opposite (multilib). Maybe this is something that should have been included as from what I can understand it would appear to anyone choosing the 17.1 no-multilib profile.figueroa wrote:Did you follow the profile migration instructions?
https://www.gentoo.org/support/news-ite ... table.html

Does it mean it was a bad idea to switch to no-multilib in connection with the migration, instead of doing it after, of it doesn't really matter?NeddySeagoon wrote:MoonWalker,
You say you are on 17.1 no-multilib now.
What 17.0 profile were you on?
== edit ==
Your other topic says it was default/linux/amd64/17.0.
Having switched to no-multilib, your installed 32 bit code is orphaned.


Yes, I understand that. With "going back" I mean restoring my backup. The question though is if it's necessary as 64 bit is what I want. I mean, would it have made any difference if I migrated to 17.1 (default) and then switched to 17.1 no-multilib? I assume it would leave me with the same result, old 32 bit code and symlinks left behind for me to clean up manually?NeddySeagoon wrote:MoonWalker,
If you have rebuilt any part of the the toolchain since the profile switch, you only have a 64 bit capable toolchain.
Going back will be difficult.