----- On Feb 16, 2016, at 2:41 PM, Bernd Lentes bernd.lentes@helmholtz-muenchen.de wrote:
----- On Feb 15, 2016, at 9:52 PM, Bernd Lentes bernd.lentes@helmholtz-muenchen.de wrote:
Hallo David,
mit unbuffer klappt das, das skript läuft dann durch. Mein Kommando sieht dann wie folgt aus: unbuffer /sbin/lvcreate -v -L 25G -n lv_root_snapshot -s vg1/lv_root >> /var/log/update.log 2>&1 Das mit dem tee habe ich nicht versucht.
Das mit dem ltrace mach ich noch und schicke Dir das.
Vielen Dank schon mal.
Das mit dem strace klappt auch nicht so:
vm58820-6:~ # strace -f -tt -o ./lvcreate_mit_unbuffer_ohne_umleitung.log unbuffer /sbin/lvcreate -v -L 25G -n lv_root_snapshot -s vg1/lv_root
erzeugt diesen Output:
File descriptor 3 (/dev/pts/0) leaked on lvcreate invocation. Parent PID 4665: expect
Setting logging type to disk
Setting chunksize to 8 sectors.
Finding volume group "vg1"
Archiving volume group "vg1" metadata (seqno 427).
Creating logical volume lv_root_snapshot
Creating volume group backup "/etc/lvm/backup/vg1" (seqno 428).
Found volume group "vg1"
activation/volume_list configuration setting not defined: Checking only host tags for vg1/lv_root_snapshot
Creating vg1-lv_root_snapshot
Loading vg1-lv_root_snapshot table (252:1)
Resuming vg1-lv_root_snapshot (252:1)
Clearing start of logical volume "lv_root_snapshot"
Creating logical volume snapshot0
Found volume group "vg1"
Found volume group "vg1"
Creating vg1-lv_root-real
Loading vg1-lv_root-real table (252:2)
Loading vg1-lv_root table (252:0)
Creating vg1-lv_root_snapshot-cow
Loading vg1-lv_root_snapshot-cow table (252:3)
Resuming vg1-lv_root_snapshot-cow (252:3)
Loading vg1-lv_root_snapshot table (252:1)
Suspending vg1-lv_root (252:0) with filesystem sync with device flush
und dann bleibt die Maschine stehen. Ohne jegliche Umleitung.
lvcreate_mit_unbuffer_ohne_umleitung.log liegt hier: https://hmgubox.helmholtz-muenchen.de:8001/d/b4c7025bac/
Die letzte Zeile in dieser Datei lautet:
4666 19:37:41.352001 ioctl(4, DM_DEV_SUSPEND
also anscheinend als das LV vg1-lv_root suspended wird.
Frage: strace zeigt ja Systemaufrufe an. Wenn ich "man ioctl" mache, kriege ich dies hier:
Linux Programmer's Manual
NAME
ioctl - control device
SYNOPSIS
#include