  | |  | "eth0: memory shortage " errors | "eth0: memory shortage " errors 2004-10-25 - By Robert G. (Doc) Savage
Back I 'm using dd and nc to copy partition images from my laptop to a large
RAID5 array on my RHEL3/ES machine. One partition (/dev/hda5)
consistently fails in four copy attempts:
# dd if=/dev/hda5 bs=2048 | nc 192.168.1.2 40000 -w 3
dd: reading `/dev/hda5 ': Input/output error
4825678+0 records in
4825678+0 records out
At the point of failure the destination looks like this:
# nc -l -p 40000 > /pub/images/hda5.img
...
# ls -gG hda*
total 21064856
-rw-rw-r-- 1 108347904 Oct 24 18:20 hda1.img
-rw-rw-r-- 1 10489651200 Oct 24 18:42 hda2.img
-rw-rw-r-- 1 1068318720 Oct 24 19:03 hda3.img
-rw-rw-r-- 1 1024 Oct 24 19:04 hda4.img
-rw-rw-r-- 1 9882988544 Oct 24 22:03 hda5.img
-rw-rw-r-- 1 749 Oct 24 19:17 hda_fdisk.txt
-rw-rw-r-- 1 512 Oct 24 18:21 hda_mbr.img
I 've ruled out filesize limitation as a cause because the successful
hda2 image is larger than the failed hda5 image. The only notable
difference I can see between hda2 and hda5 is that the latter is an
extended partition. I don 't know if that 's significant.
I 've also ruled out the source dd and nc as a cause since the exact same
problem occurs whether I boot the laptop using a Helix v1.5 CD or from
its FC1 local hard drive.
The destination system 's RAID5 array is a hardware implementation
composed of an Adaptec 2000S zero channel raid card, two Adaptec
AIC-7899 U160 channels on the m/b, and nine Seagate 146.8G drives. Its
particulars are:
# fdisk -l /dev/hdb
Disk /dev/sdb: 1174.5 GB, 1174522560512 bytes
255 heads, 63 sectors/track, 142794 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 133674 1073736373+ 83 Linux
If this is a RAID problem, it will be the first for this machine.
The only notables in the logs are odd are groups of eth0 memory shortage
reports in /var/log/messages:
Oct 24 18:22:40 lion kernel: eth0: memory shortage
Oct 24 18:26:28 lion kernel: eth0: memory shortage
Oct 24 18:27:58 lion last message repeated 2 times
Oct 24 18:29:39 lion kernel: eth0: memory shortage
Oct 24 18:30:54 lion:kernel: eth0: memory shortage
Oct 24 18:33:20 lion last message repeated 2 times
Oct 24 18:34:40 lion last message repeated 2 times
Oct 24 18:41:02 lion kernel: eth0: memory shortage
Oct 24 18:42:03 lion kernel: eth0: memory shortage
TOTAL = 12 events
Oct 24 19:02:08 lion kernel: eth0: memory shortage
Oct 24 19:06:49 lion last message repeated 2 times
Oct 24 19:08:20 lion kernel: eth0: memory shortage
Oct 24 19:09:30 lion last message repeated 2 times
Oct 24 19:11:51 lion last message repeated 2 times
Oct 24 19:14:11 lion last message repeated 3 times
Oct 24 19:15:52 lion kernel: eth0: memory shortage
Oct 24 19:17:22 lion kernel: eth0: memory shortage
Oct 24 19:19:23 lion last message repeated 3 times
Oct 24 19:20:53 lion kernel: eth0: memory shortage
Oct 24 19:22:04 lion last message repeated 2 times
Oct 24 19:24:35 lion last message repeated 2 times
Oct 24 19:25:47 lion last message repeated 2 times
TOTAL = 23 events
Oct 24 20:08:04 lion kernel: eth0: memory shortage
Oct 24 20:09:15 lion kernel: eth0: memory shortage
Oct 24 20:10:45 lion last message repeated 3 times
Oct 24 20:12:36 lion last message repeated 2 times
Oct 24 20:13:56 lion last message repeated 3 times
Oct 24 20:15:17 lion last message repeated 2 times
Oct 24 20:18:08 lion last message repeated 2 times
Oct 24 20:20:28 lion last message repeated 2 times
Oct 24 20:22:34 lion last message repeated 3 times
TOTAL = 19 events
Oct 24 21:48:34 lion kernel: eth0: memory shortage
Oct 24 21:49:44 lion last message repeated 5 times
Oct 24 21:51:55 lion kernel: eth0: memory shortage
Oct 24 21:54:46 lion kernel: eth0: memory shortage
Oct 24 21:56:26 lion last message repeated 3 times
Oct 24 21:58:07 lion last message repeated 2 times
Oct 24 22:00:48 lion last message repeated 2 times
Oct 24 22:02:08 lion last message repeated 3 times
Oct 24 22:03:29 lion last message repeated 2 times
TOTAL = 20 events
dmesg also reports these with 74 abbreviated "eth0: memory shortage "
entries. For the record, dmesg also reports two 3c980C Python-T Ethernet
ports as devices 02;08.0 and 02:09.0, and at IRQs 18 and 19. A
divert_blk (whatever that is) is allocated for each.
For the curious, the gateway router at 192.168.1.1 is a Linksys WRT54G
with firmware version v2.00.8.
I didn 't get any hits in Bugzilla searching for the "eth0: ... " string.
(They could be there, but I 'm not very good at Bugzilla searches.)
Has anyone else experienced a similar problem? This is important to me
because I plan to use the target system as a forensic workstation and
must be able to store and manipulate very large partition image files.
-- Doc
Robert G. (Doc) Savage, BSE(EE), CISSP, RHCE | Fairview Heights, IL
RHEL3/ESu3 on Tyan S2468UGN w/3G, dual Athlon MP 2800+, 1.1T RAID5
"Perfection is the enemy of good enough. "
-- Admiral of the Fleet Sergei G. Gorshkov
--
Taroon-list mailing list
Taroon-list@(protected)
http://www.redhat.com/mailman/listinfo/taroon-list
|
|
 |