Portál AbcLinuxu, 16. července 2025 07:55
LANG=C e2fsck -n -f /dev/data/system e2fsck 1.41.12 (17-May-2010) Warning! /dev/data/system is mounted. Warning: skipping journal recovery because doing a read-only filesystem check. Pass 1: Checking inodes, blocks, and sizes Inodes that were part of a corrupted orphan linked list found. Fix? no Inode 394505 was part of the orphaned inode list. IGNORED. Inode 394506 was part of the orphaned inode list. IGNORED. Deleted inode 524293 has zero dtime. Fix? no Inode 524294 was part of the orphaned inode list. IGNORED. Inode 524295 was part of the orphaned inode list. IGNORED. Inode 524296 was part of the orphaned inode list. IGNORED. Inode 524297 was part of the orphaned inode list. IGNORED. Pass 2: Checking directory structure Pass 3: Checking directory connectivity Pass 4: Checking reference counts Pass 5: Checking group summary information Free blocks count wrong (31459038, counted=31459005). Fix? no Inode bitmap differences: -(394505--394506) -(524293--524297) Fix? no Free inodes count wrong (8039856, counted=8039814). Fix? no /dev/data/system: ********** WARNING: Filesystem still has errors ********** /dev/data/system: 29264/8069120 files (0.2% non-contiguous), 796962/32256000 blocksTouch /forcefsck nezabralo, systém ten soubor "jen" odstranil. Proto jsem si upravil /etc/rc.d/rc.sysinit a přidal tam ručně "e2fsck -f -y /dev/data/system", jehož výstup přesměrovávám na předem rw připojený jiný oddíl. Výstup tohoto příkazu je
e2fsck 1.41.12 (17-May-2010) Pass 1: Checking inodes, blocks, and sizes Pass 2: Checking directory structure Pass 3: Checking directory connectivity Pass 4: Checking reference counts Pass 5: Checking group summary information /dev/data/system: 29264/8069120 files (0.2% non-contiguous), 796962/32256000 blockstj. jako by byl souborový systém v pořádku. Avšak RO fsck v běžícím systému zase ukáže stejný špatný inody. Přijde mi, že se systém zbláznil, v čem může být problém?
Řešení dotazu:
EXT4-fs (dm-3): orphan cleanup on readonly fs EXT4-fs (dm-3): ext4_orphan_cleanup: deleting unreferenced inode 394506 EXT4-fs (dm-3): ext4_orphan_cleanup: deleting unreferenced inode 394505 EXT4-fs (dm-3): ext4_orphan_cleanup: deleting unreferenced inode 524297 EXT4-fs (dm-3): ext4_orphan_cleanup: deleting unreferenced inode 524296 EXT4-fs (dm-3): ext4_orphan_cleanup: deleting unreferenced inode 524295 EXT4-fs (dm-3): ext4_orphan_cleanup: deleting unreferenced inode 524294 EXT4-fs (dm-3): ext4_orphan_cleanup: deleting unreferenced inode 524293 EXT4-fs (dm-3): 7 orphan inodes deleted EXT4-fs (dm-3): recovery complete
$ sync // toto jsem přidal dodatečně $ lvcreate -s -L 4G -n system_snapshot /dev/data/system Logical volume "system_snapshot" created $ e2fsck -fy /dev/data/system_snapshot // toto jsem přidal dodatečně e2fsck 1.41.12 (17-May-2010) Clearing orphaned inode 394506 (uid=0, gid=0, mode=0100600, size=0) Clearing orphaned inode 394505 (uid=0, gid=0, mode=0100600, size=0) Clearing orphaned inode 524297 (uid=27, gid=27, mode=0100600, size=0) Clearing orphaned inode 524296 (uid=27, gid=27, mode=0100600, size=0) Clearing orphaned inode 524295 (uid=27, gid=27, mode=0100600, size=0) Clearing orphaned inode 524294 (uid=27, gid=27, mode=0100600, size=133) Clearing orphaned inode 524293 (uid=27, gid=27, mode=0100600, size=0) Pass 1: Checking inodes, blocks, and sizes Pass 2: Checking directory structure Pass 3: Checking directory connectivity Pass 4: Checking reference counts Pass 5: Checking group summary information /dev/data/system_snapshot: ***** FILE SYSTEM WAS MODIFIED ***** /dev/data/system_snapshot: 29321/8069120 files (0.2% non-contiguous), 797174/32256000 blocks $ mount -o ro /dev/data/system_snapshot /lvm_partitions_ro/system
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.