openbsd-misc mailing list

FromSubjectsort iconDate
Rami Sik
Re: openBSD 4.2 and LSI raid

Have a look at the following doc from Sun (section D.1.5):

http://docs.sun.com/source/817-5248-20/appd.html

I know what you mean. It sounded strange in the first place, but life is
full of surprises!

Rami Sik

-----Original Message-----
From: NetOne - Doichin Dokov [mailto:root@net1.cc]
Sent: January 29, 2008 1:57 PM
To: Rami Sik
Cc: J.C. Roberts; misc@openbsd.org
Subject: Re: openBSD 4.2 and LSI raid

The RAID controller *should not* care about partitions at all - WTF?!
It's job is ...

Jan 29, 6:13 pm 2008
Rami Sik
Re: openBSD 4.2 and LSI raid

Yes, I first started by setting up the raid and installing openBSD on
top of it. All was fine until one of the disks failed. Then, I replaced
the failed disk, and try to re-initiate the raid (mirroring) where I got
stuck since the raid controller did not like the partitioning.

However, I advanced one step further now: If you use fdisk to assign a
different id to the openBSD partition (like 83 as suggested by Sun for
the Linux installs), raid controller seems to start mirroring your disk
to the seco...

Jan 29, 5:52 pm 2008
NetOne - Doichin Dokov
Re: openBSD 4.2 and LSI raid

The RAID controller *should not* care about partitions at all - WTF?!
It's job is to duplicate the data and present the disks as one logical

Jan 29, 5:57 pm 2008
Stuart Henderson
Re: openBSD 4.2 and LSI raid

I *think* you should probably set the new disk as a hotspare.
But who knows what this crazy firmware is doing.

A timely reminder of the requirement to test what happens when things

http://docs.sun.com/source/817-5248-20/appd.html

Note that there are many different devices known as "LSI raid".
At least: mpi(4) (formerly mpt), ami(4), mfi(4).

Jan 29, 6:34 pm 2008
J.C. Roberts
Re: openBSD 4.2 and LSI raid

It seems the "crazy firmware" is checking the partition type read from
the disk against some kind of whitelist... highly annoying.

It's moments like this when I wonder why I don't use softraid *alot*
more often.

Rami, sorry I misunderstood your first post. The partition type hacking
you mentioned in your follow up seems like your only choice short term
but long term, the best answer is to replace the controller or use
softraid.

kind regards,
JCR

Jan 29, 7:08 pm 2008
Matt
Can I just mount my lost swap on raid0?

Hi all,

Perhaps a bit daft but:
Somehow I have managed to exclude my swap partition from being mounted
on my Raid0 array.
I have no idea why it isn't in fstab but I can only assume I messed
something up along the way while copying.

The swap partition is present as a slice within the virtual raid0 disk.
Can I safely mount this on a live system or is that a bad idea?

Thanks!

---- additional info ----

box# raidctl -p raid0
raid0: Parity status: clean

box# cat /etc/fstab
/dev/raid0a /...

Jan 29, 5:44 pm 2008
Whyzzi
FYI: USB rum0 + wep [not equal] network (Jan 23 snapshot)

I acquired an old dell laptop a couple of weeks ago which I went ahead
and put OpenBSD on it. I had everything installed and running fine,
and turned to a local available hot-spot with no wep and began
downloading various packages from ftp without issue via a usb 2.0 asus
wl-167g on top of a generic usb 2.0 pcmcia card.

Then I take the laptop home where I have an older openbsd 4.2 pc
serving as my firewall and wireless access point with WEP using the
ral driver. I plugged away on the laptop hard tr...

Jan 29, 4:55 pm 2008
catalin visinescu
Security associations and SA_FLAG_REPLACED

Hi,

I have GW1 and GW2 redundant firewalls (isakmpd+pf+carp+sasyncd)

Is there a way to see which security associations are marked as "replaced" on the backup GW?
"ipsecctl -s all -v -v" shows a lot but it does not seem to show that.

On the master (let's say GW1)
echo "S" > /var/run/isakmpd.fifo then
vi isakmpd.report
shows the flags, but I'm interested in the SAs from the backup GW2 which were created by sasyncd.

Basically after the old SAs soft time expired and ...

Jan 29, 2:38 pm 2008
Maurice Janssen
cvs running behind?

Hi,

I saw an email on the cvs list about some security fixes for 4.1-stable
and 4.2-stable. It seems that the patches for 4.1-stable didn't make it
all the way to the cvs-servers. For example,
http://www.openbsd.org/cgi-bin/cvsweb/XF4/xc/lib/font/bitmap/pcfread.c
still has the old version and also through anoncvs I can't find the new
versions.

Am I missing something or is there a hickup somewhere?

Maurice

Jan 29, 3:06 pm 2008
Chris Kuethe
Re: cvs running behind?

CVS fan-out takes a while. Just keep an eye on it, and I'll try get
the regular patch files and errata entries posted tonight.

CK

--
GDB has a 'break' feature; why doesn't it have 'fix' too?

Jan 29, 3:26 pm 2008
Christian Weisgerber
Re: rlpr for OpenBSD?

1. Enable the two-line "rp" example entry in /etc/printcap and replace
"printhost" with the hostname of your printer.
2. Start lpd: "sudo lpd"
3. Add "lpd_flags=" to /etc/rc.conf.local, so lpd will be started on
future reboots.

--
Christian "naddy" Weisgerber naddy@mips.inka.de

Jan 29, 2:59 pm 2008
Comète
ACLs in CUPS with users/groups in a LDAP directory

Hi,

i would like to use the ACLs in CUPS to give access to users and groups
from a LDAP directory. I already did this on a linux machine with
pam-ldap and nss-ldap, but on OpenBSD, pam and nss are not supported. So
i wonder if it was possible to do this another way ?

thanks

Comete

Jan 29, 2:45 pm 2008
n0g0013
Re: 4.2 patchset for PR#5563/#5704

joel,

thanks for the comments. was looking for help when sent the initial
email.

On 30.01-02:45, Joel Sing wrote:

never fixed it; just wanted a patch against 4.2 without having to use
current. that's what the patchset is for. i also changed current to
macros because it seemed wrong/bad.

thanks for the pointer.

thanks again.

that's what i needed and did. wasn't sure whether there was
somewhere to post a patchset against stable so others could use it.
is that generally done ...

Jan 29, 12:29 pm 2008
Helmut Schneider
Re: Recording OpenNTPd PID at daemon startup

[root@www ~]# kill 1%'&$carrier lost

--
No Swen today, my love has gone away
My mailbox stands for lorn, a symbol of the dawn

Jan 29, 12:34 pm 2008
Helmut Schneider
Re: Recording OpenNTPd PID at daemon startup

Yes, but there might be a race condition while checking.

What I would like to do is to check if a shell script is already active. And
I don't want to use a lock file:

if [ $(pgrep -of "/bin/sh $0") -ne $MYPID ]; then
echo "I'm already active:" 1>&2
echo $(pgrep -olf "/bin/sh $0") 1>&2
exit 1
fi

If pgrep (with -o support) finds a process that is *older* than MYPID the
script is already active.

afaik that construction is faster than grepping ps, pipi...

Jan 29, 12:11 pm 2008
Pau Amaro-Seoane
rlpr for OpenBSD?

Hi,

we got a printer in our office. Now I'd like to use it. I hate
configurating printers. I don't like cups. 631 is blocked.

Usually I avoid all these problems with a

cat MyVeryInterestingFile.ps | telnet IPaddressOfPrinterHere 9100

since most of the printers have that door open.

It *works*

Now, admin here is taking security a bit too seriously and it's not
possible to telnet the printer over 9100.

I was thinking of using rlpr, like

rlpr -Plp -HIPaddressOfPrinterHere MyVeryInteres...

Jan 29, 11:44 am 2008
Pau Amaro-Seoane
Re: rlpr for OpenBSD?

I found out the sources at http://truffula.com/rlpr/

Now, the Makefile is buggy.

I had to do this to install rlpr properly on OpenBSD. I post it here
just in case
you're interested.

make bsd-symlinks is wrong and ./bin is also wrong. The binaries go
into ./src/bin

spree(p8)| sudo make bsdlinks
cd src && make bsdlinks
installing bsd symlinks...
mv /usr/bin/lpr /usr/bin/lpr.bsd
ln -s ./bin/rlpr /usr/bin/lpr
mv /usr/bin/lpq /usr/bin/lpq.bsd
ln -s ./bin/rlpq /usr/bin/lpq
mv /usr/bi...

Jan 29, 1:35 pm 2008
Douglas A. Tutty
Re: rlpr for OpenBSD?

What's wrong with base lpd with a remote printer entry in printcap?
Unless I need wierd access controll, I only use LPD + apsfilter. Then
again, I never had a printer hanging on the network, I use an old 486 as
a print server running its own LPD and apsfilter.

If you need to spit printer-specific data to the printer from lpr and
need to convert first, you could chain printcap entries: print to one
queue, it's filter does the conversion and spits it to another queue
that sends it out to the remot...

Jan 29, 1:20 pm 2008
Edd Barrett
Zsh ctrl+a / ctrl+e

Hi there,

I use zsh on my OpenBSD boxes.

About a week ago ctrl+a and ctrl+e stopped working in zsh. These
combos should skip to the begin and end of the line. These functions
seem to work in zsh on our solaris boxes.

I have just been chatting to another user who uses zsh and he has the
same problem.

Has it become broken?

Thanks for any input.

--

Best Regards

Edd

http://students.dec.bournemouth.ac.uk/ebarrett

Jan 29, 10:35 am 2008
Andy Hayward
Re: Zsh ctrl+a / ctrl+e

Have you changed the default environment for users?

zsh uses the value of variables like EDITOR to determine which
key-mappings to default to.

-- ach

Jan 29, 11:03 am 2008
Edd Barrett
Re: Zsh ctrl+a / ctrl+e

Oh dear,

Yup this is the problem. I changed EDITOR to vim a while ago.

Wow, vi mode is cool. Didn't know it existed. Many thanks

Thanks for that

--

Best Regards

Edd

http://students.dec.bournemouth.ac.uk/ebarrett

Jan 29, 11:55 am 2008
Pierre-Emmanuel
Re: Zsh ctrl+a / ctrl+e

Le Tue, 29 Jan 2008 14:35:22 +0000,

Hi Ed,

Wich version of zsh do you use ? and wich version of OpenBSD (-current,
-stable..) ?
I, personaly, use zsh 4.3.4 without any problems (on -current)
Could you post your .zshrc ?
crtl+a and ctrl+e are emacs keybindings so you must have bindkey -e in
your .zshrc

Regards,

Pea

Jan 29, 11:06 am 2008
Helmut Schneider
Re: Recording OpenNTPd PID at daemon startup

No. It might find a child but it will never find the parent.

[root@BSDHelmut ~]# pgrep -fl httpd
81972 /usr/local/sbin/httpd
81960 /usr/local/sbin/httpd
1115 /usr/local/sbin/httpd
1114 /usr/local/sbin/httpd
1111 /usr/local/sbin/httpd
1109 /usr/local/sbin/httpd
1108 /usr/local/sbin/httpd
979 /usr/local/sbin/httpd
[root@BSDHelmut ~]#

To stop httpd, which pid should I kill, the oldest, or the most recent?

OK, 'pgrep -fl httpd | tail -1' does the trick, and pgrep is not safe enough
for find...

Jan 29, 10:19 am 2008
frantisek holop
booting openbsd on eee without cd-rom

hi there,

i was wondering if some of the boot sector/fdisk magicians
out there could lend me a hand in booting openbsd on the eee
without access to a cd-rom drive.

what i need is basically advice how to handcraft a boot sector
on an usb media with a snapshot for the boot process
to pick it up using exclusively xandros on the eee...

thanks in advance.

-f
--
RULE SIX: the winning team shall be the first team that wins.

Jan 29, 9:59 am 2008
Nick Holland
Re: booting openbsd on eee without cd-rom

see recent thread, "Install OpenBSD from USB".
Don't believe all of of what people said. :)

(short version: just do a normal install to the flash disk)

Nick.

Jan 29, 10:45 am 2008
Richard Daemon
Re: booting openbsd on eee without cd-rom

a generic bsd kernel ok, or needs to boot bsd.rd or similar?

In other words, I can see it being able to boot bsd.rd without a problem,
but will it load the root device ok with just /bsd?

Jan 29, 3:15 pm 2008
Stefan Kell
Re: booting openbsd on eee without cd-rom

Hi,

Might be interesting on the eee, what boot device will be selected. AFAIK the internal disk ist master on the secondary IDE-channel. But of course you have "boot -a" at the boot prompt for selecting the root device. And I want to try the same the next days :-)

Regards

Stefan Kell

Jan 29, 5:54 pm 2008
Stuart Henderson Jan 29, 3:50 pm 2008
frantisek holop
Re: booting openbsd on eee without cd-rom

how do i boot bsd.rd to make an install to the flash disk?
chicken egg. i dont have an usb cdrom, nor floppy disk.
only usb media. i need to create a bootable usb media...

-f
--
help you out? certainly! which way did you come in?

Jan 29, 11:05 am 2008
Nick Holland
Re: booting openbsd on eee without cd-rom

see the referenced thread...

Prep the install device on another machine. Other machine just needs
a USB port, doesn't need to be bootable there or USB2 or anything else
fancy, as long as OpenBSD recognizes it.

Either that, or get me an eeepc so I can see what the existing
environment is and what the BIOS can do, then we might be able to give
you specific instructions to build a boot environment on the eeepc,
but it would be cheaper to just prep it on another machine. :)

(some people will sa...

Jan 29, 12:21 pm 2008
Mark Mathias
Re: booting openbsd on eee without cd-rom

drive, a minimal install should fit, unless you have a very small drive

--
Mark Mathias

Jan 29, 11:50 am 2008
Helmut Schneider
Re: Recording OpenNTPd PID at daemon startup

Not at all. I might find a child but I will never find the parent.

[root@BSDHelmut ~]# pgrep -fl httpd
81972 /usr/local/sbin/httpd
81960 /usr/local/sbin/httpd
1115 /usr/local/sbin/httpd
1114 /usr/local/sbin/httpd
1111 /usr/local/sbin/httpd
1109 /usr/local/sbin/httpd
1108 /usr/local/sbin/httpd
979 /usr/local/sbin/httpd
[root@BSDHelmut ~]#

To stop httpd, which pid should I kill, the oldest, or the most recent?

OK, 'pgrep -fl httpd | tail -1' does the trick, and pgrep is not safe enough
f...

Jan 29, 9:54 am 2008
Henning Brauer
Re: Recording OpenNTPd PID at daemon startup

kill 'em all!

--
Henning Brauer, hb@bsws.de, henning@openbsd.org
BS Web Services, http://bsws.de
Full-Service ISP - Secure Hosting, Mail and DNS Services
Dedicated Servers, Rootservers, Application Hosting - Hamburg & Amsterdam

Jan 29, 11:30 am 2008
Darrin Chandler
Re: Recording OpenNTPd PID at daemon startup

If you really want to find the parent you can...

$ ps ax -O pgid | grep ntpd
4887 4887 ?? Is 0:00.01 ntpd: [priv] (ntpd)
7164 4887 ?? I 0:00.06 ntpd: ntp engine (ntpd)

The header that gets stripped by grep:
PID PGID TT STAT TIME COMMAND

So you can see that for one process PID==PGID. Bingo.

--
Darrin Chandler | Phoenix BSD User Group | MetaBUG
dwchandler@stilyagin.com | http://phxbug.org/ | http://metabug.org/
http://www.stilyagin.com/ |...

Jan 29, 10:31 am 2008
INFODIVIO
La sécurité professionnelle en un seul clic !

Si ce message ne s'affiche pas correctement, vous pouvez le visualiser en
suivant ce lien.

[IMAGE]

[IMAGE]

[IMAGE]

[IMAGE]

[IMAGE]

[IMAGE]

[IMAGE]

Si vous disirez ne plus recevoir de mail de notre part, cliquez ici

Jan 29, 9:45 am 2008
Helmut Schneider
Re: Recording OpenNTPd PID at daemon startup

pgrep on OpenBSD does not support '-o' (Select only the oldest). It is -
well - it could be more useful.

--
No Swen today, my love has gone away
My mailbox stands for lorn, a symbol of the dawn

Jan 29, 6:37 am 2008
pierre
Re: Recording OpenNTPd PID at daemon startup

On Tue, 29 Jan 2008 11:37:41 +0100
man pgrep
-n Match only the most recently created process, if any.

Is that what you're looking for ?

Jan 29, 7:18 am 2008
Hannah Schroeter
Re: Recording OpenNTPd PID at daemon startup

Hi!

I guess that's the *opposite* of what Helmut asked for.

Kind regards,

Hannah.

Jan 29, 8:58 am 2008
J.W. Zondag
Re: 4.2 install freezes at "rd0: fixed, 3800 blocks"

Hi,

Had the same problem installing 4.2 on Dell PowerEdge 1950 III, but
that problem was solved when installing with latest snapshot
(23-01-2008), now stuck because Dell Perc 6i is not functioning
properly, which is (hopefully ;) being fixed as we speek.

---
JW

Jan 29, 5:18 am 2008
Juan Miscaro
Re: 4.2 install freezes at "rd0: fixed, 3800 blocks"

[Please do not top post.]

That's funny, I thought disklabel was completely broken for that
snapshot. I got the rd0 message when using Release.

/juan

Jan 29, 11:23 am 2008
Chris
hotplugd(8) mount flash drive

I am trying to use hotplugd(8) to mount my USB flash drive (/dev/sd1i)
automatically in /mn/flash when I plug it it. I enabled hotplugd in
/etc/rc.conf.local and wrote the following script (chmod +x bit set)

#!/bin/sh

DEVCLASS=$1
DEVNAME=$2

case $DEVCLASS in
2)
# disk devices

disklabel=`/sbin/disklabel $DEVNAME 2>&1 | \
sed -n '/^label: /s/^label: //p'`
ca...

Jan 29, 4:24 am 2008
Chris
Re: hotplugd(8) mount flash drive

I figured (from /var/log/messages) that the flash drive is mounted as
"JetFlash" so I changed the script to reflect this and still no luck.
Following the /var/log/message after the flash drive is plugged in and
also the new modified script.

Jan 29 19:40:44 red /bsd: sd1 detached
Jan 29 19:40:44 red /bsd: scsibus2 detached
Jan 29 19:40:44 red /bsd: umass0 detached
Jan 29 19:40:47 red /bsd: umass0 at uhub0 port 2 configuration 1 interface 0
Jan 29 19:40:47 red /bsd:
Jan 29 19:40:47 red /bsd: umas...

Jan 29, 6:01 am 2008
Heinrich Rebehn
Re: hotplugd(8) mount flash drive

#
# Maybe some debugging will help:
#
exec >> /tmp/logfile 2>&1
set -x

-Heinrich

Jan 29, 6:35 am 2008
Johan Fredin
Re: hotplugd(8) mount flash drive

Without ever having played around with hotplugd, I'd try: "JetFlash*)"
instead of "JetFlash)" that you have there now.

Jan 29, 6:26 am 2008
frantisek holop
Re: hotplugd(8) mount flash drive

definitely. sometimes some devices have space(s) in/after their name.
you could also try outputting the name using logger(1) with
apostrophes to see the spaces...

-f
--
because you will burn.

Jan 29, 11:35 am 2008
Chris
sendmail setup mail server error

I'm trying to setup a mail server. But getting an error: "m4:
mydomain.mc at line 11: include(../domain/mydomain.com.m4): No such
file or directory"

This is what I did so far -

cd /usr/share/sendmail/cf

cp openbsd-proto.mc mydomain.mc

vi mydomain.mc

divert(0)dnl
VERSIONID(`@(#)mydomain.mc $Revision: 1.11 $')dnl
OSTYPE(openbsd)dnl
DOMAIN(mydomain.com)dnl
FEATURE(`virtusertable', `dbm /etc/mail/virtusertable')dnl
MAILER(local)dnl
MAILER(smtp)dnl

divert(-1)

I didn't change anything...

Jan 29, 1:28 am 2008
knitti
Re: sendmail setup mail server error

please read about the DOMAIN macro. I don't think I does what you
think it does.

--knitti

Jan 29, 8:05 am 2008
knitti
Re: sendmail setup mail server error

sorry, I meant to write "I don't think it does what you think it does." Too
much blood in my kaffeine. Look also for LOCAL_DOMAIN.

--knitti

Jan 29, 8:14 am 2008
MAMMON INFO
que haces bolas

QUI HACIS BOLAS ?

Csmo va boludo, yo aca en la Bristol "tashenodecabezacuchandocumbia"
Te clavan la sombrilla arriba de la lona pero todo bien, de vacaciones todo me chupa.
Los chicos estan con el barrenador en el agua y sho aca me compri un sambuche de salame
y queso con puerto USB, asm que "nada", tengo internet en la playa.
Me acabo de bajar gratis el disco de MAMMON, pero no en el emule, o sea los pelotudos
subieron el CD gratis en su pagina.
Lo estoy escuchando, una cagada tras otra los te...

Jan 29, 2:15 am 2008
Richard P. Koett
PoPToP Vulnerability Question

Dear Misc:

I've been asked to look into an issue on a i386 system running OpenBSD 3.7. I
realize this is rather out-of-date, so feel free to ignore this question if
it's inappropriate...

The machine is running poptop-1.1.4.b4p1. Someone did an audit and declared
"PoPToP servers prior to version 1.1.4-bs are vulnerable to a buffer
overflow". I notice that even the current version of OpenBSD has a package for
poptop-1.1.4.b4p1, so I find it hard to believe that this version contains a
known buffer...

Jan 29, 12:05 am 2008
previous daytodaynext day
NoneJanuary 29, 2008None