[Bug 876387] Re: fuser forking uncontrollably in cron job

2011-10-28 Thread peterh
This little one liner stopped zombie flooding for me:

--- fuser.c.orig2011-10-28 10:50:49.0 +0200
+++ fuser.c 2011-10-28 10:50:49.0 +0200
@@ -1820,6 +1820,7 @@
(void) alarm(0);
(void) signal(SIGALRM, SIG_DFL);
close(pipes[0]);
+   waitpid(pid, NULL, 0);
break;
}
return ret;

i also reportet upstream:
https://sourceforge.net/tracker/?func=detailatid=115273aid=3429674group_id=15273

cu Peter

** Bug watch added: SourceForge.net Tracker #3429674
   http://sourceforge.net/support/tracker.php?aid=3429674

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in Ubuntu.
https://bugs.launchpad.net/bugs/876387

Title:
  fuser forking uncontrollably in cron job

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/php5/+bug/876387/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 876387] Re: fuser forking uncontrollably in cron job

2011-10-28 Thread peterh
This little one liner stopped zombie flooding for me:

--- fuser.c.orig2011-10-28 10:50:49.0 +0200
+++ fuser.c 2011-10-28 10:50:49.0 +0200
@@ -1820,6 +1820,7 @@
(void) alarm(0);
(void) signal(SIGALRM, SIG_DFL);
close(pipes[0]);
+   waitpid(pid, NULL, 0);
break;
}
return ret;

i also reportet upstream:
https://sourceforge.net/tracker/?func=detailatid=115273aid=3429674group_id=15273

cu Peter

** Bug watch added: SourceForge.net Tracker #3429674
   http://sourceforge.net/support/tracker.php?aid=3429674

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/876387

Title:
  fuser forking uncontrollably in cron job

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/php5/+bug/876387/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 445164] Re: No action when clicking connection name (GSM + Wireless)

2009-10-20 Thread peterh
maybe my patch will help: https://bugs.launchpad.net/ubuntu/+source
/plasma-widget-networkmanagement/+bug/334122/comments/44

-- 
No action when clicking connection name (GSM + Wireless)
https://bugs.launchpad.net/bugs/445164
You received this bug notification because you are a member of Kubuntu
Bugs, which is subscribed to plasma-widget-networkmanagement in ubuntu.

-- 
kubuntu-bugs mailing list
kubuntu-b...@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/kubuntu-bugs


[Bug 334122] Re: Mobile broadband connections fail to connect

2009-10-17 Thread peterh
network-manager-0.8~a~git.20091013t193206.679d548

did not work for me i got:

NetworkManager: WARN  pppd_timed_out(): Looks like pppd didn't
initialize our dbus module

i also saw no logs from pppd.

to see what happens i tried to get an strace output with

while :; do sleep .2; if pgrep pppd; then strace -s1000 -f -p $(pgrep
pppd); fi;done

write(1, Plugin /usr/lib/pppd/2.4.4/nm-pppd-plugin.so loaded., 52) = ? 
ERESTARTSYS (To be restarted)
--- SIGTTOU (Stopped (tty output)) @ 0 (0) ---
--- SIGTTOU (Stopped (tty output)) @ 0 (0) ---

This means that pppd writes to stdout, but networkmanager did not read
anything.

With this patch my huawai E220 is working now

--- 
network-manager-0.8~a~git.20091013t193206.679d548.orig/src/ppp-manager/nm-ppp-manager.c
+++ 
network-manager-0.8~a~git.20091013t193206.679d548/src/ppp-manager/nm-ppp-manager.c
@@ -921,7 +921,7 @@

priv-pid = 0;
if (!g_spawn_async (NULL, (char **) ppp_cmd-array-pdata, NULL,
-   G_SPAWN_DO_NOT_REAP_CHILD,
+   G_SPAWN_DO_NOT_REAP_CHILD || 
G_SPAWN_STDOUT_TO_DEV_NULL || G_SPAWN_STDERR_TO_DEV_NULL,
pppd_child_setup,
NULL, priv-pid, err)) {
goto out;

Well it would be better to read from stdout / stderr and log it,

-- 
Mobile broadband connections fail to connect
https://bugs.launchpad.net/bugs/334122
You received this bug notification because you are a member of Kubuntu
Bugs, which is subscribed to plasma-widget-networkmanagement in ubuntu.

-- 
kubuntu-bugs mailing list
kubuntu-b...@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/kubuntu-bugs


[Bug 269858] Re: ZTE MF628 HSDPA USB modem not recognized by network-manager 0.7

2009-01-28 Thread peterh
see the fix for huawei E510 at https://bugs.launchpad.net/ubuntu/+source
/network-manager/+bug/316100/comments/6

-- 
ZTE MF628 HSDPA USB modem not recognized by network-manager 0.7
https://bugs.launchpad.net/bugs/269858
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 267288] Re: 0.7 Doesn't support usb 3g modem ONDA MT503HS

2009-01-28 Thread peterh
see the fix for huawei E510 at https://bugs.launchpad.net/ubuntu/+source
/network-manager/+bug/316100/comments/6

-- 
0.7 Doesn't support usb 3g modem ONDA MT503HS
https://bugs.launchpad.net/bugs/267288
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 316100] Re: NetworkManager 0.7 does not recognize USB G3 Modem Huawei E510

2009-01-28 Thread peterh
This bug should be against package hal-info.

This two patches fixed the issue for me (but some expert should check
this):

--- /usr/share/hal/fdi/preprobe/10osvendor/20-broken-usb-sticks.fdi_orig
2009-01-28 13:36:42.0 +0100
+++ /usr/share/hal/fdi/preprobe/10osvendor/20-broken-usb-sticks.fdi 
2009-01-27 14:49:23.0 +0100
@@ -39,6 +39,9 @@
match key=@storage.originating_device:usb.product_id int=0x1003
  merge key=info.ignore type=booltrue/merge
/match
+   match key=@storage.originating_device:usb.product_id int=0x1411
+ merge key=info.ignore type=booltrue/merge
+   /match
  /match
/match
   /device

--- /usr/share/hal/fdi/information/10freedesktop/10-modem.fdi_orig  
2009-01-28 13:37:38.0 +0100
+++ /usr/share/hal/fdi/information/10freedesktop/10-modem.fdi   2009-01-27 
14:48:24.0 +0100
@@ -195,6 +195,13 @@
 append key=modem.command_sets type=strlistGSM-07.05/append
   /match
 /match
+!-- E510 --
+match key=@info.parent:usb.product_id int=0x1411
+  match key=@info.parent:usb.interface.number int=0
+append key=modem.command_sets type=strlistGSM-07.07/append
+append key=modem.command_sets type=strlistGSM-07.05/append
+  /match
+/match
 !-- E220,E220bis --
 match key=@info.parent:usb.product_id int_outof=0x1003;0x1004
   match key=@info.parent:usb.interface.number int=0

-- 
NetworkManager 0.7 does not recognize USB G3 Modem Huawei E510
https://bugs.launchpad.net/bugs/316100
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 237306] Re: hisax isdn network broken

2008-12-09 Thread peterh
linux-image-2.6.24-23-server_2.6.24-23.46_i386.deb

works for me

-- 
hisax isdn network broken
https://bugs.launchpad.net/bugs/237306
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 237306] Re: hisax isdn network broken

2008-09-08 Thread peterh
It's working for me

thanx Peter

-- 
hisax isdn network broken
https://bugs.launchpad.net/bugs/237306
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 228690] Re: virt-manager can't stop VM

2008-07-02 Thread peterh
For Linux do apt-get install acpid inside your VM and shutdown will work

cu Peter

-- 
virt-manager can't stop VM
https://bugs.launchpad.net/bugs/228690
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 195308] Re: unable to resolve host

2008-06-24 Thread PeterH
*** This bug is a duplicate of bug 32906 ***
https://bugs.launchpad.net/bugs/32906

I had this problem on a new install of Ubuntu 8.04  The default
workgroup name had to be adjusted which gave me access from the windows
machines on the network but then I could not install GStreamer codecs.
I chanced upon this page and learned a lot.  Thanks.

JP-NYCs fix worked for me 'though I was a bit perplexed by the / before
the hostname.  I left it out and it appears to work fine now.

-- 
unable to resolve host
https://bugs.launchpad.net/bugs/195308
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 242394] [NEW] hisax isdn network broken

2008-06-23 Thread peterh
Public bug reported:

Please include http://lkml.org/lkml/2008/4/29/506 because
isdnutils-base failed to ifconfig ipppX.

also reported at:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/237306

cu Peter

** Affects: linux-meta (Ubuntu)
 Importance: Undecided
 Status: New

-- 
hisax isdn network broken
https://bugs.launchpad.net/bugs/242394
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 237308] Re: libpam-chroot broken

2008-06-09 Thread peterh
It would be nice to have an official package for hardy

Peter

-- 
libpam-chroot broken
https://bugs.launchpad.net/bugs/237308
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 181605] Re: libpam-chroot and sftpserver not functional

2008-06-09 Thread peterh
have a look at
https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/237557

cu Peter

-- 
libpam-chroot and sftpserver not functional
https://bugs.launchpad.net/bugs/181605
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 237557] [NEW] chroot fails if compiled with SELinux support

2008-06-05 Thread peterh
Public bug reported:

i am using openssh with libpam_chroot to have a chrooted login but
following error message denies access for chrooted uses

sshd[14644]: fatal: ssh_selinux_getctxbyname: ssh_selinux_getctxbyname:
security_getenforce() failed


Please include this fix: 
http://marc.info/?l=openssh-unix-devm=12061519541w=2

Index: session.c
===
RCS file: /usr/local/src/security/openssh/cvs/openssh/session.c,v
retrieving revision 1.364
diff -u -p -r1.364 session.c
--- session.c   15 Mar 2008 06:27:58 -  1.364
+++ session.c   22 Mar 2008 01:23:48 -
@@ -1350,6 +1350,10 @@ do_setusercontext(struct passwd *pw)
 #endif /* HAVE_CYGWIN */
{
 
+#ifdef WITH_SELINUX
+   /* Cache selinux status for later use */
+   (void)ssh_selinux_enabled();
+#endif
 #ifdef HAVE_SETPCRED
if (setpcred(pw-pw_name, (char **)NULL) == -1)
fatal(Failed to set process credentials);
Index: openbsd-compat/port-linux.c
===
RCS file: 
/usr/local/src/security/openssh/cvs/openssh/openbsd-compat/port-linux.c,v
retrieving revision 1.4
diff -u -p -r1.4 port-linux.c
--- openbsd-compat/port-linux.c 27 Jun 2007 22:48:03 -  1.4
+++ openbsd-compat/port-linux.c 22 Mar 2008 01:24:06 -
@@ -36,7 +36,7 @@
 #include selinux/get_context_list.h
 
 /* Wrapper around is_selinux_enabled() to log its return value once only */
-static int
+int
 ssh_selinux_enabled(void)
 {
static int enabled = -1;
Index: openbsd-compat/port-linux.h
===
RCS file: 
/usr/local/src/security/openssh/cvs/openssh/openbsd-compat/port-linux.h,v
retrieving revision 1.1
diff -u -p -r1.1 port-linux.h
--- openbsd-compat/port-linux.h 22 Apr 2006 11:26:08 -  1.1
+++ openbsd-compat/port-linux.h 22 Mar 2008 01:28:06 -
@@ -20,6 +20,7 @@
 #define _PORT_LINUX_H
 
 #ifdef WITH_SELINUX
+int ssh_selinux_enabled(void);
 void ssh_selinux_setup_pty(char *, const char *);
 void ssh_selinux_setup_exec_context(char *);
 #endif

** Affects: openssh (Ubuntu)
 Importance: Undecided
 Status: New

-- 
chroot fails if compiled with SELinux support
https://bugs.launchpad.net/bugs/237557
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to openssh in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 237557] [NEW] chroot fails if compiled with SELinux support

2008-06-05 Thread peterh
Public bug reported:

i am using openssh with libpam_chroot to have a chrooted login but
following error message denies access for chrooted uses

sshd[14644]: fatal: ssh_selinux_getctxbyname: ssh_selinux_getctxbyname:
security_getenforce() failed


Please include this fix: 
http://marc.info/?l=openssh-unix-devm=12061519541w=2

Index: session.c
===
RCS file: /usr/local/src/security/openssh/cvs/openssh/session.c,v
retrieving revision 1.364
diff -u -p -r1.364 session.c
--- session.c   15 Mar 2008 06:27:58 -  1.364
+++ session.c   22 Mar 2008 01:23:48 -
@@ -1350,6 +1350,10 @@ do_setusercontext(struct passwd *pw)
 #endif /* HAVE_CYGWIN */
{
 
+#ifdef WITH_SELINUX
+   /* Cache selinux status for later use */
+   (void)ssh_selinux_enabled();
+#endif
 #ifdef HAVE_SETPCRED
if (setpcred(pw-pw_name, (char **)NULL) == -1)
fatal(Failed to set process credentials);
Index: openbsd-compat/port-linux.c
===
RCS file: 
/usr/local/src/security/openssh/cvs/openssh/openbsd-compat/port-linux.c,v
retrieving revision 1.4
diff -u -p -r1.4 port-linux.c
--- openbsd-compat/port-linux.c 27 Jun 2007 22:48:03 -  1.4
+++ openbsd-compat/port-linux.c 22 Mar 2008 01:24:06 -
@@ -36,7 +36,7 @@
 #include selinux/get_context_list.h
 
 /* Wrapper around is_selinux_enabled() to log its return value once only */
-static int
+int
 ssh_selinux_enabled(void)
 {
static int enabled = -1;
Index: openbsd-compat/port-linux.h
===
RCS file: 
/usr/local/src/security/openssh/cvs/openssh/openbsd-compat/port-linux.h,v
retrieving revision 1.1
diff -u -p -r1.1 port-linux.h
--- openbsd-compat/port-linux.h 22 Apr 2006 11:26:08 -  1.1
+++ openbsd-compat/port-linux.h 22 Mar 2008 01:28:06 -
@@ -20,6 +20,7 @@
 #define _PORT_LINUX_H
 
 #ifdef WITH_SELINUX
+int ssh_selinux_enabled(void);
 void ssh_selinux_setup_pty(char *, const char *);
 void ssh_selinux_setup_exec_context(char *);
 #endif

** Affects: openssh (Ubuntu)
 Importance: Undecided
 Status: New

-- 
chroot fails if compiled with SELinux support
https://bugs.launchpad.net/bugs/237557
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 237308] Re: libpam-chroot broken

2008-06-05 Thread peterh
I found the problem:

instead of ld --shared gcc -shared has to be used

--- Makefile.orig   2008-06-05 16:48:05.0 +0200
+++ Makefile2008-06-05 16:46:05.0 +0200
@@ -3,7 +3,7 @@
 CC=gcc
 CFLAGS=-fPIC -O2 -Wall -Werror -pedantic
 CPPFLAGS=-I.
-LDFLAGS=-x --shared -lpam
+LDFLAGS=-shared -lpam
 DESTDIR=/

 OUT=pam_chroot.so
@@ -12,7 +12,7 @@
 all:   $(OUT)

 %.so: %.o
-   ld $(LDFLAGS) -o $@ $
+   gcc $(LDFLAGS) -o $@ $

 clean:
rm -f *.o $(OUT)

-- 
libpam-chroot broken
https://bugs.launchpad.net/bugs/237308
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 237308] [NEW] libpam-chroot broken

2008-06-04 Thread peterh
Public bug reported:

Binary package hint: libpam-chroot

See Workaraound https://answers.launchpad.net/ubuntu/+question/33707

my question is where does this symbol: __stack_chk_fail_local come from?

cu Peter

** Affects: libpam-chroot (Ubuntu)
 Importance: Undecided
 Status: New

-- 
libpam-chroot broken
https://bugs.launchpad.net/bugs/237308
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 237306] [NEW] hisax isdn network broken

2008-06-04 Thread peterh
Public bug reported:

Binary package hint: linux-image-2.6.24-17-server

Please include http://lkml.org/lkml/2008/4/29/506 because
isdnutils-base failed to ifconfig ipppX.

cu Peter

** Affects: linux (Ubuntu)
 Importance: Undecided
 Status: New

-- 
hisax isdn network broken
https://bugs.launchpad.net/bugs/237306
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 180424] Re: evolution sends email only after click on 'send/receive' min. 5 times

2008-01-28 Thread PeterH
Evolution opens dialogue sending / receiving eMails, gets eMails, but stays 
in the dialogue box with open status bar.  After 5 Minutes error message: 
connection timed out
All settings are correct (Other clients get and send eMails with these 
settings.).
I am using evolution 2.12.1 on a x86 platform, Intel Pentium 4 1.5GHz, 1 GB 
RAM, Kernel Linux 2.6.22.14-generic

-- 
evolution sends email only after click on 'send/receive' min. 5 times 
https://bugs.launchpad.net/bugs/180424
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


Re: [Bug 120375] Re: cannot boot raid1 with only one disk

2007-11-15 Thread peterh
 Hey Peter, when I try to apply your patch I get questioned where the
 /scripts/local file is located. I coulnd't find it. Could you please
 specify it better? thanks ,

this patch is not from me - ist is from the other Peter in this
bugreport

cu Peter

-- 
cannot boot raid1 with only one disk
https://bugs.launchpad.net/bugs/120375
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 120375] cannot boot raid1 with only one disk

2007-06-14 Thread peterh
Public bug reported:

Binary package hint: mdadm

if i unplug one hd from raid1 i cannot successfully boot because raid
starts only if all disks are available through

: ${MD_DEGRADED_ARGS:= --no-degraded} in /usr/share/initramfs-
tools/scripts/local-top/mdadm

my workaround is:

/etc/initramfs-tools/hooks/startdegradedraid

#!/bin/sh
#
# Copyright C2A9 2006 Martin F. Krafft [EMAIL PROTECTED]
# based on the scripts in the initramfs-tools package.
# released under the terms of the Artistic Licence.
#
# $Id: hook 281 2006-12-08 08:14:44Z madduck $
#

set -eu

PREREQ=udev

prereqs()
{
echo $PREREQ
}

case ${1:-} in
  prereqs)
prereqs
exit 0
;;
esac

MDADM=$(command -v mdadm 2/dev/null) || :
[ -x $MDADM ] || exit 0

DESTCONFIG=$DESTDIR/conf/md.conf

echo MD_DEGRADED_ARGS=' '  $DESTCONFIG

exit 0

** Affects: mdadm (Ubuntu)
 Importance: Undecided
 Status: Unconfirmed

-- 
cannot boot raid1 with only one disk
https://bugs.launchpad.net/bugs/120375
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 120378] raid1 with sata is slow (speed of a single disc)

2007-06-14 Thread peterh
Public bug reported:

Binary package hint: mdadm

I use feisty

Reading from my raid1 is as fast as a single sata disc:

hdparm -t /dev/sda1

/dev/sda1:
 Timing buffered disk reads:  172 MB in  3.00 seconds =  57.27 MB/sec

hdparm -t /dev/sdb1

/dev/sdb1:
 Timing buffered disk reads:  172 MB in  3.01 seconds =  57.20 MB/sec

hdparm -t /dev/md0

/dev/md0:
 Timing buffered disk reads:  172 MB in  3.00 seconds =  57.29 MB/sec

i tried

* different motherboard with a different sata onboard controller but
also the same results

* different ubuntu kernels: 2.6.17, 2.60.20 and from gutsy 2.6.22rc

* different images:
  linux-image-2.6.20-16-generic  2.6.20-16.29
  linux-image-2.6.20-16-lowlatency   2.6.20-16.29
  linux-image-2.6.20-16-server  2.6.20-16.29

can anybody explain me why?

** Affects: mdadm (Ubuntu)
 Importance: Undecided
 Status: Unconfirmed

-- 
raid1 with sata is slow (speed of a single disc)
https://bugs.launchpad.net/bugs/120378
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 120375] Re: cannot boot raid1 with only one disk

2007-06-14 Thread peterh
Sorry folks, being tooo fast.

This is not working if all discs are present, now i understand the
include of  MD_DEGRADED_ARGS

my new workaround is to add a bootmenue entry in grub

title   Ubuntu, kernel 2.6.20-16-generic (raid defect)
root(hd0,1)
kernel  /boot/vmlinuz-2.6.20-16-generic root=/dev/md1 ro raid_degraded
initrd  /boot/initrd.img-2.6.20-16-generic

and /etc/initramfs-tools/scripts/init-premount/raid_degraded

#!/bin/sh

set -eu

PREREQ=udev

prereqs()
{
echo $PREREQ
}

case ${1:-} in
  prereqs)
prereqs
exit 0
;;
  *)
. /scripts/functions
;;
esac

if [ -e /scripts/local-top/md ]; then
  log_warning_msg old md initialisation script found, getting out of its 
way...
  exit 1
fi

MDADM=$(command -v mdadm)
[ -x $MDADM ] || exit 0

if grep raid_degraded /proc/cmdline 2/dev/null; then
  echo MD_DEGRADED_ARGS=' '  /conf/md.conf
fi

exit 0

now if a disc is defect and i will to start only with one disc i choose
raid defect from bootmenu

-- 
cannot boot raid1 with only one disk
https://bugs.launchpad.net/bugs/120375
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs