Bug 11673 - sar fails to run sadc
Summary: sar fails to run sadc
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: sysstat (show other bugs)
Version: unstable
Hardware: all Linux
: P2 critical
Assignee: bip@altlinux.org
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-02 02:02 MSD by Michael Shigorin
Modified: 2007-11-16 13:32 MSK (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Shigorin 2007-05-02 02:02:59 MSD
# strace -ff sar -d 1 100 | grep sda
[...]
[pid 14413] execve("/usr/lib64/sadc", ["sadc", "1", "101", "-z", "-d"], [/* 27
vars */]) = -1 ENOENT (No such file or directory)
[pid 14413] execve("/root/bin/sadc", ["sadc", "1", "101", "-z", "-d"], [/* 27
vars */]) = -1 ENOENT (No such file or directory)
[pid 14413] execve("/sbin/sadc", ["sadc", "1", "101", "-z", "-d"], [/* 27 vars
*/]) = -1 ENOENT (No such file or directory)
[pid 14413] execve("/usr/sbin/sadc", ["sadc", "1", "101", "-z", "-d"], [/* 27
vars */]) = -1 ENOENT (No such file or directory)
[pid 14413] execve("/usr/local/sbin/sadc", ["sadc", "1", "101", "-z", "-d"], [/*
27 vars */]) = -1 ENOENT (No such file or directory)
[pid 14413] execve("/bin/sadc", ["sadc", "1", "101", "-z", "-d"], [/* 27 vars
*/]) = -1 ENOENT (No such file or directory)
[pid 14413] execve("/usr/bin/sadc", ["sadc", "1", "101", "-z", "-d"], [/* 27
vars */]) = -1 ENOENT (No such file or directory)
[pid 14413] execve("/usr/local/bin/sadc", ["sadc", "1", "101", "-z", "-d"], [/*
27 vars */]) = -1 ENOENT (No such file or directory)
[pid 14413] execve("/usr/X11R6/bin/sadc", ["sadc", "1", "101", "-z", "-d"], [/*
27 vars */]) = -1 ENOENT (No such file or directory)
[pid 14413] execve("/usr/games/sadc", ["sadc", "1", "101", "-z", "-d"], [/* 27
vars */]) = -1 ENOENT (No such file or directory)
[pid 14413] dup(2)                      = 3
[pid 14413] fcntl(3, F_GETFL)           = 0x8002 (flags O_RDWR|O_LARGEFILE)
[pid 14413] fstat(3, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 5), ...}) = 0
[pid 14413] mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0x2aaaaaac4000
[pid 14413] lseek(3, 0, SEEK_CUR)       = -1 ESPIPE (Illegal seek)
[pid 14413] write(3, "exec: No such file or directory\n", 32exec: No such file
or directory
) = 32
[pid 14413] close(3)                    = 0
[pid 14413] munmap(0x2aaaaaac4000, 4096) = 0
[pid 14413] exit_group(4)               = ?
Process 14413 detached
<... read resumed> "", 240)             = 0
--- SIGCHLD (Child exited) @ 0 (0) ---
exit_group(0)                           = ?
Process 14412 detached
# rpm -ql sysstat | grep sadc       
/usr/lib64/sa/sadc
/usr/share/man/man8/sadc.8.gz

similar on i586
Comment 1 Michael Shigorin 2007-05-02 02:15:44 MSD
workaround: 
mkdir /root/bin
ln -s /usr/lib64/sa/sadc /root/bin/
Comment 2 Victor Forsyuk 2007-05-02 14:57:00 MSD
Мда... Автор перешел с самодельных скриптов на автотулзовские. Я вроде как все
подпорки поставил, но в одном месте рука дрогнула, а я был слишком уставшим,
чтобы заметить. :(

7.1.4-alt1 (свежая версия) с исправлением уже собрался для Сизифа. Прошу втянуть
ее в бранч. Изменения в этой версии:

This version of sysstat adds a new command (pidstat) aimed at reporting
statistics for Linux tasks (processes). This command will replace sar's options
-x and -X and will have many more features (e.g. I plan to add per-process I/O
statistics in next sysstat release).
Another change in this version which is worth being noted is the addition of
option -N to iostat. This option enables the user to query any device-mapper
devices for their registered device name. It should prove useful for viewing
LVM2 statistics.
Comment 3 Michael Shigorin 2007-05-02 16:32:14 MSD
Спасибо!  Я тоже заметил в изрядно уставшем состоянии -- не выровнял вовремя
raid5 по границе страйпа, вторые сутки развлекаюсь в онлайновое перетаскивание
под огнём качающих. :)