GEOM gbde broken?

2003-10-20 Thread Thorsten Schroeder
Hi,

i updated my -current box yesterday from cvs to FreeBSD 5.1-CURRENT #6: Sun
Oct 19 17:40:10 CEST 2003.

Now i'm not able to attach gbde encrypted filesystems - regardless if it's a
disk image created with mdconfig, or a partition on harddisk.

gdbe attach works without any error message, but when i try fsck the partition
/ disk it fails. I'm also not able to mount this thing.

I moved the image files to another -current box (Sep 25 14:51:13 CEST 2003)
and i was able to attach, fsck and mount the gdbe-disks.

After gdbe attach it's possible to grep for cleartext data in /dev/$disk.bde
but you're not able to fsck it:

# /sbin/fsck -t ffs -p /dev/md0c.bde
Cannot find file system superblock
/dev/md0c.bde: CAN'T CHECK FILE SYSTEM.
/dev/md0c.bde: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.
/dev/md0c.bde: CANNOT SEEK BLK: -1
/dev/md0c.bde: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.

# /sbin/fsck -t ffs /dev/md0c.bde
** /dev/md0c.bde
Cannot find file system superblock
ioctl (GCINFO): Inappropriate ioctl for device
fsck_ffs: /dev/md0c.bde: can't read disk label

And its also not possible to create a new gbde-device. After gdbe init and
gbde attach of a newly created memory disk (-t vnode) i tried to newfs it and:

# newfs -U -O2 /dev/md0c.bde
/dev/md0c.bde: 4.8MB (9728 sectors) block size 16384, fragment size 2048
using 4 cylinder groups of 1.20MB, 77 blks, 192 inodes.
with soft updates
super-block backups (for fsck -b #) at:
160, 2624, 5088, 7552
cg 0: bad magic number

What's wrong?

Greetings,

  Thorsten

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: qmail uses 100% cpu after FreeBSD-5.0 to 5.1 upgrade

2003-06-16 Thread Thorsten Schroeder
Hi,

On Mon, 15 Jun 2003, Chris Shenton wrote:

 [...] qmail is run under daemontools and all work fine (the configuration
 is 2 years old!), but when I delivery the first mail (localy or remote)
 the qmail-send process fire up to 100% of CPU infinitely

 All other mail are right delivery, and the CPU use is the only problem, I
 see in qmail-send.c that select() function, after the first message,
 allways return 1

same here too.
I don't know what it could be - perhaps a problem with named pipes
(lock/trigger)?

You can find my ktrace output here: http://cs.so36.net/~ths/kdump.txt

Would be nice if anyone have an idea :)

 A truss shows me it's running in a tight loop over this code:
 close(9) = 0 (0x0)
 select(0x9,0xbfbffcbc,0xbfbffc3c,0x0,0xbfbffc24) = 1 (0x1)

 Anyone else seen this or know what in FreeBSD-5.1 might have changed to cause
 this?  Any thoughts on how I might go about diagnosing this any better?

greetings,

  thorsten

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: qmail uses 100% cpu after FreeBSD-5.0 to 5.1 upgrade

2003-06-16 Thread Thorsten Schroeder
Hi,

On Sun, 15 Jun 2003, Don Lewis wrote:

  I don't know what it could be - perhaps a problem with named pipes
  (lock/trigger)?
 
  You can find my ktrace output here: http://cs.so36.net/~ths/kdump.txt

 Which version of fifo_vnops.c?  If the problem is present in
 5.1-RELEASE, then the problem is likely to be the change made in 1.79
 and 1.85.  If the problem didn't show up until after the 5.1-RELEASE,
 then the problem could be the changes in 1.87 or 1.88.

FreeBSD 5.1-CURRENT #1: Thu Jun  5 19:29:29 CEST 2003

fifo_vnops.c:

$FreeBSD: src/sys/fs/fifofs/fifo_vnops.c,v 1.87 2003/06/01 06:24:32 truckman Exp $

bye,

  thorsten



___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: qmail uses 100% cpu after FreeBSD-5.0 to 5.1 upgrade

2003-06-16 Thread Thorsten Schroeder
Hi,

On Mon, 16 Jun 2003, Don Lewis wrote:

  FreeBSD 5.1-CURRENT #1: Thu Jun  5 19:29:29 CEST 2003
 
  fifo_vnops.c:
 
  $FreeBSD: src/sys/fs/fifofs/fifo_vnops.c,v 1.87 2003/06/01 06:24:32 truckman Exp $

 Try upgrading to 1.88 and applying this patch:

 Index: sys/fs/fifofs/fifo_vnops.c
 ===
 RCS file: /home/ncvs/src/sys/fs/fifofs/fifo_vnops.c,v
 retrieving revision 1.88
 diff -u -r1.88 fifo_vnops.c
 --- sys/fs/fifofs/fifo_vnops.c13 Jun 2003 06:58:11 -  1.88
 +++ sys/fs/fifofs/fifo_vnops.c16 Jun 2003 08:44:20 -
[...]

Yes! This seems to work fine :)

qmail-send doesn't increase cpu usage after the first mail anymore.

Thanks a lot,

  Thorsten


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]