Re: 3 IDE devices on Promise card + FreeBSD == not possible?

2003-03-09 Thread Soeren Schmidt
It seems Pete wrote:
> Hello,
> 
> I've been posting about this since the beginning on the year.  A few
> times on freebsd-questions, once on freebsd-hackers, and submitted a PR
> (http://www.freebsd.org/cgi/query-pr.cgi?pr=48165).  I have never found
> a solution beyond replacing FreeBSD with Linux.  (Which is not something
> I'd like to do, but know I can, if need be.  I'm trying to learn about
> FreeBSD, not Linux.)

To make it short, the disklabel problem is probably due to the disk
containing what disklabel see as a bogus label, try to zero out the
label by using dd if=/dev/zero of=/dev/adN count=100.

Now if you have a promise fasttrak its beyond me why you want to use
vinum to make a mirror...

In the post you refer to you have:
ar0: 29314MB  [3737/255/63] status: READY subdisks:
 0 READY ad4: 29314MB  [59560/16/63] at ata2-master UDMA100
ar1: 29314MB  [3737/255/63] status: READY subdisks:
 0 READY ad6: 29314MB  [59560/16/63] at ata3-master UDMA100
ar2: 29314MB  [3737/255/63] status: READY subdisks:
 0 READY ad7: 29314MB  [59560/16/63] at ata3-slave UDMA100

You use ar0 as a single disk and thats fine.
Then you need a mirror of ad6 and ad7 to get that you first need to
delete ar1 and ar2 (which you have defined in the Promise BIOS
to get it past probing right ?).

So doing:

atacontrol delete ar1
atacontrol delete ar2

Get you rid of those two 1 disk arrays, then do:

atacontrol create mirror ad6 ad7

and you get a new ar1 array thats the mirror of ad6 & ad7..

Disklabel & newfs ar1 and you are done (remember the dd trick above if
disklabel thinks the label is bogus)

-Søren

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message


Re: 3 IDE devices on Promise card + FreeBSD == not possible?

2003-03-09 Thread Pete

On Sun, 09 Mar 2003, Soeren Schmidt wrote:

> To make it short, the disklabel problem is probably due to the disk
> containing what disklabel see as a bogus label, try to zero out the
> label by using dd if=/dev/zero of=/dev/adN count=100.

This is what I initially thought, but when I swapped the two data
drives, disklabel thought the previous ar2's (and now ar1's) disklabel
was fine.  The drive that used to be ar1 and that had a valid disklabel
before swapping now had a "bogus" label.  (Did that description make
sense?)

> Now if you have a promise fasttrak its beyond me why you want to use
> vinum to make a mirror...

Well... 

   a) I want to learn about FreeBSD, not the Promise controller.  Until
   this email, I was thinking the only way to do software RAID with
   FreeBSD was Vinum... Now, I'm (more) confused.

   b) The Fasttrak controller isn't that wonderful and from what I've
   read, just software RAID on the card's PROM.  I've also heard (and
   briefly confirmed) that Linux's software RAID is faster than the
   card's.  I'm betting that FreeBSD's is comparable to Linux's.

   c) I don't want to be tied to a specific vendor's RAID.  This machine
   is made from old, spare parts.  If the Fasttrak card were to die, I'd
   love to be able to stick in a different IDE controller and still have
   the RAID working with little or no fuss.

> In the post you refer to you have:
> ar0: 29314MB  [3737/255/63] status: READY subdisks:
>  0 READY ad4: 29314MB  [59560/16/63] at ata2-master UDMA100
> ar1: 29314MB  [3737/255/63] status: READY subdisks:
>  0 READY ad6: 29314MB  [59560/16/63] at ata3-master UDMA100
> ar2: 29314MB  [3737/255/63] status: READY subdisks:
>  0 READY ad7: 29314MB  [59560/16/63] at ata3-slave UDMA100

FWIW, I'm currently using a 2 controller config with each drive on its
own dedicated IDE channel.  The second controller is just a straight
Promise controller, not a Fasttrak.

> You use ar0 as a single disk and thats fine.  Then you need a mirror
> of ad6 and ad7 to get that you first need to delete ar1 and ar2 (which
> you have defined in the Promise BIOS to get it past probing right ?).

When all three disks were on the Fasttrak, I did have them all defined
as single-disk, striped volumes.  I needed to do this to boot from
ar0/ad4.  Right now, I don't know why I set the other two to be
single-disk, striped volumes.  When I moved the latter two disks to the
second controller, they still booted as ar1 and ar2 (ad8 on ar1 and ad10
on ar2), but I had no controller BIOS to tweak.  I just guessed that
that was how FreeBSD treated drives on these controllers.

> So doing:
> 
> atacontrol delete ar1
> atacontrol delete ar2

Now this was interesting.  I did this, then rebooted.  This is what I
get now:

ad8: 29314MB  [59560/16/63] at ata4-master UDMA100
ad10: 29314MB  [59560/16/63] at ata5-master UDMA100
ar0: 29314MB  [3737/255/63] status: READY subdisks:
 0 READY ad4: 29314MB  [59560/16/63] at ata2-master UDMA100

> atacontrol create mirror ad6 ad7

This is starting to _really_ confuse me. Does FreeBSD have two software
RAID systems?  Is there something built into the ATA controller drivers
that can do software RAID too?  It looks that way from that atacontrol
and ata man pages.  Where does Vinum fit in here or is Vinum extraneous
now?  Is Vinum just a front-end to the ata system?  I'm sooo confused... 

> and you get a new ar1 array thats the mirror of ad6 & ad7..

Indeed I do.

> Disklabel & newfs ar1 and you are done (remember the dd trick above if
> disklabel thinks the label is bogus)

Excellent!  It looks like this is what I was looking for.  

Thank you so very much, Søren.

pete

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message


divert socket

2003-03-09 Thread Ferruccio Vitale
Hi hackers,

I've a daemon which create and open a divert socket, which is feeded by a 'tee rule' 
in ipfw rulset; my doubt is: what is it passed to this socket? entire packet or at 
least layer-3 information (tcp/udp/...)?

Regards,
Ferruccio

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message


Guide to writing device drivers sought

2003-03-09 Thread Robert Eckardt
Hi,

long ago I used the joy-driver as an example to integrate my own device
driver. I'm now trying (once again :-) to do the same in FreeBSD-4.7.
Unfortunately, joy no longer functions correctly (since 4.1) and so it is an
inappropriate example.
My driver is going to create two devices with different minor device numbers
(/dev/dcf and /dev/dcf100) (as joy should do too), which can be used
simultaneously (both accessing the same I/O port e.g. 0x201).

Where can I find an introduction to the currently used device framework?
(Things seem to be spreaad out over numerous man pages.)

How can I write a device driver that creates multiple devices with different
minor device numbers for each given I/O port?

Which driver is suited best as a simple example?

Where can I find an introduction how to deal with PnP- and Non-PnP-hardware
correctly?


Thanks,
Robert

--
Dr. Robert Eckardt---[EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message


Re: divert socket

2003-03-09 Thread Julian Elischer


On Sun, 9 Mar 2003, Ferruccio Vitale wrote:

> Hi hackers,
> 
> I've a daemon which create and open a divert socket, which is feeded
> by a 'tee rule' in ipfw rulset; my doubt is: what is it passed to
> this socket? entire packet or at least layer-3 information
> (tcp/udp/...)?

it should get an IP packet.
Any packet you send back will be given to ip for input processing.

> 
> Regards,
> Ferruccio
> 
> To Unsubscribe: send mail to [EMAIL PROTECTED]
> with "unsubscribe freebsd-hackers" in the body of the message
> 


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message


Re: Guide to writing device drivers sought

2003-03-09 Thread Richard Airlie
hi,

On Sun, Mar 09, 2003 at 09:44:00PM +0100, Robert Eckardt wrote:
> long ago I used the joy-driver as an example to integrate my own device
> driver. I'm now trying (once again :-) to do the same in FreeBSD-4.7.
> Unfortunately, joy no longer functions correctly (since 4.1) and so it is an
> inappropriate example.

i have submitted a PR including a patch for this problem:



(it would be really nice if someone could look at this and give it the 'thumbs
up' if its ok).

the patch allows for /dev/joy0 and /dev/joy1 to both exist, attached to the
same I/O port (0x201).

if you look at the patch you'll see there are only minor changes required to
achieve this.. its quite straightforward.

hope this is some use to you -

regards,
richard.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message


Re: Guide to writing device drivers sought

2003-03-09 Thread Julian Elischer
At one stage the example driver in -current 
(/usr/share/examples/drivers) was correct for 4.x
but I don't know if that is true any more as
so many things have changed..

It's a shellscript that generates a skeleton driver for you.


On Mon, 10 Mar 2003, Richard Airlie wrote:

> hi,
> 
> On Sun, Mar 09, 2003 at 09:44:00PM +0100, Robert Eckardt wrote:
> > long ago I used the joy-driver as an example to integrate my own device
> > driver. I'm now trying (once again :-) to do the same in FreeBSD-4.7.
> > Unfortunately, joy no longer functions correctly (since 4.1) and so it is an
> > inappropriate example.
> 
> i have submitted a PR including a patch for this problem:
> 
> 
> 
> (it would be really nice if someone could look at this and give it the 'thumbs
> up' if its ok).
> 
> the patch allows for /dev/joy0 and /dev/joy1 to both exist, attached to the
> same I/O port (0x201).
> 
> if you look at the patch you'll see there are only minor changes required to
> achieve this.. its quite straightforward.
> 
> hope this is some use to you -
> 
> regards,
> richard.
> 
> To Unsubscribe: send mail to [EMAIL PROTECTED]
> with "unsubscribe freebsd-hackers" in the body of the message
> 


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message


Mutual Investment proposal

2003-03-09 Thread Ango A
DEAR SIR,

I HAVE THE HONOUR AND CONFIDENCE TO INTRODUCE TO YOU
THIS BUSSINESS IN VIEW OF THE FACT THAT YOU ARE
TRUSTWORTHY AND RELIABLE.

I AM MR. Ango A, THE EASTERN DISTRICT ACCOUNTANT OF
STANDARD TRUST BANK PLC (STB). THERE IS AN ACCOUNT
OPENED IN THIS BANK IN 1982 AND SINCE 1990 NOBODY HAS
OPERATED ON THIS ACCOUNT AGAIN. AFTER INTENSIVE
INVESTIGATION, I DISCOVERED THAT THE OWNER OF THIS
ACCOUNT WAS THE OWNER OF CREST MARTINS CO. LTD. A
FOREIGNER FROM SWEDEN, A CRUDE OIL MERCHANT, AND HE
DIED IN 1990 AND HAS NO NEXT OF KIN AND THE ACCOUNT
HAS NO BENEFICIARY, MY INVESTIGATION PROVED TO ME AS
WELL THAT HIS COMPANY DOES NOT KNOW ANYTHING ABOUT
THIS ACCOUNT. THE AMOUNT INVOLVED RUNS INTO SEVERAL
MILLIONS OF UNITED STATES DOLLARS, ABOUT US
$17,460,000.00 SEVENTEEN MILLION, FOUR HUNDRED AND
SIXTY THOUSAND DOLLARS.

IN THE LIGHT OF THE ABOVE FACT, I NEED YOUR ASSISTANCE
TO OPEN YOUR DOOR TO THIS OPPORTUNITY BY PROVIDING
YOUR ACCOUNT OR ANY ACCOUNT OF YOUR CHOICE WHERE THE
FUND WILL BE REMITTED.

YOUR ASSISTANCE AS A FOREIGNER IS NECESSARY BECAUSE
THIS MANAGEMENT IS READY TO WELCOME ANY PERSON, A
FOREIGNER WHO HAS CORRECT INFORMATION TO THIS ACCOUNT,
WHICH I WILL GIVE TO YOU IMMEDIATELY, IF YOU INTRESTED
TO CONCLUDE THIS TRANSACTION WITH ME. 

I WILL APPLY FOR AN ANNUAL LEAVE IMMEDIATELY I HEAR
FROM YOU THAT YOU ARE READY TO ACT AND RECEIVE THIS
FUND INTO YOUR ACCOUNT. THIS IS TO ENABLE ME USE MY
POSITION AND INFLUENCE TO EFFECT THE ONWARD
TRANSMISSION OF THIS MONEY TO YOUR DESIRED ACCOUNT.

AT THE CONCLUSION OF THIS BUSINESS, YOU WILL BE GIVEN
20% OF THE TOTAL AMOUNT, 75% WILL BE FOR US, WHILE 5%
BE SET ASIDE FOR CHARITY ORGANISATION AND EXPENSE WE
MIGHT INCURE DURING THE TRANSACTION.

I LOOK FORWARD TO YOUR EARNEST REPLY.

YOURS TRULY,
Mr. Ango A



__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message