NO-IP not updating!

2011-01-26 Thread Leslie Jensen

Hello list.

I'm quite new to Openbsd, have used Freebsd for a while.

I have a newly installed Openbsd system.
OpenBSD machine01.no-ip.org 4.8 GENERIC.MP#335 amd64

Upon installation of noip I ran the command noip2 -C to configure it.

I want noip to run a script every 30 minutes that sends a mail to me at 
the end of the updating of the address.


So I choose the settings accordingly when configuring noip.

I've put the following in my /etc/rc.local

--
# Add your local startup actions here.

/usr/local/sbin/noip2 

echo '.'
--

When the machine is booted I get the mail, but I do not get the updates 
every 30 minutes as I should.


I cannot see if the the daemon starts because the line at the startup 
screen shows only starting local daemons:,


The command:
# ps -aux | grep noip

Gives

_noip 6013  0.0  0.2   428   916 ??  Is10:04AM0:00.01 
/usr/local/sb


Top shows the process
6013 _noip  20  428K  916K idle  select0:00  0.00% noip2

If I kill that process and start noip2 from the command line it also 
sends the mail at start up but not after the following 30 minutes.


I'm not sure whether noip is running every 30 minutes I've been tailing 
/var/log/messages and I cannot see anything related to noip there.


Can anyone on this list point me in the right direction?

Thanks

/Leslie



.xsession never finishes

2011-01-26 Thread Ed Ahlsen-Girard
Recently .xsession began to take much longer to finish.  Upgrading to
the 25 Jan snapshot has not changed this.  I don't know how long it
takes anymore, because I can't wait 5+ minutes every time I log in.

The selected background color does display, and the xconsole log
displays in the top left corner, but it never goes away and nothing
else ever shows up.  The mouse pointer moves, but neither button
accomplishes anything.  X can be run successfully from startx, but
that's not preferred. My window manager is fvwm. dmesg, .xsession, and
rc.conf.local files are below.

-- 

Edward Ahlsen-Girard
Ft Walton Beach, FL

OpenBSD 4.9-beta (GENERIC) #637: Tue Jan 25 15:43:19 MST 2011
t...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel(R) Pentium(R) 4 CPU 2.66GHz (GenuineIntel 686-class) 2.66
GHz cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,CNXT-ID
real mem  = 1072746496 (1023MB) avail mem = 1045061632 (996MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 11/12/02, BIOS32 rev. 0 @
0xffe90, SMBIOS rev. 2.3 @ 0xf0450 (56 entries) bios0: vendor Dell
Computer Corporation version A03 date 11/12/2002 bios0: Dell Computer
Corporation Dimension 4550 acpi0 at bios0: rev 0
acpi0: sleep states S0 S1 S3 S4 S5
acpi0: tables DSDT FACP SSDT APIC BOOT ASF!
acpi0: wakeup devices VBTN(S4) PCI0(S3) USB0(S3) USB1(S3) USB2(S3)
PCI1(S5) KBD_(S3) acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: apic clock running at 132MHz
ioapic0 at mainbus0: apid 1 pa 0xfec0, version 20, 24 pins
ioapic0: misconfigured as apic 0, remapped to apid 1
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 2 (PCI1)
acpicpu0 at acpi0
acpibtn0 at acpi0: VBTN
bios0: ROM list: 0xc/0xf800 0xcf800/0x800
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 Intel 82845G Host rev 0x01
intelagp0 at pchb0
agp0 at intelagp0: aperture at 0xe800, size 0x800
ppb0 at pci0 dev 1 function 0 Intel 82845G AGP rev 0x01
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 NVIDIA GeForce4 MX 420 rev 0xa3
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
uhci0 at pci0 dev 29 function 0 Intel 82801DB USB rev 0x01: apic 1
int 16 (irq 11) uhci1 at pci0 dev 29 function 1 Intel 82801DB USB rev
0x01: apic 1 int 19 (irq 10) uhci2 at pci0 dev 29 function 2 Intel
82801DB USB rev 0x01: apic 1 int 18 (irq 9) ehci0 at pci0 dev 29
function 7 Intel 82801DB USB rev 0x01: apic 1 int 23 (irq 3) usb0 at
ehci0: USB revision 2.0 uhub0 at usb0 Intel EHCI root hub rev
2.00/1.00 addr 1 ppb1 at pci0 dev 30 function 0 Intel 82801BA
Hub-to-PCI rev 0x81 pci2 at ppb1 bus 2
cmpci0 at pci2 dev 0 function 0 C-Media Electronics CMI8738/C3DX
Audio rev 0x10: apic 1 int 21 (irq 11) audio0 at cmpci0
opl at cmpci0 not configured
mpu at cmpci0 not configured
vendor Broadcom, unknown product 0x4212 (class communications
subclass modem, rev 0x02) at pci2 dev 1 function 0 not configured fxp0
at pci2 dev 8 function 0 Intel PRO/100 VE rev 0x81, i82562: apic 1
int 20 (irq 11), address 00:07:e9:c3:c0:ba inphy0 at fxp0 phy 1:
i82562ET 10/100 PHY, rev. 0 ichpcib0 at pci0 dev 31 function 0 Intel
82801DB LPC rev 0x01 pciide0 at pci0 dev 31 function 1 Intel 82801DB
IDE rev 0x01: DMA, channel 0 configured to compatibility, channel 1
configured to compatibility wd0 at pciide0 channel 0 drive 0: WDC
WD600BB-75CAA0 wd0: 16-sector PIO, LBA, 57220MB, 117187500 sectors wd1
at pciide0 channel 0 drive 1: WDC WD800JB-00JJC0 wd1: 16-sector PIO,
LBA, 76319MB, 156301488 sectors wd0(pciide0:0:0): using PIO mode 4,
Ultra-DMA mode 5 wd1(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 5
atapiscsi0 at pciide0 channel 1 drive 0 scsibus0 at atapiscsi0: 2
targets cd0 at scsibus0 targ 0 lun 0: _NEC, DVD+RW ND-1100A, 10GE
ATAPI 5/cdrom removable wd2 at pciide0 channel 1 drive 1: WDC
WD800JB-00JJC0 wd2: 16-sector PIO, LBA, 76319MB, 156301488 sectors
cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2
wd2(pciide0:1:1): using PIO mode 4, Ultra-DMA mode 5
ichiic0 at pci0 dev 31 function 3 Intel 82801DB SMBus rev 0x01: apic
1 int 17 (irq 11) iic0 at ichiic0
spdmem0 at iic0 addr 0x50: 512MB DDR SDRAM non-parity PC2700CL2.5
spdmem1 at iic0 addr 0x51: 512MB DDR SDRAM non-parity PC2700CL2.5
usb1 at uhci0: USB revision 1.0
uhub1 at usb1 Intel UHCI root hub rev 1.00/1.00 addr 1
usb2 at uhci1: USB revision 1.0
uhub2 at usb2 Intel UHCI root hub rev 1.00/1.00 addr 1
usb3 at uhci2: USB revision 1.0
uhub3 at usb3 Intel UHCI root hub rev 1.00/1.00 addr 1
isa0 at ichpcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0

Re: netflow and ipv6?

2011-01-26 Thread Michael W. Lucas
On Mon, Jan 24, 2011 at 10:43:36PM +0100, Patrick Lamaiziere wrote:
 Hello,
 
 Are there some plans to implement netflow v9 in pflow(4) (to be able to
 trace ipv6 flows)?
 
 Without, which collector can I use in userland? And is the load
 introduced by such userland tool a concern with a network traffic
 passing the firewall around ~500Mb/s?

Softflowd.  http://www.mindrot.org/projects/softflowd/

I believe it will handle the load -- I put 50Mbs through a PF machine
several years ago, and softflowd didn't crack 1% CPU.  YMMV.

==ml

-- 
Michael W. Lucas
http://www.MichaelWLucas.com/, http://blather.MichaelWLucas.com/
Latest book: Network Flow Analysis http://www.networkflowanalysis.com/
mwlu...@blackhelicopters.org, Twitter @mwlauthor



Re: Sniffer detector for OpenBSD

2011-01-26 Thread Orestes Leal R.
the only isp in cuba it's named etecsa, here there is no such things like  
multiples isps,
conections are slow (from 3kilobytes/s to 60kilobytes/s in the better  
cases and rarely)
conections are expensive, I have internet through my employer and  
therefore my employer

pays to etecsa for the link.


como tienes acceso a internet en cuba? yo soy de venezuela btw

quisiera saber como functiona todo eso en cuba con los isp's, etc.

On Mon, Jan 24, 2011 at 3:31 PM, Orestes Leal R.
l...@cubacatering.avianet.cu wrote:

Actually I understand everything friend don't worry, TODO BIEN!
Here in Cuba almost no one uses openbsd.

Thanks a lot,
LeaL



I realize after I sent the note that my Spanish was completely screwed.
My apologies.
Here.
Is there anyone close to you that uses openbsd or anyone you know in a
neighboring country?
I referenced Mexico and Colombia because help from native speakers may  
be

more efficient.

--- On Mon, 1/24/11, Super Biscuit super_bisq...@yahoo.com wrote:

From: Super Biscuit super_bisq...@yahoo.com
Subject: Re: Sniffer detector for OpenBSD
To: Orestes Leal R. l...@cubacatering.avianet.cu
Cc: misc@openbsd.org misc@openbsd.org
Date: Monday, January 24, 2011, 5:22 PM

Try http://openports.se

Use sniff and sniffer as the search queries.

No hay nadie acerca de usted que esta usando OpenBSD. Disculpa mi pobre
Castiliano.
Talvez son gente en Mexico o Colombia.

Ja tente, and use the search above.



--- On Mon, 1/24/11, Orestes Leal R. l...@cubacatering.avianet.cu  
wrote:


From: Orestes Leal R. l...@cubacatering.avianet.cu
Subject: Sniffer detector for OpenBSD
To: misc@openbsd.org misc@openbsd.org
Date: Monday, January 24, 2011, 5:47 PM

I've searching an sniffer detector for a LAN in OpenBSD unsucessfully,
but found Sniffdet (outdated) and doesn't compile on
OpenBSD4.8 and in all packages I dont know if there is one, any
suggestions
about this?

I need to detect sniffers on my network possibly from Linux or or  
Windows

Machines.






--
Using Opera's revolutionary email client: http://www.opera.com/mail/








--
Using Opera's revolutionary email client: http://www.opera.com/mail/



Keyboard bell and attach.

2011-01-26 Thread David Walker
I have a machine at work, beige box with 4.8 on it that doesn't like hotplugd.

It's on a kvm. When it boots it uses the keyboard encoding from
/etc/kbdtype but after switching the kvm and back it goes to default
encoding - qwerty.
This machine also has the keyboard bell muted but it beeps from boot.

Anyway I installed 4.8 on another machine at home the other day and
the same deal. It beeps from boot and although the encoding is fine
initially after switching the kvm and back it goes to default encoding
- qwerty.

I thought it might be the issue with 16 USB devices failing attach so
I've removed the kvm (plugging into a MOBO USB port) to no avail and
the beep is an issue anyway.

Here is wsconsctl.conf grepped:
keyboard.bell.volume=0  # mute keyboard beep

Contents of kbdtype:
us.dvorak

Here is rc.conf.local grepped:
hotplugd_flags=

Log of hotplugd at debug level - 12:46 is boot, 13:04 is unplug, 13:05 is plug:
Jan 27 12:46:12 server hotplugd[2262]: started
Jan 27 12:46:12 server hotplugd[2262]: uhub1 attached, class 0
Jan 27 12:46:12 server hotplugd[2262]: wskbd1 attached, class 5
Jan 27 12:46:12 server hotplugd[2262]: ukbd0 attached, class 0
Jan 27 12:46:12 server hotplugd[2262]: uhidev0 attached, class 0
Jan 27 12:46:12 server hotplugd[2262]: uhid0 attached, class 0
Jan 27 12:46:12 server hotplugd[2262]: uhidev1 attached, class 0
Jan 27 12:46:12 server hotplugd[2262]: softraid0 attached, class 0
Jan 27 13:04:28 server hotplugd[2262]: wskbd1 detached, class 5
Jan 27 13:04:28 server hotplugd[2262]: ukbd0 detached, class 0
Jan 27 13:04:28 server hotplugd[2262]: uhidev0 detached, class 0
Jan 27 13:04:28 server hotplugd[2262]: uhid0 detached, class 0
Jan 27 13:04:28 server hotplugd[2262]: uhidev1 detached, class 0
Jan 27 13:04:28 server hotplugd[2262]: uhub1 detached, class 0
Jan 27 13:05:13 server hotplugd[2262]: uhub1 attached, class 0
Jan 27 13:05:15 server hotplugd[2262]: wskbd1 attached, class 5
Jan 27 13:05:15 server hotplugd[2262]: ukbd0 attached, class 0
Jan 27 13:05:15 server hotplugd[2262]: uhidev0 attached, class 0
Jan 27 13:05:15 server hotplugd[2262]: uhid0 attached, class 0
Jan 27 13:05:15 server hotplugd[2262]: uhidev1 attached, class 0

Here is wsconsctl -a before unplugging:
keyboard.type=pc-xt
keyboard.bell.pitch=400
keyboard.bell.period=100
keyboard.bell.volume=0
keyboard.bell.pitch.default=400
keyboard.bell.period.default=100
keyboard.bell.volume.default=50
keyboard.repeat.del1=400
keyboard.repeat.deln=100
keyboard.repeat.del1.default=400
keyboard.repeat.deln.default=100
keyboard.ledstate=0
keyboard.encoding=us.dvorak
keyboard1.type=usb
keyboard1.bell.pitch=400
keyboard1.bell.period=100
keyboard1.bell.volume=50
keyboard1.bell.pitch.default=400
keyboard1.bell.period.default=100
keyboard1.bell.volume.default=50
keyboard1.repeat.del1=400
keyboard1.repeat.deln=100
keyboard1.repeat.del1.default=400
keyboard1.repeat.deln.default=100
keyboard1.ledstate=0
keyboard1.encoding=us.dvorak
display.type=vga-pci
display.emulations=vt100
display.screentypes=80x25,80x25bf,80x40,80x40bf,80x50,80x50bf
display.focus=0
display.screen_on=250
display.screen_off=30
display.vblank=off
display.kbdact=off
display.msact=off
display.outact=off

After re-plugging this is changed:
keyboard1.encoding=us

Oop, there's one reason to post to misc and read logs.
It's pretty obvious now that the the keyboard is on keyboard1 and I've
changed wsconsctl.conf to ...
keyboard1.bell.volume=0  # mute keyboard beep
... and the beep is gone at boot.
However after unplugging the keyboard and plugging it back in the beep
is back and the keyboard encoding is wrong.
I guess I'll have to put a mute into the attach script but I think
that's the issue here - the attach script here and on the machine at
work aren't firing.

This is the attach script:
#!/bin/sh

   DEVCLASS=$1
   DEVNAME=$2

   case DEVNAME in
   wskbd1)
   kbd us.dvorak
   ;;
   esac

Any ideas welcome.

Best wishes.

OpenBSD 4.8 (GENERIC) #136: Mon Aug 16 09:06:23 MDT 2010
   dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel Pentium III (GenuineIntel 686-class) 731 MHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PSE36,SER,MMX,FXSR,SSE
real mem  = 266891264 (254MB)
avail mem = 252567552 (240MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 12/05/01, BIOS32 rev. 0 @
0xfd87d, SMBIOS rev. 2.2 @ 0xe4010 (42 entries)
bios0: vendor Phoenix Technologies Ltd. version IP.01.08US date 12/05/2001
bios0: Hewlett-Packard HP Vectra
apm0 at bios0: Power Management spec V1.2
apm0: AC on, battery charge unknown
acpi at bios0 function 0x0 not configured
pcibios0 at bios0: rev 2.1 @ 0xfd810/0x7f0
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdf30/176 (9 entries)
pcibios0: PCI Interrupt Router at 000:31:0 (Intel 82371FB ISA rev 0x00)
pcibios0: PCI bus #1 is the last bus
bios0: ROM list: 0xc/0xa000 0xe/0x4000! 0xe4000/0xc000!
cpu0 at mainbus0: (uniprocessor)
pci0 at 

Re: Sniffer detector for OpenBSD

2011-01-26 Thread Andres Perera
como tienes acceso a internet en cuba? yo soy de venezuela btw

quisiera saber como functiona todo eso en cuba con los isp's, etc.

On Mon, Jan 24, 2011 at 3:31 PM, Orestes Leal R.
l...@cubacatering.avianet.cu wrote:
 Actually I understand everything friend don't worry, TODO BIEN!
 Here in Cuba almost no one uses openbsd.

 Thanks a lot,
 LeaL


 I realize after I sent the note that my Spanish was completely screwed.
 My apologies.
 Here.
 Is there anyone close to you that uses openbsd or anyone you know in a
 neighboring country?
 I referenced Mexico and Colombia because help from native speakers may be
 more efficient.

 --- On Mon, 1/24/11, Super Biscuit super_bisq...@yahoo.com wrote:

 From: Super Biscuit super_bisq...@yahoo.com
 Subject: Re: Sniffer detector for OpenBSD
 To: Orestes Leal R. l...@cubacatering.avianet.cu
 Cc: misc@openbsd.org misc@openbsd.org
 Date: Monday, January 24, 2011, 5:22 PM

 Try http://openports.se

 Use sniff and sniffer as the search queries.

 No hay nadie acerca de usted que esta usando OpenBSD. Disculpa mi pobre
 Castiliano.
 Talvez son gente en Mexico o Colombia.

 Ja tente, and use the search above.



 --- On Mon, 1/24/11, Orestes Leal R. l...@cubacatering.avianet.cu wrote:

 From: Orestes Leal R. l...@cubacatering.avianet.cu
 Subject: Sniffer detector for OpenBSD
 To: misc@openbsd.org misc@openbsd.org
 Date: Monday, January 24, 2011, 5:47 PM

 I've searching an sniffer detector for a LAN in OpenBSD unsucessfully,
 but found Sniffdet (outdated) and doesn't compile on
 OpenBSD4.8 and in all packages I dont know if there is one, any
 suggestions
 about this?

 I need to detect sniffers on my network possibly from Linux or or Windows
 Machines.





 --
 Using Opera's revolutionary email client: http://www.opera.com/mail/



Re: netflow and ipv6?

2011-01-26 Thread Stuart Henderson
On 2011-01-26, Michael W. Lucas mwlu...@blackhelicopters.org wrote:
 On Mon, Jan 24, 2011 at 10:43:36PM +0100, Patrick Lamaiziere wrote:
 Hello,
 
 Are there some plans to implement netflow v9 in pflow(4) (to be able to
 trace ipv6 flows)?
 
 Without, which collector can I use in userland? And is the load
 introduced by such userland tool a concern with a network traffic
 passing the firewall around ~500Mb/s?

 Softflowd.  http://www.mindrot.org/projects/softflowd/

 I believe it will handle the load -- I put 50Mbs through a PF machine
 several years ago, and softflowd didn't crack 1% CPU.  YMMV.

softflowd is in ports/packages. We also have pmacct which includes
pmacctd which should also be able to capture with pcap and export
NetFlow data, but I haven't tried using it in this way.



Re: question regarding bgpd

2011-01-26 Thread Stuart Henderson
On 2011-01-26,  ??? chipits...@gmail.com wrote:
 Dear Sirs,

 we are running our AS in many locations (say AS65000)

 (location 1, AS65000, network n1.n1.n1.n1)  Internet ---
 (location 2, same AS65000, network n2.n2.n2.n2)

 when we were running quagga, allowas-in made the work. otherwise
 there was no route except default between two locations.
 now we are replacing quagga with OpenBGPD, what is openbgpd's
 equivalent of allowas-in ?

 Cheers,
 Ilya Shipitsin

 P.S. just to make sure - I already read manuals and somehow I didn't
 find relevant information there. So, if all you can say is RTFM,
 please also say where exactly relevant information is located.



bgpd doesn't currently support this.



Re: .xsession never finishes

2011-01-26 Thread Alexander Hall
On 01/26/11 14:39, Ed Ahlsen-Girard wrote:
 Recently .xsession began to take much longer to finish.  Upgrading to
 the 25 Jan snapshot has not changed this.  I don't know how long it
 takes anymore, because I can't wait 5+ minutes every time I log in.
 
 The selected background color does display, and the xconsole log
 displays in the top left corner, but it never goes away and nothing
 else ever shows up.  The mouse pointer moves, but neither button
 accomplishes anything.  X can be run successfully from startx, but
 that's not preferred. My window manager is fvwm. dmesg, .xsession, and
 rc.conf.local files are below.
 

Start from the simplest .xsession possible and add stuff one at a time.

Also, not all those commands have to be 'd, and FwvmBacker sure has no
place there. :-)

/Alexander



Re: Sniffer detector for OpenBSD

2011-01-26 Thread Evgeniy Sudyr
Check list of companies which provides support there
http://openbsd.org/support.html

On Wed, Jan 26, 2011 at 5:37 PM, Orestes Leal R.
l...@cubacatering.avianet.cu wrote:
 the only isp in cuba it's named etecsa, here there is no such things like
 multiples isps,
 conections are slow (from 3kilobytes/s to 60kilobytes/s in the better cases
 and rarely)
 conections are expensive, I have internet through my employer and therefore
 my employer
 pays to etecsa for the link.

 como tienes acceso a internet en cuba? yo soy de venezuela btw

 quisiera saber como functiona todo eso en cuba con los isp's, etc.

 On Mon, Jan 24, 2011 at 3:31 PM, Orestes Leal R.
 l...@cubacatering.avianet.cu wrote:

 Actually I understand everything friend don't worry, TODO BIEN!
 Here in Cuba almost no one uses openbsd.

 Thanks a lot,
 LeaL


 I realize after I sent the note that my Spanish was completely screwed.
 My apologies.
 Here.
 Is there anyone close to you that uses openbsd or anyone you know in a
 neighboring country?
 I referenced Mexico and Colombia because help from native speakers may
 be
 more efficient.

 --- On Mon, 1/24/11, Super Biscuit super_bisq...@yahoo.com wrote:

 From: Super Biscuit super_bisq...@yahoo.com
 Subject: Re: Sniffer detector for OpenBSD
 To: Orestes Leal R. l...@cubacatering.avianet.cu
 Cc: misc@openbsd.org misc@openbsd.org
 Date: Monday, January 24, 2011, 5:22 PM

 Try http://openports.se

 Use sniff and sniffer as the search queries.

 No hay nadie acerca de usted que esta usando OpenBSD. Disculpa mi pobre
 Castiliano.
 Talvez son gente en Mexico o Colombia.

 Ja tente, and use the search above.



 --- On Mon, 1/24/11, Orestes Leal R. l...@cubacatering.avianet.cu
 wrote:

 From: Orestes Leal R. l...@cubacatering.avianet.cu
 Subject: Sniffer detector for OpenBSD
 To: misc@openbsd.org misc@openbsd.org
 Date: Monday, January 24, 2011, 5:47 PM

 I've searching an sniffer detector for a LAN in OpenBSD unsucessfully,
 but found Sniffdet (outdated) and doesn't compile on
 OpenBSD4.8 and in all packages I dont know if there is one, any
 suggestions
 about this?

 I need to detect sniffers on my network possibly from Linux or or
 Windows
 Machines.





 --
 Using Opera's revolutionary email client: http://www.opera.com/mail/






 --
 Using Opera's revolutionary email client: http://www.opera.com/mail/





-- 
--
With regards,
Eugene Sudyr



Re: .xsession never finishes

2011-01-26 Thread Ahlsen-Girard, Edward F CTR USAF AFSOC AFSOC/A6OK
Alexander Hall halex () openbsd ! org wrote at 2011-01-26 16:02:06

 On 01/26/11 14:39, Ed Ahlsen-Girard wrote:
  Recently .xsession began to take much longer to finish.  Upgrading
to
  the 25 Jan snapshot has not changed this.  I don't know how long it
  takes anymore, because I can't wait 5+ minutes every time I log in.
 
  The selected background color does display, and the xconsole log
  displays in the top left corner, but it never goes away and nothing
  else ever shows up.  The mouse pointer moves, but neither button
  accomplishes anything.  X can be run successfully from startx, but
  that's not preferred. My window manager is fvwm. dmesg, .xsession,
and
  rc.conf.local files are below.
 

 Start from the simplest .xsession possible and add stuff one at a
time.

 Also, not all those commands have to be 'd, and FwvmBacker sure has
no
 place there. :-)

 /Alexander



Will do.  I'm still concerned that this began to happen after a lengthy
period of good behavior by .xsession.  It's not like a recent change
broke it.

Ed Ahlsen-Girard



Re: NO-IP not updating!

2011-01-26 Thread Abel Abraham Camarillo Ojeda
On Wed, Jan 26, 2011 at 3:56 AM, Leslie Jensen les...@eskk.nu wrote:
 Hello list.

 I'm quite new to Openbsd, have used Freebsd for a while.

 I have a newly installed Openbsd system.
 OpenBSD machine01.no-ip.org 4.8 GENERIC.MP#335 amd64

 Upon installation of noip I ran the command noip2 -C to configure it.

 I want noip to run a script every 30 minutes that sends a mail to me at the
 end of the updating of the address.

 So I choose the settings accordingly when configuring noip.

 I've put the following in my /etc/rc.local

 --
 # Add your local startup actions here.

 /usr/local/sbin/noip2 

 echo '.'
 --

 When the machine is booted I get the mail, but I do not get the updates
 every 30 minutes as I should.

 I cannot see if the the daemon starts because the line at the startup
screen
 shows only starting local daemons:,

 The command:
 # ps -aux | grep noip

 Gives

 _noip B  B  6013 B 0.0 B 0.2 B  428 B  916 ?? B Is B  B 10:04AM B 
B 0:00.01
 /usr/local/sb

 Top shows the process
 6013 _noip B  B  B 2 B  B 0 B 428K B 916K idle B  B  B select B  B 0:00
B 0.00% noip2

 If I kill that process and start noip2 from the command line it also sends
 the mail at start up but not after the following 30 minutes.

 I'm not sure whether noip is running every 30 minutes I've been tailing
 /var/log/messages and I cannot see anything related to noip there.

 Can anyone on this list point me in the right direction?

 Thanks

 /Leslie



cron(8), maybe?



AR5424 diffirent errors before and after recompiling same kernel

2011-01-26 Thread sergey . kish
My Acer Aspire One 751 shipped with Atheros AR5424.
It isn't supported, but was found during boot

 ath0 at pci2 dev 0 function 0 Atheros AR5424 rev 0x01: apic 2 int 17 (irq 4)
 ath0: AR5424 14.2 phy 7.0 rf 0.0, WOR5_ETSIC, address 00:24:2c:6f:ab:c0

It fails to scan network:

$ ifconfig ath0 scan debug
ath0: unable to reset hardware: hal status 3

I've found that Luis Henriques was able to use it year ago
http://www.mail-archive.com/tech@openbsd.org/msg01613.html

So I've started from recompiling my kernel.
No changes applied just src.tar.gz by ftp and recompiled kernel

Running same command gives me other errors:

$ ifconfig ath0 scan debug
ath0: unable to reset hardware; hal status 200
ath0: unable to reset hardware; hal status 3692322168

Running again gives only second:

$ ifconfig ath0 scan debug
ath0: unable to reset hardware; hal status 3692322168

Why? I've made no changes in kernel and I was waiting for same error (status 3)!

there was no changes except recompiling kernel. I've downloaded src.tar.gz and 
sys.tar.gz from ftp://ftp.spline.de/pub/OpenBSD/4.8/

which is official ftp mirror
12:33  sergeykish then I've used instructions from 
http://openbsd.org/faq/faq5.html 5.3.4 - Building the kernel

12:36  sergeykish yes, AR5424 isn't supported, but I've found 
http://www.mail-archive.com/tech@openbsd.org/msg01613.html
12:36  sergeykish and first step is recompiling kernel and checking same 
behaviour
12:37  sergeykish but for some reason it is changed, why?
12:37  sergeykish (I've recompiled kernel without patch)



AR5424 diffirent errors before and after recompiling same kernel

2011-01-26 Thread sergey . kish
Hello

My Acer Aspire One 751 shipped with Atheros AR5424.
It isn't supported, but was found during boot

 ath0 at pci2 dev 0 function 0 Atheros AR5424 rev 0x01: apic 2 int 17 (irq 4)
 ath0: AR5424 14.2 phy 7.0 rf 0.0, WOR5_ETSIC, address 00:24:2c:6f:ab:c0

It fails to scan network:

$ ifconfig ath0 scan debug
ath0: unable to reset hardware: hal status 3

I've found that Luis Henriques was able to use it year ago
http://www.mail-archive.com/tech@openbsd.org/msg01613.html

So I've started from recompiling my kernel.
No changes were applied, clean src.tar.gz and sys.tar.gz
which I get from the same place as distribution CD
ftp://ftp.spline.de/pub/OpenBSD/4.8/ by FTP.

I've used 5.3.4 - Building the kernel FAQ insturctions
http://openbsd.org/faq/faq5.html

# cd /usr/src/sys/arch/i386/conf
# config GENERIC
# cd ../compile/GENERIC
# make clean  make depend  make
[...lots of output...]
# make install
# reboot

Now running same command gives me other errors:

$ ifconfig ath0 scan debug
ath0: unable to reset hardware; hal status 200
ath0: unable to reset hardware; hal status 3692322168

Running again gives only second:

$ ifconfig ath0 scan debug
ath0: unable to reset hardware; hal status 3692322168

But why? There was no changes except kernel!



Re: Keyboard bell and attach.

2011-01-26 Thread Jacob Meuser
On Thu, Jan 27, 2011 at 12:55:51AM +1030, David Walker wrote:
 I have a machine at work, beige box with 4.8 on it that doesn't like hotplugd.

 I thought it might be the issue with 16 USB devices failing attach so

 Any ideas welcome.

try -current

-- 
jake...@sdf.lonestar.org
SDF Public Access UNIX System - http://sdf.lonestar.org



Re: NO-IP not updating!

2011-01-26 Thread Leslie Jensen

Abel Abraham Camarillo Ojeda skrev 2011-01-26 16:39:

On Wed, Jan 26, 2011 at 3:56 AM, Leslie Jensenles...@eskk.nu  wrote:

Hello list.

I'm quite new to Openbsd, have used Freebsd for a while.

I have a newly installed Openbsd system.
OpenBSD machine01.no-ip.org 4.8 GENERIC.MP#335 amd64

Upon installation of noip I ran the command noip2 -C to configure it.

I want noip to run a script every 30 minutes that sends a mail to me at the
end of the updating of the address.

So I choose the settings accordingly when configuring noip.

I've put the following in my /etc/rc.local

--
# Add your local startup actions here.

/usr/local/sbin/noip2

echo '.'
--

When the machine is booted I get the mail, but I do not get the updates
every 30 minutes as I should.

I cannot see if the the daemon starts because the line at the startup

screen

shows only starting local daemons:,

The command:
# ps -aux | grep noip

Gives

_noip B  B  6013 B 0.0 B 0.2 B  428 B  916 ?? B Is B  B 10:04AM B

B 0:00.01

/usr/local/sb

Top shows the process
6013 _noip B  B  B 2 B  B 0 B 428K B 916K idle B  B  B select B  B 0:00

B 0.00% noip2


If I kill that process and start noip2 from the command line it also sends
the mail at start up but not after the following 30 minutes.

I'm not sure whether noip is running every 30 minutes I've been tailing
/var/log/messages and I cannot see anything related to noip there.

Can anyone on this list point me in the right direction?

Thanks

/Leslie




cron(8), maybe?


It is supposed to work as a daemon with no need for cron!
/L



Re: NO-IP not updating!

2011-01-26 Thread Jeff Ross

On 01/26/11 10:44, Leslie Jensen wrote:

Abel Abraham Camarillo Ojeda skrev 2011-01-26 16:39:

On Wed, Jan 26, 2011 at 3:56 AM, Leslie Jensenles...@eskk.nu wrote:

Hello list.

I'm quite new to Openbsd, have used Freebsd for a while.

I have a newly installed Openbsd system.
OpenBSD machine01.no-ip.org 4.8 GENERIC.MP#335 amd64

Upon installation of noip I ran the command noip2 -C to configure it.

I want noip to run a script every 30 minutes that sends a mail to me
at the
end of the updating of the address.

So I choose the settings accordingly when configuring noip.

I've put the following in my /etc/rc.local

--
# Add your local startup actions here.

/usr/local/sbin/noip2

echo '.'
--

When the machine is booted I get the mail, but I do not get the updates
every 30 minutes as I should.

I cannot see if the the daemon starts because the line at the startup

screen

shows only starting local daemons:,

The command:
# ps -aux | grep noip

Gives

_noip B B 6013 B 0.0 B 0.2 B 428 B 916 ?? B Is B B 10:04AM B

B 0:00.01

/usr/local/sb

Top shows the process
6013 _noip B B B 2 B B 0 B 428K B 916K idle B B B select B B 0:00

B 0.00% noip2


If I kill that process and start noip2 from the command line it also
sends
the mail at start up but not after the following 30 minutes.

I'm not sure whether noip is running every 30 minutes I've been tailing
/var/log/messages and I cannot see anything related to noip there.

Can anyone on this list point me in the right direction?

Thanks

/Leslie




cron(8), maybe?


It is supposed to work as a daemon with no need for cron!
/L


!DSPAM:4d405e91283431811913398!



ktrace the process.

man ktrace and pay attention to how to stop the ktrace process

and

man kdump to see how to read the output.

Hope that helps!

Jeff



Re: Sniffer detector for OpenBSD

2011-01-26 Thread Abel Abraham Camarillo Ojeda
There is no Cuba there...

On Wed, Jan 26, 2011 at 9:28 AM, Evgeniy Sudyr eject.in...@gmail.com wrote:
 Check list of companies which provides support there
 http://openbsd.org/support.html

 On Wed, Jan 26, 2011 at 5:37 PM, Orestes Leal R.
 l...@cubacatering.avianet.cu wrote:
 the only isp in cuba it's named etecsa, here there is no such things like
 multiples isps,
 conections are slow (from 3kilobytes/s to 60kilobytes/s in the better cases
 and rarely)
 conections are expensive, I have internet through my employer and therefore
 my employer
 pays to etecsa for the link.

 como tienes acceso a internet en cuba? yo soy de venezuela btw

 quisiera saber como functiona todo eso en cuba con los isp's, etc.

 On Mon, Jan 24, 2011 at 3:31 PM, Orestes Leal R.
 l...@cubacatering.avianet.cu wrote:

 Actually I understand everything friend don't worry, TODO BIEN!
 Here in Cuba almost no one uses openbsd.

 Thanks a lot,
 LeaL


 I realize after I sent the note that my Spanish was completely screwed.
 My apologies.
 Here.
 Is there anyone close to you that uses openbsd or anyone you know in a
 neighboring country?
 I referenced Mexico and Colombia because help from native speakers may
 be
 more efficient.

 --- On Mon, 1/24/11, Super Biscuit super_bisq...@yahoo.com wrote:

 From: Super Biscuit super_bisq...@yahoo.com
 Subject: Re: Sniffer detector for OpenBSD
 To: Orestes Leal R. l...@cubacatering.avianet.cu
 Cc: misc@openbsd.org misc@openbsd.org
 Date: Monday, January 24, 2011, 5:22 PM

 Try http://openports.se

 Use sniff and sniffer as the search queries.

 No hay nadie acerca de usted que esta usando OpenBSD. Disculpa mi pobre
 Castiliano.
 Talvez son gente en Mexico o Colombia.

 Ja tente, and use the search above.



 --- On Mon, 1/24/11, Orestes Leal R. l...@cubacatering.avianet.cu
 wrote:

 From: Orestes Leal R. l...@cubacatering.avianet.cu
 Subject: Sniffer detector for OpenBSD
 To: misc@openbsd.org misc@openbsd.org
 Date: Monday, January 24, 2011, 5:47 PM

 I've searching an sniffer detector for a LAN in OpenBSD unsucessfully,
 but found Sniffdet (outdated) and doesn't compile on
 OpenBSD4.8 and in all packages I dont know if there is one, any
 suggestions
 about this?

 I need to detect sniffers on my network possibly from Linux or or
 Windows
 Machines.





 --
 Using Opera's revolutionary email client: http://www.opera.com/mail/






 --
 Using Opera's revolutionary email client: http://www.opera.com/mail/





 --
 --
 With regards,
 Eugene Sudyr



Je vous contacte pour vous faire bénéficier d'une étude gratuite

2011-01-26 Thread info-sun
Madame, Monsieur

Je vous contacte pour vous faire binificier d'une itude gratuite

et sans engagement de votre part pour la pose de panneaux
photovoltaoques. 

Ne laissez pas votre toit inactif , Vous possidez un entreptt, une
propriiti,

un bbtiment industriel, une grange ou vous voulez construire un abri, un
au vent,

un garage, un hangar iquipis de panneaux solaires photovoltaoques 

Pas de limite de surface : de 30, 60, 200, 400 ou 5000 m2 et plus,
linstallation produit

de lilectriciti et EDF vous rachhte lilectriciti produite pendant 20
ans par contrat*

Les revenus, nets, de ces installations sont inormes,

1000, 10 000, 20 000, 35 000 euros

et bien plus facturis ` EDF* chaque annie.

COMMENT SAVOIR SI MON TOIT EST RENTABLE ?

Pour plus dinformations contactez-nous(0033)08 20 22 58 45* Prix
appel local

Adressez-nous votre demande par email ` ***\- ((energie-cado...@sfr.fr ))-/***

*sous riserve d'acceptation du dossier et du raccordement par EDF

((. C A D O V I S -- 2- R u e-C r u c y - - 4 4 0 0 5 N a n t e s .))

Si vous ne souhaitez plus recevoir notre newsletter cliquez ici



Re: AR5424 diffirent errors before and after recompiling same kernel

2011-01-26 Thread Hugo Osvaldo Barrera
On 01/26/2011 12:35 PM, sergey.k...@gmail.com wrote:
 My Acer Aspire One 751 shipped with Atheros AR5424.
 It isn't supported, but was found during boot
 
 ath0 at pci2 dev 0 function 0 Atheros AR5424 rev 0x01: apic 2 int 17 (irq 
 4)
 ath0: AR5424 14.2 phy 7.0 rf 0.0, WOR5_ETSIC, address 00:24:2c:6f:ab:c0
 
 It fails to scan network:
 
   $ ifconfig ath0 scan debug
   ath0: unable to reset hardware: hal status 3
 
 I've found that Luis Henriques was able to use it year ago
 http://www.mail-archive.com/tech@openbsd.org/msg01613.html
 
 So I've started from recompiling my kernel.
 No changes applied just src.tar.gz by ftp and recompiled kernel
 
 Running same command gives me other errors:
 
   $ ifconfig ath0 scan debug
   ath0: unable to reset hardware; hal status 200
   ath0: unable to reset hardware; hal status 3692322168
 
 Running again gives only second:
 
   $ ifconfig ath0 scan debug
   ath0: unable to reset hardware; hal status 3692322168
 
 Why? I've made no changes in kernel and I was waiting for same error (status 
 3)!
 
 there was no changes except recompiling kernel. I've downloaded src.tar.gz 
 and sys.tar.gz from ftp://ftp.spline.de/pub/OpenBSD/4.8/
 
 which is official ftp mirror
 12:33  sergeykish then I've used instructions from 
 http://openbsd.org/faq/faq5.html 5.3.4 - Building the kernel
 
 12:36  sergeykish yes, AR5424 isn't supported, but I've found 
 http://www.mail-archive.com/tech@openbsd.org/msg01613.html
 12:36  sergeykish and first step is recompiling kernel and checking same 
 behaviour
 12:37  sergeykish but for some reason it is changed, why?
 12:37  sergeykish (I've recompiled kernel without patch)
 

Short answer, it doesn't work.

http://marc.info/?l=openbsd-miscm=129274716428603w=2
which just points to:
http://marc.info/?l=openbsd-miscm=126420221716157w=2

-- 
Hugo Osvaldo Barrera



Computer stops responding (freezes up) during uncorrectable data error

2011-01-26 Thread Gordon Ferris
I have a disk that has failed; there seem to be damaged areas that 
cause errors when specific files are accessed.  This disk was one of a two-disk 
mirror running raidframe.  The disk has been replaced and the original machine 
is back up and running again.
However as I use a second computer to investigate the failed disk, I 
have been puzzled that this second computer locks up and stops responding when 
I try copying files that include various damaged areas of the disk.  

This second computer has an installation of OpenBSD 4.6, with the 
kernel recompiled to support raidframe (so I can access the data on the 
partition); I have also adjusted the drive numbering so that the failed drive 
believes it is the only disk present in its mirror.  On this second computer, 
the operating system is on a completely different physical disk; the failed 
disk is not necessary for a completely functional system.
However, even though this computer doesn't use the failed disk for its 
root filesystem - the computer still freezes up and stops responding when the 
bad sectors are accessed.
I even tried using the dump and dd utilities to access the disk 
with a raw, unmounted partition - but the host computer still freezes up and 
stops responding after adding a few lines to /var/log/messages.

I was expecting the error messages, but not expecting the host system 
to freeze up - even the mouse stops responding.  It's irritating to have to 
reboot the computer each time I access one of the damaged sectors.
I thought this problem might be caused if the drive controller hardware 
never returns control back to the operating system once the disk error occurs 
too many times.  But the error messages do end up in /var/log/messages, so 
control does return to the operating system for at least a little while.

And yes, repeatedly accessing the same file generates the error 
messages referring to the same sectors.

1.  How can I attempt to access the damaged sectors without causing the entire 
computer to freeze up and stop responding?

2.  I have used stat, ncheck, and fsdb to find and examine the inodes for 
various files.  Is there a utility to show which sectors of the filesystem 
and/or the drive are actually used by various files?

3.  How can I identify all the files that contain bad sectors without freezing 
up the computer on each file that contains one?

# mount
/dev/wd1a on / type ffs (local)
/dev/wd1e on /usr type ffs (local, read-only)
/dev/wd1g on /mnt3 type ffs (local, read-only)
/dev/wd1f on /mnt type ffs (local, read-only)
# fsck -f /dev/rraid2d
** /dev/rraid2d
** File system is already clean
** Last Mounted on /home-big
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
452600 files, 69774853 used, 43730370 free (26658 frags, 5462964 blocks, 0.0% fr
agmentation)

# mount -r /dev/raid2d /mnt2
# mount
/dev/wd1a on / type ffs (local)
/dev/wd1e on /usr type ffs (local, read-only)
/dev/wd1g on /mnt3 type ffs (local, read-only)
/dev/wd1f on /mnt type ffs (local, read-only)
/dev/raid2d on /mnt2 type ffs (local, read-only)

# dd conv=noerror,notrunc,sync \
 if=/mnt2/.../20198332.txt of=/dev/null count=1

The computer stopped responding but these messages were on the console 
and in /var/log/messages on rebooting:
/var/log/messages
Jan 26 08:23:15 one /bsd: wd0f: uncorrectable data error reading fsbn 40104952 o
f 40104952-40104983 (wd0 bn 67174477; cn 4181 tn 106 sn 34), retrying
Jan 26 08:23:18 one /bsd: wd0: transfer error, downgrading to Ultra-DMA mode 4
Jan 26 08:23:18 one /bsd: wd0(pciide2:1:1): using PIO mode 4, Ultra-DMA mode 4
Jan 26 08:23:18 one /bsd: wd0f: uncorrectable data error reading fsbn 40104952 o
f 40104952-40104983 (wd0 bn 67174477; cn 4181 tn 106 sn 34), retrying
Jan 26 08:23:20 one /bsd: wd0: transfer error, downgrading to Ultra-DMA mode 3
Jan 26 08:23:20 one /bsd: wd0(pciide2:1:1): using PIO mode 4, Ultra-DMA mode 3
Jan 26 08:23:20 one /bsd: wd0f: uncorrectable data error reading fsbn 40104952 o
f 40104952-40104983 (wd0 bn 67174477; cn 4181 tn 106 sn 34), retrying
Jan 26 08:23:22 one /bsd: wd0: transfer error, downgrading to Ultra-DMA mode 2
Jan 26 08:23:22 one /bsd: wd0(pciide2:1:1): using PIO mode 4, Ultra-DMA mode 2
Jan 26 08:23:22 one /bsd: wd0f: uncorrectable data error reading fsbn 40104952 o
f 40104952-40104983 (wd0 bn 67174477; cn 4181 tn 106 sn 34), retrying
Jan 26 08:23:25 one /bsd: wd0f: uncorrectable data error reading fsbn 40104976 o
f 40104952-40104983 (wd0 bn 67174501; cn 4181 tn 106 sn 58), retrying

And the error messages are repeatable (especially the failed block 
numbers) if I repeat the command:
Jan 26 10:40:19 one /bsd: wd0f: uncorrectable data error reading fsbn 40104952 
of 40104952-40104983 (wd0 bn 67174477; cn 4181 tn 106 sn 34), retrying
Jan 26 10:40:21 one /bsd: wd0f: uncorrectable data 

Dear,misc: 問卷調查首三百位送1公升裝漆油1罐

2011-01-26 Thread survey
Having problems viewing this email? Please click here.For enquiry, please send 
email to imagineimageb...@yahoo.com.hk 

eg!f3i1h.d;%d8ge'e.9oh+f   f-$.ef   
d;;d=f%h)h+i;i5h3  imagineimageb...@yahoo.com.hk





eff(d8
f3e
f6e0fegd?!d;6oh+fih#ie.

Important Notice: Base on the Unsolicited Electronic Messages Ordinance, if you 
DO NOT want to receive any promotional email messages from us in the future, 
please kindly reply this e-mail for DELETION. If you would like to continue to 
receive our promotional email massages, you do not need to reply us.



Re: Computer stops responding (freezes up) during uncorrectable data error

2011-01-26 Thread Amit Kulkarni
pardon my ignorance but if you restored your data already, why bother
investigating disk failure?

On Wed, Jan 26, 2011 at 6:50 PM, Gordon Ferris
gordon.fer...@wfengineering.com wrote:
I have a disk that has failed; there seem to be damaged areas that
cause errors when specific files are accessed.  This disk was one of a
two-disk mirror running raidframe.  The disk has been replaced and the
original machine is back up and running again.
However as I use a second computer to investigate the failed disk, I
have been puzzled that this second computer locks up and stops responding when
I try copying files that include various damaged areas of the disk.

This second computer has an installation of OpenBSD 4.6, with the
kernel recompiled to support raidframe (so I can access the data on the
partition); I have also adjusted the drive numbering so that the failed drive
believes it is the only disk present in its mirror.  On this second computer,
the operating system is on a completely different physical disk; the failed
disk is not necessary for a completely functional system.
However, even though this computer doesn't use the failed disk for
its root filesystem - the computer still freezes up and stops responding when
the bad sectors are accessed.
I even tried using the dump and dd utilities to access the disk
with a raw, unmounted partition - but the host computer still freezes up and
stops responding after adding a few lines to /var/log/messages.

I was expecting the error messages, but not expecting the host system
to freeze up - even the mouse stops responding.  It's irritating to have to
reboot the computer each time I access one of the damaged sectors.
I thought this problem might be caused if the drive controller
hardware never returns control back to the operating system once the disk
error occurs too many times.  But the error messages do end up in
/var/log/messages, so control does return to the operating system for at least
a little while.

And yes, repeatedly accessing the same file generates the error
messages referring to the same sectors.

 1.  How can I attempt to access the damaged sectors without causing the
entire computer to freeze up and stop responding?

 2.  I have used stat, ncheck, and fsdb to find and examine the inodes for
various files.  Is there a utility to show which sectors of the filesystem
and/or the drive are actually used by various files?

 3.  How can I identify all the files that contain bad sectors without
freezing up the computer on each file that contains one?

 # mount
 /dev/wd1a on / type ffs (local)
 /dev/wd1e on /usr type ffs (local, read-only)
 /dev/wd1g on /mnt3 type ffs (local, read-only)
 /dev/wd1f on /mnt type ffs (local, read-only)
 # fsck -f /dev/rraid2d
 ** /dev/rraid2d
 ** File system is already clean
 ** Last Mounted on /home-big
 ** Phase 1 - Check Blocks and Sizes
 ** Phase 2 - Check Pathnames
 ** Phase 3 - Check Connectivity
 ** Phase 4 - Check Reference Counts
 ** Phase 5 - Check Cyl groups
 452600 files, 69774853 used, 43730370 free (26658 frags, 5462964 blocks,
0.0% fr
 agmentation)

 # mount -r /dev/raid2d /mnt2
 # mount
 /dev/wd1a on / type ffs (local)
 /dev/wd1e on /usr type ffs (local, read-only)
 /dev/wd1g on /mnt3 type ffs (local, read-only)
 /dev/wd1f on /mnt type ffs (local, read-only)
 /dev/raid2d on /mnt2 type ffs (local, read-only)

 # dd conv=noerror,notrunc,sync \
 if=/mnt2/.../20198332.txt of=/dev/null count=1

The computer stopped responding but these messages were on the
console and in /var/log/messages on rebooting:
 /var/log/messages
 Jan 26 08:23:15 one /bsd: wd0f: uncorrectable data error reading fsbn
40104952 o
 f 40104952-40104983 (wd0 bn 67174477; cn 4181 tn 106 sn 34), retrying
 Jan 26 08:23:18 one /bsd: wd0: transfer error, downgrading to Ultra-DMA mode
4
 Jan 26 08:23:18 one /bsd: wd0(pciide2:1:1): using PIO mode 4, Ultra-DMA mode
4
 Jan 26 08:23:18 one /bsd: wd0f: uncorrectable data error reading fsbn
40104952 o
 f 40104952-40104983 (wd0 bn 67174477; cn 4181 tn 106 sn 34), retrying
 Jan 26 08:23:20 one /bsd: wd0: transfer error, downgrading to Ultra-DMA mode
3
 Jan 26 08:23:20 one /bsd: wd0(pciide2:1:1): using PIO mode 4, Ultra-DMA mode
3
 Jan 26 08:23:20 one /bsd: wd0f: uncorrectable data error reading fsbn
40104952 o
 f 40104952-40104983 (wd0 bn 67174477; cn 4181 tn 106 sn 34), retrying
 Jan 26 08:23:22 one /bsd: wd0: transfer error, downgrading to Ultra-DMA mode
2
 Jan 26 08:23:22 one /bsd: wd0(pciide2:1:1): using PIO mode 4, Ultra-DMA mode
2
 Jan 26 08:23:22 one /bsd: wd0f: uncorrectable data error reading fsbn
40104952 o
 f 40104952-40104983 (wd0 bn 67174477; cn 4181 tn 106 sn 34), retrying
 Jan 26 08:23:25 one /bsd: wd0f: uncorrectable data error reading fsbn
40104976 o
 f 40104952-40104983 (wd0 bn 67174501; cn 4181 tn 106 sn 58), retrying

And the error messages are repeatable (especially the failed block
numbers) if I repeat the command:
 

Re: Computer stops responding (freezes up) during uncorrectable data error

2011-01-26 Thread Ted Unangst
On Wed, Jan 26, 2011 at 10:00 PM, Amit Kulkarni amitk...@gmail.com wrote:
 pardon my ignorance but if you restored your data already, why bother
 investigating disk failure?

Unless they are all the same person, there seems to be a sudden rash
of people who want to bring a disk back from the dead because they are
unwilling or unable to do the math on how much disks cost, how much
time costs, and what the future integrity of their data is worth.  I
don't know why this is, but I do know disks die, buy new ones is the
correct answer to give them.



allocation bandwidth with cbq

2011-01-26 Thread Indunil Jayasooriya
Hi list,

I am trying to allocate bandwidth with cbq. I just want to allocate 80Kbps
for a student. I do Not want him to borrow the bandwidth when it is
available. I am on a 64 bit openbsd 4.8 stable.


**I went to the below URL. I studied *example 1*  , Small, Home network
http://www.openbsd.org/faq/pf/queueing.html


and wrote my rules. But, I still can NOT allocate 80Kbps for the student,
while downloading. it goes up whole a lot.  here are my rules. ( em0  is
ext_if and em1 is int_if )


# enable queueing on the external interface to control traffic going to
# the Internet. use the priq scheduler to control only priorities. set
# the bandwidth to 485Kbps to get the best performance out of the TCP
# ACK queue.

altq on em0 priq bandwidth 485Kb queue { std_out, ssh_im_out, dns_out, \
tcp_ack_out }

# define the parameters for the child queues.
# std_out  - the standard queue. any filter rule below that does not
#explicitly specify a queue will have its traffic added
#to this queue.
# ssh_im_out   - interactive SSH and various instant message traffic.
# dns_out  - DNS queries.
# tcp_ack_out  - TCP ACK packets with no data payload.

queue std_out priq(default)
queue ssh_im_out  priority 4 priq(red)
queue dns_out priority 5
queue tcp_ack_out priority 6

# enable queueing on the internal interface to control traffic coming in
# from the Internet. use the cbq scheduler to control bandwidth. max
# bandwidth is 2Mbps.

altq on em1 cbq bandwidth 2Mb queue { std_in, ssh_im_in, dns_in, student_in
}

# define the parameters for the child queues.
# std_in  - the standard queue. any filter rule below that does not
#   explicitly specify a queue will have its traffic added
#   to this queue.
# ssh_im_in   - interactive SSH and various instant message traffic.
# dns_in  - DNS replies.
# student_in  - bandwidth reserved for  the workstation.
#

queue std_in bandwidth 1.6Mb cbq(default)
queue ssh_im_in  bandwidth 200Kb priority 4
queue dns_in bandwidth 120Kb priority 5
queue student_in bandwidth 80Kb cbq


clienttcpports={ 21, 80, 8080, 443 }
clientudpports={ 53 }


# FTP-Proxy
anchor ftp-proxy/*
pass in quick on $int_if proto tcp from $lan_net to any port 21 \
flags S/SA keep state rdr-to 127.0.0.1 port 8021

# Squid Redirect
pass in quick on $int_if proto tcp from $lan_net to any port { 80 8080 } \
flags S/SA keep state rdr-to 127.0.0.1 port 3128

# filter rules
block in log
block out log
#pass out log keep state

antispoof quick for { lo $int_if ext_if }


pass in log on $int_if inet proto udp from $lan_net to !$int_if \
  port $clientudpports keep state

pass in log on $int_if inet proto tcp from $lan_net to !$int_if \
  port $https flags S/SA keep state


pass out log on $ext_if inet proto udp from $ext_if to any \
  port $clientudpports keep state queue dns_out

pass out log on $ext_if inet proto tcp from  $ext_if to any \
  port $clienttcpports flags S/SA modulate state queue(std_out, tcp_ack_out)



pass out on $int_if proto udp from port $clientudpports to $student_pc \
queue dns_in

pass out on $int_if proto tcp from port $clienttcpports to $student_pc \
queue student_in



there are some more rules. I think the given rules are enough..


any ideas?






-- 
Thank you
Indunil Jayasooriya



Re: Computer stops responding (freezes up) during uncorrectable data error

2011-01-26 Thread Gordon Ferris
We waited too long to replace the failed drive, so there were errors on both 
drives in the mirror, so the data was not completely restored.  Backups were 
not as recent as we would have liked.  Since the drive didn't completely fail, 
it seemed worth trying to retrieve some data where possible from it.

1.  Is it normal for the operating system to freeze when accessing damaged 
sectors - even if the only access is via a raw, unmounted partition?  This 
seems like a hardware problem to me, except that errors are logged to 
/var/log/messages as I described in the original post.

2.  What utilities will show which sectors are occupied by specific files?  
Ideally I could specify a range of sectors and a list of files using those 
sectors would be provided.  It would also be nice to specify files and be shown 
which sectors they occupy.  I've heard of the Coroner's Toolkit; are there any 
other recommendations?


On Thu, Jan 27, 2011 at 12:02:44AM -0500, Ted Unangst wrote:
 On Wed, Jan 26, 2011 at 10:00 PM, Amit Kulkarni amitk...@gmail.com wrote:
  pardon my ignorance but if you restored your data already, why bother
  investigating disk failure?
 
 Unless they are all the same person, there seems to be a sudden rash
 of people who want to bring a disk back from the dead because they are
 unwilling or unable to do the math on how much disks cost, how much
 time costs, and what the future integrity of their data is worth.  I
 don't know why this is, but I do know disks die, buy new ones is the
 correct answer to give them.