softraid device mismatch
Greetings-- I have 4 SATA disks configured as 2 raid-1 arrays on a 4.3 box (i386). # bioctl -c 1 -l /dev/sd0a,/dev/sd1a softraid0 # bioctl -c 1 -l /dev/sd2a,/dev/sd3a softraid0 sd0a and sd1a are sd4, sd2a and sd3a are sd5: # bioctl softraid0 Volume Status Size Device softraid0 0 Online 750153704448 sd5 RAID1 0 Online 750153704448 0:0.0 noencl 1 Online 750153704448 0:1.0 noencl softraid0 1 Online 750153704448 sd4 RAID1 0 Online 750153704448 1:0.0 noencl 1 Online 750153704448 1:1.0 noencl All was perfect until a reboot... now even though the output from bioctl is the same, sd0a and sd1a are really sd5, and sd2a and sd3a are sd4, according to 'vmstat iostat' during an 'fsck -fy /dev/sd4a': 4 usersLoad 0.42 0.30 0.32 Thu May 15 13:06:42 2008 Device rKByteswKBytesrtps wtps sec wd00 0 0 0 0.0 cd00 0 0 0 0.0 sd00 0 0 0 0.0 sd10 0 0 0 0.0 sd213656 0 220 0 0.2 sd313924 0 220 0 0.2 sd427580 0 439 0 0.4 sd50 0 0 0 0.0 Totals 55160 0 879 0 0.9 And the data for sd4a is really on sd2 and sd3, as verified by physically removing disks sd0 and sd1 and seeing what's there on the next boot. And bioctl shows sd4 or sd5 even when only one pair of disks is in the machine and softraid puts the new array on sd2. So far, this hasn't caused a problem as far as the data goes. I noticed it after copying tens of gigs over to the array. The only effect seems to be a mismatch between the device used by softraid and the label reported by bioctl after the first boot since array creation. Is having two arrays with softraid safe yet? Frank
Re: bluefish or other web design tools
On Apr 19, 2006, at 10:00 AM, Jacob Yocom-Piatt wrote: Original message Date: Wed, 19 Apr 2006 10:39:04 -0400 (EDT) From: Peter <[EMAIL PROTECTED]> Subject: Re: bluefish or other web design tools To: [EMAIL PROTECTED], misc@openbsd.org --- Jacob Yocom-Piatt <[EMAIL PROTECTED]> wrote: i'm trying to migrate my web development to openbsd from winxp where i use dreamweaver. i want to have similar functionality to dreamweaver: a WYSIWYG interface, SFTP file transfers and code coloring. is this too much to ask for? i have installed the bluefish package on a post-3.9 current machine and that works fine, but i can't figure out how to use SFTP to transfer site files to and from a remote server. sftp is like ssh and scp: use the command line. Can you be more specific on how this is failing you? it isn't that it's failing me so much as i don't appear to have the same option as i do under dreamweaver in this regard. you can check out/in a site using SFTP under dreamweaver when you're working on a webserver that is remote. this way, you needn't make manual use of SFTP to upload individual files or get the most recent files you've checked in. i'm not too keen on having to manually do these transfers since it wastes time. also, there a number of packages and configuration changes i've made to the webserver that the code is supposed to run on, making it inconvenient to replicate such a setup on the local machine where i'm coding. #### # workstation## webserver # # running bluefish ## w/ extra packages and # ### configuration # ## Actually, in any of the kde programs I've used on OpenBSD since 3.7 (including Quanta) you just enter [s]ftp://[EMAIL PROTECTED]/path/to/file in the location bar of the Save or Open dialog box, and it'll do the right thing. That behavior may have been there before, that's just when I noticed it. Frank
Re: throwing out the switch
On Apr 9, 2006, at 12:10 PM, Jeff Quast wrote: On 4/9/06, Joachim Schipper <[EMAIL PROTECTED]> wrote: On Sat, Apr 08, 2006 at 01:04:33PM -0400, Jeff Quast wrote: I've been using openbsd+pf for a router for some time at a neighbor's house. The router has been upgraded and now has several NIC's. I'd like to use multiple interfaces with crossover cables instead of a single interface with a switch behind it for the internal network, how would this best be done? I attempted to bridge all of the internal interfaces, but I don't think this would do what I need it to, since a bridge can't have an IP address, and it did not apear to work. You could bridge them - this would be the classical 'switch' solution. How to get this done is another question. dc0 was the classic internal interface running dhcpd. I kept that interface as-is. I set dc1, dc2, and rl0 as (only) "up" in their hostname.if files. I placed dc0, dc1, dc2, and rl0 into bridgename.bridge0 with default settings, like add dc0 add dc1, etc. brconfig showed bridge0 as it probobly should apear. Mac addresses of each client were listed on the proper port. dhcpd would not respond to client requests. I could use tcpdump on, say rl0 and see the dhcpd requests, but I did not see it on dc0. with IP addresses set manually, a client on dc2 could not ping a client of the same subnet on dc1, etc. I assumed the bridge did not do what I thought it was supposed to do, and dropped it. Did you tell dhcpd to listen on the bridge (or the individual interfaces) in /etc/dhcpd.interfaces? Frank
Re: rotating apache logs
On Friday 31 March 2006 01:05, Peter wrote: > Hi. What is the best way to rotate apache logs on OpenBSD? Ideally I > would like to create a new one at the beginning of each month. I > searched my system for logrotate and could not find it. > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com Have a look at cronolog in the ports tree, I've used that with success. Frank