Fwd: associated to AP (WEP mode) && no IP addr via DHCP

2009-03-06 Thread Matthias Apitz
Hello, I've posted the problem below to freebsd-mobile with zero (visible) effect; maybe someone from freebsd-hackers has at least an idea for me where to look into for further debugging; it should to stay that a simple stupid Nokia works in a Wifi zone, while FreeBSD does not :-) Thx for your ti

Re: Spin down HDD after disk sync or before power off

2009-03-06 Thread Bernd Walter
On Thu, Mar 05, 2009 at 09:37:10PM +0100, Daniel Thiele wrote: > > "Travelstar 5K320 Specification - HTSxxx models v1.0" avilable at > http://www.hitachigst.com/tech/techlib.nsf/products/Travelstar_5K320 > > says in the paragraph "Required power-off sequence": "The required host > system sequence

Re: Spin down HDD after disk sync or before power off

2009-03-06 Thread Octavian Covalschi
I played more with this, and got here so far: if (atadev->param.support.command1 & ATA_SUPPORT_STANDBY) { device_printf(dev, "Trying to spindown before poweroff.\n"); atadev->spindown = 1; ad_spindown((void *)dev); } else { device_printf(dev, "Cannot spindown b

Re: How to tear down a geom mirror?

2009-03-06 Thread Jilles Tjoelker
On Thu, Mar 05, 2009 at 10:27:50PM -0800, Peter Steele wrote: > I've created a USB boot disk that is used to clone itself onto the > systems hard drives, setting up mirrored file systems in the process. > The main difficulty I'm having is reimaging a system with an existing > OS whose drives are al

Re: How to tear down a geom mirror?

2009-03-06 Thread Ivan Voras
Jilles Tjoelker wrote: > On Thu, Mar 05, 2009 at 10:27:50PM -0800, Peter Steele wrote: >> I've created a USB boot disk that is used to clone itself onto the >> systems hard drives, setting up mirrored file systems in the process. >> The main difficulty I'm having is reimaging a system with an exist

Re: How to tear down a geom mirror?

2009-03-06 Thread Peter Steele
> Or simply use the "clean" command, for example "gmirror clean" (also >supported in other GEOM classes). Can I do a gmirror clean without first doing a gmirror load? That's what I want to avoid since it can hang if the mirror is is a bad state. ___

Re: How to tear down a geom mirror?

2009-03-06 Thread Peter Steele
>gmirror and various other geom modules store their metadata on the last >sector(s) of the drive, so you need to wipe that too. In our case the systems we are using aren't mirroring the whole drive, just certain slices. Some systems have a single slice mirrored (plus an unmirrored slice), and

Re: How to tear down a geom mirror?

2009-03-06 Thread Ivan Voras
Peter Steele wrote: >> Or simply use the "clean" command, for example "gmirror clean" (also >> supported in other GEOM classes). > > Can I do a gmirror clean without first doing a gmirror load? That's what I > want to avoid since it can hang if the mirror is is a bad state. Sorry, the actual

Re: How to tear down a geom mirror?

2009-03-06 Thread Peter Steele
>Yes. The "clear" commands usually just zero-out the last sector of the >underlying provider (doesn't matter if it's a drive, slice or something >altogether different) so you don't have to do it manually. So, as a generic solution then I could just iterate through all slices of all drives and

wrong data in remapped buffer

2009-03-06 Thread Alexej Sokolov
Hello, I try to MALLOC a buffer in kern, then remap it with vm_map_find(), to space of user process. Some times the remapped buffer in user space contain incorrect data. What could be a reason of this problem and how to solve it ? Thanx, Alexej P.S. Whole code of remapping function: http://past

Re: How to tear down a geom mirror?

2009-03-06 Thread Oliver Fromme
Peter Steele wrote: > > Yes. The "clear" commands usually just zero-out the last sector of the > > underlying provider (doesn't matter if it's a drive, slice or something > > altogether different) so you don't have to do it manually. > > So, as a generic solution then I could just iterate

Re: How to tear down a geom mirror?

2009-03-06 Thread Peter Steele
Okay, thanks everyone for their feedback. I think I have a workable solution now. Peter - Original Message - From: "Oliver Fromme" To: freebsd-hackers@FreeBSD.ORG, pste...@maxiscale.com Sent: Friday, March 6, 2009 11:15:11 AM GMT -08:00 US/Canada Pacific Subject: Re: How to tear d

Re: Spin down HDD after disk sync or before power off

2009-03-06 Thread Rick C. Petty
On Wed, Mar 04, 2009 at 08:56:14PM +0100, Joerg Sonnenberger wrote: > On Wed, Mar 04, 2009 at 08:38:52PM +0100, Oliver Fromme wrote: > > Octavian Covalschi wrote: > > > I'm looking a way to spin down HDD just right before power off. Why? > > > > > > Because currently when I call "shutdown -p no

Re: Spin down HDD after disk sync or before power off

2009-03-06 Thread Octavian Covalschi
Why is spinning down is bad for HDD ? I believe it's better to spindown a drive, instead of cutting power too sudden. On Fri, Mar 6, 2009 at 2:30 PM, Rick C. Petty < rick-freebsd2...@kiwi-computer.com> wrote: > On Wed, Mar 04, 2009 at 08:56:14PM +0100, Joerg Sonnenberger wrote: > > On Wed, Mar 04

Re: Spin down HDD after disk sync or before power off

2009-03-06 Thread Rick C. Petty
On Fri, Mar 06, 2009 at 03:30:14PM -0600, Octavian Covalschi wrote: > Why is spinning down is bad for HDD ? I believe it's better to spindown a > drive, > instead of cutting power too sudden. Comparing those two, I'd say it shouldn't matter (although probably a forced spindown may be better). But