From owner-freebsd-scsi Sun Nov 23 05:50:19 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id FAA11530 for freebsd-scsi-outgoing; Sun, 23 Nov 1997 05:50:19 -0800 (PST) (envelope-from owner-freebsd-scsi) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id FAA11517 for ; Sun, 23 Nov 1997 05:50:15 -0800 (PST) (envelope-from j@uriah.heep.sax.de) Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id OAA20529; Sun, 23 Nov 1997 14:50:14 +0100 Received: (from j@localhost) by uriah.heep.sax.de (8.8.8/8.8.5) id OAA00857; Sun, 23 Nov 1997 14:24:24 +0100 (MET) Message-ID: <19971123142423.KH03878@uriah.heep.sax.de> Date: Sun, 23 Nov 1997 14:24:23 +0100 From: j@uriah.heep.sax.de (J Wunsch) To: FreeBSD-scsi@FreeBSD.ORG (FreeBSD hackers list) Cc: wilko@yedi.iaf.nl (Wilko Bulte) Subject: Re: volume control on SCSI Toshiba CDdrive References: <199711212325.AAA06628@yedi.iaf.nl> X-Mailer: Mutt 0.60_p2-3,5,8-9 Mime-Version: 1.0 X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <199711212325.AAA06628@yedi.iaf.nl>; from Wilko Bulte on Nov 22, 1997 00:25:59 +0100 Sender: owner-freebsd-scsi@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk (Moved to -scsi) As Wilko Bulte wrote: > I just changed my old 4x Toshiba cdrom to a 12x Toshiba. > To be precise, it is a TOSHIBA CD-ROM XM-5701TA 3136. > > The 4x Toshiba audio volume was controllable using the WorkMan 'slide'. > It seems that the 12x Toshiba does not respond to this. AFAIK > the volume stuff is part of the SCSI standard these days. > > Any comments of fellow XM5701 owners? Yep, i've thrown out the XM5701 again after realizing this. Seems the PeeCee world really spits out crap only these days. :-( -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-) From owner-freebsd-scsi Sun Nov 23 12:39:14 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id MAA00109 for freebsd-scsi-outgoing; Sun, 23 Nov 1997 12:39:14 -0800 (PST) (envelope-from owner-freebsd-scsi) Received: from misery.sdf.com (misery.sdf.com [204.244.210.193]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id MAA29992; Sun, 23 Nov 1997 12:38:45 -0800 (PST) (envelope-from tom@sdf.com) Received: from tom by misery.sdf.com with smtp (Exim 1.73 #1) id 0xZieL-0000Pi-00; Sun, 23 Nov 1997 12:29:01 -0800 Date: Sun, 23 Nov 1997 12:27:58 -0800 (PST) From: Tom To: Stefan Esser cc: Chris Dillon , freebsd-scsi@freebsd.org Subject: Re: Advice on new SCSI hardware In-Reply-To: <19971123004701.18502@mi.uni-koeln.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-scsi@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Sun, 23 Nov 1997, Stefan Esser wrote: > On 1997-11-19 23:05 -0800, Tom wrote: > > Tekram? Why? All the tekram controllers I know are dogs. > > What do you mean by that ? I was speaking of the old Tekram cards (ie non-PCI). > > A NCR875 based card (like the Diamand Fireport 40) are pretty cheap, and > > fast. The Adaptec 2940 series performs a bit better handling lots of > > requests, but is kinda of expensive. However, some motherboards come with > > aic7880 (Adaptec) UW controller on the motherboard, for way less. > > The on-board SCSI chips have the advantage, that they > don't require a valuable PCI slot. But in fact they > are often more expensive than a standard motherboard > and a seperate NCR/Symbios SCSI card, which can be Really? I don't find this at all, with the motherboards with builin aic7880 chips. Very cheap generallly (like the ASUS P55T2P4S, or the new ASUS P2L97-S). > moved into your next system, while the on-board chip > can't ... I don't know about you, but any old motherboard gets up getting used somewhere else, around here, so the fact the SCSI is builtin is not an issue. > I never regetted buying an ASUS SP3G with an on-board > ncr53c810 controller some 3 years ago ... I have one of those too. > Regards, STefan > > Tom From owner-freebsd-scsi Sun Nov 23 16:56:18 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id QAA18869 for freebsd-scsi-outgoing; Sun, 23 Nov 1997 16:56:18 -0800 (PST) (envelope-from owner-freebsd-scsi) Received: from mail.triplet.net ([205.216.84.3]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id QAA18863 for ; Sun, 23 Nov 1997 16:56:16 -0800 (PST) (envelope-from jemstone@triplet.net) Received: from z9a2d9 ([205.216.84.119]) by mail.triplet.net (8.8.5/8.8.5) with SMTP id TAA00812 for ; Sun, 23 Nov 1997 19:56:14 -0500 (EST) From: "James E. Marker" To: Subject: Hard Drive Mount Locations....or DPT RAID0? Date: Sun, 23 Nov 1997 19:50:49 -0500 Message-ID: <01bcf873$01e14800$7754d8cd@z9a2d9> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.71.1712.3 X-Mimeole: Produced By Microsoft MimeOLE V4.71.1712.3 Sender: owner-freebsd-scsi@freebsd.org X-Loop: FreeBSD.org Precedence: bulk I originally posted this to freebsd-questions, and someone suggested I post it here also. ----Original Message----- From: James E. Marker To: freebsd-questions@freebsd.org Date: Sunday, November 23, 1997 12:52 PM Subject: Hard Drive Mount Locations....or DPT RAID0? >I am running FreeBSD 2.2.2 on a PentPro-200 with 64 Meg >of RAM. > >Questions: > >1. Can I have a hard drive mounted as /var and also mount > two other hard drive as /var/msg and /var/msg/alt? > > I am trying to set up two 9 gig drives to hold news. > > The final configuration will be a 2 gig drive for /usr, > a 2 gig drive for /var, a 9 gig drive for /var/msg, and > a 9 gig drive for /var/msg/alt. All the drives are ultra- > wide SCSI drives with an adaptec 2940 controller. > >2. Or, has anyone made a DPT SmartCacheIV PM2044UW > with a RC4040 RAID adapter work with FreeBSD? I asked > this once before, but got no responses. > > If I can get this combination to work, I will have a 2 gig > drive for /usr and a RAID0 array of a 2 gig, and two 9 gig > drives as /var. > >Sorry, multiple drives are new to me. > >Thanks... > >Jim... > From owner-freebsd-scsi Sun Nov 23 18:25:00 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id SAA24292 for freebsd-scsi-outgoing; Sun, 23 Nov 1997 18:25:00 -0800 (PST) (envelope-from owner-freebsd-scsi) Received: from misery.sdf.com (misery.sdf.com [204.244.210.193]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id SAA24286 for ; Sun, 23 Nov 1997 18:24:55 -0800 (PST) (envelope-from tom@sdf.com) Received: from tom by misery.sdf.com with smtp (Exim 1.73 #1) id 0xZo47-0000XT-00; Sun, 23 Nov 1997 18:15:59 -0800 Date: Sun, 23 Nov 1997 18:15:57 -0800 (PST) From: Tom To: "James E. Marker" cc: freebsd-scsi@freebsd.org Subject: Re: Hard Drive Mount Locations....or DPT RAID0? In-Reply-To: <01bcf873$01e14800$7754d8cd@z9a2d9> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-scsi@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Sun, 23 Nov 1997, James E. Marker wrote: > I originally posted this to freebsd-questions, and someone suggested I post > it here also. > > ----Original Message----- > From: James E. Marker > To: freebsd-questions@freebsd.org > Date: Sunday, November 23, 1997 12:52 PM > Subject: Hard Drive Mount Locations....or DPT RAID0? > > > >I am running FreeBSD 2.2.2 on a PentPro-200 with 64 Meg > >of RAM. > > > >Questions: > > > >1. Can I have a hard drive mounted as /var and also mount > > two other hard drive as /var/msg and /var/msg/alt? Yes, just make sure you always mount things in the right order. BTW, this works the same on all Unix systems. > > I am trying to set up two 9 gig drives to hold news. Ouch. 9GB drives are kinda big for news. Generally hurts how many transactions you can process per second. 9GB are passable for alt.binaries, but I find them useless for everything else. Hopefull, this will only be a lightly used system, or only take a partial feed. > > The final configuration will be a 2 gig drive for /usr, > > a 2 gig drive for /var, a 9 gig drive for /var/msg, and > > a 9 gig drive for /var/msg/alt. All the drives are ultra- > > wide SCSI drives with an adaptec 2940 controller. > > > >2. Or, has anyone made a DPT SmartCacheIV PM2044UW > > with a RC4040 RAID adapter work with FreeBSD? I asked > > this once before, but got no responses. There is a DPT drive available as patch. The author has made it available as part of another project. I find it works well (I use a DPT PM334). See SCSI archives. > > If I can get this combination to work, I will have a 2 gig > > drive for /usr and a RAID0 array of a 2 gig, and two 9 gig > > drives as /var. > > > >Sorry, multiple drives are new to me. > > > >Thanks... > > > >Jim... > > > > > Tom From owner-freebsd-scsi Mon Nov 24 00:45:42 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id AAA17054 for freebsd-scsi-outgoing; Mon, 24 Nov 1997 00:45:42 -0800 (PST) (envelope-from owner-freebsd-scsi) Received: from mrelay.jrc.it (mrelay.jrc.it [139.191.1.65]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id AAA17048 for ; Mon, 24 Nov 1997 00:45:37 -0800 (PST) (envelope-from nick.hibma@jrc.it) Received: from stimsrv.sti.jrc.it by mrelay.jrc.it (4.1/EB-950131-C) id AA08604; Mon, 24 Nov 97 09:44:44 +0100 Received: from alice.sti.jrc.it by stimsrv.sti.jrc.it; (5.65v3.2/1.1.8.2/27May94-0250PM) id AA03831; Mon, 24 Nov 1997 09:43:41 +0100 Received: from localhost by alice.sti.jrc.it; (5.65v3.2/1.1.8.2/27May94-0250PM) id AA11729; Mon, 24 Nov 1997 09:43:41 +0100 To: jemstone@triplet.net Cc: freebsd-scsi@FreeBSD.ORG Subject: Re: Hard Drive Mount Locations....or DPT RAID0? In-Reply-To: Your message of "Sun, 23 Nov 97 19:50:49 EST." <01bcf873$01e14800$7754d8cd@z9a2d9> Date: Mon, 24 Nov 97 09:43:41 +0100 Message-Id: <11714.880361021@alice.sti.jrc.it> From: "Nick Hibma" X-Mts: smtp Sender: owner-freebsd-scsi@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk .> I am trying to set up two 9 gig drives to hold news. Make sure you configure lots and lots and lots of inodes for these drives. News is very heavy on the number of files. 9Gb = 9 * 10^9 bytes and a news article is on average 1~2 Kb -> 9*10^6 inodes requires at least! .>1. Can I have a hard drive mounted as /var and also mount .> two other hard drive as /var/msg and /var/msg/alt? You can mount a drive anywhere you want. Example: /dev/dsk/c0t3d0s0 /dev/rdsk/c0t3d0s0 / ufs 1 no - /dev/dsk/c0t3d0s3 /dev/rdsk/c0t3d0s3 /usr ufs 1 no - /dev/dsk/c0t3d0s6 /dev/rdsk/c0t3d0s6 /usr/openwin ufs 2 y slice 6 contains everything in /usr/openwin and subdirs thereof. /usr contains everything in /usr and subdirs thereof, except from the files in /usr/openwin. / (root) contains everything that isn;t below /usr in the subtree. /spool /var /log /msg / (and the tree gets wider and wider) /openwin /usr /cdrom /local /games So /var/msg will do things to /var similar to what /var does to / (root). Nick. From owner-freebsd-scsi Mon Nov 24 12:32:58 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id MAA02835 for freebsd-scsi-outgoing; Mon, 24 Nov 1997 12:32:58 -0800 (PST) (envelope-from owner-freebsd-scsi) Received: from isolar.Tujunga.CA.US (root@[128.149.24.254]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id MAA02830 for ; Mon, 24 Nov 1997 12:32:54 -0800 (PST) (envelope-from earle@isolar.Tujunga.CA.US) Received: from localhost.tujunga.ca.us by isolar.Tujunga.CA.US (4.1/SATAN-6.6.6) id AA24312; Mon, 24 Nov 97 12:31:29 PST Message-Id: <9711242031.AA24312@isolar.Tujunga.CA.US> X-Mailer: exmh version 2.0zeta 7/24/97 To: bde@zeta.org.au Cc: freebsd-scsi@freebsd.org, gibbs@plutotech.com Subject: Re: FreeBSD 2.1-STABLE: Why can't I disklabel a SCSI disk? In-Reply-To: Your message of "Sun, 31 Aug 1997 11:08:48 +1000." <199708310108.LAA13107@godzilla.zeta.org.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 24 Nov 1997 12:30:19 -0800 From: Greg Earle Sender: owner-freebsd-scsi@freebsd.org X-Loop: FreeBSD.org Precedence: bulk A few months ago Bruce Evans (and others) helped me with a disk labelling problem I had trying to disk label a 4 Gb Seagate Barracuda to be the same DOS-translated geometry labelled as my other existing disks. Based on the other existing disks, I had come up with a prototype /etc/disktab entry and had tried to use it, getting the following error: partition c: partition extends past end of unit Bruce Evans replied as follows: >> xxxx1# tail -5 /etc/disktab >> >> seagate15150|Seagate ST15150N:\ >> :dt=SCSI:ty=winchester:ns#63:nt#255:nc#521:\ >> :pc#8385867:oc#0: >> >> (I changed the disktab entry to reflect the DOS remapped geometry) > > You didn't specify su#, so the disk size is ns*nt*nc = 63*255*521 = 8369865. > >> xxxx1# disklabel -w -r sd1 seagate15150 >> partition c: partition extends past end of unit > > oc+pc extends past end of unit. I kind of dropped the ball on this (he said, sheepishly) as the going-bad disk went into a lull where it wasn't having the same problems as before. Well, sure enough, it went south over the weekend and now I have to deal with it right away. I tried adding Bruce's "su#" entry as follows: nntp1# tail -4 /etc/disktab seagate15150|Seagate ST15150N:\ :dt=SCSI:ty=winchester:ns#63:nt#255:nc#521:\ :su#8385867:pc#8385867:oc#0: figuring that pc + oc == su. Well, now I get a new error: nntp1# disklabel -w -r sd1 seagate15150 disklabel: ioctl DIOCSDINFO: Open partition would move or shrink I don't understand this at all. Which partition is "open" and why is it considered "open"? Simply because the disk label has been read into memory? This *seems* to be addressed by the "DIAGNOSTICS" section of disklabel(8): DIAGNOSTICS The kernel device drivers will not allow the size of a disk partition to be decreased or the offset of a partition to be changed while it is open. Some device drivers create a label containing only a single large parti- tion if a disk is unlabeled; thus, the label must be written to the ``a'' partition of the disk while it is open. This sometimes requires the de- sired label to be set in two steps, the first one creating at least one other partition, and the second setting the label on the new partition while shrinking the ``a'' partition. but to be honest, I don't parse this paragraph at all. I tried creating an "a" partition (same size as "c") which worked (disklabel -e) but I still get the same thing when I try to use the disktab entry. I tried to zero-out the present disklabel and this failed as well. This worked back when the drive was new (i.e. had never been put into the FreeBSD machine). Now it doesn't: xxxx1# dd if=/dev/zero of=/dev/rsd1c bs=1 count=2 dd: /dev/rsd1c: Invalid argument 1+0 records in 0+0 records out 0 bytes transferred in 1 secs (0 bytes/sec) xxxx1# dd if=/dev/zero of=/dev/rsd1 bs=1 count=2 dd: /dev/rsd1: Invalid argument 1+0 records in 0+0 records out 0 bytes transferred in 1 secs (0 bytes/sec) Any enlightenment you can provide would be greatly appreciated. (cc'd to Justin Gibbs and freebsd-scsi in case it's still too early in Australia for Bruce to see this, also in hopes someone can shed some light on the DIAGNOSTICS paragraph above vis a vis my DIOCSDINFO error. The box in question is JPL's main Usenet newsfeed box, and I need to get this disk disklabelled a.s.a.p. so I can try to back up the failed disk and get the server back in service.) Thanks in advance, - Greg P.S. This is on a Pentium 133 box running FreeBSD 2.1-STABLE. From owner-freebsd-scsi Mon Nov 24 19:55:16 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id TAA05669 for freebsd-scsi-outgoing; Mon, 24 Nov 1997 19:55:16 -0800 (PST) (envelope-from owner-freebsd-scsi) Received: from grizzly.fas.com (chs0326.awod.com [208.140.97.86]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id TAA05657 for ; Mon, 24 Nov 1997 19:55:10 -0800 (PST) (envelope-from stanb@awod.com) Message-Id: <199711250355.TAA05657@hub.freebsd.org> Received: by grizzly.fas.com ($Revision: 1.37.109.23 $/16.2) id AA235730105; Mon, 24 Nov 1997 22:55:05 -0500 Subject: ccd setup help please. To: freebsd-scsi@freebsd.org Date: Mon, 24 Nov 1997 22:55:05 -0500 (EST) From: "Stan Brown" X-Mailer: ELM [version 2.4 PL24] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-scsi@freebsd.org X-Loop: FreeBSD.org Precedence: bulk I am trying to set up 2 drives asone logical filesystem using the ccd driver under 2.2-STABLE of a few months back. This is my first atempt to set up a disk by hand uder FreeBSD, so I must bedoing somethng stupid. Here is waht I have done: 1. Recompiled the kernel with ccd driver 2. did a MAKDEV ccd0 3. didi a disklable -r -w /dev/sd0 (and sd1 & sd2) 4. Didi a dikslable -e on /dev/sd0c (and 1 and 2) and changed the partition type to FreeBSD 5. did ccdconfig 16 0 sd0 sd1 sd2 at this point I get a kernel error message about Primary Partition having a bad magic number. 6. newfs /dev/ccd0 ( at this point I start to get alternate superblocks, but shortly my computer hangs). Am I doing something wrong here? Any advice would be appreciated. -- Stan Brown stanb@netcom.com 770-996-6955 Factory Automation Systems Atlanta Ga. -- Look, look, see Windows 95. Buy, lemmings, buy! Pay no attention to that cliff ahead... Henry Spencer (c) 1997 Stan Brown. Redistribution via the Microsoft Network is prohibited. From owner-freebsd-scsi Mon Nov 24 21:13:40 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id VAA11283 for freebsd-scsi-outgoing; Mon, 24 Nov 1997 21:13:40 -0800 (PST) (envelope-from owner-freebsd-scsi) Received: from nomis.Simon-Shapiro.ORG (nomis.i-Connect.Net [206.190.143.100]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id VAA11260 for ; Mon, 24 Nov 1997 21:13:31 -0800 (PST) (envelope-from shimon@nomis.Simon-Shapiro.ORG) Received: (qmail 12284 invoked by uid 1000); 25 Nov 1997 05:13:31 -0000 Message-ID: X-Mailer: XFMail 1.2-beta-111797 [p0] on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: Date: Mon, 24 Nov 1997 21:13:31 -0800 (PST) Reply-To: shimon@simon-shapiro.org Organization: Me, Just me... From: Simon Shapiro To: Ricardo Kleemann Subject: Re: DPT PM2144UWR Cc: freebsd-scsi@freebsd.org, "N.Del More" Sender: owner-freebsd-scsi@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On 21-Nov-97 Ricardo Kleemann wrote: > Hi, > > That sounds wonderful. Couple of questions: > > 1. If there IS a freebsd driver, where would I find it? ftp://simon-shapiro.org/crash. Boot floppies in /FreeBSD > 2. Can you explain to me how the RAID 5 works on the DPT? For > example, how > is recovery done upon failure of one of the drives? I'll stick to the example... :-) One of three ways: a. On the DEC StorageWorks cabinet (DPT 9W, etc), the dead drive blinks yellow. You pull it out and put a new one. b. Shutdown the machine, unplug the bad drive, plug in a new, same or larger capacity drive, boot and wait for the drive lights to stop glowing. c. Boot DOS, start DPTMGR, click the mouse on the array. Click on REBUILD. I could tech you how to recover from total failure (more than one drive in the array failing) too, but DPT support likes to have this trick up THEIR sleeve :-) If you have money/space, you can leave a drive ``unused'' in the disk bay and tell DPT to use it as a ``Hot Spare''. It will then go to service automatically, with no shutdown even on non-hot cabinets. You can have multiple hot Spares, but they do not cross controller boundries. > 3. In RAID 5 mode, how does the diskspace work out? What I mean is > how do > you calculate it? (N-1) 5 drives give you useful sorage equal to 4/5 the total capacity. It's easy for RAID 0 (add the drives), RAID 1 is > the > total divided by the number of mirrors. RAID-1 is 2*N where N is disk capacity. RAID-1 is only two drives. But in RAID 5 what's the > calculation? If I use 3 2.5Gb drives, how much total space would I > have? See above. > > thanks > Ricardo > > On Thu, 20 Nov 1997, N. Del More wrote: > >> I've been told that their is a driver available for it, frankly, I >> HOPE >> that the FreeBSD org begins supporting the DPT cards since it works >> the >> absolute NUTS under BSDI!! >> >> Not only that, but it's almost "sexy" to watch in action!! All them >> neat >> LED's on the card blinkin' and flashin' (woohoo!!). >> >> Seriously though, it dropped right into the BSDI server, and came up >> screaming with a couple of Barracuda's attached. Not only that but >> it >> concurrently supports SCSI/SCSI-2 (8 bit) on a separate channel, has >> the >> RAID add-on card. and up to 64 MB of cache. >> >> Finally, the Adaptec 2940 that resided in the box beforehand, >> couldn't even >> handle patching the kernel without doing each patch one at a time to >> avoid >> a kernel panic and shutdown. The DPT flew through it, and on a >> Pentium 233 >> with 128 Mb. RAM applied all of the 3.0 -> 3.1 BSDI patches in 1 >> min., 3 >> sec. A fellow ISP who was helping me with the upgrade suggested I >> might >> not get out of his house with it. >> >> I've used Adaptec for years, but now I'm hooked on DPT!! >> >> Noel >> >> At 10:30 AM 11/20/97 -0800, you wrote: >> >can anyone confirm freebsd supports the DPT raid controller >> >(2144UWR)? >> >> >> >> +------------------------------+ >> +---------------------------------+ >> | N.B. Del More noel@inr.net \ \ An Internet Connection? >> | Sure!| >> | inr.NET \ \ Do you want to be on >> | | >> | InterNet Resource Networks, LLC \ \ diss.net ? >> | | >> | http://www.inr.net \ \ datt.net ? >> | | >> | http://www.diss.net \ \ or do you just wanna be >> | | >> | http://www.datt.net \ \ on da inr.net ? >> | | >> +-------------------------------------+ >> +--------------------------+ >> > If Microsoft Built Cars: There would be an "Engine Pro" with bigger turbos, but it would be slower on most existing roads. Sincerely Yours, Simon Shapiro Shimon@Simon-Shapiro.ORG Voice: 503.799.2313 From owner-freebsd-scsi Mon Nov 24 21:14:00 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id VAA11347 for freebsd-scsi-outgoing; Mon, 24 Nov 1997 21:14:00 -0800 (PST) (envelope-from owner-freebsd-scsi) Received: from nomis.Simon-Shapiro.ORG (nomis.i-Connect.Net [206.190.143.100]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id VAA11319 for ; Mon, 24 Nov 1997 21:13:52 -0800 (PST) (envelope-from shimon@nomis.Simon-Shapiro.ORG) Received: (qmail 12296 invoked by uid 1000); 25 Nov 1997 05:13:32 -0000 Message-ID: X-Mailer: XFMail 1.2-beta-111797 [p0] on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: Date: Mon, 24 Nov 1997 21:13:31 -0800 (PST) Reply-To: shimon@simon-shapiro.org Organization: Me, Just me... From: Simon Shapiro To: Ricardo Kleemann Subject: RE: DPT PM2144UWR Cc: freebsd-scsi@FreeBSD.ORG Sender: owner-freebsd-scsi@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk See ftp://simon-shapiro.org/crash for a patch against 3.0-current and an older patch against 2.2, Also see /FreeBSD/* in the same server for boot floppies. Steer away from the 14th of November kernel. Crashes. The 13th is fine. Simon On 20-Nov-97 Ricardo Kleemann wrote: > Hi, > > can anyone confirm freebsd supports the DPT raid controller > (2144UWR)? > > I want to build a raid file server and although I mostly use linux I > have > chosen freebsd as it is superior as an NFS server... :) > > The only drawback is linux seems to have greater support for these > cards > (and I think linux even supports the Mylex RaidPLUS which I assume > freebsd > doesn't) > > Thanks for the help! > Ricardo > > BTW anyone can point me to a good distributor for DPT cards? > If Microsoft Built Cars: There would be an "Engine Pro" with bigger turbos, but it would be slower on most existing roads. Sincerely Yours, Simon Shapiro Shimon@Simon-Shapiro.ORG Voice: 503.799.2313 From owner-freebsd-scsi Tue Nov 25 02:45:54 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id CAA03938 for freebsd-scsi-outgoing; Tue, 25 Nov 1997 02:45:54 -0800 (PST) (envelope-from owner-freebsd-scsi) Received: from baloon.mimi.com (sjx-ca34-22.ix.netcom.com [204.31.236.118]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id CAA03925 for ; Tue, 25 Nov 1997 02:45:48 -0800 (PST) (envelope-from asami@sunrise.cs.berkeley.edu) Received: (from asami@localhost) by baloon.mimi.com (8.8.8/8.8.8) id CAA02538; Tue, 25 Nov 1997 02:45:42 -0800 (PST) (envelope-from asami) Date: Tue, 25 Nov 1997 02:45:42 -0800 (PST) Message-Id: <199711251045.CAA02538@baloon.mimi.com> To: stanb@awod.com CC: freebsd-scsi@FreeBSD.ORG In-reply-to: <199711250355.TAA05657@hub.freebsd.org> (stanb@awod.com) Subject: Re: ccd setup help please. From: asami@cs.berkeley.edu (Satoshi Asami) Sender: owner-freebsd-scsi@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk * 4. Didi a dikslable -e on /dev/sd0c (and 1 and 2) and changed * the partition type to FreeBSD You mean "4.2BSD"? * 5. did ccdconfig 16 0 sd0 sd1 sd2 * at this point I get a kernel error message about Primary Partition * having a bad magic number. I didn't know what would work, I always thought you had to specify things like "/dev/sd0c" as component names. * 6. newfs /dev/ccd0 ( at this point I start to get alternate * superblocks, but shortly my computer hangs). Again, I didn't think that would work, you should specify the raw partition (/dev/rccd0c). It seems you are a little sloppy in your typing, if you did everything right but typed "newfs /dev/ccd0c", try "newfs /dev/rccd0c". That may work. Satoshi From owner-freebsd-scsi Tue Nov 25 14:32:34 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id OAA10233 for freebsd-scsi-outgoing; Tue, 25 Nov 1997 14:32:34 -0800 (PST) (envelope-from owner-freebsd-scsi) Received: from shell.futuresouth.com (shell.futuresouth.com [207.141.254.20]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id OAA10219 for ; Tue, 25 Nov 1997 14:32:26 -0800 (PST) (envelope-from tim@shell.futuresouth.com) Received: (from tim@localhost) by shell.futuresouth.com (8.8.8/8.8.5) id QAA20158; Tue, 25 Nov 1997 16:32:21 -0600 (CST) Message-ID: <19971125163221.59358@futuresouth.com> Date: Tue, 25 Nov 1997 16:32:21 -0600 From: Tim Tsai To: freebsd-scsi@freebsd.org Subject: problem with 2940UW and multiple drives Mime-Version: 1.0 Content-Type: message/rfc822 Content-Description: Forwarded message from News Subsystem X-Mailer: Mutt 0.76 Sender: owner-freebsd-scsi@freebsd.org X-Loop: FreeBSD.org Precedence: bulk We've been getting a lot of errors like this. I've seen it at sd0 as well as sd1. The machine has two Adapteco 2940UW's, 2 Quantum Atlas II's, 2 Quantum Fireball's, and 5 IBM DORS drives. Any ideas? Thanks, Tim sd1: data overrun of 8179 bytes detected in Data-Out phase. Tag == 0x12. Forcing a retry. sd1: Haven't seen Data Phase. Length = 8192. NumSGs = 2. sg[0] - Addr 0x646a000 : Length 4096 sg[1] - Addr 0x1feb000 : Length 4096 [dmesg] Copyright (c) 1992-1997 FreeBSD Inc. Copyright (c) 1982, 1986, 1989, 1991, 1993 The Regents of the University of California. All rights reserved. FreeBSD 3.0-CURRENT #0: Mon Nov 24 20:52:01 CST 1997 root@:/usr.src/sys/compile/FSKERNEL CPU: AMD-K5(tm) Processor (99.72-MHz 586-class CPU) Origin = "AuthenticAMD" Id = 0x511 Stepping=1 Features=0x21bf real memory = 134217728 (131072K bytes) avail memory = 128520192 (125508K bytes) Probing for devices on PCI bus 0: chip0: rev 0x01 on pci0.0.0 chip1: rev 0x01 on pci0.7.0 ide_pci0: rev 0x00 on pci0.7.1 fxp0: rev 0x02 int a irq 12 on pci0.10.0 fxp0: Ethernet address 00:a0:c9:6e:f3:68 ahc0: rev 0x00 int a irq 10 on pci0.11.0 ahc0: aic7880 Wide Channel, SCSI Id=7, 16/255 SCBs scbus0 at ahc0 bus 0 ahc0:A:0: refuses WIDE negotiation. Using 8bit transfers ahc0: target 0 Tagged Queuing Device sd0 at scbus0 target 0 lun 0 sd0: type 0 fixed SCSI 2 sd0: Direct-Access 2014MB (4124736 512 byte sectors) sd0: with 6810 cyls, 4 heads, and an average 151 sectors/track ahc0:A:1: refuses WIDE negotiation. Using 8bit transfers ahc0: target 1 Tagged Queuing Device sd1 at scbus0 target 1 lun 0 sd1: type 0 fixed SCSI 2 sd1: Direct-Access 2014MB (4124736 512 byte sectors) sd1: with 6810 cyls, 4 heads, and an average 151 sectors/track ahc0: target 2 Tagged Queuing Device sd2 at scbus0 target 2 lun 0 sd2: type 0 fixed SCSI 2 sd2: Direct-Access 4341MB (8890760 512 byte sectors) sd2: with 5899 cyls, 10 heads, and an average 150 sectors/track Sending SDTR!! ahc0: target 4 Tagged Queuing Device sd3 at scbus0 target 4 lun 0 sd3: type 0 fixed SCSI 2 sd3: Direct-Access 2063MB (4226725 512 byte sectors) sd3: with 6703 cyls, 5 heads, and an average 126 sectors/track Sending SDTR!! ahc0: target 8 Tagged Queuing Device sd4 at scbus0 target 8 lun 0 sd4: type 0 fixed SCSI 2 sd4: Direct-Access 2063MB (4226725 512 byte sectors) sd4: with 6703 cyls, 5 heads, and an average 126 sectors/track ahc1: rev 0x00 int a irq 11 on pci0.12.0 ahc1: aic7880 Wide Channel, SCSI Id=7, 16/255 SCBs scbus1 at ahc1 bus 0 ahc1: target 1 Tagged Queuing Device sd5 at scbus1 target 1 lun 0 sd5: type 0 fixed SCSI 2 sd5: Direct-Access 4341MB (8890760 512 byte sectors) sd5: with 5899 cyls, 10 heads, and an average 150 sectors/track Sending SDTR!! ahc1: target 2 Tagged Queuing Device sd6 at scbus1 target 2 lun 0 sd6: type 0 fixed SCSI 2 sd6: Direct-Access 2063MB (4226725 512 byte sectors) sd6: with 6703 cyls, 5 heads, and an average 126 sectors/track Sending SDTR!! ahc1: target 4 Tagged Queuing Device sd7 at scbus1 target 4 lun 0 sd7: type 0 fixed SCSI 2 sd7: Direct-Access 2063MB (4226725 512 byte sectors) sd7: with 6703 cyls, 5 heads, and an average 126 sectors/track Sending SDTR!! ahc1: target 8 Tagged Queuing Device sd8 at scbus1 target 8 lun 0 sd8: type 0 fixed SCSI 2 sd8: Direct-Access 2063MB (4226725 512 byte sectors) sd8: with 6703 cyls, 5 heads, and an average 126 sectors/track Probing for devices on the ISA bus: sc0 at 0x60-0x6f irq 1 on motherboard sc0: VGA color <16 virtual consoles, flags=0x0> ed0 not found at 0x300 sio0 at 0x3f8-0x3ff irq 4 flags 0x20 on isa sio0: type 16550A sio1 at 0x2f8-0x2ff irq 3 on isa sio1: type 16550A lpt0 at 0x378-0x37f irq 7 on isa lpt0: Interrupt-driven port lp0: TCP/IP capable interface fdc0 at 0x3f0-0x3f7 irq 6 drq 2 on isa fdc0: FIFO enabled, 8 bytes threshold fd0: 1.44MB 3.5in wdc0 not found at 0x1f0 wdc1 not found at 0x170 npx0 on motherboard npx0: INT 16 interface ccd0-3: Concatenated disk drivers changing root device to sd0a From owner-freebsd-scsi Wed Nov 26 09:09:18 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id JAA01792 for freebsd-scsi-outgoing; Wed, 26 Nov 1997 09:09:18 -0800 (PST) (envelope-from owner-freebsd-scsi) Received: from europe.std.com (europe.std.com [199.172.62.20]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id JAA01784 for ; Wed, 26 Nov 1997 09:09:09 -0800 (PST) (envelope-from kwc@world.std.com) Received: from world.std.com by europe.std.com (8.7.6/BZS-8-1.0) id MAA26216; Wed, 26 Nov 1997 12:09:07 -0500 (EST) Received: by world.std.com (5.65c/Spike-2.0) id AA28007; Wed, 26 Nov 1997 12:09:06 -0500 Date: Wed, 26 Nov 1997 12:09:06 -0500 From: kwc@world.std.com (Kenneth W Cochran) Message-Id: <199711261709.AA28007@world.std.com> To: freebsd-scsi@freebsd.org Subject: 2.2.5 install w/DPT hba Sender: owner-freebsd-scsi@freebsd.org X-Loop: FreeBSD.org Precedence: bulk I'm trying to install 2.2.5 from cd onto system(s) with a DPT SCSI hba. I boot with the boot floppy from shimon@i-connect.net but the kernel that goes onto the hd is from the cd. Simon's driver seems fine, but I haven't been able to test things (ie. tapes). I *really* need some kind of installation procedure/outline. 1. Booting 2. Kernel installation (so I can reboot). 3. Kernel re-configuration/rebuilding from source (ie. Which source/binary file(s) do I need to get so I can do this? (& where do they need to go?) For BSDI, there are bootimages, files & instructions available from DPT. I've done this & it works quite nicely. I get excellent support from DPT & have for years. Linux, SunSoft & SCO support DPT natively (for a few years now). I've used them all. I'm becoming more than just a little frustrated; this tedium, combined with my hurriedness/carelessness resulted in a major unrecoverable data loss (on the Unix partition I was trying to use to make the installation media... :-(((( Many thanks, Ken Cochran From owner-freebsd-scsi Wed Nov 26 09:28:47 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id JAA03143 for freebsd-scsi-outgoing; Wed, 26 Nov 1997 09:28:47 -0800 (PST) (envelope-from owner-freebsd-scsi) Received: from grizzly.fas.com (chs0272.awod.com [208.140.97.32]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id JAA03129 for ; Wed, 26 Nov 1997 09:28:39 -0800 (PST) (envelope-from stanb@awod.com) Message-Id: <199711261728.JAA03129@hub.freebsd.org> Received: by grizzly.fas.com ($Revision: 1.37.109.23 $/16.2) id AA027355315; Wed, 26 Nov 1997 12:28:35 -0500 Subject: ccd driver under 2.2 STABLE and crashes To: freebsd-scsi@freebsd.org Date: Wed, 26 Nov 1997 12:28:35 -0500 (EST) From: "Stan Brown" X-Mailer: ELM [version 2.4 PL24] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-scsi@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Forwarded message: >From owner-freebsd-questions@FreeBSD.ORG Wed Nov 26 08:04:35 1997 Message-Id: <199711261219.EAA25860@freefall.freebsd.org> Subject: ccd driver under 2.2 STABLE and crashes To: freebsd-questions@freebsd.com (Free BSD Questions list) Date: Wed, 26 Nov 1997 07:20:08 -0500 (EST) From: "Stan Brown" X-Mailer: ELM [version 2.4 PL24] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk X-Uidl: 4b9355918a8f32391aeba2c4a8a95246 I have just set up c ccd device on my FreeBSD 2.2 STABLE bix. It consists of 3 66M HP SCSI drives concatenated inot 1 1.8G filesyste, Createing the ccd and mounting it goise OK. Then I start a tar operation to move about 1.2M worth of data to this ccd. The machine is runing the normal load for eerything els. Somewhere *after* 33% (one complete disks worth?) of data is written to these drives the machine reboots itslef. This has happende 4 times at this point. The last time it just hung istead of rebooting. OnceI caught the error message it was: tar: couldn't write to file debian/bo/source/misc/bl_1.2-2.dsc : File too large This file is very small!Once the machine is rebooted, an arempt to fsck the ccd fails with some very strange errors such as negative inode numbers, and truncated inodes. I believe thateither there must be a bug in the ccd driver, or perhaps I have somehow set it up incorectly. Here is what i did to set it up: recompile kernel with ccd osuedo-driver do MAKDEV ccd0 diskalabel -r -w auto each of the drives. diskalabel -e ecah of the drives and chane the partiton type for the c partition to 4.2BSD ccdconfig ccd0 16 o /dev/sd0c /fev/sd1c /dev/sd2c newfs /dev/rccd0 mount the /dev/ccd0c /mirror and then I. tar cf -. | ( cd /mirror ; tar xvf -) and about 30 minutes laer the system crashes, reliably. Ths machine has been rock solid for over a year now. It is my main communications server, and I have reached the point where I am tired of crashing it. Can someone give me some advice here? Have I done somthing wrong? Is this a nown bug? I'm on 2.2 STABLE from a few months agoa. cvsupedwith the 2-2RELENG tag. Please help a frustrated FreeBSD user. -- Stan Brown stanb@netcom.com 770-996-6955 Factory Automation Systems Atlanta Ga. -- Look, look, see Windows 95. Buy, lemmings, buy! Pay no attention to that cliff ahead... Henry Spencer (c) 1997 Stan Brown. Redistribution via the Microsoft Network is prohibited. -- Stan Brown stanb@netcom.com 770-996-6955 Factory Automation Systems Atlanta Ga. -- Look, look, see Windows 95. Buy, lemmings, buy! Pay no attention to that cliff ahead... Henry Spencer (c) 1997 Stan Brown. Redistribution via the Microsoft Network is prohibited. From owner-freebsd-scsi Wed Nov 26 10:36:54 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id KAA07992 for freebsd-scsi-outgoing; Wed, 26 Nov 1997 10:36:54 -0800 (PST) (envelope-from owner-freebsd-scsi) Received: from misery.sdf.com (misery.sdf.com [204.244.210.193]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id KAA07982 for ; Wed, 26 Nov 1997 10:36:50 -0800 (PST) (envelope-from tom@sdf.com) Received: from tom by misery.sdf.com with smtp (Exim 1.73 #1) id 0xamAs-00026o-00; Wed, 26 Nov 1997 10:26:58 -0800 Date: Wed, 26 Nov 1997 10:26:56 -0800 (PST) From: Tom To: Kenneth W Cochran cc: freebsd-scsi@freebsd.org Subject: Re: 2.2.5 install w/DPT hba In-Reply-To: <199711261709.AA28007@world.std.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-scsi@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Wed, 26 Nov 1997, Kenneth W Cochran wrote: > I'm trying to install 2.2.5 from cd onto system(s) with a DPT SCSI > hba. I boot with the boot floppy from shimon@i-connect.net but the > kernel that goes onto the hd is from the cd. Simon's driver seems > fine, but I haven't been able to test things (ie. tapes). After doing the install boot again with the floppy, and use the fixit disk. Then copy the DPT kernel to your root filesystem. You will probably have to mount root first: mount /dev/sd0a /mnt > I *really* need some kind of installation procedure/outline. > > 1. Booting > 2. Kernel installation (so I can reboot). > 3. Kernel re-configuration/rebuilding from source > (ie. Which source/binary file(s) do I need to get > so I can do this? (& where do they need to go?) The kernel source files are the ssys* files in the distribution. Unpack them in /usr/src Tom From owner-freebsd-scsi Wed Nov 26 12:13:30 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id MAA15687 for freebsd-scsi-outgoing; Wed, 26 Nov 1997 12:13:30 -0800 (PST) (envelope-from owner-freebsd-scsi) Received: from iafnl.es.iaf.nl (uucp@iafnl.es.iaf.nl [195.108.17.20]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id MAA15668 for ; Wed, 26 Nov 1997 12:13:26 -0800 (PST) (envelope-from wilko@yedi.iaf.nl) Received: by iafnl.es.iaf.nl with UUCP id AA01999 (5.67b/IDA-1.5 for freebsd-scsi@freebsd.org); Wed, 26 Nov 1997 21:13:45 +0100 Received: (from wilko@localhost) by yedi.iaf.nl (8.8.5/8.6.12) id VAA00344 for freebsd-scsi@freebsd.org; Wed, 26 Nov 1997 21:09:11 +0100 (MET) From: Wilko Bulte Message-Id: <199711262009.VAA00344@yedi.iaf.nl> Subject: hack for slow starting CD drives To: freebsd-scsi@freebsd.org (FreeBSD SCSI hackers) Date: Wed, 26 Nov 1997 21:09:11 +0100 (MET) X-Organisation: Private FreeBSD site - Arnhem, The Netherlands X-Pgp-Info: PGP public key at 'finger wilko@freefall.freebsd.org' X-Mailer: ELM [version 2.4 PL24 ME8a] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-scsi@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Below is a dirty hack that allows slow-starting SCSI cdroms to be accessed after e.g. a disk swap without running into ENXIO/Device Not Configured errors. I'm not happy with it, but it seems to help. Is there any way to put a delay in the test_ready loop? It's not nice to bomb the drive with TUR commands IMO. Diff is based on 2.2.1R source. Wilko *** cd.c Wed Nov 26 21:02:56 1997 --- cd.c.orig Wed Nov 26 20:18:54 1997 *************** *** 246,252 **** errval errcode = 0; u_int32_t unit, part; struct scsi_data *cd; - int start_unit_retry_counter = 0; unit = CDUNIT(dev); part = PARTITION(dev); --- 246,251 ---- *************** *** 286,314 **** scsi_start_unit(sc_link, CD_START); SC_DEBUG(sc_link, SDEV_DB3, ("'start' attempted ")); sc_link->flags |= SDEV_OPEN; /* unit attn errors are now errors */ - - /* This is a hack, but Toshiba CDs tend to take ages to get - * up to speed and report 'Not Ready' while doing so. - * Attempts to e.g. mount during this period resulted in device not - * configured / ENXIO. - * There should be some sleep/delay in this loop, but how? - * I silently assume that after 5000 tries it should be awake, or - * it will never get ready :-) - */ - while ((scsi_test_unit_ready(sc_link, SCSI_SILENT) != 0) && - (start_unit_retry_counter != 5000)) { - - start_unit_retry_counter++; - } - - /* It really should be ready by now */ - if (scsi_test_unit_ready(sc_link, SCSI_SILENT) != 0) { SC_DEBUG(sc_link, SDEV_DB3, ("not ready\n")); errcode = ENXIO; goto bad; } - SC_DEBUG(sc_link, SDEV_DB3, ("Device present\n")); scsi_prevent(sc_link, PR_PREVENT, SCSI_SILENT); /* --- 285,295 ---- _ ______________________________________________________________________ | / o / / _ Bulte email: wilko @ yedi.iaf.nl http://www.tcja.nl/~wilko |/|/ / / /( (_) Arnhem, The Netherlands - Do, or do not. There is no 'try' ---------------- Support your local daemons: run [Free,Net]BSD Unix ------ From owner-freebsd-scsi Wed Nov 26 14:00:07 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id OAA23421 for freebsd-scsi-outgoing; Wed, 26 Nov 1997 14:00:07 -0800 (PST) (envelope-from owner-freebsd-scsi) Received: from alpo.whistle.com (alpo.whistle.com [207.76.204.38]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id OAA23391 for ; Wed, 26 Nov 1997 14:00:01 -0800 (PST) (envelope-from julian@whistle.com) Received: (from daemon@localhost) by alpo.whistle.com (8.8.5/8.8.5) id NAA25124; Wed, 26 Nov 1997 13:47:59 -0800 (PST) Received: from UNKNOWN(), claiming to be "current1.whistle.com" via SMTP by alpo.whistle.com, id smtpd025120; Wed Nov 26 13:47:51 1997 Date: Wed, 26 Nov 1997 13:45:39 -0800 (PST) From: Julian Elischer To: Wilko Bulte cc: FreeBSD SCSI hackers Subject: Re: hack for slow starting CD drives In-Reply-To: <199711262009.VAA00344@yedi.iaf.nl> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-scsi@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk The OPEN call is done from user context rather than interrupt context, so you can do a tsleep() in there. On Wed, 26 Nov 1997, Wilko Bulte wrote: > Below is a dirty hack that allows slow-starting SCSI cdroms to be accessed > after e.g. a disk swap without running into ENXIO/Device Not Configured > errors. > > I'm not happy with it, but it seems to help. Is there any way to put a > delay in the test_ready loop? It's not nice to bomb the drive with TUR > commands IMO. Diff is based on 2.2.1R source. > > Wilko > > > *** cd.c Wed Nov 26 21:02:56 1997 > --- cd.c.orig Wed Nov 26 20:18:54 1997 > *************** > *** 246,252 **** > errval errcode = 0; > u_int32_t unit, part; > struct scsi_data *cd; > - int start_unit_retry_counter = 0; > > unit = CDUNIT(dev); > part = PARTITION(dev); > --- 246,251 ---- > *************** > *** 286,314 **** > scsi_start_unit(sc_link, CD_START); > SC_DEBUG(sc_link, SDEV_DB3, ("'start' attempted ")); > sc_link->flags |= SDEV_OPEN; /* unit attn errors are now errors */ > - > - /* This is a hack, but Toshiba CDs tend to take ages to get > - * up to speed and report 'Not Ready' while doing so. > - * Attempts to e.g. mount during this period resulted in device not > - * configured / ENXIO. > - * There should be some sleep/delay in this loop, but how? > - * I silently assume that after 5000 tries it should be awake, or > - * it will never get ready :-) > - */ > - while ((scsi_test_unit_ready(sc_link, SCSI_SILENT) != 0) && > - (start_unit_retry_counter != 5000)) { > - > - start_unit_retry_counter++; > - } > - > - /* It really should be ready by now */ > - > if (scsi_test_unit_ready(sc_link, SCSI_SILENT) != 0) { > SC_DEBUG(sc_link, SDEV_DB3, ("not ready\n")); > errcode = ENXIO; > goto bad; > } > - > SC_DEBUG(sc_link, SDEV_DB3, ("Device present\n")); > scsi_prevent(sc_link, PR_PREVENT, SCSI_SILENT); > /* > --- 285,295 ---- > _ ______________________________________________________________________ > | / o / / _ Bulte email: wilko @ yedi.iaf.nl http://www.tcja.nl/~wilko > |/|/ / / /( (_) Arnhem, The Netherlands - Do, or do not. There is no 'try' > ---------------- Support your local daemons: run [Free,Net]BSD Unix ------ > From owner-freebsd-scsi Thu Nov 27 08:06:20 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id IAA29932 for freebsd-scsi-outgoing; Thu, 27 Nov 1997 08:06:20 -0800 (PST) (envelope-from owner-freebsd-scsi) Received: from grizzly.fas.com (chs0328.awod.com [208.140.97.88]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id IAA29927 for ; Thu, 27 Nov 1997 08:06:15 -0800 (PST) (envelope-from stanb@awod.com) Message-Id: <199711271606.IAA29927@hub.freebsd.org> Received: by grizzly.fas.com ($Revision: 1.37.109.23 $/16.2) id AA034466764; Thu, 27 Nov 1997 11:06:04 -0500 Subject: cd problems are realy Adaptec driver problems! To: freebsd-scsi@freebsd.org Date: Thu, 27 Nov 1997 11:06:04 -0500 (EST) From: "Stan Brown" X-Mailer: ELM [version 2.4 PL24] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-scsi@freebsd.org X-Loop: FreeBSD.org Precedence: bulk The problems that I was strugling with thatI thought were ccd problems apera to really be problems with the driver for my Adaptec 154x card (ah0 device). I am able to crash the system, just by mounting a single drive and doing a simle iozone on it! Te version that am runing is 2.2 STABLE from a few months agao. Is this a known problem? Is ther any way I can further diagnose this? What happens is that if I run say iozone 610 things will churn away for a few mwnutes, andthe first thing I know the computer isrebooting! Is there a crash dump fiile or a system log I can look in? /var/log/messages does not have anything of interest, and I have not managed to catch a message on the console. I took the 3 dsks in question and installed them on an HP workstation, created a striped array of them, and loaded all the data on them I had been trying under FreeBSD. No problems. I would not *think* this could be a bad controler card. Should I upgrade to 2.2.5? Would this fix the problem? Thanks for any input on this. -- Stan Brown stanb@netcom.com 770-996-6955 Factory Automation Systems Atlanta Ga. -- Look, look, see Windows 95. Buy, lemmings, buy! Pay no attention to that cliff ahead... Henry Spencer (c) 1997 Stan Brown. Redistribution via the Microsoft Network is prohibited. From owner-freebsd-scsi Thu Nov 27 10:05:03 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id KAA10806 for freebsd-scsi-outgoing; Thu, 27 Nov 1997 10:05:03 -0800 (PST) (envelope-from owner-freebsd-scsi) Received: from iafnl.es.iaf.nl (uucp@iafnl.es.iaf.nl [195.108.17.20]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id KAA10783 for ; Thu, 27 Nov 1997 10:04:59 -0800 (PST) (envelope-from wilko@yedi.iaf.nl) Received: by iafnl.es.iaf.nl with UUCP id AA19113 (5.67b/IDA-1.5 for freebsd-scsi@FreeBSD.ORG); Thu, 27 Nov 1997 19:05:02 +0100 Received: (from wilko@localhost) by yedi.iaf.nl (8.8.5/8.6.12) id AAA00406; Thu, 27 Nov 1997 00:32:19 +0100 (MET) From: Wilko Bulte Message-Id: <199711262332.AAA00406@yedi.iaf.nl> Subject: Re: hack for slow starting CD drives To: julian@whistle.com (Julian Elischer) Date: Thu, 27 Nov 1997 00:32:19 +0100 (MET) Cc: freebsd-scsi@FreeBSD.ORG In-Reply-To: from "Julian Elischer" at Nov 26, 97 01:45:39 pm X-Organisation: Private FreeBSD site - Arnhem, The Netherlands X-Pgp-Info: PGP public key at 'finger wilko@freefall.freebsd.org' X-Mailer: ELM [version 2.4 PL24 ME8a] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-scsi@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk As Julian Elischer wrote... > The OPEN call is done from user context rather than interrupt context, > so you can do a tsleep() in there. Right. Its too long ago that I played with driver source.. :/ The patch below seems to be working OK without bombing the drive with TUR commands. Would it be unreasonable to put something like this into the -current source? Wilko *** cd.c.orig Wed Nov 26 20:18:54 1997 --- cd.c Thu Nov 27 00:28:03 1997 *************** *** 246,251 **** --- 246,252 ---- errval errcode = 0; u_int32_t unit, part; struct scsi_data *cd; + int start_unit_retry_counter = 0; unit = CDUNIT(dev); part = PARTITION(dev); *************** *** 285,295 **** --- 286,316 ---- scsi_start_unit(sc_link, CD_START); SC_DEBUG(sc_link, SDEV_DB3, ("'start' attempted ")); sc_link->flags |= SDEV_OPEN; /* unit attn errors are now errors */ + + /* This is a hack, but e.g. Toshiba CD drives tend to take ages to get + * up to speed after a disc swap and report 'Not Ready' while doing so. + * They should have reported 'Unit In The Process Of Getting Ready' + * but alas they don't. + * Attempts to e.g. mount during this period resulted in device not + * configured / ENXIO. [wilko] + */ + while ((scsi_test_unit_ready(sc_link, SCSI_SILENT) != 0) && + (start_unit_retry_counter != 10)) { + + tsleep((void *)&start_unit_retry_counter,PRIBIO,"cdspup",2*hz); + start_unit_retry_counter++; + } + + /* It really should be ready by now + * If not, it's time to give up + */ + if (scsi_test_unit_ready(sc_link, SCSI_SILENT) != 0) { SC_DEBUG(sc_link, SDEV_DB3, ("not ready\n")); errcode = ENXIO; goto bad; } + SC_DEBUG(sc_link, SDEV_DB3, ("Device present\n")); scsi_prevent(sc_link, PR_PREVENT, SCSI_SILENT); /* _ ______________________________________________________________________ | / o / / _ Bulte email: wilko @ yedi.iaf.nl http://www.tcja.nl/~wilko |/|/ / / /( (_) Arnhem, The Netherlands - Do, or do not. There is no 'try' ---------------- Support your local daemons: run [Free,Net]BSD Unix ------ From owner-freebsd-scsi Thu Nov 27 11:50:50 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id LAA18420 for freebsd-scsi-outgoing; Thu, 27 Nov 1997 11:50:50 -0800 (PST) (envelope-from owner-freebsd-scsi) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id LAA18412 for ; Thu, 27 Nov 1997 11:50:45 -0800 (PST) (envelope-from j@uriah.heep.sax.de) Received: (from uucp@localhost) by sax.sax.de (8.8.8/8.8.8) with UUCP id UAA16582 for freebsd-scsi@FreeBSD.ORG; Thu, 27 Nov 1997 20:50:38 +0100 (CET) (envelope-from j@uriah.heep.sax.de) Received: (from j@localhost) by uriah.heep.sax.de (8.8.8/8.8.5) id UAA02404; Thu, 27 Nov 1997 20:25:53 +0100 (MET) Message-ID: <19971127202553.62430@uriah.heep.sax.de> Date: Thu, 27 Nov 1997 20:25:53 +0100 From: J Wunsch To: freebsd-scsi@FreeBSD.ORG Subject: Re: hack for slow starting CD drives Reply-To: Joerg Wunsch References: <199711262332.AAA00406@yedi.iaf.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.88 In-Reply-To: <199711262332.AAA00406@yedi.iaf.nl>; from Wilko Bulte on Thu, Nov 27, 1997 at 12:32:19AM +0100 X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E Sender: owner-freebsd-scsi@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk As Wilko Bulte wrote: > The patch below seems to be working OK without bombing the drive with > TUR commands. Would it be unreasonable to put something like this into > the -current source? Probably not. > + int start_unit_retry_counter = 0; Well, i think just `i' would have it done as well. :-) The purpose is quite clear since it's only used within three lines of code. > + * Attempts to e.g. mount during this period resulted in device not > + * configured / ENXIO. [wilko] ^^^^^^^^ That's what CVS commit logs are for, not the comments in the source. You couldn't read our sources anymore otherwise... > + tsleep((void *)&start_unit_retry_counter,PRIBIO,"cdspup",2*hz); "cdrdy" ...looks like a more descriptive name where you aren't required to go and UTSL in order to know what it's sleeping for. Also, like in normal typing, one space is required after each comma. Sleeping on the counter itself is a bad idea, there could be multiple outstanding cd_open()s by the same time. (Sure, it's a stack variable, but that's not too obvious if you depend on _this_.) > + /* It really should be ready by now > + * If not, it's time to give up > + */ Stylistic nit: /* * Multi-line comments should look like * this one. Also, it's not forbidden to * make them whole sentences. */ Sorry for the paranoia. ;-) -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-) From owner-freebsd-scsi Thu Nov 27 12:23:24 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id MAA20178 for freebsd-scsi-outgoing; Thu, 27 Nov 1997 12:23:24 -0800 (PST) (envelope-from owner-freebsd-scsi) Received: from nomis.simon-shapiro.org (nomis.i-Connect.Net [206.190.143.100]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id MAA20154 for ; Thu, 27 Nov 1997 12:23:15 -0800 (PST) (envelope-from shimon@nomis.Simon-Shapiro.ORG) Received: (qmail 27219 invoked by uid 1000); 27 Nov 1997 20:22:47 -0000 Message-ID: X-Mailer: XFMail 1.2-beta-111997 [p0] on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <199711261709.AA28007@world.std.com> Date: Thu, 27 Nov 1997 12:22:46 -0800 (PST) Reply-To: shimon@simon-shapiro.org Organization: The Simon shapiro Foundation From: Simon Shapiro To: (Kenneth W Cochran) Subject: RE: 2.2.5 install w/DPT hba Cc: freebsd-scsi@FreeBSD.ORG Sender: owner-freebsd-scsi@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On 26-Nov-97 Kenneth W Cochran wrote: > I'm trying to install 2.2.5 from cd onto system(s) with a DPT SCSI > hba. I boot with the boot floppy from shimon@i-connect.net but the > kernel that goes onto the hd is from the cd. Simon's driver seems > fine, but I haven't been able to test things (ie. tapes). > > I *really* need some kind of installation procedure/outline. > > 1. Booting You need to boot from the 2.2 floppy that has a DPT driver on it. You need to run dptmgr and arrange the arrays first. Right? > 2. Kernel installation (so I can reboot). > 3. Kernel re-configuration/rebuilding from source > (ie. Which source/binary file(s) do I need to get > so I can do this? (& where do they need to go?) You need at least kernel sources, and use one of the DPT, SENDERO, NOMIS, whatever configuration files in the DPT patch to build yourself a kernel. > For BSDI, there are bootimages, files & instructions available from > DPT. I've done this & it works quite nicely. I get excellent > support > from DPT & have for years. Linux, SunSoft & SCO support DPT natively > (for a few years now). I've used them all. > > I'm becoming more than just a little frustrated; this tedium, > combined > with my hurriedness/carelessness resulted in a major unrecoverable > data loss (on the Unix partition I was trying to use to make the > installation media... :-(((( I sincerely apologize for your difficulties. DPT wrote and maintains the BSDi driver. The (excellent) engineer at DPT who wrote the driver got paid to write it and BSDi (should be) paid for their support. The Linux driver has been in the standard Linux kernel for years and Mike is making excellent work in maintaining and developing it. I wrote the driver as part of my other (and demanding) full time job. Nobody pays me to support it. I am spending as much time as possible supporting the driver and users like you and have done everyting I can to ease the pain: * http://simon-shapiro.org has a web page under construction to make patches, boot floppies, etc. more accessible. * I routinely build new 3.0-current releases and add the complete release to ftp://FreeBSD * The driver is in production at my employers and dozens of sites around the world, including some very heavy users, on large arrays. these users feed me bug and enhanccements requests, which i turn around in 24 hours or less, most of the time. * There are no outstanding bugs against the driver. * Prformance is excellent; we achieve, on a single P6-200, more than 1740 disk I/O operations per second. RAID-0 performance on 8x array is around 18MB/Sec filesystem throughput, with less than 2% CPU load. * Stability is excellent. We have zero crashes and routine regression test runs at load average of 250.0 or more for at least 24 hours prior to any major version release. * Scalability is excellent too: Up to 4 controlers, 12 SCSI busses and 30 srives were tested here. I know of people who run over 50 drives on one PM33334UW. However, the core team declined to integrate the driver into 2.2 and still has to do so for 3.0. If you want to know why, ask them. The driver went through several review cycles, without any substantial change, other than some early bug fixes, some stylistic tweaks and many space and tab changes. It is in production use on dozens of systems and I do not know of any bug outstanding against it from anyone. To add it to a machine, in ther manner you attempt is frustrating. Here is how I do it. This is essentiall a process of building a complete FReeBSD release, all on your own. It is not difficult, just a bit tedious. The entire driver is in the public domain. You are welcome to examine it online and figure out why. If you can, let me know. * Get my hands on an IDE drive or a cheap SCSI disk and a blessed controller. * Install FreeBSD on it, including full source. * Get my patch from http://simon-shapiro.org * cd /usr/src * cat patch_file_name | patch -p0 >& patch.out * vi patch.out (it is OK to use EMACS here :-) and search for ``fail'' * cd /usr/src/sys/i386/conf * cp {SENDERO|NOMIS|ATLAS} MY_CONFIG * {vi|emacs} MY_CONFIG * Add any tweaks, specials, etc. * /usr/sbin/config MY_CONFIG * cd ../../compile/MY_CONFIG * make depend && make * install -c -m 444 kernel /kernel.DPT * sync;shutdown -r now * Install a DPT PCI controller, attach disks, * Boot DenialOfService * Put DPTMGR floppy in a: * a:dptmgr/fw0 * Configure arrays. * Boot Unix. * dmesg | grep '^s{dt}' * fdisk -i the PROPER disks * Disklabel them too. * cd /usr/src/release * {vi|emacs} Makefile Set the target to some sane directory with 500MB of space or more. I have the Makefile modfied: CHROOTDIR=/Build/${BUILDNAME} * make release >& /tmp/release.out & * When you see that the cvs checkout for usr/src is over (usr/src/usr.sbin/zic is normally the last one to checkout), cd /build/3.0-some_date-SNAP/usr/src patch -p0 < /wherever/patch_file >& patch.out * Examine patch.out. Should be clean * When make release is done, you have a boot floppy in ${CHROOTDIR}/R/ftp/floppies/boot.flp * NFS export ${CHROOTDIR}/R/ftp, or copy it to ~ftp/`basename ${CHROOTDIR}` * Go install your DPT machine. Are you still reading? If you are totally disgusted, join the club. ... > > Many thanks, > > Ken Cochran If Microsoft Built Cars: There would be an "Engine Pro" with bigger turbos, but it would be slower on most existing roads. Sincerely Yours, Simon Shapiro Shimon@Simon-Shapiro.ORG Voice: 503.799.2313 From owner-freebsd-scsi Thu Nov 27 23:11:55 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id XAA26110 for freebsd-scsi-outgoing; Thu, 27 Nov 1997 23:11:55 -0800 (PST) (envelope-from owner-freebsd-scsi) Received: from misery.sdf.com (misery.sdf.com [204.244.210.193]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id XAA26104 for ; Thu, 27 Nov 1997 23:11:51 -0800 (PST) (envelope-from tom@sdf.com) Received: from tom by misery.sdf.com with smtp (Exim 1.73 #1) id 0xbKS1-00032R-00; Thu, 27 Nov 1997 23:02:57 -0800 Date: Thu, 27 Nov 1997 23:02:55 -0800 (PST) From: Tom To: Stan Brown cc: freebsd-scsi@freebsd.org Subject: Re: cd problems are realy Adaptec driver problems! In-Reply-To: <199711271606.IAA29927@hub.freebsd.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-scsi@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Thu, 27 Nov 1997, Stan Brown wrote: ... > FreeBSD. No problems. I would not *think* this could be a bad controler > card. But it could be a motherboard problem. The 1542 cards will push the ISA bus beyond its limits depending on its configuration, and not all motherboards can handle this. Try running the DMA test. Also try reducing the speed down, and run iozone again. Probably work fine. When using the 1542, I always look for motherboards that I can change the increase the ISA clock, and then bump up the DMA speed. Screws up most sound cards, but the performance increase is nice. > -- > Stan Brown stanb@netcom.com 770-996-6955 > Factory Automation Systems > Atlanta Ga. Tom From owner-freebsd-scsi Fri Nov 28 10:32:42 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id KAA29442 for freebsd-scsi-outgoing; Fri, 28 Nov 1997 10:32:42 -0800 (PST) (envelope-from owner-freebsd-scsi) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id KAA29436 for ; Fri, 28 Nov 1997 10:32:39 -0800 (PST) (envelope-from bde@zeta.org.au) Received: (from bde@localhost) by godzilla.zeta.org.au (8.8.7/8.6.9) id FAA09692; Sat, 29 Nov 1997 05:27:57 +1100 Date: Sat, 29 Nov 1997 05:27:57 +1100 From: Bruce Evans Message-Id: <199711281827.FAA09692@godzilla.zeta.org.au> To: bde@zeta.org.au, earle@isolar.Tujunga.CA.US Subject: Re: FreeBSD 2.1-STABLE: Why can't I disklabel a SCSI disk? Cc: freebsd-scsi@freebsd.org, gibbs@plutotech.com Sender: owner-freebsd-scsi@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >I tried adding Bruce's "su#" entry as follows: > >nntp1# tail -4 /etc/disktab > >seagate15150|Seagate ST15150N:\ > :dt=SCSI:ty=winchester:ns#63:nt#255:nc#521:\ > :su#8385867:pc#8385867:oc#0: > >figuring that pc + oc == su. > >Well, now I get a new error: > >nntp1# disklabel -w -r sd1 seagate15150 >disklabel: ioctl DIOCSDINFO: Open partition would move or shrink > >I don't understand this at all. Which partition is "open" and why is it >considered "open"? Simply because the disk label has been read into memory? The C partition. Some partition has to be open to do ioctls on. >This *seems* to be addressed by the "DIAGNOSTICS" section of disklabel(8): > >DIAGNOSTICS > The kernel device drivers will not allow the size of a disk partition to > be decreased or the offset of a partition to be changed while it is open. > Some device drivers create a label containing only a single large parti- > tion if a disk is unlabeled; thus, the label must be written to the ``a'' > partition of the disk while it is open. This sometimes requires the de- > sired label to be set in two steps, the first one creating at least one > other partition, and the second setting the label on the new partition > while shrinking the ``a'' partition. > >but to be honest, I don't parse this paragraph at all. I tried creating an >"a" partition (same size as "c") which worked (disklabel -e) but I still get >the same thing when I try to use the disktab entry. I think it needs to be at least as small as the final size of the C partition. >I tried to zero-out the present disklabel and this failed as well. >This worked back when the drive was new (i.e. had never been put into the >FreeBSD machine). Now it doesn't: > >xxxx1# dd if=/dev/zero of=/dev/rsd1c bs=1 count=2 >dd: /dev/rsd1c: Invalid argument >1+0 records in >0+0 records out >0 bytes transferred in 1 secs (0 bytes/sec) Not much can be written in blocks of size 1 byte :-). Bruce