https://bugzilla.novell.com/show_bug.cgi?id=865682
https://bugzilla.novell.com/show_bug.cgi?id=865682#c17
--- Comment #17 from Bill Weidman 2014-03-01 00:03:30 UTC ---
xl block-attach 0 'drbd:test.root,sda,w'
++ dirname /etc/xen/scripts/block-drbd
+ dir=/etc/xen/scripts
+ . /etc/xen/scripts/block-common.sh
+++ dirname /etc/xen/scripts/block-drbd
++ dir=/etc/xen/scripts
++ . /etc/xen/scripts/xen-hotplug-common.sh
+++ '[' -n '' ']'
++++ dirname /etc/xen/scripts/block-drbd
+++ dir=/etc/xen/scripts
+++ . /etc/xen/scripts/hotplugpath.sh
++++ SBINDIR=/usr/sbin
++++ BINDIR=/usr/bin
++++ LIBEXEC=/usr/lib/xen/bin
++++ LIBDIR=/usr/lib64
++++ SHAREDIR=/usr/share
++++ PRIVATE_BINDIR=/usr/lib64/xen/bin
++++ XENFIRMWAREDIR=/usr/lib/xen/boot
++++ XEN_CONFIG_DIR=/etc/xen
++++ XEN_SCRIPT_DIR=/etc/xen/scripts
++++ XEN_LOCK_DIR=/var/lock
++++ XEN_RUN_DIR=/var/run/xen
++++ XEN_PAGING_DIR=/var/lib/xen/xenpaging
+++ . /etc/xen/scripts/logging.sh
+++ . /etc/xen/scripts/xen-script-common.sh
++++ set -e
+++ . /etc/xen/scripts/locking.sh
++++ LOCK_BASEDIR=/var/run/xen-hotplug
+++ exec
# xl block-list 0
Vdev BE handle state evt-ch ring-ref BE-path
2048 0 0 5 109 8 /local/domain/0/backend/vbd/0/2048
cat /var/log/xen/xen-hotplug.log
+++ export
PATH=/usr/bin:/usr/sbin:/usr/lib/xen/bin:/usr/lib64/xen/bin:/sbin:/bin:/usr/bin:/usr/sbin:/sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/games
+++
PATH=/usr/bin:/usr/sbin:/usr/lib/xen/bin:/usr/lib64/xen/bin:/sbin:/bin:/usr/bin:/usr/sbin:/sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/games
+++ export LD_LIBRARY_PATH=/usr/lib64
+++ LD_LIBRARY_PATH=/usr/lib64
+++ export LANG=POSIX
+++ LANG=POSIX
++++ set
++++ grep '^LC_'
++++ cut -d= -f1
+++ unset LC_CTYPE
+++ trap sigerr ERR
+++ log debug add XENBUS_PATH=backend/vbd/0/2048
+++ local level=debug
+++ shift
+++ logger -p daemon.debug -- /etc/xen/scripts/block-drbd: add
XENBUS_PATH=backend/vbd/0/2048
++ findCommand add
++ for arg in '"$@"'
++ expr index add =
++ command=add
++ return
++ '[' add '!=' add ']'
++ XENBUS_PATH=backend/vbd/0/2048
++ xenstore_read_default backend/vbd/0/2048/type MISSING
++ xenstore-read backend/vbd/0/2048/type
+ t=phy
+ case "$command" in
++ xenstore_read_default backend/vbd/0/2048/physical-device MISSING
++ xenstore-read backend/vbd/0/2048/physical-device
++ echo MISSING
+ phys=MISSING
+ '[' MISSING '!=' MISSING ']'
+ '[' -n phy ']'
++ xenstore_read backend/vbd/0/2048/params
+++ xenstore-read backend/vbd/0/2048/params
++ local v=test.root
++ '[' test.root '!=' '' ']'
++ echo test.root
+ p=test.root
++ xenstore_read backend/vbd/0/2048/mode
+++ xenstore-read backend/vbd/0/2048/mode
++ local v=w
++ '[' w '!=' '' ']'
++ echo w
+ mode=w
+ case $t in
+ drbd_resource=test.root
++ /sbin/drbdadm role test.root
+ drbd_role=Primary/Secondary
+ drbd_lrole=Primary
++ /sbin/drbdadm sh-dev test.root
+ drbd_dev=/dev/drbd37
+ '[' Primary '!=' Primary ']'
+ dev=/dev/drbd37
++ xenstore_read backend/vbd/0/2048/frontend-id
+++ xenstore-read backend/vbd/0/2048/frontend-id
++ local v=0
++ '[' 0 '!=' '' ']'
++ echo 0
+ FRONTEND_ID=0
++ xenstore_read_default /local/domain/0/vm unknown
++ xenstore-read /local/domain/0/vm
++ echo unknown
+ FRONTEND_UUID=unknown
+ claim_lock block
+ mkdir -p /var/run/xen-hotplug
+ _setlockfd block
+ local i
+ (( i = 0 ))
+ (( i < 0 ))
+ _lockdict[$i]=block
+ let _lockfd=200+i
+ _lockfile=/var/run/xen-hotplug/block
+ local rightfile
+ true
+ eval 'exec 200<>/var/run/xen-hotplug/block'
++ exec
+ flock -x 200
++ perl -e '
open STDIN, "<&200" or die $!;
my $fd_inum = (stat STDIN)[1]; die $! unless defined $fd_inum;
my $file_inum = (stat $ARGV[0])[1];
print "y\n" if $fd_inum eq $file_inum;
' /var/run/xen-hotplug/block
+ rightfile=y
+ '[' xy = xy ']'
+ break
+ check_device_sharing /dev/drbd37 w
+ local dev=/dev/drbd37
++ canonicalise_mode w
++ local mode=w
++ expr index w w
++ expr index w '!'
++ echo w
+ local mode=w
+ local result
+ '[' xw = 'x!' ']'
++ check_sharing /dev/drbd37 w
++ local dev=/dev/drbd37
++ local mode=w
+++ device_major_minor /dev/drbd37
+++ stat -L -c %t:%T /dev/drbd37
++ local devmm=93:25
++ local file
++ toskip='^$'
+++ cat /proc/mounts
+++ grep -v '^$'
+++ cut -f 1 -d ' '
++ for file in '$(cat /proc/mounts | grep -v "$toskip" | cut -f 1 -d '\''
'\'')'
++ '[' -e rootfs ']'
++ for file in '$(cat /proc/mounts | grep -v "$toskip" | cut -f 1 -d '\''
'\'')'
++ '[' -e devtmpfs ']'
++ for file in '$(cat /proc/mounts | grep -v "$toskip" | cut -f 1 -d '\''
'\'')'
++ '[' -e tmpfs ']'
++ for file in '$(cat /proc/mounts | grep -v "$toskip" | cut -f 1 -d '\''
'\'')'
++ '[' -e tmpfs ']'
++ for file in '$(cat /proc/mounts | grep -v "$toskip" | cut -f 1 -d '\''
'\'')'
++ '[' -e devpts ']'
++ for file in '$(cat /proc/mounts | grep -v "$toskip" | cut -f 1 -d '\''
'\'')'
++ '[' -e /dev/mapper/system-root ']'
+++ device_major_minor /dev/mapper/system-root
+++ stat -L -c %t:%T /dev/mapper/system-root
++ local d=fd:0
++ '[' fd:0 = 93:25 ']'
++ for file in '$(cat /proc/mounts | grep -v "$toskip" | cut -f 1 -d '\''
'\'')'
++ '[' -e proc ']'
++ for file in '$(cat /proc/mounts | grep -v "$toskip" | cut -f 1 -d '\''
'\'')'
++ '[' -e sysfs ']'
++ for file in '$(cat /proc/mounts | grep -v "$toskip" | cut -f 1 -d '\''
'\'')'
++ '[' -e securityfs ']'
++ for file in '$(cat /proc/mounts | grep -v "$toskip" | cut -f 1 -d '\''
'\'')'
++ '[' -e tmpfs ']'
++ for file in '$(cat /proc/mounts | grep -v "$toskip" | cut -f 1 -d '\''
'\'')'
++ '[' -e cgroup ']'
++ for file in '$(cat /proc/mounts | grep -v "$toskip" | cut -f 1 -d '\''
'\'')'
++ '[' -e pstore ']'
++ for file in '$(cat /proc/mounts | grep -v "$toskip" | cut -f 1 -d '\''
'\'')'
++ '[' -e cgroup ']'
++ for file in '$(cat /proc/mounts | grep -v "$toskip" | cut -f 1 -d '\''
'\'')'
++ '[' -e cgroup ']'
++ for file in '$(cat /proc/mounts | grep -v "$toskip" | cut -f 1 -d '\''
'\'')'
++ '[' -e cgroup ']'
++ for file in '$(cat /proc/mounts | grep -v "$toskip" | cut -f 1 -d '\''
'\'')'
++ '[' -e cgroup ']'
++ for file in '$(cat /proc/mounts | grep -v "$toskip" | cut -f 1 -d '\''
'\'')'
++ '[' -e cgroup ']'
++ for file in '$(cat /proc/mounts | grep -v "$toskip" | cut -f 1 -d '\''
'\'')'
++ '[' -e cgroup ']'
++ for file in '$(cat /proc/mounts | grep -v "$toskip" | cut -f 1 -d '\''
'\'')'
++ '[' -e cgroup ']'
++ for file in '$(cat /proc/mounts | grep -v "$toskip" | cut -f 1 -d '\''
'\'')'
++ '[' -e cgroup ']'
++ for file in '$(cat /proc/mounts | grep -v "$toskip" | cut -f 1 -d '\''
'\'')'
++ '[' -e systemd-1 ']'
++ for file in '$(cat /proc/mounts | grep -v "$toskip" | cut -f 1 -d '\''
'\'')'
++ '[' -e mqueue ']'
++ for file in '$(cat /proc/mounts | grep -v "$toskip" | cut -f 1 -d '\''
'\'')'
++ '[' -e debugfs ']'
++ for file in '$(cat /proc/mounts | grep -v "$toskip" | cut -f 1 -d '\''
'\'')'
++ '[' -e tmpfs ']'
++ for file in '$(cat /proc/mounts | grep -v "$toskip" | cut -f 1 -d '\''
'\'')'
++ '[' -e tmpfs ']'
++ for file in '$(cat /proc/mounts | grep -v "$toskip" | cut -f 1 -d '\''
'\'')'
++ '[' -e /dev/sda1 ']'
+++ device_major_minor /dev/sda1
+++ stat -L -c %t:%T /dev/sda1
++ local d=8:1
++ '[' 8:1 = 93:25 ']'
++ for file in '$(cat /proc/mounts | grep -v "$toskip" | cut -f 1 -d '\''
'\'')'
++ '[' -e /dev/mapper/vgdomu-backup ']'
+++ device_major_minor /dev/mapper/vgdomu-backup
+++ stat -L -c %t:%T /dev/mapper/vgdomu-backup
++ local d=fd:2
++ '[' fd:2 = 93:25 ']'
++ for file in '$(cat /proc/mounts | grep -v "$toskip" | cut -f 1 -d '\''
'\'')'
++ '[' -e none ']'
++ local base_path=backend/vbd
+++ xenstore-list backend/vbd
++ for dom in '$(xenstore-list "$base_path")'
+++ xenstore-list backend/vbd/0
++ for dev in '$(xenstore-list "$base_path/$dom")'
+++ xenstore_read_default backend/vbd/0/2048/physical-device ''
+++ xenstore-read backend/vbd/0/2048/physical-device
+++ echo ''
++ d=
++ '[' '' = 93:25 ']'
++ echo ok
+ result=ok
+ '[' ok '!=' ok ']'
+ write_dev /dev/drbd37
+ local mm
++ device_major_minor /dev/drbd37
++ stat -L -c %t:%T /dev/drbd37
+ mm=93:25
+ '[' -z 93:25 ']'
+ xenstore_write backend/vbd/0/2048/physical-device 93:25
+ _xenstore_write backend/vbd/0/2048/physical-device 93:25
+ log debug 'Writing backend/vbd/0/2048/physical-device' '93:25 to xenstore.'
+ local level=debug
+ shift
+ logger -p daemon.debug -- /etc/xen/scripts/block-drbd: 'Writing
backend/vbd/0/2048/physical-device' '93:25 to xenstore.'
+ xenstore-write backend/vbd/0/2048/physical-device 93:25
+ success
+ xenstore_write backend/vbd/0/2048/hotplug-status connected
+ _xenstore_write backend/vbd/0/2048/hotplug-status connected
+ log debug 'Writing backend/vbd/0/2048/hotplug-status' 'connected to
xenstore.'
+ local level=debug
+ shift
+ logger -p daemon.debug -- /etc/xen/scripts/block-drbd: 'Writing
backend/vbd/0/2048/hotplug-status' 'connected to xenstore.'
+ xenstore-write backend/vbd/0/2048/hotplug-status connected
+ release_lock block
+ _setlockfd block
+ local i
+ (( i = 0 ))
+ (( i < 5 ))
+ '[' -z block -o block = block ']'
+ break
+ _lockdict[$i]=block
+ let _lockfd=200+i
+ _lockfile=/var/run/xen-hotplug/block
+ rm /var/run/xen-hotplug/block
+ exit 0
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.