All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: Corrupt ext2/ext3 directory entries not recovered by e2fsck
@ 2001-10-13 14:06 Manfred Spraul
  2001-10-13 15:02 ` Keith Owens
  0 siblings, 1 reply; 7+ messages in thread
From: Manfred Spraul @ 2001-10-13 14:06 UTC (permalink / raw)
  To: Keith Owens; +Cc: linux-kernel

 
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

> I forgot to mention that both fsck.ext2 and fsck.ext3 report
> 
> 1: Entry 'sendmail.pid' in /var/run (686849) has
>		deleted/unused inode 688415.  CLEARED.
> /1: Entry 'crond.pid' in /var/run (686849) has
>		deleted/unused inode 688416.  CLEARED.
> /1: Entry 'xfs.pid' in /var/run (686849) has
>		deleted/unused inode 688417.  CLEARED.
> /1: Entry 'atd.pid' in /var/run (686849) has
>		deleted/unused inode 688418.  CLEARED.
> 
All inodes are in the same sector.
Could you try out if that sector is destroyed?

One of my broken harddisks showed similar behaviour:
* write operations succeeded.
* read operations immediately after the write (write 16 MB including the
damaged sector, then read all 16 MB) sometimes succeeded.
* read operations after 5 minutes always failed.

--
	Manfred

^ permalink raw reply	[flat|nested] 7+ messages in thread
* Corrupt ext2/ext3 directory entries not recovered by e2fsck
@ 2001-10-13 12:44 Keith Owens
  2001-10-13 12:59 ` Keith Owens
  2001-10-13 19:46 ` Bernd Eckenfels
  0 siblings, 2 replies; 7+ messages in thread
From: Keith Owens @ 2001-10-13 12:44 UTC (permalink / raw)
  To: linux-kernel

IA64, gcc version 2.96 20000731 (Red Hat Linux 7.1 2.96-95).  Various
kernels from 2.4.9 (with ext3) through 2.4.13-pre1 (with XFS).

The filesystem was created as ext3 but is currently being accessed as
ext2 while I work on XFS and kdb for IA64.  After multiple power rests,
several directory entries are corrupt.  Attempts to access the files
get I/O error with nothing in the log.  Running e2fsck does not correct
the broken directory entry, neither does booting a kernel that supports
ext3.

I am surprised that neither ext3 recovery nor e2fsck detected the
broken directory entries.  Before I clri the directory entry, does
anybody want more details?

debugfs:  ls -l /var/run                                                                                                                      
686849  40755      0      0    4096 13-Oct-2001 21:41 .                                                                                       
179873  40755      0      0    4096 25-Sep-2001 11:39 ..                                                                                      
507431  40775      0      0    4096 27-Jul-2001 07:32 netreport                                                                               
686888 100664      0     22    4800 13-Oct-2001 21:45 utmp                                                                                    
376417  40755     75     75    4096  9-Jul-2001 21:40 radvd                                                                                   
654934  40700      0      0    4096 24-Jul-2001 02:52 sudo                                                                                    
686995 100644      0      0      11 13-Oct-2001 21:41 runlevel.dir                                                                            
687119 100600      0      0       4 13-Oct-2001 21:41 syslogd.pid                                                                             
687120 100600      0      0       4 13-Oct-2001 21:41 klogd.pid                                                                               
688413 100644      0      0       4 13-Oct-2001 21:41 sshd.pid                                                                                
688414 100644      0      0       4 13-Oct-2001 21:41 xinetd.pid                                                                              
2133571369 --- error ---  sendmail.pid                                                                                                        
2133571369 --- error ---  crond.pid                                                                                                           
2133571369 --- error ---  xfs.pid                                                                                                             
2133571369 --- error ---  atd.pid                

Dump of the directory.

0000  01 7B 0A 00  0C 00 01 02  2E 00 00 00  A1 BE 02 00  * .{..........¡... *
0010  0C 00 02 02  2E 2E 00 00  27 BE 07 00  14 00 09 02  * ........'....... *
0020  6E 65 74 72  65 70 6F 72  74 00 00 00  28 7B 0A 00  * netreport...({.. *
0030  0C 00 04 01  75 74 6D 70  61 BE 05 00  10 00 05 02  * ....utmpa....... *
0040  72 61 64 76  64 00 00 00  56 FE 09 00  0C 00 04 02  * radvd...V....... *
0050  73 75 64 6F  93 7B 0A 00  14 00 0C 01  72 75 6E 6C  * sudo.{......runl *
0060  65 76 65 6C  2E 64 69 72  0F 7C 0A 00  14 00 0B 01  * evel.dir.|...... *
0070  73 79 73 6C  6F 67 64 2E  70 69 64 00  10 7C 0A 00  * syslogd.pid..|.. *
0080  14 00 09 01  6B 6C 6F 67  64 2E 70 69  64 00 00 00  * ....klogd.pid... *
0090  1D 81 0A 00  10 00 08 01  73 73 68 64  2E 70 69 64  * ........sshd.pid *
00a0  1E 81 0A 00  14 00 0A 01  78 69 6E 65  74 64 2E 70  * ........xinetd.p *
00b0  69 64 00 00  00 00 00 00  14 00 0C 01  73 65 6E 64  * id..........send *
00c0  6D 61 69 6C  2E 70 69 64  00 00 00 00  14 00 09 01  * mail.pid........ *
00d0  63 72 6F 6E  64 2E 70 69  64 00 00 00  00 00 00 00  * crond.pid....... *
00e0  10 00 07 01  78 66 73 2E  70 69 64 00  00 00 00 00  * ....xfs.pid..... *
00f0  14 0F 07 01  61 74 64 2E  70 69 64 00  00 00 00 00  * ....atd.pid..... *
0100  04 0F 0C 01  73 68 75 74  64 6F 77 6E  2E 70 69 64  * ....shutdown.pid *
0110  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00  * ................ *


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2001-10-14  1:15 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-10-13 14:06 Corrupt ext2/ext3 directory entries not recovered by e2fsck Manfred Spraul
2001-10-13 15:02 ` Keith Owens
2001-10-13 19:09   ` Oliver Xymoron
2001-10-14  1:15     ` Keith Owens
  -- strict thread matches above, loose matches on Subject: below --
2001-10-13 12:44 Keith Owens
2001-10-13 12:59 ` Keith Owens
2001-10-13 19:46 ` Bernd Eckenfels

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.