View previous topic :: View next topic |
Author |
Message |
elwood75 n00b
Joined: 24 Sep 2003 Posts: 7
|
Posted: Wed Sep 24, 2003 3:53 pm Post subject: ext3fs - 36 gigs free, new files are zero length?! |
|
|
Hi all,
Long time user, first time poster. I've got a situation where I'm using a 91GB ext3fs partition solely to store MythTV media (read: most files 1GB+ in size). The problem is, and has been for a few weeks, once I get to 60 Gigs of use (as shown by df -h), I can create files, but adding content to them fails without error.
Myth will record show after show, and each recording ends up 0 bytes. I'll do:
Code: | $ echo "Brad" > test.txt
$ cat test.txt
$
|
The file will be empty! Would this be an inode issue? bad blocks? When I do a df -i, it shows 99% free inodes.
Any thoughts how I can further diagnose this?
I'm performing a e2fsck -c -y /dev/hda4 now, but at current estimates, it won't be done for 6 more hours.
Thanks,
Brad |
|
Back to top |
|
|
delta407 Bodhisattva
Joined: 23 Apr 2002 Posts: 2876 Location: Chicago, IL
|
Posted: Wed Sep 24, 2003 5:39 pm Post subject: Re: ext3fs - 36 gigs free, new files are zero length?! |
|
|
elwood75 wrote: | Long time user, first time poster. |
elwood75 wrote: | I'll do:
Code: | $ echo "Brad" > test.txt
$ cat test.txt
$
|
| That's not good.
Anything in the kernel log? (`dmesg | tail`) What kernel are you using? (`uname -a`) Anything abnormal about your configuration? _________________ I don't believe in witty sigs. |
|
Back to top |
|
|
elwood75 n00b
Joined: 24 Sep 2003 Posts: 7
|
Posted: Wed Sep 24, 2003 6:12 pm Post subject: |
|
|
It's a pretty straight-forward configuration, run of the mill cheapo VIA chipset and western digital hard drive. No fancy hardware to speak of.
uname results:
Code: |
htpc root # uname -a
Linux htpc.corrion.com 2.4.20-gentoo-r5 #2 SMP Sat Jun 7 13:43:06 Local time zone must be set--see zic m i686 Intel(R) Celeron(R) CPU 1.80GHz GenuineIntel GNU/Linux
|
dmesg has rolled over with this repeating disk message:
sure enough, looks like I've got hard drive issues. Code: | ide0: reset: success
hda: write_intr error1: nr_sectors=1, stat=0x51
hda: write_intr: status=0x51 { DriveReady SeekComplete Error }
hda: write_intr: error=0x10 { SectorIdNotFound }, LBAsect=234411207, sector=1932
00135
hda: write_intr error1: nr_sectors=1, stat=0x51
hda: write_intr: status=0x51 { DriveReady SeekComplete Error }
hda: write_intr: error=0x10 { SectorIdNotFound }, LBAsect=234411207, sector=1932
00135
hda: write_intr error1: nr_sectors=1, stat=0x51
hda: write_intr: status=0x51 { DriveReady SeekComplete Error }
hda: write_intr: error=0x10 { SectorIdNotFound }, LBAsect=234411207, sector=1932
00135
hda: write_intr error1: nr_sectors=1, stat=0x51
hda: write_intr: status=0x51 { DriveReady SeekComplete Error }
hda: write_intr: error=0x10 { SectorIdNotFound }, LBAsect=234411207, sector=1932
00135
ide0: reset: success
hda: write_intr error1: nr_sectors=1, stat=0x51
hda: write_intr: status=0x51 { DriveReady SeekComplete Error }
hda: write_intr: error=0x10 { SectorIdNotFound }, LBAsect=234411207, sector=1932
00135
end_request: I/O error, cmd 1 dev 03:04 (hda), sector 193200135
|
hdparm results:
Code: | htpc root # hdparm -i /dev/hda
/dev/hda:
Model=WDC WD1200JB-75CRA0, FwRev=16.06V16, SerialNo=WD-WMA8C2787066
Config={ HardSect NotMFM HdSw>15uSec SpinMotCtl Fixed DTR>5Mbs FmtGapReq }
RawCHS=16383/16/63, TrkSize=57600, SectSize=600, ECCbytes=40
BuffType=DualPortCache, BuffSize=8192kB, MaxMultSect=16, MultSect=off
CurCHS=4047/16/255, CurSects=16511760, LBA=yes, LBAsects=234375000
IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
PIO modes: pio0 pio1 pio2 pio3 pio4
DMA modes: mdma0 mdma1 mdma2
UDMA modes: udma0 udma1 udma2 udma3 udma4 *udma5
AdvancedPM=no WriteCache=enabled
Drive conforms to: device does not report version:
* signifies the current active mode
htpc root #
|
A quick look google and many people report these errors as interrupt issues, so maybe its chipset related.
Code: |
htpc root # cat /proc/pci
PCI devices found:
Bus 0, device 0, function 0:
Host bridge: VIA Technologies, Inc. VT8753 [P4X266 AGP] (rev 1).
Master Capable. Latency=8.
Prefetchable 32 bit memory at 0xe0000000 [0xe3ffffff].
Bus 0, device 1, function 0:
PCI bridge: VIA Technologies, Inc. VT8633 [Apollo Pro266 AGP] (rev 0).
Master Capable. No bursts. Min Gnt=12.
Bus 0, device 9, function 0:
Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (
rev 16).
IRQ 11.
Master Capable. Latency=32. Min Gnt=32.Max Lat=64.
I/O at 0xec00 [0xecff].
Non-prefetchable 32 bit memory at 0xdfffff00 [0xdfffffff].
Bus 0, device 10, function 0:
Multimedia audio controller: C-Media Electronics Inc CM8738 (rev 16).
IRQ 5.
Master Capable. Latency=32. Min Gnt=2.Max Lat=24.
I/O at 0xe800 [0xe8ff].
Bus 0, device 11, function 0:
Multimedia video controller: PCI device 4444:0016 (Internext Compression Inc
) (rev 1).
IRQ 11.
Master Capable. Latency=32. Min Gnt=128.Max Lat=8.
Prefetchable 32 bit memory at 0xd8000000 [0xdbffffff].
Bus 0, device 16, function 2:
USB Controller: VIA Technologies, Inc. USB (#3) (rev 128).
IRQ 5.
Master Capable. Latency=32.
I/O at 0xe400 [0xe41f].
Bus 0, device 16, function 1:
USB Controller: VIA Technologies, Inc. USB (#2) (rev 128).
IRQ 11.
Master Capable. Latency=32.
I/O at 0xe000 [0xe01f].
Bus 0, device 16, function 0:
USB Controller: VIA Technologies, Inc. USB (rev 128).
IRQ 9.
Master Capable. Latency=32.
I/O at 0xdc00 [0xdc1f].
Bus 0, device 16, function 3:
USB Controller: VIA Technologies, Inc. USB 2.0 (rev 130).
IRQ 11.
Master Capable. Latency=32.
Non-prefetchable 32 bit memory at 0xdffffe00 [0xdffffeff].
Bus 0, device 17, function 0:
ISA bridge: VIA Technologies, Inc. VT8235 ISA Bridge (rev 0).
Bus 0, device 17, function 1:
IDE interface: VIA Technologies, Inc. VT82C586/B/686A/B PIPC Bus Master IDE
(rev 6).
IRQ 14.
Master Capable. Latency=32.
I/O at 0xfc00 [0xfc0f].
Bus 0, device 17, function 5:
Multimedia audio controller: VIA Technologies, Inc. VT8233 AC97 Audio Contro
ller (rev 80).
IRQ 5.
I/O at 0xd800 [0xd8ff].
Bus 1, device 0, function 0:
VGA compatible controller: Matrox Graphics, Inc. MGA G400 AGP (rev 4).
IRQ 9.
Master Capable. Latency=32. Min Gnt=16.Max Lat=32.
Prefetchable 32 bit memory at 0xd4000000 [0xd5ffffff].
Non-prefetchable 32 bit memory at 0xdfefc000 [0xdfefffff].
Non-prefetchable 32 bit memory at 0xdf000000 [0xdf7fffff].
htpc root #
|
Have you seen anything along these lines before?
Thanks,
Brad |
|
Back to top |
|
|
delta407 Bodhisattva
Joined: 23 Apr 2002 Posts: 2876 Location: Chicago, IL
|
Posted: Wed Sep 24, 2003 6:26 pm Post subject: |
|
|
elwood75 wrote: | Code: | hda: write_intr: error=0x10 { SectorIdNotFound }, LBAsect=234411207, sector=1932 |
| "SectorIdNotFound"... incorrect drive geometry?
elwood75 wrote: | hdparm results:
Code: | htpc root # hdparm -i /dev/hda |
| What does `hdparm /dev/hda` say? (That gives info about the configuration, including geometry, instead of the device itself.)
elwood75 wrote: | A quick look google and many people report these errors as interrupt issues, so maybe its chipset related. | Could also be from a performance-enhancing (but malfunctioning) hdparm setting. _________________ I don't believe in witty sigs. |
|
Back to top |
|
|
elwood75 n00b
Joined: 24 Sep 2003 Posts: 7
|
Posted: Wed Sep 24, 2003 6:43 pm Post subject: |
|
|
Here's the hdparm info:
Code: |
htpc root # hdparm /dev/hda
/dev/hda:
multcount = 0 (off)
IO_support = 0 (default 16-bit)
unmaskirq = 0 (off)
using_dma = 0 (off)
keepsettings = 0 (off)
readonly = 0 (off)
readahead = 8 (on)
geometry = 14589/255/63, sectors = 234375000, start = 0
htpc root #
|
Here's hoping its a config issue. When it comes to drives, I'm a plug in and watch it work kind of guy. Do these geometry numbers tell you anything?
Hmm. I'm surprised-- DMA is supposed to be on, wonder whats going on here. But that shouldn't affect this, if anything, turning DMA off should help if its a performance issue, right?
Brad |
|
Back to top |
|
|
delta407 Bodhisattva
Joined: 23 Apr 2002 Posts: 2876 Location: Chicago, IL
|
Posted: Wed Sep 24, 2003 8:21 pm Post subject: |
|
|
elwood75 wrote: | Code: | IO_support = 0 (default 16-bit)
unmaskirq = 0 (off)
using_dma = 0 (off) |
| Well, those are the settings that have a tendency to break things, and they're all in their lowest-common-denominator mode. (This should work on all IDE controllers and drives made in the last decade.)
elwood75 wrote: | DMA is supposed to be on, wonder whats going on here. | It's probable that /etc/init.d/hdparm wasn't started.
elwood75 wrote: | But that shouldn't affect this, if anything, turning DMA off should help if its a performance issue, right? | Turning off DMA worsens performance but usually improves compatibility/reliability.
Well, I suppose there'd be no harm in enabling the more risky hdparm options, then:
Code: | # hdparm -c 3 -d 1 -u 1 /dev/hda |
Doing that affects the way the kernel talks to your hardware, and might have some impact on the situation. The only other thing I can think of is that the BIOS may have some silly incorrect addressing mode setting, but in my experience, Linux usually gets around that anyway. _________________ I don't believe in witty sigs. |
|
Back to top |
|
|
elwood75 n00b
Joined: 24 Sep 2003 Posts: 7
|
Posted: Thu Sep 25, 2003 3:17 pm Post subject: |
|
|
Update:
When my e2fsck -c -y finished running, it seemed to complain about two bad blocks and decided to "ignore" them.
I enabled DMA with the hdparm settings you suggested, added hdparm via rc-update, and proceeded to try to fill up my disk. I gave up at 80 gigs, well beyond my previous thresholds.
More google searches pointed to bad cables, possibly blown chipsets, etc, but I haven't had to resort to researching those problems.
Everything looks good, thanks for the help!
Brad |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|