Zapis na disk
Martin Salac
salac at certicon.cz
Mon Feb 14 11:34:11 CET 2005
Zdravim vsechny konferencniky.
Chtel bych vas poprosit o radu s nasledujicim problemem:
systat -v mi neustale vykazuje diskovou aktivitu (zapis nebo
cteni v prumeru 2 MB/s) na systemovem disku /.
Nedokazu zjistit, co to dela.
Zatim jsem postupoval vylucovaci metodou - pomoci trafshow
jsem monitoroval provoz na sitovce (provoz par beznych kilo -
jinymi slovy 0), dale pomoci sockstat zjistoval otevrene sockety
na stroji, potom pomoci lsof jsem prochazel mozne otevrene spojeni
a nakonec si nechal vypsat naposledy zmenene soubory z "postizeneho"
svazku, ale bohuzel nic jsem neodhalil.
Take jsem vypnul vsechny servery (databaze, apache apod), az bezel
jenom cisty system, ale aktivita na disku stale stejna.
Deje se tak od nedele, kdy na delam zalohu na pasku, ktera tentokrat
nedopadla dobre, resp ve /var/log/messages je log:
Feb 13 06:08:03 srotak /kernel: (sa0:ahc1:0:6:0): WRITE FILEMARKS. CDB:
10 0 0 0 1 0
Feb 13 06:08:03 srotak /kernel: (sa0:ahc1:0:6:0): MEDIUM ERROR asc:3,2
Feb 13 06:08:03 srotak /kernel: (sa0:ahc1:0:6:0): Excessive write errors
Feb 13 06:08:03 srotak /kernel: (sa0:ahc1:0:6:0): failed to write
terminating filemark(s)
Feb 13 06:08:03 srotak /kernel: (sa0:ahc1:0:6:0): tape is now frozen-
use an OFFLINE, REWIND or MTEOM command to clear this state.
Prosim, poradite nekdo metodu, jak zjistit, ktery proces/socket/program
ma na svedomi tuto aktivitu?
Nebo je tu moznost, ze mam polamany systat a ukazuje falesne udaje?
Diky za pripadne odpovedi.
Zdravi
Martin
P.S. Muzu to samozrejme rebootovat, nebo povysit na 4.11, ale rad bych
vedel, jaxe s tim vyporadat "za chodu"
P.P.S. udaje o systemu (v pripade potreby poslu vic vypisu, je toho
pozehnane, takze se mi nechce ucpavat kanal :-)):
System: uname -a
FreeBSD srotak.certicon.cz 4.10-RELEASE FreeBSD 4.10-RELEASE #6:
Wed Feb 2 13:31:37 CET 2005 boot at srotak.certicon.cz:
/usr/obj/usr/src/sys/SROTAK i386
cat /var/run/dmesg.boot
Copyright (c) 1992-2004 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD 4.10-RELEASE #6: Wed Feb 2 13:31:37 CET 2005
root at srotak.certicon.cz:/usr/obj/usr/src/sys/SROTAK
Timecounter "i8254" frequency 1193182 Hz
CPU: Intel(R) Pentium(R) 4 CPU 2.40GHz (2399.33-MHz 686-class CPU)
Origin = "GenuineIntel" Id = 0xf29 Stepping = 9
Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,C
MOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,avail memory = 518631424
(506476K bytes)
real memory = 536805376 (524224K bytes)
pnpbios: Bad PnP BIOS data checksum
Preloaded elf kernel "kernel" at 0xc03b3000.
Preloaded userconfig_script "/boot/kernel.conf" at 0xc03b309c.
Warning: Pentium 4 CPU: PSE disabled
netsmb_dev: loaded
Pentium Pro MTRR support enabled
md0: Malloc disk
Using $PIR table, 7 entries at 0xc00fc2c0
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <ServerWorks host to PCI bridge(unknown chipset)> on motherboard
pci0: <PCI bus> on pcib0
em0: <Intel(R) PRO/1000 Network Connection, Version - 1.7.25> port
0xecc0-0xecff
mem 0xfe100000-0xfe11ffff irq 10 at device 2.0 on pci0
em0: Speed:N/A Duplex:N/A
ahc0: <Adaptec 3960D Ultra160 SCSI adapter> port 0xe800-0xe8ff mem
0xfe123000-0x
fe123fff irq 5 at device 7.0 on pci0
aic7899: Ultra160 Wide Channel A, SCSI Id=7, 32/253 SCBs
SSE2,SS,HTT,TM,PBE>ahc1: <Adaptec 3960D Ultra160 SCSI adapter> port
0xe400-0xe4ff mem 0xfe122000-0x
fe122fff irq 10 at device 7.1 on pci0
aic7899: Ultra160 Wide Channel B, SCSI Id=7, 32/253 SCBs
pci0: <ATI Mach64-GR graphics accelerator> at 8.0
atapci0: <ServerWorks CSB6 ATA66 controller (channel 2)> port
0x900-0x90f,0x36c-
0x36f,0x168-0x16f,0x3ec-0x3ef,0x1e8-0x1ef irq 11 at device 14.0 on pci0
ata2: at 0x1e8 on atapci0
ata3: at 0x168 on atapci0
atapci1: <ServerWorks CSB6 ATA100 controller (channel 0+1)> port
0x8b0-0x8bf,0x3
74-0x377,0x170-0x177,0x3f4-0x3f7,0x1f0-0x1f7 at device 15.1 on pci0
ata0: at 0x1f0 irq 14 on atapci1
ata1: at 0x170 irq 15 on atapci1
pci0: <OHCI USB controller> at 15.2 irq 3
isab0: <PCItoISA bridge (vendor=1166 device=0227)> atdevice 15.3 on pci0
isa0: <ISA bus> on isab0
pcib255: <ServerWorks host to PCI bridge(unknown chipset)>on motherboard
pci255: <PCI bus> on pcib255
pcib1: <Host to PCI bridge> on motherboard
pci1: <PCI bus> on pcib1
orm0: <Option ROMs> at iomem
0xc0000-0xc7fff,0xe3000-0xea7ff,0xec000-0xeffff on isa0
pmtimer0 on isa0
fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> irq 1 on atkbdc0 kbd0 at atkbd0
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model IntelliMouse Explorer, device ID 4
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffffon isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
sio1: configured irq 3 not in bitmap of probed irqs 0
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: Generic chipset (ECP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/8 bytes threshold
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
acd0: CDROM <GCR-8481B> at ata2-master PIO4
Waiting 10 seconds for SCSI devices to settle
em0: Link is up 100 Mbps Full Duplex
sa0 at ahc1 bus 0 target 6 lun 0
sa0: <ARCHIVE Python 06408-XXX 9100> Removable Sequential Access SCSI-3
device
sa0: 80.000MB/s transfers (40.000MHz, offset 32, 16bit)
da0 at ahc0 bus 0 target 0 lun 0
da0: <MAXTOR ATLAS10K4_73WLS DFL0> Fixed Direct Access SCSI-3 device
da0: 160.000MB/s transfers (80.000MHz, offset 127, 16bit), Tagged
Queueing Enabled
da0: 70149MB (143666192 512 byte sectors: 255H 63S/T 8942C)
da1 at ahc0 bus 0 target 1 lun 0
da1: <MAXTOR ATLAS10K4_73WLS DFL0> Fixed Direct Access SCSI-3 device
da1: 160.000MB/s transfers (80.000MHz, offset 127, 16bit), Tagged
Queueing Enabled
da1: 70149MB (143666192 512 byte sectors: 255H 63S/T 8942C)
Mounting root from ufs:/dev/da0s1a
da2 at ahc0 bus 0 target 2 lun 0
da2: <SEAGATE ST336607LW DS08> Fixed Direct Access SCSI-3 device
da2: 160.000MB/s transfers (80.000MHz, offset 63, 16bit), Tagged
Queueing Enabled
da2: 34732MB (71132959 512 byte sectors: 255H 63S/T 4427C)
More information about the Users-l
mailing list