Your message dated Tue, 11 Jun 2013 08:49:02 +0100
with message-id <[email protected]>
and subject line Re: Bug#711851: qcontrol: disable watchdog on QNAP devices
does not work
has caused the Debian Bug report #711851,
regarding qcontrol: disable watchdog on QNAP devices does not work
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
711851: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=711851
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: qcontrol
Version: 0.4.2-7+wheezy1
Severity: important
The qcontrol init script in
/usr/share/initramfs-tools/scripts/init-bottom/qcontrol
contains a command line to be executed on QNAP deveices in order to disable
their
builtin watchdog and prevent them from rebooting after 5 minutes of runtime.
This line is:
/sbin/qcontrol --direct watchdog off || true
Executing this line interactively returns a "Command not found" error message:
root@debian:~# /usr/sbin/qcontrol --direct watchdog off
Command not found
root@debian:~#
due to an apparently inappropriate parameter '--direct', which when left out
does not report an error:
root@debian:~# /usr/sbin/qcontrol watchdog off
root@debian:~#
The qcontrol call is used in the initrd to prevent the device from rebooting
periodically. With the failed call these reboots happen every five minutes,
which is especially tooo short, if the file system check is run. In that case
the reboot happens repeatedlĂy during the fs check, which has a very high risk
of
corrupting data.
Since the --direct option is not mentioned in the qcontrol manpage, I conclude
that it is an invalid option and should not be used. Hence I'd suggest this fix
to be applied to the qcontrol init script. I did not yet try this fix, since my
qnap device is geographically distand from my personal location and I'd have
some trouble getting it operational again, if a reboot fails.
Meanwhile I am using the workaround "echo -n g >/dev/ttyS1" to disable the
watchdog.
--- /usr/share/initramfs-tools/scripts/init-bottom/qcontrol.orig
2013-06-10 13:45:38.000000000 +0200
+++ /usr/share/initramfs-tools/scripts/init-bottom/qcontrol 2013-06-10
13:45:58.000000000 +0200
@@ -30,6 +30,6 @@
exit 0
fi
-/sbin/qcontrol --direct watchdog off || true
+/sbin/qcontrol watchdog off || true
exit 0
-- System Information:
Debian Release: 6.0.7
APT prefers oldstable-updates
APT policy: (500, 'oldstable-updates'), (500, 'oldstable')
Architecture: armel (armv5tel)
Kernel: Linux 2.6.32-5-kirkwood
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/dash
Versions of packages qcontrol depends on:
ii libc6 2.11.3-4 Embedded GNU C Library: Shared lib
ii liblua5.1-0 5.1.4-5 Simple, extensible, embeddable pro
ii udev 164-3 /dev/ and hotplug management daemo
qcontrol recommends no packages.
qcontrol suggests no packages.
-- no debconf information
--- End Message ---
--- Begin Message ---
On Mon, 2013-06-10 at 13:49 +0200, Holger Smolinski wrote:
> Package: qcontrol
> Version: 0.4.2-7+wheezy1
[...]
> due to an apparently inappropriate parameter '--direct',
This option was accidentally missed from +wheezy1 but added in the
+wheezy2 version of the package, which is the one which is actually in
Wheezy.
Therefore closing this bug.
Thanks,
Ian.
signature.asc
Description: This is a digitally signed message part
--- End Message ---