Re: i have lost /etc

2008-03-28 Thread visc
Just a noob here (so take with a big grain of don't blame me), but if an
rm -rf /etc actually is what happened imho you'd need to REALLY want your
config files to spend the time attempting recovery.

/home should still persist just fine regardless of your partitioning
scheme unless you did something silly on day 1 like change the default
home to /etc/home.

You should wait for better minds than mine to confirm, but you could
probably either:

- Boot from an install media (CD, etc - I don't know if hd0a:/bsd.rd
would work in this case or not? List?) and (U)pgrade following
recommended procedures. You'd still need to start from a fresh /etc
though.

- If you have the capability, you could toss the drive into another
device and mount your home partition to grab yer stuff.

Scott

 Hi list,

 Please someone help me I have deleted my /etc dir (rm
 -rf /etc), is there any way to recover it, or there is
 a way to recover my data stored in /home ???

 Rergards




 !Capacidad ilimitada de almacenamiento en tu correo!
 No te preocupes mas por el espacio de tu cuenta con Correo Yahoo!:
 http://correo.yahoo.com.mx/



Re: File System Corrupted Due to didn't Umount cause by power failure

2008-03-28 Thread Peter_APIIT
I try it first, then i come back here with a specific question and error
message. 


-- 
View this message in context: 
http://www.nabble.com/File-System-Corrupted-Due-to-didn%27t-Umount-cause-by-power-failure-tp16323986p16346589.html
Sent from the openbsd user - misc mailing list archive at Nabble.com.



Re: rackmount servers: seeking green compromise

2008-03-28 Thread Timothy Wilson
Hello Jacob,

I might be missing something, but is anything stopping you from
consolidating your servers onto a single HP / Dell that you already
have? Or are these all at different customer sites? Depending on your
power and processor usage, you might actually find that a single HP /
Dell uses the same or less power than several 'low power' 1RU servers,
with the advantage that you don't have to buy any more gear.

I read your post to take it that all these boxes are at a single site,
rather than multiple, off site locations.

Otherwise, Intel has just released a new low power Xeon, which is
rated for just 45w if I recall correctly (dual core). Your OEM of
choice will no doubt have some systems configured with these new
processors.

Kind regards,
Timothy.

On 28/03/2008, Jacob Yocom-Piatt [EMAIL PROTECTED] wrote:
 have a number of rackmount machines of various sorts in service at the
  moment and, based on the relatively low load on them, am interested in
  finding equipment that is more optimal from the environmental /
  consumption point of view.

  machines that are currently in use are a smattering of dell, hp, sun and
  via c3 / c7 rigs. it is hard not to notice the substantial noise, power
  draw and heat that comes from the dell and hp rackmount systems and i
  would like to see if better rackmount server choices exist that satisfy
  the following criteria:

  - fast disks with hardware raid, i.e. u320 or sas, that are
  hotswappable; am willing to accept SATAII if other criteria work
  - non-i386 architecture; expect amd64 is the next best for cost
  - decent processor speed and single core; these will be mailservers,
  webservers, asterisk servers, etc, that aren't sufficiently loaded to
  make processor speed a serious performance bottleneck
  - low power draw / heat signature
  - low noise
  - 1U or 2U size

  the via c3 / c7 systems definitely do the trick for simple stuff like
  firewalls that don't require quick or redundant disks. my experience
  also indicates that you can certainly fully load the processor of a via
  c3 system and lag it pretty badly.

  i look forward to suggestions :)

  cheers,
  jake



Re: File System Corrupted Due to didn't Umount cause by power failure

2008-03-28 Thread Peter_APIIT
Peter_APIIT wrote:
 
 
 I try it first. 
 
 


I have solved the problem by issue this command fsck -y. 

Thanks for your help. 
-- 
View this message in context: 
http://www.nabble.com/File-System-Corrupted-Due-to-didn%27t-Umount-cause-by-power-failure-tp16323986p16348397.html
Sent from the openbsd user - misc mailing list archive at Nabble.com.



Re: OpenBSD Strage Problem

2008-03-28 Thread Peter_APIIT
Peter_APIIT wrote:
 
 Hello all expert network administrator, i truly new to openbsd.
 
 I have some dhcp problem. 
 
 http://forums.bsdnexus.com/viewtopic.php?id=1858
 

I try it with windows box, it say limited connectivity but Fedora 7 can get
ip address. 

Moreover, my wireless cannot up and function as an access point. 

I have no idea why. 

I try it with danno method which put ; after close brace. 
-- 
View this message in context: 
http://www.nabble.com/OpenBSD-Strage-Problem-tp16062121p16348577.html
Sent from the openbsd user - misc mailing list archive at Nabble.com.



Re: Intel Core2 Dual/Quad - i386 or amd64?

2008-03-28 Thread Johan Mson Lindman
On Wednesday 26 March 2008 12:08:35 Alexander Hall wrote:
 [EMAIL PROTECTED] wrote:
  It appears that the wireless driver your Thinkpad requires
 
  wpi0 at pci2 dev 0 function 0 Intel PRO/Wireless 3945ABG
 
  is not supported in OpenBSD/amd64.  See
 
   http://www.openbsd.org/amd64.html
 
  That is not true.  Both wpi(4) and iwn(4) are in amd64 GENERIC.
  The web page needs an update though.

 Ok, I thought it seemed a little strange, but who was I to question the
 docs? :)

 Thanks for the update.


I have corrected this, http://www.openbsd.org/{i386,amd64}.html should now 
correctly reflect what each arch can do wrt Intel wirless.


Regards
Johan M:son



Re: Issue compiling a program on OpenBSD

2008-03-28 Thread Ross Cameron
I asked a perfectly valid question about whether or not that error I'm
getting is due to that function call being GNU only and therefor being
missing from the OpenBSD libc, now can someone answer that?

I do NOT want to to tarnish all OpenBSD users with this brush I used
below with my response to Girish, I've included it for interests sake
in case anyone wants to read it. I do NOT want to start a flame war I
just want a question answered and to be really honest I would still
like to use OpenBGP.

=  Pointless flame to an idiot, please ignore unless you
want a laugh  =

On Fri, Mar 28, 2008 at 12:20 AM, Girish Venkatachalam
[EMAIL PROTECTED] wrote:
  Please don't insult OpenBSD by comparing with linux. ;)
It's a UNIX-like system is it not? Therefor comparisons are valid,
much like Linux vs. Solaris comparisons are valid.

  Have you ever seen the source code of OpenBSD kernel?
Yes, I have worked extensively with various BSD Net/2 derived kernels.
As I mentioned earlier the embedded UNIX industry has been my employer
for 10years already.

  Have you considered how the kernel build system is organized?
Yes I have and I have a good reason for finding the system
inappropriate for my intended deployment platform.

  Have you seen the linux kernel source?
Yes and I've had issues with it and spent a lot of time rewriting
memory management routines to better suit my uses.
BUT I've received neigh endless support and advice from Linux and his team.

  And oh by the way OpenBSD is not a kernel, it is an operating system and
  many people still dunno the difference between the two.
I'm quite well aware of that,... however its mainly only the kernel
I'm interested in,... I'm quite willing to build and support my own
user land.

  Another thing you could do is take a look at crunchgen(1).
  # cd /usr/src/distrib/crunch
  # make
  # make install
I have used crunchgen before with my tiny NetBSD systems.
However there is only so much that crunchgen can do if the source
system is bloated up with binaries that I will never be using.

  It is only because linux kernel is so modular (laugh) that people want to
  build their own kernel. And to tell you honestly I still dunno how to
  compile and install a linux kernel. And it varies between distros to
  make things worse.
Just blindly using the GENERIC kernel on you're OpenBSD install CD
(you did buy one right) is daft.
My home firewall has a very cut down kernel on it that only includes
what I want in it. Why bloat it with drivers/etc I don't need?
Yes my home firewall is an OpenBSD-current box,... I think thats going
to go back to being NetBSD-current at this rate :(

  And it is easier to compile an OpenBSD kernel than to compile a linux
  userland app.
./configure
make
make install
Unfamiliar to you then? Same process as crunchgen if I recall.

  Please don't retrofit OpenBSD to fit into the linux mould. It is
  unfortunate that such garbage like linux is so popular.
M funny haven't seen any *BSD phones yet, or Oracle/Sybase IQ
for BSD yet.
It's popular because of two things,... people are willing to work
together (unlike the OpenBSD people it seems) and its malleable to an
incredible extent.

  I guess people do not read the kernel source.
Oh I do and its precisely because I liked it that I'm considering
using OpenBSD for this project.

  But the world always had more fools than smart people...
Arrogance like this is PRECISELY why I'm going to go back to the
NetBSD/Linux camps.
I was hoping that the stories about OpenBSD users (such as yourself)
being arrogant pompous pricks were wrong!
Quess what,... they are NOT.

Oh and for the record I'm neither a Linux nor OpenBSD fanboy. Actually
some of my clients have me working on and maintaining systems based on
OpenSolaris,... so my preference as to which groups I work with is
based on the people involved in the project and the ethics of the
group.

I am really a fan of the public image of OpenBSD's adherence to BSD
license values, proactive security practices etc.
But you know what,... thats all PR! Cause after my first email to
an OpenBSD list I want to erase the thought of ever working with the
system again.



RAID 1 in production environment

2008-03-28 Thread Jordi Espasa Clofent

Hi all,

I need a RAID-1 (mirroring) for production environment.

?Should I use RAIDFrame or softraid?

The reliability is the main request feature.

--
Thanks,
Jordi Espasa Clofent



1 cartouche achetée = 1 cadeau offert

2008-03-28 Thread Toner Services
 Si ce message ne s'affiche pas correctement, vous pouvez le visualiser
en suivant ce lien. [IMAGE]

En vertu de la loi n78-17 du 6 janvier 1978, vous disposez d'un droit
d'acchs et de rectification des donnes vous concernant ainsi qu'un droit
d'opposition que vous pouvez faire valoir tout moment. Pour cela si vous
ne souhaitez plus recevoir de mails de notre part veuillez : Cliquez ici



softraid corrupted metadata

2008-03-28 Thread oakenshield
Hi,

I'm currently using softraid(4) on my 4.2-stable(*) I386 machine and
yesterday I ran into a problem: after a system freeze (most probably
caused by a malfunctioning onboard SATA controller) softraid found
corrupted metadata on one of my two disks in the RAID1 array I assembled
(sorry, I don't have the correct error message handy) thus the kernel
didn't create the softraid0 device.

Don't get me wrong I'm not complaining about that (as the manpage
already told me that this will be the outcome of a failed chunk) but I'm
wondering if there's a manual procedure I follow to reassemble the raid
manually without data loss.

TIA,
Frank.

*) actually almost stable as I had to build my own softraid enabled
kernel based on GENERIC

-- 
What can you use used tampons for?  Tea bags for vampires.
openBSD - Can't fight the Systemagic. \ber tragic.
Frank Brodbeck [EMAIL PROTECTED]
Politicians do it to everyone.



Re: wrong files on ftp://ftp.openbsd.org/pub/OpenBSD/4.2/ ?

2008-03-28 Thread Juan Miscaro
--- Jacob Meuser [EMAIL PROTECTED] wrote:

 On Sat, Mar 22, 2008 at 03:55:20PM -0400, Juan Miscaro wrote:
 
  Seems like something a lot of people get bitten by.  How does one
 stay
  informed on this snapshot libc/packages synchronization issue?
 
 subscribe to [EMAIL PROTECTED] to see when libc bumps
 happen, then check the dates of the snapshots and packages.

The subject titles of the messages to that list are non-informative. 
Do you mean that I should read every one that says: CVS:
cvs.openbsd.org: src ?

/juan



  __
Looking for the perfect gift? Give the gift of Flickr! 

http://www.flickr.com/gift/



Re: wrong files on ftp://ftp.openbsd.org/pub/OpenBSD/4.2/ ?

2008-03-28 Thread Deanna Phillips
Juan Miscaro writes:

 --- Jacob Meuser [EMAIL PROTECTED] wrote:

 On Sat, Mar 22, 2008 at 03:55:20PM -0400, Juan Miscaro wrote:
 
  Seems like something a lot of people get bitten by.  How does one
 stay
  informed on this snapshot libc/packages synchronization issue?
 
 subscribe to [EMAIL PROTECTED] to see when libc bumps
 happen, then check the dates of the snapshots and packages.

 The subject titles of the messages to that list are non-informative. 
 Do you mean that I should read every one that says: CVS:
 cvs.openbsd.org: src ?

It's been a long time since I did this, so my memory is fuzzy,
but I believe that the ctm-log list might be more practical for
this purpose.  It is a single daily message with an organized
list of source changes.  (IIRC.. someone correct me.)

http://www.openbsd.org/ctm.html



Re: Wrong console speed in amd64 kernel, SOLVED

2008-03-28 Thread Markus Hennecke

Hello misc,

as I found out the kernel does not use the variable comdefaultrate, 
which is set via the BOOTARG_CONSDEV struct passed to the kernel, but 
the comconsrate variable while initializing the serial console. This is 
initialized to B9600 via sys/ttydefaults.h, that explains the output I 
am seeing. So IMHO assigning comdefaultrate the speed passed from 
boot(8) is wrong and instead the rate should be assigned to comconsrate. 
The patch below should make it more clear what I mean, it fixes my 
problems with the serial console on amd64:


Index: machdep.c
===
RCS file: /var/cvs/src/sys/arch/amd64/amd64/machdep.c,v
retrieving revision 1.68
diff -u -p -r1.68 machdep.c
--- machdep.c   17 Mar 2008 23:17:24 -  1.68
+++ machdep.c   28 Mar 2008 14:55:07 -
@@ -1816,8 +1816,8 @@ getbootinfo(char *bootinfo, int bootinfo
(bios_consdev_t*)q-ba_arg;
 #include com.h
 #if NCOM  0
-   extern int comdefaultrate; /* ic/com.c */
-   comdefaultrate = cdp-conspeed;
+   extern int comconsrate; /* ic/com.c */
+   comconsrate = cdp-conspeed;
 #endif
 #ifdef BOOTINFO_DEBUG
printf( console 0x%x:%d,

Kind regards,
  Markus



Multipath I/O for Emulex FC HBA card

2008-03-28 Thread Dongsheng Song
Hi all,
I known OpenBSD support Emulex FC HBA card, but can i use multipath I/O ?

 sli - Emulex LightPulse Fibre Channel SCSI interface
 isp - QLogic based SCSI or Fibre Channel SCSI interface

Thanks

---
Dongsheng

# lspci | grep Fibre
07:00.0 Fibre Channel: Emulex Corporation Zephyr LightPulse Fibre
Channel Host Adapter (rev 02)
10:00.0 Fibre Channel: Emulex Corporation Zephyr LightPulse Fibre
Channel Host Adapter (rev 02)

# multipath -ll -v 1
1HITACHI_730155670007
1HITACHI_730155670006
1HITACHI_730155670005
1HITACHI_730155670004
1HITACHI_730155670003
1HITACHI_730155670002
1HITACHI_730155670001
1HITACHI_73015567

# multipath -ll -v 2
1HITACHI_730155670007dm-15 HITACHI,DF600F
[size=207G][features=0][hwhandler=0]
\_ round-robin 0 [prio=1][active]
 \_ 1:0:0:7 sdi 8:128 [active][ready]
\_ round-robin 0 [prio=0][enabled]
 \_ 2:0:0:7 sdq 65:0  [active][ready]
1HITACHI_730155670006dm-14 HITACHI,DF600F
[size=200G][features=0][hwhandler=0]
\_ round-robin 0 [prio=1][active]
 \_ 2:0:0:6 sdp 8:240 [active][ready]
\_ round-robin 0 [prio=0][enabled]
 \_ 1:0:0:6 sdh 8:112 [active][ready]
1HITACHI_730155670005dm-13 HITACHI,DF600F
[size=200G][features=0][hwhandler=0]
\_ round-robin 0 [prio=1][active]
 \_ 1:0:0:5 sdg 8:96  [active][ready]
\_ round-robin 0 [prio=0][enabled]
 \_ 2:0:0:5 sdo 8:224 [active][ready]
1HITACHI_730155670004dm-12 HITACHI,DF600F
[size=200G][features=0][hwhandler=0]
\_ round-robin 0 [prio=1][active]
 \_ 2:0:0:4 sdn 8:208 [active][ready]
\_ round-robin 0 [prio=0][enabled]
 \_ 1:0:0:4 sdf 8:80  [active][ready]
1HITACHI_730155670003dm-11 HITACHI,DF600F
[size=200G][features=0][hwhandler=0]
\_ round-robin 0 [prio=1][active]
 \_ 1:0:0:3 sde 8:64  [active][ready]
\_ round-robin 0 [prio=0][enabled]
 \_ 2:0:0:3 sdm 8:192 [active][ready]
1HITACHI_730155670002dm-10 HITACHI,DF600F
[size=200G][features=0][hwhandler=0]
\_ round-robin 0 [prio=1][active]
 \_ 2:0:0:2 sdl 8:176 [active][ready]
\_ round-robin 0 [prio=0][enabled]
 \_ 1:0:0:2 sdd 8:48  [active][ready]
1HITACHI_730155670001dm-9 HITACHI,DF600F
[size=200G][features=0][hwhandler=0]
\_ round-robin 0 [prio=1][active]
 \_ 1:0:0:1 sdc 8:32  [active][ready]
\_ round-robin 0 [prio=0][enabled]
 \_ 2:0:0:1 sdk 8:160 [active][ready]
1HITACHI_73015567dm-8 HITACHI,DF600F
[size=200G][features=0][hwhandler=0]
\_ round-robin 0 [prio=1][active]
 \_ 2:0:0:0 sdj 8:144 [active][ready]
\_ round-robin 0 [prio=0][enabled]
 \_ 1:0:0:0 sdb 8:16  [active][ready]



Re: Vlan tagging and Carp

2008-03-28 Thread G 0kita
Ok, managed to get back on the box for a little more troubleshooting!
Interesting part is that there's no traffic on the carp pseudo interface
although the machine certainly knows about it as it responds to the arp.  I
tried setting an ip address on the vlan30 interface but there was no change
in the dump traffic behaviour.
How come traffic leaving a vlan device isn't being encapsulated?  Is the
unencapsulated packet showing up on the trunk1 device through some other
path?  Any comments?

Here's some dump traffic:
Nothing from : carp3 carp2 carp1 vlan20 vlan10
vlan30
05:32:37.664607 arp who-has 1.1.1.189 tell 1.1.1.188
05:32:37.664621 arp reply 1.1.1.189 is-at 00:00:5e:00:01:04
trunk1
05:32:37.664603 802.1Q vid 30 pri 0 arp who-has 1.1.1.189 tell 1.1.1.188
05:32:37.664626 arp reply 1.1.1.189 is-at 00:00:5e:00:01:04
nfe1
05:32:37.664599 802.1Q vid 30 pri 0 arp who-has 1.1.1.189 tell 1.1.1.188
05:32:37.664631 arp reply 1.1.1.189 is-at 00:00:5e:00:01:04

The pertinent routing:
DestinationGatewayFlagsRefs  UseMtu
Interface
1.1.1.184/29  1.1.1.189 U   1  539  -   carp3
1.1.1.189 1.1.1.189 UH  02  -   carp3

And some configuration files (again):
/etc/hostname.carp1:inet 2.2.2.246 255.255.255.248 2.2.2.247 vhid 2 carpdev
vlan10 pass password advbase 1 advskew 0 down
/etc/hostname.carp2:inet 2.2.2.254 255.255.255.248 2.2.2.255 vhid 3 carpdev
vlan20 pass password advbase 1 advskew 0
/etc/hostname.carp3:inet 1.1.1.189 255.255.255.248 1.1.1.191 vhid 4 carpdev
vlan30 pass password advbase 1 advskew 0
/etc/hostname.nfe0:up
/etc/hostname.nfe1:up
/etc/hostname.trunk1:trunkproto failover trunkport nfe0 trunkport nfe1 up
/etc/hostname.vlan10:vlan 10 vlandev trunk1 up
/etc/hostname.vlan20:vlan 20 vlandev trunk1 up
/etc/hostname.vlan30:vlan 30 vlandev trunk1 up

I'm running a Generic kernel on an amd64 save for RAID being enabled.



Re: Issue compiling a program on OpenBSD

2008-03-28 Thread Tobias Ulmer
On Thu, Mar 27, 2008 at 03:16:54PM +0200, Ross Cameron wrote:
 Hi there all,...
 
 I used to maintain a small semi-embedded GNU/Linux system at my
 previous employer and I really enjoyed that.
 But now I'd like to try my had at building a dedicated OSPF/BGP
 route/firewall appliance based on OpenBSD.
 
 I have a particular liking for the pkgutils package manager written by
 Per Linden and would like to build my own OpenBSD using this package
 manager (yeah I'm bored).
 'Cept I'm having an issue compiling it,...
 
 I've installed OpenBSD 4.2-release with no updates as yet (I'm behind
 an ISA proxy :( and they block just about the whole planet lol)
 
 On top of that I've installed:
   gmake-3.80p1.tgz
   libiconv-1.9.2p3.tgz
   gettext-0.14.6p0.tgz
 And installed libarchive-2.4.14 from source (couldn't find a binary package)
 
 When I try compile the package (pkgutils-5.32.0) I get the following output:
 
 # gmake
 g++ -DNDEBUG -O2 -Wall -pedantic -D_GNU_SOURCE -DVERSION=\5.32.0\
 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -MM main.cc pkgutil.cc
 pkgadd.cc pkgrm.cc pkginfo.cc  .depend
 g++ -DNDEBUG -O2 -Wall -pedantic -D_GNU_SOURCE -DVERSION=\5.32.0\
 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64   -c -o main.o main.cc
 g++ -DNDEBUG -O2 -Wall -pedantic -D_GNU_SOURCE -DVERSION=\5.32.0\
 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64   -c -o pkgutil.o
 pkgutil.cc
 pkgutil.cc: In member function `void pkgutil::db_open(const std::string)':
 pkgutil.cc:75: error: no matching function for call to `
__gnu_cxx::stdio_filebufchar, std::char_traitschar 
 ::stdio_filebuf(int,
const std::_Ios_Openmode, int)'
 [...]

You basically omitted all useful details, especially where to get those
pkgutils and what the code around line 75 looks like. Also don't post
private mails to this list please.

The code looks like this (useless bits deleted):
int fd = open(filename.c_str(), O_RDONLY);
stdio_filebufchar filebuf(fd, ios::in, getpagesize());

stdio_filebuf is GNU extension (god kills a kitten for every GNU
extension, please don't write extensions, think of the kittens!)
to libstdc++ which is part of GCC.

The constructor declaration from gcc 3.3.5 look like this:

stdio_filebuf(int __fd, std::ios_base::openmode __mode, bool __del,
size_t __size);

Looking at the same thing in a very recent gcc version (4.3), it looks
like this:

stdio_filebuf(int __fd, std::ios_base::openmode __mode,
size_t __size = static_castsize_t(BUFSIZ));

__del means close the file and is now always true.

stdio_filebufchar filebuf(fd, ios::in, true, getpagesize());

should do the trick (untested)

Of course all of this has nothing to do with OpenBSDs libc, but with
people who change APIs without thinking...



Re: RAID 1 in production environment

2008-03-28 Thread Martin Toft
On Fri, Mar 28, 2008 at 11:49:01AM +0100, Jordi Espasa Clofent wrote:
 Hi all,
 
 I need a RAID-1 (mirroring) for production environment.
 
 ?Should I use RAIDFrame or softraid?
 
 The reliability is the main request feature.

AFAIK, not all features of softraid are finished yet. However, it
appears that the developers themselves do not trust raidframe, so maybe
you should stay away from that too. No easy answer :-|

Search the archives for the status of softraid.

Martin



Re: Issue compiling a program on OpenBSD

2008-03-28 Thread Greg Thomas
On Fri, Mar 28, 2008 at 2:47 AM, Ross Cameron [EMAIL PROTECTED]
wrote:



 On Fri, Mar 28, 2008 at 12:20 AM, Girish Venkatachalam
 [EMAIL PROTECTED] wrote:

   It is only because linux kernel is so modular (laugh) that people
 want to
   build their own kernel. And to tell you honestly I still dunno how to
   compile and install a linux kernel. And it varies between distros to
   make things worse.
 Just blindly using the GENERIC kernel on you're OpenBSD install CD
 (you did buy one right) is daft.


Ummm, yes, we do trust the GENERIC kernel from the OpenBSD install CD.  It's
meant to be used, why wouldn't we use it?

I agree with some of your points but when you talk like this you sound like
a Linux fanboi.



 My home firewall has a very cut down kernel on it that only includes
 what I want in it. Why bloat it with drivers/etc I don't need?


Are you running into problems?  If not, why bother cutting down the kernel?



   Please don't retrofit OpenBSD to fit into the linux mould. It is
   unfortunate that such garbage like linux is so popular.
 M funny haven't seen any *BSD phones yet, or Oracle/Sybase IQ
 for BSD yet.


Who freakin' cares?  You probably realize that popularity doesn't guarantee
quality.

Greg

-- 
Bicycle fun ride in the middle of nowhere:
http://lodesertprotosites.org/pokerrun/pokerrun.html
http://ticketmastersucks.org
Dethink to survive - Mclusky



Re: Dangers to upgrading without install kernel

2008-03-28 Thread Juan Miscaro
--- Nick Holland [EMAIL PROTECTED] wrote:

 Juan Miscaro wrote:
  Hello,
  
  The online upgrade documentation [1] is fairly vehement about its
  recommendation regarding the use of the install kernel when
 upgrading. 
  I was wondering why?  What dangers await someone going down the
 remote
  upgrade path?
  
  /juan
  
  [1] http://www.openbsd.org/faq/upgrade42.html#upgrade
 
 IF you follow the remote upgrade process properly, it works.
 
 When I write it, I test first on a machine in my lab, then one in my
 basement, then one across town that is my mail and web server, and
 then
 a bunch of other machines.  So, by the time I remove the warning
 notes
 from the new version of the file, it's ready for use.  I don't recall
 anyone reporting that they followed the upgradeXX.html and their
 system died because of it.  However, I don't get a lot of test
 reports
 for the process, a lot more testing goes on for the install kernel
 process.
 
 HOWEVER, there is stuff that can happen.  If you are in front of the
 machine running the install kernel, you have a much better chance of
 dealing with it.
 
 The number of ways things can go right is very finite, typically.
 The number of ways things can go bad is...big.  Really big.  Here
 are just a few things that could go wrong:
 
 IF you were doing 4.1 - 4.2 upgrade and your machine happened to be
 one of the five that someone estimated might be impacted by the ahci
 driver change, you would be really unhappy if you had no serial
 console
 on the system, as your machine would suddenly refuse to boot, because
 your HD became sd(4) devices instead of wd(4) devices.  Same goes
 if you were any of the twenty or so people who guessed their machines
 would do that, and didn't.
 
 If your hard disk developed a bad spot that didn't impact operation
 and yet prevented booting, you will be unhappy when you reboot (been
 there, done that.  In my case, I saw the warning signs in dmesg, and
 knew the machine would probably not come back up.  You might not be
 so lucky or observant).
 
 You could easily fat-finger something, installing (say) the new
 kernel
 in the wrong place and finding out the old kernel doesn't support the
 new userland.
 
 You could be trying to install i386 file sets on your sparc64 system.
 (been there, done that, too.  Works great, until you hit reboot)
 
 Your system will be semi-functional during the upgrade,
 this may be bad, or may be good, or may be completely indifferent.
 When you use the install kernel, the system is in a known state: it
 is DOWN, and it will stay that way until you reboot it AFTER the
 upgrade.  However, there are several interesting time periods on
 the live system upgrade -- early on, you are running with the
 new kernel and old userland.  PF doesn't always come up in that
 situation...so you may be running without any filters for any apps
 on the machine.  Those apps may be running or maybe not.  Those apps
 may start out running, then blow up once you start unpacking the
 userland files (hello, Sendmail!).  Maybe your machine is involved
 in a CARP set, during the upgrade maybe it is, maybe it isn't, and
 maybe it shouldn't be while mid-upgrade but maybe it is anyway.
 
 In other words, you will get to your destination, but the states
 in the between start and finish may not be fully understood by
 you, and you may not be happy with the impact of that interim
 time.
 
 Again, this is not intended to be a complete list of what could
 go wrong for you.  The remote upgrade process is here because
 a lot of people who understand their systems need it, and I need
 it, so I spend the time working on it.  However, it's not
 officially recommended process, rebuilding a live system remotely
 is just not quite as error tolerant as using an install kernel
 locally.  We'd be nuts to try to tell you otherwise.
 
 Nick.

Thank you for this magnanimous reply.

/juan



Re: i have lost /etc

2008-03-28 Thread Marc Balmer

Rafael Morales wrote:


Please someone help me I have deleted my /etc dir (rm
-rf /etc), is there any way to recover it, or there is
a way to recover  my data stored in /home ??? 


restore(8)



Re: softraid corrupted metadata

2008-03-28 Thread Marco Peereboom
Adding misc that somehow fell off...

On Fri, Mar 28, 2008 at 08:51:18AM -0500, Marco Peereboom wrote:
 Assuming the drives weren't hurt you can reassemble the RAID 1 with the
 -C force option.  Do something along the lines of:
 
 bioctl -c 1 -C force -l /dev/sd2a,/dev/sd3a softraid0
 
 That will overwrite the current stale metadata with new one.  Make sure
 you fsck the filesystem before mounting it (even if it says it is ok!
 use some force to convince it to check it);
 
 On Fri, Mar 28, 2008 at 02:32:49PM +0100, [EMAIL PROTECTED] wrote:
  Hi,
  
  I'm currently using softraid(4) on my 4.2-stable(*) I386 machine and
  yesterday I ran into a problem: after a system freeze (most probably
  caused by a malfunctioning onboard SATA controller) softraid found
  corrupted metadata on one of my two disks in the RAID1 array I assembled
  (sorry, I don't have the correct error message handy) thus the kernel
  didn't create the softraid0 device.
  
  Don't get me wrong I'm not complaining about that (as the manpage
  already told me that this will be the outcome of a failed chunk) but I'm
  wondering if there's a manual procedure I follow to reassemble the raid
  manually without data loss.
  
  TIA,
  Frank.
  
  *) actually almost stable as I had to build my own softraid enabled
  kernel based on GENERIC
  
  -- 
  What can you use used tampons for?  Tea bags for vampires.
  openBSD - Can't fight the Systemagic. \ber tragic.
  Frank Brodbeck [EMAIL PROTECTED]
  Politicians do it to everyone.



Re: wrong files on ftp://ftp.openbsd.org/pub/OpenBSD/4.2/ ?

2008-03-28 Thread Stuart Henderson
On 2008-03-28, Deanna Phillips [EMAIL PROTECTED] wrote:
 Juan Miscaro writes:

 --- Jacob Meuser [EMAIL PROTECTED] wrote:

 On Sat, Mar 22, 2008 at 03:55:20PM -0400, Juan Miscaro wrote:
 
  Seems like something a lot of people get bitten by.  How does one
 stay
  informed on this snapshot libc/packages synchronization issue?
 
 subscribe to [EMAIL PROTECTED] to see when libc bumps
 happen, then check the dates of the snapshots and packages.

 The subject titles of the messages to that list are non-informative. 
 Do you mean that I should read every one that says: CVS:
 cvs.openbsd.org: src ?

 It's been a long time since I did this, so my memory is fuzzy,
 but I believe that the ctm-log list might be more practical for
 this purpose.  It is a single daily message with an organized
 list of source changes.  (IIRC.. someone correct me.)

 http://www.openbsd.org/ctm.html

I didn't know about ctm-log, but owc/odc are other options.

Or just tail -f ChangeLog...



OpenBSD Memory Sniffer Protection

2008-03-28 Thread Michael Seney
 Recently I have taken notice in a growing number of articles concerning memory 
sniffing threats. Today's post at The Register they talk about the DaisyDukes 
memory sniffer. What disturbed me the most was seeing SSH mentioned. Is this 
truly a threat if I am running OpenBSD?

http://www.theregister.co.uk/2008/03/28/memory_sniffer_unveiled/

http://citp.princeton.edu/memory/ 
 
   
-
Like movies? Here's a limited-time offer: Blockbuster Total Access for one 
month at no cost.



OpenBSD Memory Sniffer Protection

2008-03-28 Thread Michael Seney
Recently I have taken notice in a growing number of articles concerning memory
sniffing threats. Today's post at The Register they talk about the DaisyDukes 
memory sniffer. Is this truly a threat if I am running OpenBSD?

http://www.theregister.co.uk/2008/03/28/memory_sniffer_unveiled/

http://citp.princeton.edu/memory/
   
-
Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  Try it now.



Re: OpenBSD Memory Sniffer Protection

2008-03-28 Thread Steve Shockley

Michael Seney wrote:

Recently I have taken notice in a growing number of articles
concerning memory sniffing threats. Today's post at The Register they
talk about the DaisyDukes memory sniffer. Is this truly a threat if I
am running OpenBSD?


Your message at 9:00 wasn't enough, so you sent another one at 9:22?

If someone can kick your machine, your choice of OS doesn't matter.



Re: OpenBSD Memory Sniffer Protection

2008-03-28 Thread Peter_APIIT
At least, disallow hacker to physical touch your OpenBSD box. 

You be free of threat. 


-- 
View this message in context: 
http://www.nabble.com/OpenBSD-Memory-Sniffer-Protection-tp16365938p16366134.html
Sent from the openbsd user - misc mailing list archive at Nabble.com.



Re: amd64 -current kernel hang

2008-03-28 Thread Peter_APIIT
Thanks. This will help OpenBSD to diagnose the problem. 
-- 
View this message in context: 
http://www.nabble.com/amd64--current-kernel-hang-tp16324333p16366188.html
Sent from the openbsd user - misc mailing list archive at Nabble.com.



Re: RAID 1 in production environment

2008-03-28 Thread David Newman

Martin Toft wrote:

On Fri, Mar 28, 2008 at 11:49:01AM +0100, Jordi Espasa Clofent wrote:

Hi all,

I need a RAID-1 (mirroring) for production environment.

?Should I use RAIDFrame or softraid?

The reliability is the main request feature.


AFAIK, not all features of softraid are finished yet. However, it
appears that the developers themselves do not trust raidframe, so maybe
you should stay away from that too. No easy answer :-|

Search the archives for the status of softraid.



FWIW, I've been using RAIDFrame on sparc64 since 4.0 on a production web 
server with no issues.


dn