Hello!
I had a problem with xen and aide.
This could be interressant also for the developer of XEN and AIDE.
Details see attachment.
The full (german) document is avaible to
http://www2.fh-lausitz.de/launic/os-tips/xen/050707.prob_reboot
regards tl
--
Torsten lehmann
Member of LauNOC
050707.prob_reboot_en_small
- zu 050707.prob_reboot
Problem:
--------
- at special times the computer reboots hisself (after installation of XEN)
----------------------------------------------------------------------------
Diag:
------
- top:
top - 02:07:22 up 5:44, 2 users, load average: 0.28, 0.06, 0.02
Tasks: 78 total, 3 running, 75 sleeping, 0 stopped, 0 zombie
Cpu(s): 8.3% us, 1.3% sy, 0.0% ni, 0.0% id, 90.3% wa, 0.0% hi, 0.0% si
Mem: 1918324k total, 535060k used, 1383264k free, 131932k buffers
Swap: 2056312k total, 0k used, 2056312k free, 245220k cached
Read from remote host vicky.xxxxxxxxxxxxxx.de: Connection reset by peer
Connection to vicky.xxxxxxxxxxxxxx.de closed. %MEM TIME+ COMMAND
pc-hl133 # ~ $ 18 0 4212 3572 420 R 9.7 0.2 0:09.09 aide.real
1 root 16 0 1576 512 452 S 0.0 0.0 0:00.70 init
2 root 34 19 0 0 0 S 0.0 0.0 0:00.00 ksoftirqd/0
3 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 events/0
....
- running aide
- alloc few RAM
- Version
- debian testing
vicky:~# uname -r
2.6.11.10-xen0
vicky:~# aide.real -v
Aide, version 0.10
Compiled with the following options
WITH_GCRYPT
WITH_MHASH
CONFIG_FILE = "/var/lib/aide/aide.conf.autogenerated"
- test strace aide
----%<----
vicky:~# strace aide.real -c /etc/aide/aide.root.conf -C
...
open("/sys/devices/pci0000:00/0000:00:1f.0/subsystem_vendor", O_RDONLY) = 5
fstat64(5, {st_mode=S_IFREG|0444, st_size=4096, ...}) = 0
old_mmap(NULL, 4096, PROT_READ, MAP_SHARED, 5, 0) = -1 ENODEV (No such device)
write(1, "error mmap\'ing /sys/devices/pci0"..., 69error mmap'ing /sys/devices/r
) = 69
close(5) = 0
lstat64("/sys/devices/pci0000:00/0000:00:1f.0/device", {st_mode=S_IFREG|0444, s0
time(NULL) = 1120727156
open("/sys/devices/pci0000:00/0000:00:1f.0/device", O_RDONLY) = 5
fstat64(5, {st_mode=S_IFREG|0444, st_size=4096, ...}) = 0
old_mmap(NULL, 4096, PROT_READ, MAP_SHARED, 5, 0) = -1 ENODEV (No such device)
write(1, "error mmap\'ing /sys/devices/pci0"..., 59error mmap'ing /sys/devices/e
) = 59
close(5) = 0
lstat64("/sys/devices/pci0000:00/0000:00:1f.0/vendor", {st_mode=S_IFREG|0444, s0
time(NULL) = 1120727156
open("/sys/devices/pci0000:00/0000:00:1f.0/vendor", O_RDONLY) = 5
fstat64(5, {st_mode=S_IFREG|0444, st_size=4096, ...}) = 0
old_mmap(NULL, 4096, PROT_READ, MAP_SHARED, 5, 0) = -1 ENODEV (No such device)
write(1, "error mmap\'ing /sys/devices/pci0"..., 59error mmap'ing /sys/devices/r
) = 59
close(5) = 0
lstat64("/sys/devices/pci0000:00/0000:00:1f.0/resource", {st_mode=S_IFREG|0444,0
time(NULL) = 1120727156
open("/sys/devices/pci0000:00/0000:00:1f.0/resource", O_RDONLY) = 5
fstat64(5, {st_mode=S_IFREG|0444, st_size=4096, ...}) = 0
old_mmap(NULL, 4096, PROT_READ, MAP_SHARED, 5, 0) = -1 ENODEV (No such device)
write(1, "error mmap\'ing /sys/devices/pci0"..., 61error mmap'ing /sys/devices/e
) = 61
close(5) = 0
lstat64("/sys/devices/pci0000:00/0000:00:1f.0/detach_state", {st_mode=S_IFREG|00
time(NULL) = 1120727156
open("/sys/devices/pci0000:00/0000:00:1f.0/detach_state", O_RDONLY) = 5
fstat64(5, {st_mode=S_IFREG|0644, st_size=4096, ...}) = 0
old_mmap(NULL, 4096, PROT_READ, MAP_SHARED, 5, 0) = -1 ENODEV (No such device)
write(1, "error mmap\'ing /sys/devices/pci0"..., 65error mmap'ing /sys/devices/e
) = 65
close(5) = 0
getdents64(3, /* 0 entries */, 4096) = 0
getdents64(3, /* 0 entries */, 4096) = 0
close(3) = 0
open("/sys/devices/pci0000:00/0000:00:1e.0", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_3
fstat64(3, {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
getdents64(3, /* 15 entries */, 4096) = 472
lstat64("/sys/devices/pci0000:00/0000:00:1e.0/config", {st_mode=S_IFREG|0644, s0
time(NULL) = 1120727156
open("/sys/devices/pci0000:00/0000:00:1e.0/config", O_RDONLY) = 5
fstat64(5, {st_mode=S_IFREG|0644, st_size=256, ...}) = 0
old_mmap(NULL, 256, PROT_READ, MAP_SHARED, 5, 0) = -1 EINVAL (Invalid argument)
write(1, "error mmap\'ing /sys/devices/pci0"..., 59error mmap'ing /sys/devices/g
) = 59
close(5) = 0
lstat64("/sys/devices/pci0000:00/0000:00:1e.0/0000:01:0c.0", {st_mode=S_IFDIR|00
time(NULL) = 1120727156
lstat64("/sys/devices/pci0000:00/0000:00:1e.0/0000:01:0a.0", {st_mode=S_IFDIR|00
time(NULL) = 1120727156
lstat64("/sys/devices/pci0000:00/0000:00:1e.0/0000:01:09.0", {st_mode=S_IFDIR|00
time(NULL) = 1120727156
lstat64("/sys/devices/pci0000:00/0000:00:1e.0/local_cpus", {st_mode=S_IFREG|0440
time(NULL) = 1120727156
open("/sys/devices/pci0000:00/0000:00:1e.0/local_cpus", O_RDONLY) = 5
fstat64(5, Read from remote host vicky.xxxxxxxxxxxxxx.de: Connection reset by pr
Connection to vicky.xxxxxxxxxxxxxx.de closed.
----%<----
- aide cannot read file in directory /sys
- /sys is similar to /proc
- readtest:
vicky:~# tar -cvf /dev/null /sys
-> OK
- thats why Dir /sys can read succesfull
reasons:
- aide has a bug
- But why does the computer hang up?
workaround:
- aide: in aide.conf Dir /sys disablen:
## fix xen
=/sys$ StaticDir
!/sys
- xen-devel: moving /sys to /proc/xen/sys
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
|