Untersuchung eines Linuxserver

Aus xinux.net
Zur Navigation springen Zur Suche springen

Festplatten

Anzeigen der Festplatten und der Geometrie

root@cardassia:~# fdisk -l

Platte /dev/sda: 320.0 GByte, 320072933376 Byte
255 Köpfe, 63 Sektoren/Spuren, 38913 Zylinder
Einheiten = Zylinder von 16065 × 512 = 8225280 Bytes
Disk identifier: 0x000a3fcd

   Gerät  boot.     Anfang        Ende     Blöcke   Id  System
/dev/sda1   *           1        3890    31246393+  83  Linux
/dev/sda2            3891        4863     7815622+  82  Linux Swap / Solaris
/dev/sda3            4864       38913   273506625   8e  Linux LVM

Anzeigen der Gerätezuordnungen

root@cardassia:/proc# cat partitions 
major minor  #blocks  name 
   8     0  312571224 sda
   8     1   31246393 sda1
   8     2    7815622 sda2
   8     3  273506625 sda3
 254     0   20971520 dm-0
 254     1   62914560 dm-1
 254     2  104857600 dm-2

Typ der Festplatte

root@cardassia:~# cat /proc/scsi/scsi 
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
  Vendor: HL-DT-ST Model: DVD-RAM GSA-H55N Rev: 1.05
  Type:   CD-ROM                           ANSI  SCSI revision: 05
Host: scsi2 Channel: 00 Id: 00 Lun: 00
  Vendor: ATA      Model: SAMSUNG HD321KJ  Rev: CP10
  Type:   Direct-Access                    ANSI  SCSI revision: 05

Mainboard

Scannen des PCI Buses

root@cardassia:/# lspci 
00:00.0 Host bridge: Intel Corporation 82G33/G31/P35/P31 Express DRAM Controller (rev 02)
00:01.0 PCI bridge: Intel Corporation 82G33/G31/P35/P31 Express PCI Express Root Port (rev 02)
00:1a.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4 (rev 02)
00:1a.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #5 (rev 02)
...

Module der Ethernetkarten

root@cardassia:/# lspci -k | grep -A 1 Ether
02:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8056 PCI-E Gigabit Ethernet Controller (rev 12) 
	Kernel driver in use: sky2
--
05:01.0 Ethernet controller: D-Link System Inc DGE-528T Gigabit Ethernet Adapter (rev 10) 
	Kernel driver in use: r8169

Interrupts

root@cardassia:/~# cat /proc/interrupts 
           CPU0       CPU1       
  0:        128          9   IO-APIC-edge      timer
  1:      13837       5057   IO-APIC-edge      i8042
  4:          1          1   IO-APIC-edge    
  7:          0          0   IO-APIC-edge      parport0
  8:         44         42   IO-APIC-edge      rtc0
  9:          0          0   IO-APIC-fasteoi   acpi
  .....

IOPorts

root@cardassia:~# cat /proc/ioports  | more
0000-001f : dma1
0020-0021 : pic1
0040-0043 : timer0
0050-0053 : timer1
0060-0060 : keyboard
0064-0064 : keyboard
0070-0071 : rtc0
0080-008f : dma page reg
...

DMA

root@cardassia:~# cat /proc/dma 
 3: parport0
 4: cascade

CPU

Info

root@cardassia:/# cat /proc/cpuinfo 
processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 23
model name	: Intel(R) Core(TM)2 Duo CPU     E8200  @ 2.66GHz
stepping	: 6
cpu MHz		: 1998.000
cache size	: 6144 KB
physical id	: 0
siblings	: 2
core id		: 0
cpu cores	: 2
apicid		: 0
initial apicid	: 0
fdiv_bug	: no
hlt_bug		: no
f00f_bug	: no
coma_bug	: no
fpu		: yes
fpu_exception	: yes
cpuid level	: 10
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm  constant_tsc arch_perfmon pebs bts pni monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr sse4_1 lahf_lm
...

USB

Scannen

root@cardassia:/# lsusb 
Bus 008 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002: ID 046d:c00e Logitech, Inc. M-BJ58/M-BJ69 Optical Wheel Mouse
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 004: ID 046d:08b0 Logitech, Inc. QuickCam 3000 Pro [pwc]
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

RAM

Belegung

root@cardassia:/# free 
             total       used       free     shared    buffers     cached
Mem:       3371500     914108    2457392          0     140800     350872
-/+ buffers/cache:     422436    2949064
Swap:      7815612          0    7815612

Sehr detalierte Belegung

root@cardassia:~ # cat /proc/meminfo 
MemTotal:      3371500 kB
MemFree:       2443068 kB
Buffers:        140800 kB
Cached:         352128 kB
SwapCached:          0 kB
Active:         553284 kB
Inactive:       270768 kB
...

Aktiver Swap

root@cardassia:/# cat /proc/swaps 
Filename				Type		Size	Used	Priority
/dev/sda2                               partition	7815612	0	-1

Grafikkarte

root@cardassia:~# lspci | grep VGA
01:00.0 VGA compatible controller: ATI Technologies Inc Mobility Radeon HD 3600 Serie

System

Version

root@cardassia:/# cat /etc/issue
Ubuntu 8.10 \n \l

Laufzeit

root@cardassia:/# uptime 
 17:05:57 up 1 day, 41 min,  7 users,  load average: 0.19, 0.17, 0.38

Kernelversion

root@cardassia:/# uname -a
Linux cardassia 2.6.27-7-generic #1 SMP Fri Oct 24 06:42:44 UTC 2008 i686 GNU/Linux

Kernelparameter

root@cardassia:/proc# cat /proc/cmdline 
root=UUID=623e63e7-14b7-4cd7-81b3-21b685b0f3a0 ro quiet splash

Aktuell unterstützte Dateisysteme

root@cardassia:/proc# cat /proc/filesystems

nodev	sysfs
nodev	rootfs
       ext3
       iso9660
...

Module

Aktuell geladene Module

root@cardassia:/proc# lsmod
Module                  Size  Used by
isofs                  40100  0 
udf                    88356  1 
crc_itu_t              10112  1 udf
binfmt_misc            16904  1 
rfcomm                 44432  0 
bridge                 56980  0 
stp                    10628  1 bridge
bnep                   20480  2 
sco                    18308  2 
...

Verfügbare Module

root@cardassia:/proc# modprobe -l
/lib/modules/2.6.27-7-generic/volatile/ath_hal.ko
/lib/modules/2.6.27-7-generic/volatile/ath_pci.ko
/lib/modules/2.6.27-7-generic/volatile/ath_rate_amrr.ko
...