Installing OpenSSL from ports, how to remove base-openssl?

2009-01-15 Thread Frederique Rijsdijk
For a certain customer that wants to use a later version of OpenSSL
(base is at 'e' while ports is at 'j') I installed
/usr/ports/security/openssl. This is all fine, but now I have two sets
binaries and libraries of OpenSSL on that system.

What is the proper way to remove the base openssl? I looked with
sysinstall distributions but it's not listed there as something that you
can add or remove.


-- Frederique
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: [Fwd: iwn driver on 7.1]

2009-01-15 Thread Sam Fourman Jr.
> -- Forwarded message --
> From: Da Rock 
> To: freebsd-questions@freebsd.org
> Date: Fri, 16 Jan 2009 12:32:04 +1000
> Subject: iwn driver on 7.1
> I've tried the driver on 7.0- 8.0 current is out of the question as it
> still doesn't fully function either- but I'm trying to sort out 7.1
> (might as well, I have many other issues to work out so I might as well
> fix them on this :) ).
>
> The driver patches compiles (iwn-7 from gavin), but when I load it goes
> through the channels and errors and finally dies with a full page fault.
> SO, firstly what info is needed here to help resolve this issue? Second,
> the full functionality of the card is not there- no encryption in
> transmission (no wep, wpa, etc), a channels not working, etc. Again is
> there someone who I could work with to help get this card working?
>
> For reference (Wojciech will be happy to know his suspicions are indeed
> correct :) ) linux has gone to the crapper and even debian can barely
> hold its own with the intel 4965. Incidentally none of the linuxes have
> consistent success at all, and I failed miserably on debian and fedora.
> Although it did work somewhat with fedora 8- strange huh? And its not
> the only area, drivers, kernel, software all seems deeply flawed now:
> seems the project is starting to crumble! I'm struggling to keep my tv
> server up and running on fedora 10 - there appears I may have a light at
> the end of my tunnel in that I may be able to get drivers working for
> freebsd!
>
for what it is worth
I too would very much like iwn working on freebsd 7.1, it works ok on 8-current
but I did run in a issue where all I had available to me were wep
based AP's (linksys wrt54G)
and I could not connect.

Sam Fourman Jr.
Fourman Networks
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Cannot install php5-gd!!!

2009-01-15 Thread perikillo
  Hi people.

  I want to install some ports that depends this module php5-gd (phpmyadmin
example), I update my ports every day, but I still  getting this error:

  bacula# pwd
/usr/ports/graphics/php5-gd
bacula# make install clean
===>  php5-gd-5.2.8 has known vulnerabilities:
=> php5-gd -- uninitialized memory information disclosure vulnerability.
   Reference: <
http://www.FreeBSD.org/ports/portaudit/58a3c266-db01-11dd-ae30-001cc0377035.html
>
=> Please update your ports tree and try again.
*** Error code 1

Stop in /usr/ports/graphics/php5-gd.
*** Error code 1

Stop in /usr/ports/graphics/php5-gd.

  I have been trying today, but no success, someone knows anything about
this?

  FreeBSD 6.1-p21

  Thanks for your support!!!
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


vipw and bash login shell

2009-01-15 Thread Kurt Bigler
Hi,

When I used vipw to change the login shell to /usr/local/bin/bash (which is
listed in /etc/shells, and was built from ports), subsequent ssh login
attempts fail (password rejected).  If I change the shell back to /bin/sh or
/bin/csh then login works again.

If I instead use webmin Users and Groups to set the login shell to bash (or
any other shell), everything is fine.  There is a delay of quite a few
seconds for the webmin Save operation to complete, whereas after ZZ the vipw
completes without any perceptible delay.

This is with 7.0-RELEASE (Generic) on i386.  Ports were updated sometime
last week.

Any thoughts much appreciated.

-Kurt


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


[Fwd: est1 device_attach error 6]

2009-01-15 Thread Da Rock

--- Begin Message ---
Similar to the age0 problem in my previous post the enhanced speed step
on this laptop on the second core of the cpu has the same problem-
athough this doesn't appear to be power related (ac or battery that is).
Where does this place the issue- acpi?
--- End Message ---
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

[Fwd: USB problem during install]

2009-01-15 Thread Da Rock

--- Begin Message ---
I was just running a check to see if I could install FreeBSD on my tv
server and check the driver situation, but the cdboot failed with a usb
issue- address not found. This occurred for 7.1, 7.0, and even 6.4. In
my search I found many different reasons why it could be, but they were
several years old (related to 5.x etc).

Its always the same address 0x7fef1620, and I believe its the same port
too.

Currently the usb devices connected are an APC UPS, a Shintaro usb
wireless keyboard with builtin mouse, a multi card reader, and I have
two dvico tuner cards (dual fusions) which a dual dibcomms on each card
connected to the system via their own usb chip.

Based on my observations its actually hard to say which port is the
problem, as the drivers are loaded and fork their own processes, so the
error can show up later.

Any ideas?

Cheers
--- End Message ---
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

[Fwd: iwn driver on 7.1]

2009-01-15 Thread Da Rock

--- Begin Message ---
I've tried the driver on 7.0- 8.0 current is out of the question as it
still doesn't fully function either- but I'm trying to sort out 7.1
(might as well, I have many other issues to work out so I might as well
fix them on this :) ).

The driver patches compiles (iwn-7 from gavin), but when I load it goes
through the channels and errors and finally dies with a full page fault.
SO, firstly what info is needed here to help resolve this issue? Second,
the full functionality of the card is not there- no encryption in
transmission (no wep, wpa, etc), a channels not working, etc. Again is
there someone who I could work with to help get this card working?

For reference (Wojciech will be happy to know his suspicions are indeed
correct :) ) linux has gone to the crapper and even debian can barely
hold its own with the intel 4965. Incidentally none of the linuxes have
consistent success at all, and I failed miserably on debian and fedora.
Although it did work somewhat with fedora 8- strange huh? And its not
the only area, drivers, kernel, software all seems deeply flawed now:
seems the project is starting to crumble! I'm struggling to keep my tv
server up and running on fedora 10 - there appears I may have a light at
the end of my tunnel in that I may be able to get drivers working for
freebsd!
--- End Message ---
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

[Fwd: age0 driver power issues - device_attach error 6]

2009-01-15 Thread Da Rock

--- Begin Message ---
I'm getting issues similar to what others have seen in the pre-release
7.1. I'm using the release version because it supposedly has this
driver, but the issue is when I'm on battery it'll work and load the
driver, on ac forget it.

Its on a laptop with an iwn device so I'm in for real hell - but thats
for another post. The long and the short of it is: how do I fix it? What
do I need to look at (source wise) to fix the issue and where can I find
more precise info on it? Would an experienced developer (even the
original who wrote the driver) be willing to guide me so I can fix more
of these little issues with drivers until I can get the know how to
write my own?

Cheers
--- End Message ---
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

[Fwd: Re: FreeBSD USB Install]

2009-01-15 Thread Da Rock

--- Begin Message ---
On Fri, 2009-01-09 at 14:11 -0200, Sergio de Almeida Lenzi wrote:
> Hello
> 
> I notice that when you write zeros to the first sectors
> of the pen drive it gets mad about it
> and you must make fsck and disklabel TWICE...
> 
> the first time, it complains,
> the second time it works fine
> 
> I assume you have grub installed   (pkg_add -r grub)
> 
> I use the folowing procedure:
> 1) put the pen drive on the computer  it finds at da0
> 2) dd bs=512 if=/dev/zero of=/dev/da0 count=20  
> 2) fdisk  -BI /dev/da0
> 3) disklabel -w -B /dev/da0s1
> 4) fdisk -BI /dev/da0  
> 5) disklabel -w -B  /dev/da0s1
> 6) newfs -L FreeBSDstick /dev/da0s1a
> 7) mount -o async /dev/da0s1a /mnt
> 8) mkdir /mnt/boot/grub
> 9) cd /usr/local/share/grub/*/
> 10 cp * /mnt/boot/grub
> 11) cat <<% > /mnt/boot/grub/menu.lst
> title FreeBSD on USB
> root (hd0,0,a)
> kernel /boot/loader
> %
> 12) umount /mnt
> 13) grub --batch <<%
> device (hd7) /dev/da0
> root (hd7,0,a)
> setup (hd7)
> %
> =
> now just populate the /mnt with bsd and your system 
> should come up...
> 
> =
> 
> 
> Hope this will help...
> 
> 
> Here i use 4gb pen-drivers running FreeBSD 7 with zfs...
> it works fine and very fast...
> 
> Sergio.

This seems to be a bit of a sideline... but how does it work if you move
the disk around? Assuming generic kernel, you should be boot that kernel
on practically any machine- right? But I had trouble with it not finding
the drive- boot manager ok, install fine, just won't boot. I assumed
that the da0xxx was simply a pointer (programming speak) so that if you
inserted the disk somewhere else (another port, another m/c, etc) it may
not "point" to the same place for booting. Would this be right?
--- End Message ---
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

[Fwd: Re: Cannot get ethernet off the ground]

2009-01-15 Thread Da Rock

--- Begin Message ---
On Mon, 2009-01-12 at 18:07 +0100, Roland Smith wrote:
> On Sun, Jan 11, 2009 at 08:08:16PM -0500, William Gordon Rutherdale wrote:
> > I'm afraid it's gone from bad to worse.
> > 
> > The 7.1 system may have recognised the ethernet adapter, but it seemed 
> > to fail writing to the hard drive.
> > 
> > I got this during installation:
> > 
> >Progress
> > Extracting GENERIC into /boot directory...
> > 
> >Message
> > Write failure on transfer! (wrote -1 bytes of 1425408 bytes)
> > 
> > /mtrt: write failed, filesystem is full.
> > 
> > -
> > 
> > I think I allocated decent size partitions for /, /var, swap, /tmp, 
> > /usr.  I made multiple attempts.  Kept getting errors.
> 
> The 'filesystem is full' message might imply that the partition for root
> is too small. What were the filesystem sizes you chose? There should be
> an item in the main install menu to start a shell. If you take that
> option and use the 'df -h' command, you should see the sizes of the
> mounted partitions.
> 
> What happens if you just make one giant partition?
> 
> Roland

Going back to the original issue- the rtl 8111E is not really supported.
Buying another card does seem to be a bit redundant, but there is 6.x
sources for this card which work (albeit on 6.x). So maybe try 6.4?

For the developers out there, what is the difference between BSD
versions? Why wouldn't a driver for 6.x work on later versions- I need
technical detail or pointers to it not just a simple answer. I'm looking
at resolving some of the driver issues but I'm really green- yes, I'm
finally getting off my ass and doing something other than complaining...
not that I have the time, but I have my own problems to resolve here
which I can't wait on :)

Now, if the filesystem is full have you redone all the filesystem
through sysinstall or are you simply loading over the top of previous
versions?
--- End Message ---
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

[Fwd: Re: FreeBSD Boot Manager]

2009-01-15 Thread Da Rock

--- Begin Message ---
On Fri, 2009-01-09 at 09:53 -0500, Grant Peel wrote:
> Hi Mike,
> 
> I am not at all sure whate you are suggesting here?
> 
> What I am asking, is, somehting like:
> 
> Can I reboot the machine with the FreeBSD install disk, and using the 
> sysinstall utility, reinstall the freebsd boot manger so I wind up with:
> 
> F1 Windows
> F2 FreeBSD
> F5 Disk1
> 
> -Grant

Not a chance- why do you think you have to install Window$ first? Gates
and his cronies aren't going to make it easy for you to install free
software, and so they make it as hard as possible hoping you'll install
Window$ and give up.

I haven't heard of anywhere that any of the freeloaders (pardon the pun)
that can boot a M$ system- only paid for software like Bootmagic. Or use
the M$ loader in window$ to boot other systems- strange that it should
be able to do that, but then most of the OSS is KISS based rather than
the rigmarole M$ go to.

Again, I could be outdated and/or wrong on this, but I doubt it has
changed.
--- End Message ---
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

[Fwd: Re: programs...]

2009-01-15 Thread Da Rock

--- Begin Message ---
What about Miro?

On Fri, 2009-01-09 at 23:19 -0800, Gary Kline wrote:
> On Fri, Jan 09, 2009 at 08:43:09AM -0600, David Kelly wrote:
> > On Thu, Jan 08, 2009 at 11:03:29PM -0800, Gary Kline wrote:
> > >   
> > >   Guys,
> > > 
> > >   I've going to give away what I think could be at least a
> > >   multi-thousand dollar idea, something we nearly have already.
> > >   And a wish-list for a program that does not, AFAIK, exist.
> > 
> > Its called iTunes.
> > 
> > >   First, the wish-for:: given all the kinds of video and audio
> > >   programs that are now on the web, how difficult would it be
> > >   to have a GUI [interface] program pop up a screen with date of
> > >   airing, and/or date of podcast?  Not to exceed several hours
> > >   worth of recorded podcasts... or live recording.
> > 
> > iTunes will suck them down and has settings for when (if ever) to delete
> > old podcasts.
> > 
> > >   I can only give examples of thing I watch, but this will give
> > >   you some idea.  And bear in mind that at least FreeBSD cannot
> > >   capture some programs.  Like "FRONTLINE" on PBS.
> > > 
> > >   But for the sake of argument, let's say that firefox or
> > >   whatever browser or kmplayer or another player did have the
> > >   proper codecs.
> > > 
> > >   This GUI app  would find, fetch, and store in /usr/local/tmp
> > >   FRONTLINE, NOVA, "In Our Time" and "Everyday Ethics" [BBC],
> > >   and "Marketplace", Weekend, 10jan09.  
> > 
> > iTunes stores in ~/Music/iTunes/iTunes Music/Podcasts/
> 
> 
>   Music/audio only, or video too?
> 
> 
> > 
> > >   When these programs were safely in /usr/local/tmp/Pods, the
> > >   program would send mail or otherwise inform the user.
> > 
> > Script from cron to detect presence of a new file in the above, send
> > notification.
> > 
> > There are FreeBSD ports for subscribing to podcasts that could do the
> > same thing.
> > 
> > >   How doable is this...?  and, yes, i know that many of these
> > >   audio files can be subscribed to as podcasts.  I have several
> > >   on my Google page.  
> > 
> > Get A Mac!
> > 
>   
>   Ha!  Well, I stand to inherit my daughter's MacBook in a
>   few years.  Okay, so if Apple has this, can I use it?  I
>   mean for-free, not having to sub to some monthly deal or
>   whatever?
> 
>   This is an idea I thought up a couple years ago when all
>   the audio podcasts began appearing.  At any rate, seems to
>   me that the open-* community could do at least as well as
>   our brother hackers at Apple.
> 
>   Just a thought.  
> 
>   Come Monday, OZ-time, I'll let everybody know my major
>   idea.  
> 
--- End Message ---
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

[Fwd: Re: FreeBSD Boot Manager]

2009-01-15 Thread Da Rock

--- Begin Message ---
On Fri, 2009-01-09 at 09:53 -0500, Grant Peel wrote:
> Hi Mike,
> 
> I am not at all sure whate you are suggesting here?
> 
> What I am asking, is, somehting like:
> 
> Can I reboot the machine with the FreeBSD install disk, and using the 
> sysinstall utility, reinstall the freebsd boot manger so I wind up with:
> 
> F1 Windows
> F2 FreeBSD
> F5 Disk1
> 
> -Grant

Not a chance- why do you think you have to install Window$ first? Gates
and his cronies aren't going to make it easy for you to install free
software, and so they make it as hard as possible hoping you'll install
Window$ and give up.

I haven't heard of anywhere that any of the freeloaders (pardon the pun)
that can boot a M$ system- only paid for software like Bootmagic. Or use
the M$ loader in window$ to boot other systems- strange that it should
be able to do that, but then most of the OSS is KISS based rather than
the rigmarole M$ go to.

Again, I could be outdated and/or wrong on this, but I doubt it has
changed.
--- End Message ---
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

[Fwd: Re: FreeBSD Boot Manager]

2009-01-15 Thread Da Rock

--- Begin Message ---
On Thu, 2009-01-08 at 21:44 -0500, Steve Bertrand wrote:
> Grant Peel wrote:
> > Can I use a windows install cd's "R" option to do the fdisk /mbr ?
> 
> I don't know.
> 
> It's been $years since I've had to use a Windows install CD for such a
> thing.
> 
> If it's win32, my experience would have me recommend just booting from a
> floppy of a win boot disk to restore the MBR. It's just quick that way.
> If my memory serves right, even a win98 boot disk should work.

If memory serves, I believe there is an option to simply go to cli and
all the tools are there on the cd ready for you. I could be wrong or
outdated though- probably both... :)
--- End Message ---
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

[Fwd: Re: Sun sucks]

2009-01-15 Thread Da Rock

--- Begin Message ---
On Fri, 2009-01-09 at 03:47 +, RW wrote:
> On Thu, 8 Jan 2009 17:10:10 -0500
> "Ansar Mohammed"  wrote:
> 
> 
> > After registering Sun complains that they don't like my ID and I need
> > to provide more information. I create another account. Same problem.
> > After 3 months I finally get an email saying they want clarification
> > on the acronym for my company. 
> 
> 
> Well there's your problem. You gave them too much information in the
> first place. I usually just make-up a name as a matter of principle.
> 
> Just create a new account for some made-up name, don't specify any
> company, download your file, and then (if you really care) go through
> the hoops afterwards.

I'm finding that I'm actually running out of names... keeps coming back
saying it already exists!

I now keep a record of a crap name and reuse it every time.
--- End Message ---
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Re: Cannot send to mailing lists - client host rejected: cannot find your hostname

2009-01-15 Thread Olivier Nicole
> I'm having a minor problem with posting to the list. I have my own  
> mail server using postfix, fetchmail, and courier. I have several  
> domain names, and I'm using one for my mail server.
> 
> In my logs I'm seeing 450 errors for freebsd-questions since around  
> the end of last year, but I did have some dns issues after I moved the  

It would help if you post some logs and return error messages...

Olivier 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Cannot send to mailing lists - client host rejected: cannot find your hostname

2009-01-15 Thread rock_on_the_web
I'm having a minor problem with posting to the list. I have my own  
mail server using postfix, fetchmail, and courier. I have several  
domain names, and I'm using one for my mail server.


In my logs I'm seeing 450 errors for freebsd-questions since around  
the end of last year, but I did have some dns issues after I moved the  
server in a clean up and network down disaster at the end of the year.  
Thats all sorted now, but the errors are still there! I just posted  
again and still no luck. I'm using a static address from my ISP, and  
while I can run a server on the system legally, I'm getting no help to  
do so.


Is there a reason for this sudden change? Have the filtering rules on  
the freebsd server changed recently? I can be posted privately if need  
be.



This message was sent using IMP, the Internet Messaging Program.


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


HELP running cups won't accept password

2009-01-15 Thread Bob Falanga
During start cupsd starts 3 times.
when configuring a printer, cups will not accept root and it's password for
userid and password.

Thank you,
Bob Falanga
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Bios chip update suggestions

2009-01-15 Thread Fbsd1

matt donovan wrote:



On Thu, Jan 15, 2009 at 8:22 PM, Fbsd1 > wrote:


I have an desktop manufactured in 2002 by a South Korean company Hyunju.
The company is now out of business.
It's bio's do not allow booting from a usb memory stick.

I want to find an bio's update that adds booting from usb memory stick.

I know the desktop uses AWARD bio's chip and the bio's id string is
01/08/2002-694T-686-P6VXM2TC-00

All the internet bio's chip update url's found by Google search are
customized for MS windows.

Suggestions on how or where to purchase the correct bio's chip update?
___
freebsd-questions@freebsd.org 
mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to
"freebsd-questions-unsubscr...@freebsd.org
"


if bios does not allow booting from usb a update won't either



The current bios allows booting from usb-hard drive, floppy, cdrom, zip, 
all which are external drives. This desktop was mfg before usb memory 
sticks can on the market. So the desktop does not have support for 
booting from usb memory stick. Freebsd 7.0 can find and use the usb 
memory stick for writing and reading data.


Just need to update bios containing option to boot from usb memory stick.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Bios chip update suggestions

2009-01-15 Thread matt donovan
On Thu, Jan 15, 2009 at 8:22 PM, Fbsd1  wrote:

> I have an desktop manufactured in 2002 by a South Korean company Hyunju.
> The company is now out of business.
> It's bio's do not allow booting from a usb memory stick.
>
> I want to find an bio's update that adds booting from usb memory stick.
>
> I know the desktop uses AWARD bio's chip and the bio's id string is
> 01/08/2002-694T-686-P6VXM2TC-00
>
> All the internet bio's chip update url's found by Google search are
> customized for MS windows.
>
> Suggestions on how or where to purchase the correct bio's chip update?
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "
> freebsd-questions-unsubscr...@freebsd.org"
>

if bios does not allow booting from usb a update won't either
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Bios chip update suggestions

2009-01-15 Thread Fbsd1

I have an desktop manufactured in 2002 by a South Korean company Hyunju.
The company is now out of business.
It's bio's do not allow booting from a usb memory stick.

I want to find an bio's update that adds booting from usb memory stick.

I know the desktop uses AWARD bio's chip and the bio's id string is 
01/08/2002-694T-686-P6VXM2TC-00


All the internet bio's chip update url's found by Google search are 
customized for MS windows.


Suggestions on how or where to purchase the correct bio's chip update?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: portupgrade <-> portmaster?

2009-01-15 Thread matt donovan
On Thu, Jan 15, 2009 at 7:22 PM, Mitja  wrote:

> On Thursday 15 January 2009 16:04:09 Christer Solskogen wrote:
> > On 1/15/09 8:25 PM, Ewald Jenisch wrote:
> > > Anything to consider when going from portupgrade to portmaster?
> >
> > Portupgrade has the advantage that it can use binary packages to upgrade
> > your system. portmaster can create them (by adding the -g option) - but
> > not use them. This is the reason we use portupgrade at work where we
> > have several FreeBSD servers which shares /usr/ports.
> >
> > > Is there also a way back, i.e. from portmaster to portupgrade?
> >
> > No problem at all. You can even have both installed. If you upgrade your
> > outdated port with portupgrade, portmaster will not try to upgrade it
> > and vice versa, unless you force it to (which makes no sense).
>
> I am more than one year FreeBSD user :), started with 7.0 and I have to
> used
> portupgrade but later I did change to portmaster which I like it but few
> day
> ago I had a problem (on FreeBSD 7.1) with update. Here is a link to the
> FreeBSD forum where I asked about a problem.
> Today I installed portupgrade and update was without problem.
>
> Are there some problem with portmaster on 7.1?
> Thanks.
>
>
>
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "
> freebsd-questions-unsubscr...@freebsd.org"
>

believe so since I remember seeing the author talk about patching
portmaster.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: portupgrade <-> portmaster?

2009-01-15 Thread Mitja
On Thursday 15 January 2009 16:04:09 Christer Solskogen wrote:
> On 1/15/09 8:25 PM, Ewald Jenisch wrote:
> > Anything to consider when going from portupgrade to portmaster?
>
> Portupgrade has the advantage that it can use binary packages to upgrade
> your system. portmaster can create them (by adding the -g option) - but
> not use them. This is the reason we use portupgrade at work where we
> have several FreeBSD servers which shares /usr/ports.
>
> > Is there also a way back, i.e. from portmaster to portupgrade?
>
> No problem at all. You can even have both installed. If you upgrade your
> outdated port with portupgrade, portmaster will not try to upgrade it
> and vice versa, unless you force it to (which makes no sense).

I am more than one year FreeBSD user :), started with 7.0 and I have to used 
portupgrade but later I did change to portmaster which I like it but few day 
ago I had a problem (on FreeBSD 7.1) with update. Here is a link to the 
FreeBSD forum where I asked about a problem.
Today I installed portupgrade and update was without problem.

Are there some problem with portmaster on 7.1?
Thanks.



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Help needed w/ HighPoint RocketRAID 3120 on FreeBSD 7.1-RELEASE

2009-01-15 Thread ThinkDifferently


Michael Powell-6 wrote:
> 
> In your motherboard BIOS is there any entry that controls which controller
> boots first? If so set it to boot from the add-in card first instead of
> the
> onboard controller.
> 

In my BIOS there is the following...
Hard Disk Boot Priority   [Press Enter]
 1. SCSI-0::  RocketRAID 3120 SATA C
 2. Bootable Add-in Cards
First Boot Device  [CDROM]
Second Boot Device  [Hard Disk]
Third Boot Device [USB-FDD]

For grins, I tried making Hard Disk the first boot device and disabling the
others.  I also tried moving the card to another PCI slot.  Finally, I tried
shutting off any unnecessary devices on the mobo to include the unused
serial & parallel headers, usb, firewire, etc.

Nothing changed.

On reset...
1) The RocketRAID card beeps.
2) The motherboard BIOS screen is displayed.
3) The RocketRAID BIOS screen is displayed.
4) It shows all devices that are enabled and their interrupt settings.
5) It tries to boot from the "Hard Disk", which is set to "SCSI-0:: 
RocketRAID 3120 SATA C".
6) It resets and the above repeats.

In the table of devices that I mention in #4, above, see the attached image. 
It shows up as "RAID Cntrlr".  In this screenshot, just about everything
else is turned off.
http://www.nabble.com/file/p21489832/P1158072.jpg 


Michael Powell-6 wrote:
> 
> Also ensure that in the Highpoint card BIOS INT 13 is 
> "on", should be this way by default.
> 

Yes, that is enabled.
-- 
View this message in context: 
http://www.nabble.com/Help-needed-w--HighPoint-RocketRAID-3120-on-FreeBSD-7.1-RELEASE-tp21479839p21489832.html
Sent from the freebsd-questions mailing list archive at Nabble.com.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: mythtv port

2009-01-15 Thread David Karapetyan
I ask because I am considering installing debian on a home box and 
running mythtv from it. However, I don't trust anything other than the 
stable version of debian, and I am not a fan of their release cycle for 
packages. Quite frankly, I trust the freebsd community over the linux 
community, and the fbsd os over any linux distro. Could you give me an 
estimate on how much longer it will be before the port is updated?

 On Thu, Jan 15, 2009 at 05:38:02PM -0500, Greg Larkin wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> David Karapetyan wrote:
> > Has the mythtv port been fixed yet? Any timetable for a new release? The 
> > current port makefile indicates that it is broken.
> > ___
> 
> 
> Hello David,
> 
> I've been working on various MythTV-related PRs, and I do plan to
> unbreak multimedia/mythtv and upgrade it to 0.21 after receiving patches
> from folks in the FreeBSD community.
> 
> Stay tuned, and I'll send out an announcement to freebsd-multimedia once
> it has been committed.
> 
> Regards,
> Greg
> - --
> Greg Larkin
> 
> http://www.FreeBSD.org/   - The Power To Serve
> http://www.sourcehosting.net/ - Ready. Set. Code.
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.7 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
> 
> iD8DBQFJb7rK0sRouByUApARAsMRAJsGOYQ4QZXvatG7HOAYqaWQivor6ACfSk9s
> jskcvoRAmSePwkNnp83SeLs=
> =+jB5
> -END PGP SIGNATURE-
> 
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

-- 
--
Best,
David Karapetyan
http://davidkarapetyan.homeunix.com
University of Notre Dame
Department of Mathematics
255 Hurley Hall
Notre Dame, IN 46556-4618
Phone: 574-631-5706
Cell:  202-460-5173
Fax:   574-631-6579

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: mythtv port

2009-01-15 Thread Greg Larkin
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

David Karapetyan wrote:
> Has the mythtv port been fixed yet? Any timetable for a new release? The 
> current port makefile indicates that it is broken.
> ___


Hello David,

I've been working on various MythTV-related PRs, and I do plan to
unbreak multimedia/mythtv and upgrade it to 0.21 after receiving patches
from folks in the FreeBSD community.

Stay tuned, and I'll send out an announcement to freebsd-multimedia once
it has been committed.

Regards,
Greg
- --
Greg Larkin

http://www.FreeBSD.org/   - The Power To Serve
http://www.sourcehosting.net/ - Ready. Set. Code.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJb7rK0sRouByUApARAsMRAJsGOYQ4QZXvatG7HOAYqaWQivor6ACfSk9s
jskcvoRAmSePwkNnp83SeLs=
=+jB5
-END PGP SIGNATURE-

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Help! locate.code /tmp: filesystem full

2009-01-15 Thread Polytropon
On Thu, 15 Jan 2009 21:37:24 +0100, "Andy Wodfer"  wrote:
> Should I run fsck -y? Is it safe to do so?

At least, fsck will do its best to repair the defective file system.
As you have seen from the messages, you will surely lose some files
when their information gets cleared. If you use -y, fsck is allowed
to do anything it considers neccessary doing.

You could use fsck in preen mode (-p) to have less defects corrected.

If it's possible, try to backup all important data. If fsck deletes
something, you could restore it afterwards.

Your goal should be to get your file system into a consistent state
again. Worse kinds of data loss can follow.

It hurts, I know it... :-(





-- 
Polytropon
>From Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: portupgrade <-> portmaster?

2009-01-15 Thread Christer Solskogen

On 1/15/09 8:25 PM, Ewald Jenisch wrote:


Anything to consider when going from portupgrade to portmaster?



Portupgrade has the advantage that it can use binary packages to upgrade 
your system. portmaster can create them (by adding the -g option) - but 
not use them. This is the reason we use portupgrade at work where we 
have several FreeBSD servers which shares /usr/ports.



Is there also a way back, i.e. from portmaster to portupgrade?



No problem at all. You can even have both installed. If you upgrade your 
outdated port with portupgrade, portmaster will not try to upgrade it 
and vice versa, unless you force it to (which makes no sense).


--
chs


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: upgrade 7.0 -> 7.1 : portupgrade -af required?

2009-01-15 Thread Peter Ulrich Kruppa

Olivier Mueller schrieb:

Hello,

Le 15 janv. 09 à 19:36, Peter Ulrich Kruppa a écrit :
Yes, it seems it's the answer for the upgrade 7.0 -> 7.1, thanks for 
your answer and the 3 others on the list :)

Sorry,

that wasn't any kind of "secret" hint. I just frequently hit the 
wrong Reply-button on thunderbird.


Greetings,

Uli.



regards,
Olivier

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
"freebsd-questions-unsubscr...@freebsd.org"




___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Help! locate.code /tmp: filesystem full

2009-01-15 Thread Andy Wodfer
On Wed, Jan 14, 2009 at 7:34 PM, Andy Wodfer  wrote:

> Hi,
> I'm getting an error message every week and I can't seem to understand why
> nor manage to fix it. Here it is:
>
> #dmesg
> [snip]
> pid 54753 (locate.code), uid 65534 inumber 23557 on /tmp: filesystem full
>
> # df -h
> Filesystem SizeUsed   Avail Capacity  Mounted on
> /dev/ar0s1a989M 53M857M 6%/
> devfs  1.0K1.0K  0B   100%/dev
> /dev/ar0s1g 48G8.5G 36G19%/backup
> /dev/ar0s1d989M 44K910M 0%/tmp
> /dev/ar0s1f387G168G189G47%/usr
> /dev/ar0s1e7.7G398M6.7G 5%/var
>
> As you see there's 910MB free space in /tmp. Should be plenty to run the
> weekly locate script?
>
> # uname -a
> FreeBSD host.domain.com 6.3-PRERELEASE FreeBSD 6.3-PRERELEASE #5: Sat Jan
> 12 03:20:02 CET 2008 r...@host.domain.com:/usr/obj/usr/src/sys/MYOWN
> i386
>
> Does anyone have a suggestion what I can do to fix this problem?
>
> Thanks a lot!
>
> Best,
> Andy
>

Here's the output of fsck (this was a new command to me):

# fsck
** /dev/ar0s1a (NO WRITE)
** Last Mounted on /
** Root file system
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
1565 files, 27379 used, 479108 free (1204 frags, 59738 blocks, 0.2%
fragmentation)
** /dev/ar0s1g (NO WRITE)
** Last Mounted on /backup
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
873 files, 4467162 used, 20921355 free (891 frags, 2615058 blocks, 0.0%
fragmentation)
** /dev/ar0s1d (NO WRITE)
** Last Mounted on /tmp
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
119 files, 67 used, 506420 free (28 frags, 63299 blocks, 0.0% fragmentation)
** /dev/ar0s1f (NO WRITE)
** Last Mounted on /usr
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
UNALLOCATED  I=7961594  OWNER=www MODE=100620
SIZE=69292 MTIME=Jan 15 21:06 2009
FILE=/local/www/[removed]/data/scripts/forum/cache/sql_021151d1a377d62dbfaa89a4d1acc716.php

UNEXPECTED SOFT UPDATE INCONSISTENCY

REMOVE? no

UNALLOCATED  I=7961584  OWNER=www MODE=100620
SIZE=4784 MTIME=Jan 15 21:06 2009
FILE=/local/www/[removed]/data/scripts/forum/cache/data_search_results_c34cf621be1e424bde185cb6b71bf55f.php

UNEXPECTED SOFT UPDATE INCONSISTENCY

REMOVE? no

UNALLOCATED  I=7961588  OWNER=www MODE=100620
SIZE=317 MTIME=Jan 15 21:06 2009
FILE=/local/www/[removed]/data/scripts/forum/cache/sql_de3e82ec3f05e04f8caecf9cecb70fe5.php

UNEXPECTED SOFT UPDATE INCONSISTENCY

REMOVE? no

UNALLOCATED  I=7961590  OWNER=www MODE=100620
SIZE=343 MTIME=Jan 15 21:06 2009
FILE=/local/www/[removed]/data/scripts/forum/cache/sql_45386e120e999630d18124e757c15cd5.php

UNEXPECTED SOFT UPDATE INCONSISTENCY

REMOVE? no

UNALLOCATED  I=7961593  OWNER=www MODE=100620
SIZE=155 MTIME=Jan 15 21:06 2009
FILE=/local/www/[removed]/data/scripts/forum/cache/data_search_results_a770f781f984926682ad24b828d1568c.php

UNEXPECTED SOFT UPDATE INCONSISTENCY

REMOVE? no

UNALLOCATED  I=7961595  OWNER=www MODE=100620
SIZE=317 MTIME=Jan 15 21:07 2009
FILE=/local/www/[removed]/data/scripts/forum/cache/sql_f60c9f27d5a394bc6e9a70185d29ccf2.php

UNEXPECTED SOFT UPDATE INCONSISTENCY

REMOVE? no

UNALLOCATED  I=7961597  OWNER=www MODE=100620
SIZE=223 MTIME=Jan 15 21:07 2009
FILE=/local/www/[removed]/data/scripts/forum/cache/data_search_results_99f04705815fd4978b0d47911d8b44ad.php

UNEXPECTED SOFT UPDATE INCONSISTENCY

REMOVE? no

UNALLOCATED  I=7961599  OWNER=www MODE=100620
SIZE=343 MTIME=Jan 15 21:08 2009
FILE=/local/www/[removed]/data/scripts/forum/cache/sql_46c003bc334cf0386554f73d8bb37688.php

UNEXPECTED SOFT UPDATE INCONSISTENCY

REMOVE? no

UNALLOCATED  I=7961600  OWNER=www MODE=100620
SIZE=343 MTIME=Jan 15 21:09 2009
FILE=/local/www/[removed]/data/scripts/forum/cache/sql_0c5aeb430c03186f1c1cd9c56cd3320c.php

UNEXPECTED SOFT UPDATE INCONSISTENCY

REMOVE? no

UNALLOCATED  I=7961601  OWNER=www MODE=100620
SIZE=317 MTIME=Jan 15 21:09 2009
FILE=/local/www/[removed]/data/scripts/forum/cache/sql_1bbabc64d41b06401b3f49122429cfb8.php

UNEXPECTED SOFT UPDATE INCONSISTENCY

REMOVE? no

UNALLOCATED  I=7961602  OWNER=www MODE=100620
SIZE=241 MTIME=Jan 15 21:09 2009
FILE=/local/www/[removed]/data/scripts/forum/cache/data_search_results_708ac649d78e7e8f4912da48dbb2f0d3.php

UNEXPECTED SOFT UPDATE INCONSISTENCY

REMOVE? no

UNALLOCATED  I=10086553  OWNER=www MODE=100660
SIZE=5572 MTIME=Jan 15 21:09 2009
FILE=/local/www/[removed]/data/scripts/forum/images/avatars/upload/f3bd348b1ce8f9503d1d63b34905349d_3218.jpg

UNEXPECTED SOFT UPDATE INCONSISTENCY

REMOVE? no




** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
UNREF FILE  I=7961486  OWNER=www MODE=100620
SIZE=31

freebsd-update question

2009-01-15 Thread Dan Busarow
I'm trying to use freebsd-update to upgrade a system from 7.0-RELEASE- 
p9 to 7.1


running

# freebsd-update upgrade -r 7.1-RELEASE

generates this

  Fetching metadata signature for 7.1-RELEASE from  
update1.FreeBSD.org... done.

  Fetching metadata index... done.
  Fetching 1 metadata patches. done.
  Applying metadata patches... done.
  Fetching 1 metadata files... done.
  Inspecting system... done.
  Fetching files from 7.0-RELEASE for merging... done.
  Preparing to download files... done.
  Fetching 2 files... done.
  /usr/sbin/freebsd-update: cannot open files/.gz: No such file or  
directory

  [snip]
  /usr/sbin/freebsd-update: cannot open files/.gz: No such file or  
directory
  /usr/sbin/freebsd-update: cannot open files/.gz: No such file or  
directory
  /usr/sbin/freebsd-update: cannot open files/.gz: No such file or  
directory

  Attempting to automatically merge changes in files... done.

  The following file will be removed, as it no longer exists in
  FreeBSD 7.1-RELEASE: /boot/device.hints
  Does this look reasonable (y/n)?

A couple hundred of the cannot open lines

This is on a fresh install from a 7.0 boot only CD with installation  
via FTP.


Any ideas what I might be doing wrong?

Thanks,
Dan


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: kernel configuration

2009-01-15 Thread Chuck Swiger

On Jan 15, 2009, at 11:31 AM, Dan Nelson wrote:

Actually, those functions are only enabled if the CPU is truly a
586-class processor.  See /sys/i386/isa/npx.c , the npx_attach()
function.  There is a test for cpu_class==CPUCLASS_586, while most
modern CPUs are CPUCLASS_686.



Thanks for the additional feedback, Dan.  I remember some weirdness  
around things like the VIA C3 "Centaur" processors, which had CMOV  
feature and claimed to be a 686, but lacked SSE...not that those were  
an especially common case, but I still have one floating around.


I see 686- and SSE2-optimized pagezero routines in support.s, but I  
don't see equivalents for bzero, bcopy, and copyin/copyout.  Is  
something like generic_bzero() faster on a 686-class CPU than  
i586_bzero() would be?


Regards,
--
-Chuck

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: working xorg config for ATI Radeon 3850

2009-01-15 Thread Warren Block

On Thu, 15 Jan 2009, Robert Huff wrote:


Does anyone have a working X.org config file for the ATI Radeon
3850?  That they'd be willing to share?
I'm converting from a different card and would rather not
reinvent the wheel.


This worked for me under 8-CURRENT and with the not-yet-released xorg 
7.4.  I don't think there's anything special about it.  No acceleration 
on the HD 3850 yet.


Section "ServerLayout"
Identifier "X.org Configured"
Screen  0  "Screen0" 0 0
InputDevice"Mouse0" "CorePointer"
InputDevice"Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
RgbPath  "/usr/local/share/X11/rgb"
ModulePath   "/usr/local/lib/xorg/modules"
FontPath "/usr/local/lib/X11/fonts/misc/"
FontPath "/usr/local/lib/X11/fonts/TTF/"
FontPath "/usr/local/lib/X11/fonts/OTF"
FontPath "/usr/local/lib/X11/fonts/Type1/"
FontPath "/usr/local/lib/X11/fonts/100dpi/"
FontPath "/usr/local/lib/X11/fonts/75dpi/"
EndSection

Section "Module"
Load  "GLcore"
Load  "xtrap"
EndSection

Section "InputDevice"
Identifier  "Keyboard0"
Driver  "kbd"
EndSection

Section "InputDevice"
Identifier  "Mouse0"
Driver  "mouse"
Option  "Protocol" "auto"
Option  "Device" "/dev/sysmouse"
Option  "ZAxisMapping" "4 5 6 7"
EndSection

Section "DRI"
Group "video"
Mode  0660
EndSection

Section "Monitor"
#DisplaySize  370   300 # mm
Identifier   "Monitor0"
VendorName   "PNR"
ModelName"Planar PE190"
 ### Comment all HorizSync and VertRefresh values to use DDC:
HorizSync24.0 - 80.0
VertRefresh  56.0 - 75.0
Option  "DPMS"
EndSection

Section "Device"
Identifier  "Card0"
Driver  "radeon"
VendorName  "ATI Technologies Inc"
BoardName   "Unknown Board"
BusID   "PCI:1:0:0"
Option  "AccelMethod" "EXA"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor"Monitor0"
DefaultDepth 24
SubSection "Display"
Virtual 1280 1024
EndSubSection
EndSection


-Warren Block * Rapid City, South Dakota USA
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Help! locate.code /tmp: filesystem full

2009-01-15 Thread Andy Wodfer
On Wed, Jan 14, 2009 at 8:27 PM, Glen Barber wrote:

> On Wed, Jan 14, 2009 at 1:34 PM, Andy Wodfer  wrote:
> > Hi,
> > I'm getting an error message every week and I can't seem to understand
> why
> > nor manage to fix it. Here it is:
> >
>
> [snip]
>
> >
> > # df -h
> > Filesystem SizeUsed   Avail Capacity  Mounted on
> > /dev/ar0s1a989M 53M857M 6%/
> > devfs  1.0K1.0K  0B   100%/dev
> > /dev/ar0s1g 48G8.5G 36G19%/backup
> > /dev/ar0s1d989M 44K910M 0%/tmp
> > /dev/ar0s1f387G168G189G47%/usr
> > /dev/ar0s1e7.7G398M6.7G 5%/var
> >
> > As you see there's 910MB free space in /tmp. Should be plenty to run the
> > weekly locate script?
> >
>
> Have you recently had disk failures?  When was your last `fsck' ?
>
> What is the output of `du -h /tmp' ?
>
> To rule out if 910M is not enough, you could `mv' /tmp to /tmp.bak and
> do a hard link pointing a new /tmp somewhere with more space, for
> example /usr/faketmp.
>
> I don't know how this will affect fstab or mount, however.


Thanks for your replies.

The requested outputs are:

# df -i /tmp
Filesystem  1K-blocks Used  Avail Capacity iused  ifree %iused  Mounted on
/dev/ar0s1d   1012974  134 931804 0% 119 1411910%   /tmp

# du -h /tmp
2.0K/tmp/.snap
2.0K/tmp/.XIM-unix
2.0K/tmp/ssh-fc3AdQjUmT
2.0K/tmp/.X11-unix
2.0K/tmp/.ICE-unix
2.0K/tmp/.font-unix
134K/tmp

I have never done a fsck. Didn't really know of this command. I'm running it
now and will post the result when it's finished.

I have had one diskproblem a few months ago. This was the output of that:

ad6: WARNING - SETFEATURES SET TRANSFER MODE taskqueue timeout - completing
request directly
ad6: WARNING - SETFEATURES SET TRANSFER MODE taskqueue timeout - completing
request directly
ad6: WARNING - SETFEATURES ENABLE RCACHE taskqueue timeout - completing
request directly
ad6: WARNING - SETFEATURES ENABLE WCACHE taskqueue timeout - completing
request directly
ad6: WARNING - SET_MULTI taskqueue timeout - completing request directly
ad6: TIMEOUT - READ_DMA retrying (1 retry left) LBA=52327168
ad6: FAILURE - SMART status=51 error=4
ad4: FAILURE - SMART status=51 error=4
ad8: FAILURE - SMART status=51 error=4

Haven't had any trouble since and the server is still running on the same
disks and with the same RAID setup. The server has been up for almost 200
days now. Ofcoure I'm worried that one or more disks are having trouble.

Look forward to your replies. Thanks!

Andy
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: upgrade 7.0 -> 7.1 : portupgrade -af required?

2009-01-15 Thread Olivier Mueller

Hello,

Le 15 janv. 09 à 19:36, Peter Ulrich Kruppa a écrit :

1) On a production server you don't have so many ports, do you?
  So a portupgrade -af wouldn't take that long, would it?


Well, it depends what you mean by "not so many"... :-)

[...@omega09 ~]$ pkg_info | wc -l
 370

"just" for a basic server with apache + mysql + php + spamassassin +  
clamav + qmail...



2) Probably you will get around without -af . But better have a 
look at /usr/ports/UPDATING first.


Yes, it seems it's the answer for the upgrade 7.0 -> 7.1, thanks for  
your answer and the 3 others on the list :)

regards,
Olivier

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


RE: correct way to move users?

2009-01-15 Thread Brad Davison

> > I saw a very breif website that said to use this method:> > > > "> > Move 
> > user entries from the following old files: > > 
> > /etc/passwd/etc/group/etc/master.passwd > > Then run the following command 
> > to rebuild the password database: > > pwd_mkdb -p /etc/master.passwd > > "> 
> > > > > > > i usualy copy the passwd, master.passwd and the group file. keep 
> > in mind > that new users and/or groups can appear in newer versions, if 
> > you're > also upgrading.> > and then pwd_mkdb /etc/master.passwd (i've 
> > never used the -p option but > why not).> > and then rsync the homedirs.
OK, I found a couple users on the 'new' system that are not on the old system.  
'messagebus' and 'polkit'.
 
Can I just copy those users/lines to the old master.passwd and run that?  Or 
should I add them to both the master.passwd as well as the passwd files?
 
Thanks for your reply.
_
Windows Live™ Hotmail®: Chat. Store. Share. Do more with mail. 
http://windowslive.com/explore?ocid=TXT_TAGLM_WL_t1_hm_justgotbetter_explore_012009___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: kernel configuration

2009-01-15 Thread Dan Nelson
In the last episode (Jan 15), Michael Powell said:
> Chuck Swiger wrote:
> > While it is true that you can comment out all but i686 and get a
> > working kernel, you will experience reduced performance.  There are
> > a number of low-level assembly routines (cf sys/i386/i386/support.s
> > such as i586_bcopy) that are conditionalized off of I586_CPU only,
> > even though they provide an advantage on i686 platforms also.
> 
> Thank you very kindly for this info tidbit. In my ignorance I had
> routinely built my kernels with only I686_CPU. Since the few boxen I
> have are all downlevel every niche I can squeak out some performance
> is sought after. Thanks indeed!

Actually, those functions are only enabled if the CPU is truly a
586-class processor.  See /sys/i386/isa/npx.c , the npx_attach()
function.  There is a test for cpu_class==CPUCLASS_586, while most
modern CPUs are CPUCLASS_686.

-- 
Dan Nelson
dnel...@allantgroup.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


portupgrade <-> portmaster?

2009-01-15 Thread Ewald Jenisch
Hi,

Having used portupgrade for several years I'm thinking to make the
switch to portmaster since both of them seem to be fully supported as
far as upgrading ports is concerned.

Anything to consider when going from portupgrade to portmaster?

Caveats/pitfalls?

Is there also a way back, i.e. from portmaster to portupgrade?

What are your experiences with portmaster, esp. in terms of stability,
handling, features?

Thanks much in advance,
-ewald

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Help needed w/ HighPoint RocketRAID 3120 on FreeBSD 7.1-RELEASE

2009-01-15 Thread Michael Powell
Jeremy Gagliardi wrote:

> I'm having trouble with HighPoint RocketRAID 3120 on FreeBSD 7.1-RELEASE.
> 
> I have 2 disks on it in a mirror configuration.  Everything seems to go
> swimmingly through the FreeBSD installation, up until the final reboot...
> 
> 1) Boot from Disc 1.
> 2) At the "Welcome to FreeBSD" screen, choose option "6"
> ok load hptiop
> ok boot
> 3) It recognizes my mirror as device "da0" and I proceed with the
> installation.
> 4) I install all distros, except X.org & Ports.
> 5) At the tail end, before rebooting, I enter a shell and vi
> /boot/loader.conf.  I add the line:
> hptiop_load="YES"
> 6) REBOOT.
> 
> The following happens...
> a) RocketRAID card beeps
> b) I see the BIOS splash screen
> c) I see RocketRAID splash screen
> d) It resets and repeats everything above.
> 
> I never even get a boot loader menu to try troubleshooting.
> 
> What did I miss?  Why can't this thing boot?  Unfortunately, HighPoint's
> User Manual was last updated in 2007, when FreeBSD 6.1 was the latest.
> Since then, the hptiop driver was added to 7.x, and that's what I'm trying
> to use.  To be clear, the problem isn't that I can get FreeBSD to mount
> and recognize it, I can.  The problem is being able to boot from it.
> 
[snip]

In your motherboard BIOS is there any entry that controls which controller
boots first? If so set it to boot from the add-in card first instead of the
onboard controller. Also ensure that in the Highpoint card BIOS INT 13 is 
"on", should be this way by default.

-Mike



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: howto determine network device unit number? device.hints?

2009-01-15 Thread Brooks Davis
On Thu, Jan 15, 2009 at 08:07:35PM +0200, Yony Yossef wrote:
> > Eygene Ryabinkin wrote:
> > > ...
> > > I wanted to stress only one point: simple 'kldunload ' and
> > > 'kldload ' makes devices to flip for Yony's case.
> > This means
> > > that unless some PCI hotplug stuff is here (which I don't
> > believe to
> > > be present, because no physical cards are touched and there is
> > > actually a small amount of PCI hotplug support in FreeBSD), no
> > > physical PCI devices get added or removed from the PCI
> > child tree.  It
> > > looks like that something goes wrong during the PCI tree reprobe on
> > > the driver module loading.
> > >
> >
> > BTW: Thanks for looking further at the software layer first.
> >
> > VIM is a wee bit easier to use than a bus analyzer.
> >
> > Most motherboards don't support PCI geographical addressing,
> > so... I wager it's the network driver code which may be the
> > source of the problem, based on your analysis!
> >
> > If this code just doing a blind bump of an instance count and
> > using that as a "unit number"... well, that's OK and expected
> > for software virtual devices, but is counter-intuitive for
> > something like hardware.
> >
> > But I don't have any mtnic source, so this is pure
> > speculation on my part.
> >
> > > Correct me if I am wrong, but pci_driver_added from /sys/pci/pci.c
> > > will invoke device_get_children() to get the list of the attached
> > > devices, and for PCI case the list should be static.
> > >
> >
> > Yup, that's right.
> >
> > > I guess that when Yony will enable verbose boot and will show us
> > > kernel messages from two successive kldunload/kldload sequences, we
> > > will get some additional information about what's going on.
> > >
> >
> > Hopefully he will chime in...
> >
> > [bms does some google searching *before* he thinks about
> > throwing his toys out of the pram at the Orignal.Poster.]
> >
> > ding :-) [a light bulb above bms' head]
> >
> > So... Yony. you're writing a driver.
> > Maybe there's a bug in it?
> > That's cool, dude.
> > Hope it's a nice card and you plan on sharing the sweets with
> > the rest of the class. ;-)
> >
> > But seriously, please mention that you are writing a driver
> > in general questions you might ask about the whole system,
> > otherwise, FreeBSD volunteers will run around going "Is core
> > code broken?" and that's not so good for community stress
> > levels as a whole.
> >
> > with lemonade,
> > BMS
> 
> Sorry for risking the whole community with a massive heart attack Bruce :)
> Yes, I am writing a driver and yes, it still has a bug or two I guess..
> About sharing it with the rest of the class, that's something I wanted
> to ask you guys:  what's the procedure for a 10GigE driver to apply
> for the FreeBSD kernel?

Pretty much just get it working, make sure it's licensed under a BSD,
MIT, or ISC license (ideally, others are possible, but require more
approval), and then find someone to review and commit it or sponsor the
maintainer for a commit bit.  

> Mellanox has started porting it's products to FreeBSD about a year
> ago, hoping to see our 10GigE and InfiniBand drivers inbox next year.

Excellent.

-- Brooks

> 
> Yony
> ___
> freebsd-...@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-net
> To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"
> 


pgpukKMps5Mc7.pgp
Description: PGP signature


Re: howto determine network device unit number? device.hints?

2009-01-15 Thread Yony Yossef
> Eygene Ryabinkin wrote:
> > ...
> > I wanted to stress only one point: simple 'kldunload ' and
> > 'kldload ' makes devices to flip for Yony's case.
> This means
> > that unless some PCI hotplug stuff is here (which I don't
> believe to
> > be present, because no physical cards are touched and there is
> > actually a small amount of PCI hotplug support in FreeBSD), no
> > physical PCI devices get added or removed from the PCI
> child tree.  It
> > looks like that something goes wrong during the PCI tree reprobe on
> > the driver module loading.
> >
>
> BTW: Thanks for looking further at the software layer first.
>
> VIM is a wee bit easier to use than a bus analyzer.
>
> Most motherboards don't support PCI geographical addressing,
> so... I wager it's the network driver code which may be the
> source of the problem, based on your analysis!
>
> If this code just doing a blind bump of an instance count and
> using that as a "unit number"... well, that's OK and expected
> for software virtual devices, but is counter-intuitive for
> something like hardware.
>
> But I don't have any mtnic source, so this is pure
> speculation on my part.
>
> > Correct me if I am wrong, but pci_driver_added from /sys/pci/pci.c
> > will invoke device_get_children() to get the list of the attached
> > devices, and for PCI case the list should be static.
> >
>
> Yup, that's right.
>
> > I guess that when Yony will enable verbose boot and will show us
> > kernel messages from two successive kldunload/kldload sequences, we
> > will get some additional information about what's going on.
> >
>
> Hopefully he will chime in...
>
> [bms does some google searching *before* he thinks about
> throwing his toys out of the pram at the Orignal.Poster.]
>
> ding :-) [a light bulb above bms' head]
>
> So... Yony. you're writing a driver.
> Maybe there's a bug in it?
> That's cool, dude.
> Hope it's a nice card and you plan on sharing the sweets with
> the rest of the class. ;-)
>
> But seriously, please mention that you are writing a driver
> in general questions you might ask about the whole system,
> otherwise, FreeBSD volunteers will run around going "Is core
> code broken?" and that's not so good for community stress
> levels as a whole.
>
> with lemonade,
> BMS

Sorry for risking the whole community with a massive heart attack Bruce :)
Yes, I am writing a driver and yes, it still has a bug or two I guess..
About sharing it with the rest of the class, that's something I wanted
to ask you guys:  what's the procedure for a 10GigE driver to apply
for the FreeBSD kernel?

Mellanox has started porting it's products to FreeBSD about a year
ago, hoping to see our 10GigE and InfiniBand drivers inbox next year.

Yony
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: howto determine network device unit number? device.hints?

2009-01-15 Thread Yony Yossef
> Thu, Jan 15, 2009 at 01:15:53PM +0200, Yony Yossef wrote:
> > > You're using your own driver, aren't you?  If yes, could you show
> > > your device_method_t structure and the corresponding identify,
> > > probe, attach and detach routines?  You're setting the
> unit numbers
> > > via 'if_initname(ifp, device_get_name(dev),
> device_get_unit(dev))'
> > > or alike?
> >
> > My device has 2 ports, therefore my if_initname is that:
> >
> > if_initname(dev, device_get_name(mdev->pdev),
> > port + 2 * device_get_unit(mdev->pdev));
>
> So, you totally have four network interfaces -- two for each
> PCI device?
>
> > This is what I captured the last time it happened.
> >
> > # pciconf -l | grep mtnic
> > mtn...@pci0:19:0:0: class=0x02 card=0x001715b3
> chip=0x636815b3
> > rev=0xa0 hdr=0x00
> > mtn...@pci0:16:0:0: class=0x02 card=0x001715b3
> chip=0x636815b3
> > rev=0xa0 hdr=0x00
> >
> > # kldunload if_mtnic
> > # kldload if_mtnic
> >
> > # pciconf -l | grep mtnic
> > mtn...@pci0:19:0:0: class=0x02 card=0x001715b3
> chip=0x636815b3
> > rev=0xa0 hdr=0x00
> > mtn...@pci0:16:0:0: class=0x02 card=0x001715b3
> chip=0x636815b3
> > rev=0xa0 hdr=0x00
>
> Could you do the following:
>
> 1. Boot with verbose kernel mode (push '5' on the boot screen).
> 2. Kldload your module and provide the full list of kernel messages
>you will see after this action.
> 3. Kldunload and again, provide all messages kernel will print
>for this.
> 4. Kldload again and supply all messages for the last time.
>
> This will show the PCI enumeration sequence and probe order
> for your driver pci device units.  This might shed some light
> on the problem.
>

This is the flow I've done, you can see the swapping happened again:

[r...@sw247 ~]# pciconf -l | grep mtnic
mtn...@pci0:19:0:0: class=0x02 card=0x001715b3 chip=0x636815b3
rev=0xa0 hdr=0x00
mtn...@pci0:16:0:0: class=0x02 card=0x001715b3 chip=0x636815b3
rev=0xa0 hdr=0x00
[r...@sw247 ~]# kldunload if_mtnic
[r...@sw247 ~]# kldload if_mtnic
[r...@sw247 ~]# pciconf -l | grep mtnic
mtn...@pci0:19:0:0: class=0x02 card=0x001715b3 chip=0x636815b3
rev=0xa0 hdr=0x00
mtn...@pci0:16:0:0: class=0x02 card=0x001715b3 chip=0x636815b3
rev=0xa0 hdr=0x00

/var/log/messages during this flow (the brackets are my addition ofcourse):

[kldunload if_mtnic]

Jan 15 19:27:46 sw247 kernel: mtnic0: Destroying netdev on port:0
Jan 15 19:27:46 sw247 kernel: mtnic0: Destroying netdev on port:1
Jan 15 19:27:46 sw247 kernel: mtnic0: Reseting device...
Jan 15 19:27:46 sw247 kernel: mtnic0: Reset complete.
Jan 15 19:27:46 sw247 kernel: mtnic0: detached
Jan 15 19:27:46 sw247 kernel: mtnic1: Destroying netdev on port:0
Jan 15 19:27:46 sw247 kernel: mtnic1: Destroying netdev on port:1
Jan 15 19:27:47 sw247 kernel: mtnic1: Reseting device...
Jan 15 19:27:47 sw247 kernel: mtnic1: Reset complete.
Jan 15 19:27:47 sw247 kernel: mtnic1: detached

[kldload if_mtnic]

Jan 15 19:28:04 sw247 kernel: pci0: driver added
Jan 15 19:28:04 sw247 kernel: found->   vendor=0x0e11, dev=0xb203, revid=0x03
Jan 15 19:28:04 sw247 kernel: domain=0, bus=0, slot=4, func=0
Jan 15 19:28:04 sw247 kernel: class=08-80-00, hdrtype=0x00, mfdev=1
Jan 15 19:28:04 sw247 kernel: cmdreg=0x0103, statreg=0x0290,
cachelnsz=0 (dwords)
Jan 15 19:28:04 sw247 kernel: lattimer=0x00 (0 ns), mingnt=0x00 (0
ns), maxlat=0x00 (0 ns)
Jan 15 19:28:04 sw247 kernel: intpin=a, irq=25
Jan 15 19:28:04 sw247 kernel: powerspec 3  supports D0 D3  current D0
Jan 15 19:28:04 sw247 kernel: pci0:0:4:0: reprobing on driver added
Jan 15 19:28:04 sw247 kernel: found->   vendor=0x0e11, dev=0xb204, revid=0x03
Jan 15 19:28:04 sw247 kernel: domain=0, bus=0, slot=4, func=2
Jan 15 19:28:04 sw247 kernel: class=08-80-00, hdrtype=0x00, mfdev=1
Jan 15 19:28:04 sw247 kernel: cmdreg=0x0117, statreg=0x0290,
cachelnsz=16 (dwords)
Jan 15 19:28:04 sw247 kernel: lattimer=0x40 (1920 ns), mingnt=0x00 (0
ns), maxlat=0x00 (0 ns)
Jan 15 19:28:04 sw247 kernel: intpin=b, irq=26
Jan 15 19:28:04 sw247 kernel: powerspec 3  supports D0 D3  current D0
Jan 15 19:28:04 sw247 kernel: pci0:0:4:2: reprobing on driver added
Jan 15 19:28:04 sw247 kernel: found->   vendor=0x103c, dev=0x3302, revid=0x00
Jan 15 19:28:04 sw247 kernel: domain=0, bus=0, slot=4, func=6
Jan 15 19:28:04 sw247 kernel: class=0c-07-01, hdrtype=0x00, mfdev=1
Jan 15 19:28:04 sw247 kernel: cmdreg=0x0002, statreg=0x0290,
cachelnsz=0 (dwords)
Jan 15 19:28:04 sw247 kernel: lattimer=0x00 (0 ns), mingnt=0x00 (0
ns), maxlat=0x00 (0 ns)
Jan 15 19:28:04 sw247 kernel: intpin=a, irq=25
Jan 15 19:28:04 sw247 kernel: powerspec 3  supports D0 D3  current D0
Jan 15 19:28:04 sw247 kernel: pci0:0:4:6: reprobing on driver added
Jan 15 19:28:04 sw247 kernel: pci1: driver added
Jan 15 19:28:04 sw247 kernel: pci2: driver added
Jan 15 19:28:04 sw247 kernel: pci8: driver added
Jan 15 19:28:04 sw247 kernel: pci9: driver added
Jan 15 19:28:04 sw247 kernel: pci10: driver added
Jan 15 19:28:04 sw247 kernel:

Re: howto determine network device unit number? device.hints?

2009-01-15 Thread Eygene Ryabinkin
Bruce, good day.

Thu, Jan 15, 2009 at 03:01:37PM +, Bruce M. Simpson wrote:
> Bruce M. Simpson wrote:
> > In your case I'm not sure why your two cards would flip order. Could 
> > it be how your BIOS and hardware set up the PCI IDSEL lines at boot?
> 
> If this is the case on your system, then you really need to provide more 
> data about your hardware, i.e. motherboard, BIOS, vendor information 
> etc. as others point out.

I wanted to stress only one point: simple 'kldunload ' and
'kldload ' makes devices to flip for Yony's case.  This means
that unless some PCI hotplug stuff is here (which I don't believe to be
present, because no physical cards are touched and there is actually a
small amount of PCI hotplug support in FreeBSD), no physical PCI devices
get added or removed from the PCI child tree.  It looks like that
something goes wrong during the PCI tree reprobe on the driver module
loading.

Correct me if I am wrong, but pci_driver_added from /sys/pci/pci.c will
invoke device_get_children() to get the list of the attached devices,
and for PCI case the list should be static.

Here is what I get for the 'kldload if_em' with verbose boot:
-
pci0: driver added
found-> vendor=0x8086, dev=0x283e, revid=0x02
domain=0, bus=0, slot=31, func=3
class=0c-05-00, hdrtype=0x00, mfdev=0
cmdreg=0x0001, statreg=0x0280, cachelnsz=0 (dwords)
lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns)
intpin=c, irq=18
pci0:0:31:3: reprobing on driver added
pci1: driver added
pci2: driver added
pci3: driver added
pci4: driver added
pci5: driver added
found-> vendor=0x8086, dev=0x1010, revid=0x01
domain=0, bus=5, slot=3, func=0
class=02-00-00, hdrtype=0x00, mfdev=1
cmdreg=0x0017, statreg=0x0230, cachelnsz=8 (dwords)
lattimer=0x40 (1920 ns), mingnt=0xff (63750 ns), maxlat=0x00 (0 ns)
intpin=a, irq=16
powerspec 2  supports D0 D3  current D0
MSI supports 1 message, 64 bit
pci0:5:3:0: reprobing on driver added
em0:  port 0xb880-0xb8bf mem 
0xff7c-0xff7d irq 16 at device 3.0 on pci5
pcib5: em0 requested memory range 0xff7c-0xff7d: good
pcib5: em0 requested I/O range 0xb880-0xb8bf: in range
em0: [FILTER]
em0: bpf attached
em0: Ethernet address: NN:NN:NN:NN:NN:NN
found-> vendor=0x8086, dev=0x1010, revid=0x01
domain=0, bus=5, slot=3, func=1
class=02-00-00, hdrtype=0x00, mfdev=1
cmdreg=0x0017, statreg=0x0230, cachelnsz=8 (dwords)
lattimer=0x40 (1920 ns), mingnt=0xff (63750 ns), maxlat=0x00 (0 ns)
intpin=b, irq=17
powerspec 2  supports D0 D3  current D0
MSI supports 1 message, 64 bit
pci0:5:3:1: reprobing on driver added
em1:  port 0xbc00-0xbc3f mem 
0xff7e-0xff7f irq 17 at device 3.1 on pci5
pcib5: em1 requested memory range 0xff7e-0xff7f: good
pcib5: em1 requested I/O range 0xbc00-0xbc3f: in range
em1: [FILTER]
em1: bpf attached
em1: Ethernet address: NN:NN:NN:NN:NN:NN
-
And this message is stable across repeated kldunload/kldload.

I guess that when Yony will enable verbose boot and will show us kernel
messages from two successive kldunload/kldload sequences, we will get
some additional information about what's going on.
-- 
Eygene
 ____   _.--.   #
 \`.|\.....-'`   `-._.-'_.-'`   #  Remember that it is hard
 /  ' ` ,   __.--'  #  to read the on-line manual
 )/' _/ \   `-_,   /#  while single-stepping the kernel.
 `-'" `"\_  ,_.-;_.-\_ ',  fsc/as   #
 _.-'_./   {_.'   ; /   #-- FreeBSD Developers handbook
{_.-``-' {_/#
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: howto determine network device unit number? device.hints?

2009-01-15 Thread Bruce M. Simpson

Eygene Ryabinkin wrote:

...
I wanted to stress only one point: simple 'kldunload ' and
'kldload ' makes devices to flip for Yony's case.  This means
that unless some PCI hotplug stuff is here (which I don't believe to be
present, because no physical cards are touched and there is actually a
small amount of PCI hotplug support in FreeBSD), no physical PCI devices
get added or removed from the PCI child tree.  It looks like that
something goes wrong during the PCI tree reprobe on the driver module
loading.
  


BTW: Thanks for looking further at the software layer first.

VIM is a wee bit easier to use than a bus analyzer.

Most motherboards don't support PCI geographical addressing, so... I 
wager it's the network driver code which may be the source of the 
problem, based on your analysis!


If this code just doing a blind bump of an instance count and using that 
as a "unit number"... well, that's OK and expected for software virtual 
devices, but is counter-intuitive for something like hardware.


But I don't have any mtnic source, so this is pure speculation on my part.


Correct me if I am wrong, but pci_driver_added from /sys/pci/pci.c will
invoke device_get_children() to get the list of the attached devices,
and for PCI case the list should be static.
  


Yup, that's right.


I guess that when Yony will enable verbose boot and will show us kernel
messages from two successive kldunload/kldload sequences, we will get
some additional information about what's going on.
  


Hopefully he will chime in...

[bms does some google searching *before* he thinks about throwing his 
toys out of the pram at the Orignal.Poster.]


ding :-) [a light bulb above bms' head]

So... Yony. you're writing a driver.
Maybe there's a bug in it?
That's cool, dude.
Hope it's a nice card and you plan on sharing the sweets with the rest 
of the class. ;-)


But seriously, please mention that you are writing a driver in general 
questions you might ask about the whole system, otherwise, FreeBSD 
volunteers will run around going "Is core code broken?" and that's not 
so good for community stress levels as a whole.


with lemonade,
BMS
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: kernel configuration

2009-01-15 Thread Michael Powell
Chuck Swiger wrote:

[snip]
> 
> While it is true that you can comment out all but i686 and get a
> working kernel, you will experience reduced performance.  There are a
> number of low-level assembly routines (cf sys/i386/i386/support.s such
> as i586_bcopy) that are conditionalized off of I586_CPU only, even
> though they provide an advantage on i686 platforms also.
> 

Thank you very kindly for this info tidbit. In my ignorance I had
routinely built my kernels with only I686_CPU. Since the few boxen
I have are all downlevel every niche I can squeak out some performance
is sought after. Thanks indeed!

-Mike


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: freebsd encrypted hard disk?

2009-01-15 Thread Wojciech Puchar


It turns out that on a multi-core machine a geli thread is started on
each core for each disk (4 cores, two disks):


and it is actually used when many transfers are done in parallel.

my core2duo saturates (both cores 100% load) at about 100MB/s disk I/O
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: sysctl machdep.independent_wallclock

2009-01-15 Thread Mister Olli
hi...


> what is the exact function of this sysctl setting?
> 
> I'm guessing it's something to do with Xen, having seen a few
> references in Linux for xen.machdep.independent_wallclock. 
> 
> Have a look here:
> http://docs.xensource.com/XenServer/4.0.1/guest/ch04s06.html

yeah, I know that sysctl from linux, but I wasn't quite sure if it is
the same in FreeBSD, since it's known as 'xen.independent_wallclock' in
linux and 'machdep.independent_wallclock' in FreeBSD.

I started reading the C-code of FreeBSD, and from my understanding the
function 'should' be the same, as it's really linked to the clock
handling with XEN in FreeBSD.

but from my understanding it's not completly implemented in 8-CURRENT
(as of 15 jan 2009; see the last lines):

/*
 * Write system time back to RTC.  
 */
static void
domu_resettodr(void)
{
unsigned long tm;
int s;
dom0_op_t op;
struct shadow_time_info *shadow;

shadow = &per_cpu(shadow_time, smp_processor_id());
if (xen_disable_rtc_set)
return;

s = splclock();
tm = time_second;
splx(s);

tm -= tz_minuteswest * 60 + (wall_cmos_clock ? adjkerntz : 0);

if ((xen_start_info->flags & SIF_INITDOMAIN) &&
!independent_wallclock)
{
op.cmd = DOM0_SETTIME;
op.u.settime.secs= tm;
op.u.settime.nsecs   = 0;
op.u.settime.system_time = shadow->system_timestamp;
HYPERVISOR_dom0_op(&op);
update_wallclock();
} else if (independent_wallclock) {
/* notyet */
;
}   
}

is that correct???

greetz
olli
> 

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: freebsd encrypted hard disk?

2009-01-15 Thread Roland Smith
On Thu, Jan 15, 2009 at 02:06:58AM +, RW wrote:
> On Thu, 15 Jan 2009 00:20:54 +0100
> Roland Smith  wrote:
> 
> > On Wed, Jan 14, 2009 at 10:55:38PM +, RW wrote:
> 
> > > Not just in reduced transfer rates, but also in terms of CPU cycles
> > > used - a sustained geli to geli file copy makes things really slow
> > > for me.
> > 
> > That's probably because two geli kernel threads are competing for time
> > on a single core. I've had problems with that as well (geli-encrypted
> > USB drive stalling).
> > 
> > Since I've switched to a multi-core machine (where the number of cores
> > should be at least equal to the number of geli-encrypted devices), CPU
> > load for gele has dropped to barely noticable.
> > 
> 
> I find that puzzling; have you measured that on sustained geli to
> geli transfers (with GB size files).

Not really. My previous single core machine kept stalling the drive. So
instead of storing dumps for my biggest (/home) partition, I've turned to
rsync-ing that, and using dumps for /, /usr and /var.

I just did a simple test: copying a  5249634304 byte file from a non-encrypted
disk to an encrypted one. This took 3:22 with the CPU load hovering at
10-13% at full speed. That's around 24.8 MiB/s.

Copying the same file to another location on the unencrypted disk
takes 2:57 with the CPU at around 5% at about 3/4 speed. That comes down
to 28.3 MiB/s. 

Not a big difference IMHO. In normal usage the encrypted partition
doesn't feel slower, because there are still at least two cores fully
available for other jobs so interactivity doesn't suffer. A single-core
machine would obviously feel different.

The only thing that takes a while is compiling ports and big LaTeX jobs
(compiling 300 pages five times with makeindex and bibtex runs in
between).

> The reason I'm a bit sceptical is that dd'ing /dev/random to /dev/null
> runs at about 20MBytes/s on my single core (verses 700MBytes/s
> for /dev/zero). File copies into geli run at about 15Mbytes/s, openssl
> enc -aes-256-cbs runs at about the same ballpark figure. 

I get:
dd if=/dev/random of=/dev/null bs=64k count=1
1+0 records in
1+0 records out
65536 bytes transferred in 10.693598 secs (61285266 bytes/sec)

say 58 MiB/s

dd if=/dev/zero of=/dev/null bs=64k count=1
1+0 records in
1+0 records out
65536 bytes transferred in 0.281247 secs (2330194568 bytes/sec)

or around 2200 MiB/s

And that is obviously running on _one_ core (CPU at approx. 25%).

> Even if I had
> multi-cores I would still be cpu-limited to 20MB/s, and that would fully
> occupy two cores on geli to geli transfers. Your cores are probably
> faster, but I'd expect a factor of two or so would be swallowed-up by
> faster transfers. I don't see how cpu usage would be negligible unless
> your individual cores are an order of magnitude faster than that.

It turns out that on a multi-core machine a geli thread is started on
each core for each disk (4 cores, two disks):

ps -xa | grep g_eli
   92  ??  DL 5:31.75 [g_eli[0] ad4s1g]
   93  ??  DL 6:33.76 [g_eli[1] ad4s1g]
   94  ??  DL 6:26.02 [g_eli[2] ad4s1g]
   95  ??  DL 7:41.18 [g_eli[3] ad4s1g]
   98  ??  DL 1:49.60 [g_eli[0] ad6s1g]
   99  ??  DL 1:30.30 [g_eli[1] ad6s1g]
  100  ??  DL 1:53.87 [g_eli[2] ad6s1g]
  101  ??  DL 1:50.64 [g_eli[3] ad6s1g]

This can be tuned with the sysctl 'kern.geom.eli.threads'.

> Just out of curiosity what rate do you get on  
> dd if=/dev/random of=/dev/null bs=64k count=1

See above.
 
Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgpA9YGVk7E0A.pgp
Description: PGP signature


working xorg config for ATI Radeon 3850

2009-01-15 Thread Robert Huff

Does anyone have a working X.org config file for the ATI Radeon
3850?  That they'd be willing to share?
I'm converting from a different card and would rather not
reinvent the wheel.


Robert Huff
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: gvinum & gjournal

2009-01-15 Thread Ulf Lilleengen
On Thu, Jan 15, 2009 at 02:22:13PM +0100, Ivan Voras wrote:
> Ulf Lilleengen wrote:
> > On Wed, Jan 14, 2009 at 04:23:30PM -0500, Brian McCann wrote:
> >> Hi all.  I'm cross-posting this since I figure I'll have better luck
> >> finding someone who's done this before...
> >>
> >> I'm building a system that has 4 1.5TB Seagate SATA drives in it.
> >> I've setup gvinum and made mirrors for my OS partitions, and a raid5
> >> plex for a big data partition.  I'm trying to get gjournal to run on
> >> the raid5 volume...but it's doing stuff that isn't expected.  First,
> >> here's my gvinum config for the array:
> >>
> >> ---snip---
> >> drive e0 device /dev/ad8s1g
> >> drive e1 device /dev/ad10s1g
> >> drive e2 device /dev/ad12s1g
> >> drive e3 device /dev/ad14s1g
> >> volume array1
> >>   plex org raid5 128k
> >> sd drive e0
> >> sd drive e1
> >> sd drive e2
> >> sd drive e3
> >> ---/snip---
> >>
> >> Now...according to the handbook. the volume it creates is essentially
> >> a disk drive.  So...I run the following gjournal commands to make the
> >> journal, and here's what I get:
> >>
> >> ---snip---
> >> # gjournal label /dev/gvinum/array1
> >> GEOM_JOURNAL: Journal 4267655417: gvinum/plex/array1.p0 contains data.
> >> GEOM_JOURNAL: Journal 4267655417: gvinum/plex/array1.p0 contains journal.
> >> GEOM_JOURNAL: Journal gvinum/plex/array1.p0 clean.
> >> GEOM_JOURNAL: BIO_FLUSH not supported by gvinum/plex/array1.p0.
> >> # gjournal list
> >> Geom name: gjournal 4267655417
> >> ID: 4267655417
> >> Providers:
> >> 1. Name: gvinum/plex/array1.p0.journal
> >>Mediasize: 4477282549248 (4.1T)
> >>Sectorsize: 512
> >>Mode: r0w0e0
> >> Consumers:
> >> 1. Name: gvinum/plex/array1.p0
> >>Mediasize: 4478356291584 (4.1T)
> >>Sectorsize: 512
> >>Mode: r1w1e1
> >>Jend: 4478356291072
> >>Jstart: 4477282549248
> >>Role: Data,Journal
> >> --/snip---
> >>
> >> So...why is it even touching the plex p0?  I figured it would, just
> >> like on a disk, if I gave it da0, create da0.journal.  Moving on, if I
> >> try to newfs the journal, which is now
> >> "gvinum/plex/array1.p0.journal", I get:
> >>
> > Hi,
> > 
> > It think that it touches it because the .p0 contains the gjournal metadata 
> > in
> > the same way that the volume does, so gjournal attaches to that before the
> > volume. One problem is that gjournal attaches to the "wrong" provider, but
> > it's also silly that the provider is exposed in the first place. A fix for
> > this is in a newer version of gvinum (as the plex is not exposed) if you're
> > willing to try.
> > 
> 
> A simpler fix is to use the "-h" - "hardcode provider name" switch to
> the "gjournal label" command (see the man page).
> 
Oh, nice feature. I recommend this then :)

-- 
Ulf Lilleengen
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: gvinum & gjournal

2009-01-15 Thread Ulf Lilleengen
On tor, jan 15, 2009 at 07:14:25am -0500, Brian McCann wrote:
> On Thu, Jan 15, 2009 at 4:33 AM, Ulf Lilleengen
>  wrote:
> > Hi,
> >
> > It think that it touches it because the .p0 contains the gjournal metadata 
> > in
> > the same way that the volume does, so gjournal attaches to that before the
> > volume. One problem is that gjournal attaches to the "wrong" provider, but
> > it's also silly that the provider is exposed in the first place. A fix for
> > this is in a newer version of gvinum (as the plex is not exposed) if you're
> > willing to try.
> >
> > --
> > Ulf Lilleengen
> >
> 
> At this point, I'm willing to try anything, but preferably something
> that's stable since this will be done to at least 15 identical devices
> and sent out to various places, so I won't have physical access to the
> machines if something were to go wrong.  I looked into graid3 and
> booting off of a DOM/Flash card, but since I have 4 drives, that won't
> work since graid3 requires 2N+1 drives.  The stuff I've found on
> graid5 seems to say that it's all still really experimental and has
> some bugs in it still. :(
> 
Well, if you have the choice between and graid5 and gvinum I'd might go with
graid5. It's not included in head(yet) but from what I've read on the
mailinglist it seems to work (also included in FreeNAS). But I can't really
say anything as I've not tried it much. If you want to try the gvinum version
in progress (quite stable, although a few knits for advanced usage) can be
found here:

http://svn.freebsd.org/base/projects/gvinum 

Should work on both HEAD and RELENG_7.
-- 
Ulf Lilleengen
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: updating to 7.1 with a small root slice

2009-01-15 Thread Jerry McAllister
On Wed, Jan 14, 2009 at 06:30:27PM +0100, Zbigniew Szalbot wrote:

> Hello Jerry,
> 
> > Anyway, 256 MB should be plenty of space for / slash unless you
> > are putting everything in it.
> 
> My main mistake was that I had
> makeoptionsDEBUG=-g
> in the kernel config file. That made for a ~130MB kernel so when I

Ah, that would make a big difference.   You only need that when
you are trying to debug a specific problem or if you are doing
kernel development.

Good luck,

jerry

> compiled and tried to install a new one, it ran out of space (it would
> be about 260 MB but I only had 242 MB).
> 
> Many thanks for all you detailed instructions though!
> 
> -- 
> Zbigniew Szalbot
> www.slowo.pl
> www.fairtrade.net.pl
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


RE: upgrade 7.0 -> 7.1 : portupgrade -af required?

2009-01-15 Thread Johan Hendriks


-Oorspronkelijk bericht-
Van: owner-freebsd-questi...@freebsd.org 
[mailto:owner-freebsd-questi...@freebsd.org] Namens matt donovan
Verzonden: donderdag 15 januari 2009 16:47
Aan: Olivier Mueller
CC: freebsd-questions@freebsd.org; freebsd-po...@freebsd.org
Onderwerp: Re: upgrade 7.0 -> 7.1 : portupgrade -af required?

On Thu, Jan 15, 2009 at 10:07 AM, Olivier Mueller wrote:

> Hello,
>
> After an upgrade from FreeBSD 7.0 to 7.1 (with freebsd-update in my
> case), is it required to recompile all ports (portupgrade -af) like
> specified in some docs/blog-entries, or is it not *really* necessary?
> What are you doing on your production systems?   Having to upgrade
> several servers (>15), it's quite important for me to estimate the time
> required for the operation...
>
> I did the upgrade on a test server here, and all ports still seems to
> work  (apache, php, mysql, etc.) so I guess the answer is no, but I'd
> like to be sure before upgrading some important servers :-)
>
> According to:
>
> http://www.freebsd.org/releases/7.1R/announce.html
> "Users of earlier FreeBSD releases (FreeBSD 6.x) can also use
> freebsd-update to upgrade to FreeBSD 7.1, but will be prompted to
> rebuild all third-party applications (e.g., anything installed from the
> ports tree) after the second invocation of "freebsd-update install", in
> order to handle differences in the system libraries between FreeBSD 6.x
> and FreeBSD 7.x."
>
> It would be necessary only for major upgrades (6.x -> 7.x).   Right?
>
> thanks & regards,
> Olivier
>
> ___
> freebsd-po...@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Only tiem to rebuild ports really is for a major version change say 6. ->
7.x but for a minor version change you do not have to rebuild
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

No virus found in this incoming message.
Checked by AVG - http://www.avg.com 
Version: 8.0.176 / Virus Database: 270.10.7/1895 - Release Date: 15-1-2009 7:46

No virus found in this outgoing message.
Checked by AVG - http://www.avg.com 
Version: 8.0.176 / Virus Database: 270.10.7/1895 - Release Date: 15-1-2009 7:46
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Launching Vim

2009-01-15 Thread Rem P Roberti



Rem P Roberti wrote:
  

Can someone give me a heads up on this.  I just installed vim, but when
I try to launch
the program I get this error message:

/libexec/ld-elf.so.1: Shared object "libperl.so" not found, required by
"vim"

Is this a path problem?  The actual file libperl.so recides in
/usr/local/lib/perl5/5.8.9/mach/CORE/libperl.so



First, run:

# /etc/periodic/weekly/310.locate

Then, provide the output to:

# locate libperl.so
# echo $PATH

Steve

  



After I recovered the ability to do deinstall/reinstall I did just that
with vim and it solved the problem.  I'm still not sure why the original
problem occurred, but everything is working now. 


Rem
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Can't install from ports

2009-01-15 Thread Rem P Roberti



Rem P Roberti  writes:

  

Boy, this hasn't been a good night.  I am unable to install from
ports.  When I attempt to do
a compile I get this error message:

1 open conditional:
at line 131 (evaluated to true)
make: fatal errors encountered -- cannot continue



This may help to narrow down your problem:
. update your ports tree;
. temporarily remove /etc/make.conf.


WBR
  


And it turns out that the make.conf file was the culprit.  I had put an 
entry in there

to prevent CUPS from installing lp in the wrong place, and that caused the
problem.  All is well.

Rem
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: howto determine network device unit number? device.hints?

2009-01-15 Thread Bruce M. Simpson

Yony,

Bruce M. Simpson wrote:


And how come the unit number is given an arbitrary value? Is there a 
good

reason for that?
  

...

In your case I'm not sure why your two cards would flip order. Could 
it be how your BIOS and hardware set up the PCI IDSEL lines at boot?


If this is the case on your system, then you really need to provide more 
data about your hardware, i.e. motherboard, BIOS, vendor information 
etc. as others point out.


Based on the data you've provided about the issue to date, my best guess 
is that something in the above is different on your system (which is why 
I mentioned IDSEL lines -- the mechanism PCI uses to actually assign bus 
numbers electrically).


Normally the behaviour of FreeBSD's bus probes is well known -- nexus is 
walked for child buses, then these buses are plumbed into NEWBUS, e.g. 
cpu0...cpuN on nexus itself, PCI buses, and PCI subordinate buses in 
that order.


* You mention you don't encounter the issue with Linux, but you may 
already be aware that udev can tie driver instance number(s) to specific 
MAC addresses, although this process isn't fully automatic and any given 
distro may or may not create the persistent udev rules on a first run -- 
so this is comparing apples with oranges.


* [PCI-Express is a special case though, and I've had to sit down and do 
some work with commercial clients to make sure their appliance was able 
to detect devices being in particular slot numbers. Again, though, it's 
just as subject to the PCI enumeration order further up on the bus 
hierarchy as non-PCI-Express drivers.]


So your issue may not be a simple matter of "this seems wrong, this 
doesn't work", though I am sorry to hear it isn't working for you right now.


There are a lot of dynamic factors in the overall picture of the system, 
and what seems to work as expected for many users, may not be working 
for you, and we really need basic hardware information, when folk see 
things like this happening, for any volunteer(s) out there to come up 
with the right solution, let alone the true picture of what's actually 
going on in your specific case.


thanks
BMS
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: upgrade 7.0 -> 7.1 : portupgrade -af required?

2009-01-15 Thread Odhiambo Washington
On Thu, Jan 15, 2009 at 6:07 PM, Olivier Mueller wrote:

> Hello,
>
> After an upgrade from FreeBSD 7.0 to 7.1 (with freebsd-update in my
> case), is it required to recompile all ports (portupgrade -af) like
> specified in some docs/blog-entries, or is it not *really* necessary?


No. Not necessary for point upgrades.


>
> What are you doing on your production systems?   Having to upgrade
> several servers (>15), it's quite important for me to estimate the time
> required for the operation...
>
> I did the upgrade on a test server here, and all ports still seems to
> work  (apache, php, mysql, etc.) so I guess the answer is no, but I'd
> like to be sure before upgrading some important servers :-)
>
> According to:
>
> http://www.freebsd.org/releases/7.1R/announce.html
> "Users of earlier FreeBSD releases (FreeBSD 6.x) can also use
> freebsd-update to upgrade to FreeBSD 7.1, but will be prompted to
> rebuild all third-party applications (e.g., anything installed from the
> ports tree) after the second invocation of "freebsd-update install", in
> order to handle differences in the system libraries between FreeBSD 6.x
> and FreeBSD 7.x."
>
> It would be necessary only for major upgrades (6.x -> 7.x).   Right?


Yes. That document is quite clear.


-- 
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254733744121/+254722743223
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"Failure is the opportunity to begin again more intelligently." --Henry Ford
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: upgrade 7.0 -> 7.1 : portupgrade -af required?

2009-01-15 Thread matt donovan
On Thu, Jan 15, 2009 at 10:07 AM, Olivier Mueller wrote:

> Hello,
>
> After an upgrade from FreeBSD 7.0 to 7.1 (with freebsd-update in my
> case), is it required to recompile all ports (portupgrade -af) like
> specified in some docs/blog-entries, or is it not *really* necessary?
> What are you doing on your production systems?   Having to upgrade
> several servers (>15), it's quite important for me to estimate the time
> required for the operation...
>
> I did the upgrade on a test server here, and all ports still seems to
> work  (apache, php, mysql, etc.) so I guess the answer is no, but I'd
> like to be sure before upgrading some important servers :-)
>
> According to:
>
> http://www.freebsd.org/releases/7.1R/announce.html
> "Users of earlier FreeBSD releases (FreeBSD 6.x) can also use
> freebsd-update to upgrade to FreeBSD 7.1, but will be prompted to
> rebuild all third-party applications (e.g., anything installed from the
> ports tree) after the second invocation of "freebsd-update install", in
> order to handle differences in the system libraries between FreeBSD 6.x
> and FreeBSD 7.x."
>
> It would be necessary only for major upgrades (6.x -> 7.x).   Right?
>
> thanks & regards,
> Olivier
>
> ___
> freebsd-po...@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Only tiem to rebuild ports really is for a major version change say 6. ->
7.x but for a minor version change you do not have to rebuild
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


upgrade 7.0 -> 7.1 : portupgrade -af required?

2009-01-15 Thread Olivier Mueller
Hello,

After an upgrade from FreeBSD 7.0 to 7.1 (with freebsd-update in my
case), is it required to recompile all ports (portupgrade -af) like
specified in some docs/blog-entries, or is it not *really* necessary?
What are you doing on your production systems?   Having to upgrade
several servers (>15), it's quite important for me to estimate the time
required for the operation... 

I did the upgrade on a test server here, and all ports still seems to
work  (apache, php, mysql, etc.) so I guess the answer is no, but I'd
like to be sure before upgrading some important servers :-)

According to:

http://www.freebsd.org/releases/7.1R/announce.html
"Users of earlier FreeBSD releases (FreeBSD 6.x) can also use
freebsd-update to upgrade to FreeBSD 7.1, but will be prompted to
rebuild all third-party applications (e.g., anything installed from the
ports tree) after the second invocation of "freebsd-update install", in
order to handle differences in the system libraries between FreeBSD 6.x
and FreeBSD 7.x."

It would be necessary only for major upgrades (6.x -> 7.x).   Right? 

thanks & regards,
Olivier

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: port upgrade

2009-01-15 Thread Martin Wilke
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Please update your portstree this was fixed few days ago.

On Thu, Jan 15, 2009 at 03:45:50PM +0100, Pieter Donche wrote:
> I just recently installed a new FreeBSD 7 system (beginning of week)
> and installed a ports collection via portsnap fetch and portsnap extract.
> which created a /usr/ports of 498 Mb
> 
> My cron does a portsnap every night
> 1 3 * * * root portsnap -I cron update && pkg_version -vIL=
> 
> So far the only packages I installed are: portupgrade and linux_base_fc4.
> The I went for kde3. This installed a large nummber of packages.
> But is stopped at
> threads_posix.cc:361: error: aggregate 'Arts::PosixThreads::timespec 
> abstime' h
> as incomplete type and cannot be defined
> gmake[2]: *** [threads_posix.lo] Error 1
> gmake[2]: Leaving directory 
> '/usr/ports/audio/arts/work/arts-1.5.10/mcop_mt'
> gmake[1]: *** [all-recursive] Error 1
> gmake[1]: Leaving directory '/usr/ports/audio/arts/work/arts-1.5.10'
> gmake: *** [all] Error 2
> *** Error code 2
> Stop in /usr/ports/audio/arts.
> *** Error code 1
> Stop in /usr/ports/audio/arts.
> *** Error code 1
> Stop in /usr/ports/x11/kdelibs3.
> *** Error code 1
> Stop in /usr/ports/x11/kdebase3.
> *** Error code 1
> Stop in /usr/ports/x11/kdebase3.
> *** Error code 1
> Stop in /usr/ports/x11/kde3.
> 
> How do I go from here - I feel uncertain, since my experience with FreebSD
> ports system is almost nothging and with portupgrade etc.. is zero for the 
> moment.
> I would like not to make errors.
> 
> The mail from the nightly cronned portsnap does not report anything about
> arts-... 'needs updating'.
> 
> Why not ?
> 
> Checking http://www.FreeSBD.org/ports I see, there is a fix
> from Mon 12 Jan 11:25 UTC, but this date is two days before the
> the creation of the /usr/ports/audio/arts directory (Jan 14 08:58)
> 
> Does this mean I have the latest version?
> 
> If not, why does portsnap not report it.
> 
> Is is sufficient to do
> # portupgrade arts
> # cd /usr/ports/audio/arts
> # make install clean
> # cd /usr/ports/x11/kde3
> # make install clean
> 
> ?
> I prefer to ask in advance, avoiding getting me into trouble because
> of wrong approach..
> 
> 
> 
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
> 

- -- 

+---+---+
|  PGP: 0x05682353  |  Jabber : miwi(at)BSDCrew.de  |
|  ICQ: 169139903   |  Mail   : miwi(at)FreeBSD.org |
+---+---+
|   Mess with the Best, Die like the Rest!  |
+---+---+
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.9 (FreeBSD)

iEYEARECAAYFAklvUasACgkQFwpycAVoI1NfhACgklUB1p6kPCYH8aPwcFwyR2xY
B1UAn1bkltq29G/0uY9cFEA5pF3+oREh
=zUzp
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Help needed w/ HighPoint RocketRAID 3120 on FreeBSD 7.1-RELEASE

2009-01-15 Thread Jeremy Gagliardi
I'm having trouble with HighPoint RocketRAID 3120 on FreeBSD 7.1-RELEASE.

I have 2 disks on it in a mirror configuration.  Everything seems to go
swimmingly through the FreeBSD installation, up until the final reboot...

1) Boot from Disc 1.
2) At the "Welcome to FreeBSD" screen, choose option "6"
ok load hptiop
ok boot
3) It recognizes my mirror as device "da0" and I proceed with the
installation.
4) I install all distros, except X.org & Ports.
5) At the tail end, before rebooting, I enter a shell and vi
/boot/loader.conf.  I add the line:
hptiop_load="YES"
6) REBOOT.

The following happens...
a) RocketRAID card beeps
b) I see the BIOS splash screen
c) I see RocketRAID splash screen
d) It resets and repeats everything above.

I never even get a boot loader menu to try troubleshooting.

What did I miss?  Why can't this thing boot?  Unfortunately, HighPoint's
User Manual was last updated in 2007, when FreeBSD 6.1 was the latest. 
Since then, the hptiop driver was added to 7.x, and that's what I'm trying
to use.  To be clear, the problem isn't that I can get FreeBSD to mount
and recognize it, I can.  The problem is being able to boot from it.

--
I have followed what little there is at...
http://www.freebsd.org/cgi/man.cgi?query=hptiop&sektion=4&manpath=FreeBSD+7.1-RELEASE
http://tinyurl.com/8fat37
All 3 device statements are in the /usr/src/sys/amd64/conf/GENERIC file,
by default.
I put the hptiop_load="YES" statement into the /boot/loader.conf file.

Their user manual is at...
http://www.highpoint-tech.com/PDF/RR3120/RR3120_UM_EN_10_111307_AP.pdf
http://tinyurl.com/9cwwwj
But, it only has instructions up to FreeBSD 6.1, and they don't seem to
apply any more to the 7.x version, which has the hptiop(4) driver in the
GENERIC kernel.  In other words, their instructions for a driver diskette
are meaningless.

I was led to believe that these cards were compatible with all modern
versions of FreeBSD, especially since it's on the hardware compatibility
list...
http://www.freebsd.org/releases/7.1R/hardware.html
http://tinyurl.com/8b9ovl
--

My /boot/loader.conf file is...
hptiop_load="YES"

Here's my dmesg, but note the following:
-I had to boot from the Live FS CD.
-Before booting, I chose option "6" for the ok prompt.
-I entered:  load hptiop
-Upon bootup, I chose the Live FS shell.
-Note wa down at the bottom, the 5th & 6th lines from the bottom, the
da0 device.  Sure, it works great booting from the CD, but how about
booting from itself ?!
Now, onto the dmesg...

Copyright (c) 1992-2009 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 7.1-RELEASE #0: Thu Jan  1 08:58:24 UTC 2009
r...@driscoll.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: AMD Phenom(tm) 9600 Quad-Core Processor (2304.92-MHz K8-class CPU)
  Origin = "AuthenticAMD"  Id = 0x100f22  Stepping = 2
  
Features=0x178bfbff
  Features2=0x802009>
  AMD
Features=0xee500800
  AMD
Features2=0x7ff,,,Prefetch,,>
  Cores per package: 4
usable memory = 4007813120 (3822 MB)
avail memory  = 3846344704 (3668 MB)
ACPI APIC Table: 
FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs
 cpu0 (BSP): APIC ID:  0
 cpu1 (AP): APIC ID:  1
 cpu2 (AP): APIC ID:  2
 cpu3 (AP): APIC ID:  3
ioapic0: Changing APIC ID to 2
ioapic0  irqs 0-23 on motherboard
kbd1 at kbdmux0
ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413)
acpi0:  on motherboard
acpi0: [ITHREAD]
acpi0: Power Button (fixed)
acpi0: reservation of 0, a (3) failed
acpi0: reservation of 10, bfde (3) failed
Timecounter "ACPI-safe" frequency 3579545 Hz quality 850
acpi_timer0: <32-bit timer at 3.579545MHz> port 0x4008-0x400b on acpi0
acpi_hpet0:  iomem 0xfed0-0xfed003ff on acpi0
Timecounter "HPET" frequency 14318180 Hz quality 900
acpi_button0:  on acpi0
pcib0:  port 0xcf8-0xcff on acpi0
pci0:  on pcib0
pcib1:  at device 1.0 on pci0
pci1:  on pcib1
vgapci0:  port 0xee00-0xeeff mem
0xd000-0xdfff,0xfdae-0xfdae,0xfd90-0xfd9f irq 18
at device 5.0 on pci1
pci1:  at device 5.1 (no driver attached)
pcib2:  irq 18 at device 6.0 on pci0
pci2:  on pcib2
hptiop0: adapter at PCI 2:0:0, IRQ 18
hptiop0:  mem 0xfd60-0xfd6f,0xfd7f-0xfd7f,0xfc80-0xfcff
irq 18 at device 0.0 on pci2
hptiop0: 0 RocketRAID 3xxx/4xxx controller driver v1.3 (010208)
hptiop0: [GIANT-LOCKED]
hptiop0: [ITHREAD]
pcib3:  irq 18 at device 10.0 on pci0
pci3:  on pcib3
re0:  port 0xce00-0xceff mem
0xfddff000-0xfddf,0xfdde-0xfdde irq 18 at device 0.0 on pci3
re0: Chip rev. 0x3c00
re0: MAC rev. 0x0040
miibus0:  on re0
rgephy0:  PHY 1 on miibus0
rgephy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT,
1000baseT-FDX, auto
re0: Ethernet address: 00:1f:d0:9f:04:73
re0: [FILTER]
atapci0:  port
0xf

port upgrade

2009-01-15 Thread Pieter Donche

I just recently installed a new FreeBSD 7 system (beginning of week)
and installed a ports collection via portsnap fetch and portsnap extract.
which created a /usr/ports of 498 Mb

My cron does a portsnap every night
1 3 * * * root portsnap -I cron update && pkg_version -vIL=

So far the only packages I installed are: portupgrade and linux_base_fc4.
The I went for kde3. This installed a large nummber of packages.
But is stopped at
threads_posix.cc:361: error: aggregate 'Arts::PosixThreads::timespec 
abstime' h

as incomplete type and cannot be defined
gmake[2]: *** [threads_posix.lo] Error 1
gmake[2]: Leaving directory 
'/usr/ports/audio/arts/work/arts-1.5.10/mcop_mt'

gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory '/usr/ports/audio/arts/work/arts-1.5.10'
gmake: *** [all] Error 2
*** Error code 2
Stop in /usr/ports/audio/arts.
*** Error code 1
Stop in /usr/ports/audio/arts.
*** Error code 1
Stop in /usr/ports/x11/kdelibs3.
*** Error code 1
Stop in /usr/ports/x11/kdebase3.
*** Error code 1
Stop in /usr/ports/x11/kdebase3.
*** Error code 1
Stop in /usr/ports/x11/kde3.

How do I go from here - I feel uncertain, since my experience with FreebSD
ports system is almost nothging and with portupgrade etc.. is zero for the 
moment.

I would like not to make errors.

The mail from the nightly cronned portsnap does not report anything about
arts-... 'needs updating'.

Why not ?

Checking http://www.FreeSBD.org/ports I see, there is a fix
from Mon 12 Jan 11:25 UTC, but this date is two days before the
the creation of the /usr/ports/audio/arts directory (Jan 14 08:58)

Does this mean I have the latest version?

If not, why does portsnap not report it.

Is is sufficient to do
# portupgrade arts
# cd /usr/ports/audio/arts
# make install clean
# cd /usr/ports/x11/kde3
# make install clean

?
I prefer to ask in advance, avoiding getting me into trouble because
of wrong approach..



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Launching Vim

2009-01-15 Thread Steve Bertrand
Rem P Roberti wrote:
> Can someone give me a heads up on this.  I just installed vim, but when
> I try to launch
> the program I get this error message:
> 
> /libexec/ld-elf.so.1: Shared object "libperl.so" not found, required by
> "vim"
> 
> Is this a path problem?  The actual file libperl.so recides in
> /usr/local/lib/perl5/5.8.9/mach/CORE/libperl.so

First, run:

# /etc/periodic/weekly/310.locate

Then, provide the output to:

# locate libperl.so
# echo $PATH

Steve
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: howto determine network device unit number? device.hints?

2009-01-15 Thread Bruce M. Simpson

Yony Yossef wrote:

Thanks for the explanation.
 
So there's no way to determine this in advance.. 
I must build a script that contains my own mapping between MAC addresses and

the wanted interface names and run it after each driver load, rename the
interfaces if necessary.
It seems quite wrong, don't you agree?
 
And how come the unit number is given an arbitrary value? Is there a good

reason for that?
  


Normally the PCI probe runs in the opposite direction from that of 
Linux. It's largely to do with how the NEWBUS code walks the PCI bus. 
From a systems management point of view, yeah, it's irritating, however 
it would probably take more effort (i.e. kernel code) to try to patch it 
to work differently, and not everyone has free time to sit down and 
patch the kernel.


That and (unlike Solaris) there is no *direct* mapping between the 
card's driver number on the bus and its network driver number.


In your case I'm not sure why your two cards would flip order. Could it 
be how your BIOS and hardware set up the PCI IDSEL lines at boot?



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


correct way to move users?

2009-01-15 Thread brad davison

After my debacle with the PAE kernel, I am building the mail server anew.  I 
had used webmin's user batch file thing to generate the users on the temporary 
system, but there were some issues with that.
 
If I have a good copy of /etc/passwd, /etc/group and /etc/master.passwd, is 
there a better way to move the users?
 
I saw a very breif website that said to use this method:
 
"
Move user entries from the following old files: 
/etc/passwd/etc/group/etc/master.passwd 
Then run the following command to rebuild the password database: 
pwd_mkdb -p /etc/master.passwd  
"
 
Is this the proper way?  If not, what is the correct way to do this with 
Freebsd (7.0)?
 
Thank you,
Brad
_
Windows Live™ Hotmail®: Chat. Store. Share. Do more with mail. 
http://windowslive.com/explore?ocid=TXT_TAGLM_WL_t1_hm_justgotbetter_explore_012009___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: howto determine network device unit number? device.hints?

2009-01-15 Thread Eygene Ryabinkin
Thu, Jan 15, 2009 at 01:15:53PM +0200, Yony Yossef wrote:
> > You're using your own driver, aren't you?  If yes, could you 
> > show your device_method_t structure and the corresponding 
> > identify, probe, attach and detach routines?  You're setting 
> > the unit numbers via 'if_initname(ifp, device_get_name(dev), 
> > device_get_unit(dev))' or alike?
> 
> My device has 2 ports, therefore my if_initname is that:
> 
> if_initname(dev, device_get_name(mdev->pdev), 
> port + 2 * device_get_unit(mdev->pdev));

So, you totally have four network interfaces -- two for each PCI
device?

> This is what I captured the last time it happened. 
> 
> # pciconf -l | grep mtnic
> mtn...@pci0:19:0:0: class=0x02 card=0x001715b3 chip=0x636815b3
> rev=0xa0 hdr=0x00
> mtn...@pci0:16:0:0: class=0x02 card=0x001715b3 chip=0x636815b3
> rev=0xa0 hdr=0x00
> 
> # kldunload if_mtnic
> # kldload if_mtnic
> 
> # pciconf -l | grep mtnic
> mtn...@pci0:19:0:0: class=0x02 card=0x001715b3 chip=0x636815b3
> rev=0xa0 hdr=0x00
> mtn...@pci0:16:0:0: class=0x02 card=0x001715b3 chip=0x636815b3
> rev=0xa0 hdr=0x00

Could you do the following:

1. Boot with verbose kernel mode (push '5' on the boot screen).
2. Kldload your module and provide the full list of kernel messages
   you will see after this action.
3. Kldunload and again, provide all messages kernel will print
   for this.
4. Kldload again and supply all messages for the last time.

This will show the PCI enumeration sequence and probe order for your
driver pci device units.  This might shed some light on the problem.

Thanks.
-- 
Eygene
 ____   _.--.   #
 \`.|\.....-'`   `-._.-'_.-'`   #  Remember that it is hard
 /  ' ` ,   __.--'  #  to read the on-line manual
 )/' _/ \   `-_,   /#  while single-stepping the kernel.
 `-'" `"\_  ,_.-;_.-\_ ',  fsc/as   #
 _.-'_./   {_.'   ; /   #-- FreeBSD Developers handbook
{_.-``-' {_/#
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


RE: howto determine network device unit number? device.hints?

2009-01-15 Thread Yony Yossef
 

> -Original Message-
> From: rea-f...@codelabs.ru [mailto:rea-f...@codelabs.ru] 
> Sent: Thursday, January 15, 2009 12:01 PM
> To: Yony Yossef
> Cc: 'Julian Elischer'; Liran Liss; freebsd-...@freebsd.org; 
> Oleg Kats; 'H.fazaeli'; Eitan Shefi; freebsd-questions@freebsd.org
> Subject: Re: howto determine network device unit number? device.hints?
> 
> Yony, good day.
> 
> Thu, Jan 15, 2009 at 11:26:34AM +0200, Yony Yossef wrote:
> > All I'm doing is unloading and reloading the driver.
> > Unit numbers change and it makes my automatic subnet configuration
> > (/etc/rc.conf) assign bad IPs.
> 
> You're using your own driver, aren't you?  If yes, could you 
> show your device_method_t structure and the corresponding 
> identify, probe, attach and detach routines?  You're setting 
> the unit numbers via 'if_initname(ifp, device_get_name(dev), 
> device_get_unit(dev))' or alike?

My device has 2 ports, therefore my if_initname is that:

if_initname(dev, device_get_name(mdev->pdev), 
port + 2 * device_get_unit(mdev->pdev));


> > I still don't get the reason for this arbitrarily assigned unit 
> > numbers and what is the common solution for it. Except post load 
> > rename of the interfaces.
> 
> I was under impression that the unit number are coming from 
> the parent busses and they should be stable, at least for the 
> case when the parent bus driver isn't unloaded (and for PCI 
> it should be the case).  So, either the driver sets device 
> unit names weirdly or you hit some bug.
> --
> Eygene

This is what I captured the last time it happened. 

# pciconf -l | grep mtnic
mtn...@pci0:19:0:0: class=0x02 card=0x001715b3 chip=0x636815b3
rev=0xa0 hdr=0x00
mtn...@pci0:16:0:0: class=0x02 card=0x001715b3 chip=0x636815b3
rev=0xa0 hdr=0x00

# kldunload if_mtnic
# kldload if_mtnic

# pciconf -l | grep mtnic
mtn...@pci0:19:0:0: class=0x02 card=0x001715b3 chip=0x636815b3
rev=0xa0 hdr=0x00
mtn...@pci0:16:0:0: class=0x02 card=0x001715b3 chip=0x636815b3
rev=0xa0 hdr=0x00

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: howto determine network device unit number? device.hints?

2009-01-15 Thread Eygene Ryabinkin
Yony, good day.

Thu, Jan 15, 2009 at 11:26:34AM +0200, Yony Yossef wrote:
> All I'm doing is unloading and reloading the driver.
> Unit numbers change and it makes my automatic subnet configuration
> (/etc/rc.conf) assign bad IPs.

You're using your own driver, aren't you?  If yes, could you show your
device_method_t structure and the corresponding identify, probe, attach
and detach routines?  You're setting the unit numbers via
'if_initname(ifp, device_get_name(dev), device_get_unit(dev))' or alike?

> I still don't get the reason for this arbitrarily assigned unit numbers and
> what is the common solution for it. Except post load rename of the
> interfaces.

I was under impression that the unit number are coming from the parent
busses and they should be stable, at least for the case when the parent
bus driver isn't unloaded (and for PCI it should be the case).  So,
either the driver sets device unit names weirdly or you hit some bug.
-- 
Eygene
 ____   _.--.   #
 \`.|\.....-'`   `-._.-'_.-'`   #  Remember that it is hard
 /  ' ` ,   __.--'  #  to read the on-line manual
 )/' _/ \   `-_,   /#  while single-stepping the kernel.
 `-'" `"\_  ,_.-;_.-\_ ',  fsc/as   #
 _.-'_./   {_.'   ; /   #-- FreeBSD Developers handbook
{_.-``-' {_/#
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


RE: howto determine network device unit number? device.hints?

2009-01-15 Thread Yony Yossef

> Yony Yossef wrote:
> > Thanks for the explanation.
> >  
> > So there's no way to determine this in advance.. 
> > I must build a script that contains my own mapping between MAC 
> > addresses and the wanted interface names and run it after 
> each driver 
> > load, rename the interfaces if necessary.
> 
> you must agree it's flexible.
> 
> > It seems quite wrong, don't you agree?
> >  
> > And how come the unit number is given an arbitrary value? 
> Is there a 
> > good reason for that?
> 
> device discovery depends on what slot you put the card into.
> so if you move it, it's number may change.
> 
> also, how do you identify the particular card you want to 
> have a particular unit number? considering it may move (and 
> for example USB network interfaces WILL move if you add a 
> keyboard or any other device..
> 
> also to do as you want would take 2 passes.
> first one to find the numbers needed and another to do what's left.
> 

Julian,
I'm not talking about the case where I'm physically switching card locations
on the PCI bus.
All I'm doing is unloading and reloading the driver.
Unit numbers change and it makes my automatic subnet configuration
(/etc/rc.conf) assign bad IPs.

I still don't get the reason for this arbitrarily assigned unit numbers and
what is the common solution for it. Except post load rename of the
interfaces.

Yony


> 
> >  
> > Yony
> > 
> > 
> > 
> >   _
> > 
> > From: H.fazaeli [mailto:faza...@sepehrs.com]
> > Sent: Thursday, January 15, 2009 10:26 AM
> > To: Yony Yossef
> > Cc: freebsd-...@freebsd.org; freebsd-questions@freebsd.org
> > Subject: Re: howto determine network device unit number? 
> device.hints?
> > 
> > 
> > 
> > for example, say you have 2 interface em0 and em1 which you like to 
> > swap their minor numbers:
> > 
> > ifconfig em0 name tmp
> > ifconfig em1 name em0
> > ifconfig em0 name em1
> > 
> > or to assign cisco-like names to you interfaces:
> > 
> > ifconfig xl0 name fastEthernet0
> > ifconfig em0 name gigaEthernet0
> > ifconfig fastEthernet0 192.168.1.0/24
> > 
> > 
> > Yony Yossef wrote: 
> > 
> >  
> > 
> > 
> > 
> >   
> > 
> > -Original Message-
> > 
> > From: H.fazaeli [mailto:faza...@sepehrs.com]
> > 
> > Sent: Wednesday, January 14, 2009 6:24 PM
> > 
> > To: Yony Yossef
> > 
> > Cc: freebsd-...@freebsd.org; freebsd-questions@freebsd.org;
> > 
> > Eitan Shefi; Oleg Kats; Liran Liss
> > 
> > Subject: Re: howto determine network device unit number? 
> device.hints?
> > 
> > 
> > 
> > 
> > 
> > you may not change unit numbers as they are strictly
> > 
> > controlled by kernel.
> > 
> > However, on freebsd 5.3+, you may use 'ifconfig name 
> '
> > 
> > to achieve the same affect
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > Sorry, I don't understand the usage of ifconfig you 
> suggested and the 
> > effect
> > 
> > it will cause.
> > 
> > Can you please explain it?
> > 
> > Yony
> > 
> > 
> > 
> >   
> > 
> > Yony Yossef wrote:
> > 
> > 
> > 
> > Hi,
> > 
> > 
> > 
> > I would like to determine the unit number of my network cards, e.g.
> > 
> > make the device on pci0:16 be assigned every time with unit
> > 
> >   
> > 
> > number 0
> > 
> > 
> > 
> > and pci0:19 with unit number 1.
> > 
> > 
> > 
> > Is it done by /boot/device.hints?
> > 
> > if so, how?
> > 
> > 
> > 
> > My cards are:
> > 
> > 
> > 
> > mtn...@pci0:19:0:0: class=0x02 card=0x001715b3 
> > 
> >   
> > 
> > chip=0x636815b3
> > 
> > 
> > 
> > rev=0xa0 hdr=0x00
> > 
> > mtn...@pci0:16:0:0: class=0x02 card=0x001715b3 
> > 
> >   
> > 
> > chip=0x636815b3
> > 
> > 
> > 
> > rev=0xa0 hdr=0x00
> > 
> > 
> > 
> > So I've tried:
> > 
> > 
> > 
> > hint.mtnic.0.at="pci0:16"
> > 
> > hint.mtnic.1.at="pci0:19"
> > 
> > 
> > 
> > but it doesn't work. They keep switching arbitrarily.
> > 
> > I'm using FreeBSD 7.0.
> > 
> > 
> > 
> > Thanks
> > 
> > Yony
> > 
> > ___
> > 
> > freebsd-questions@freebsd.org mailing list
> > 
> > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> > 
> > To unsubscribe, send any mail to
> > 
> >   
> > 
> > "freebsd-questions-unsubscr...@freebsd.org"
> > 
> > 
> > 
> > 
> >   
> > 
> >   
> > 
> 
> 

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: gvinum & gjournal

2009-01-15 Thread Brian McCann
On Thu, Jan 15, 2009 at 4:33 AM, Ulf Lilleengen
 wrote:
> Hi,
>
> It think that it touches it because the .p0 contains the gjournal metadata in
> the same way that the volume does, so gjournal attaches to that before the
> volume. One problem is that gjournal attaches to the "wrong" provider, but
> it's also silly that the provider is exposed in the first place. A fix for
> this is in a newer version of gvinum (as the plex is not exposed) if you're
> willing to try.
>
> --
> Ulf Lilleengen
>

At this point, I'm willing to try anything, but preferably something
that's stable since this will be done to at least 15 identical devices
and sent out to various places, so I won't have physical access to the
machines if something were to go wrong.  I looked into graid3 and
booting off of a DOM/Flash card, but since I have 4 drives, that won't
work since graid3 requires 2N+1 drives.  The stuff I've found on
graid5 seems to say that it's all still really experimental and has
some bugs in it still. :(

That said...if you've got it, I'll try it. :)
Thanks,
--Brian

-- 
_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_
Brian McCann

"I don't have to take this abuse from you -- I've got hundreds of
people waiting to abuse me."
-- Bill Murray, "Ghostbusters"
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: howto determine network device unit number? device.hints?

2009-01-15 Thread Julian Elischer

Yony Yossef wrote:

Thanks for the explanation.
 
So there's no way to determine this in advance.. 
I must build a script that contains my own mapping between MAC addresses and

the wanted interface names and run it after each driver load, rename the
interfaces if necessary.


you must agree it's flexible.


It seems quite wrong, don't you agree?
 
And how come the unit number is given an arbitrary value? Is there a good

reason for that?


device discovery depends on what slot you put the card into.
so if you move it, it's number may change.

also, how do you identify the particular card you want to have a 
particular unit number? considering it may move (and for example

USB network interfaces WILL move if you add a keyboard or any
other device..

also to do as you want would take 2 passes.
first one to find the numbers needed and another to do what's left.


 
Yony




  _  

From: H.fazaeli [mailto:faza...@sepehrs.com] 
Sent: Thursday, January 15, 2009 10:26 AM

To: Yony Yossef
Cc: freebsd-...@freebsd.org; freebsd-questions@freebsd.org
Subject: Re: howto determine network device unit number? device.hints?



for example, say you have 2 interface em0 and em1 which
you like to swap their minor numbers:

ifconfig em0 name tmp
ifconfig em1 name em0
ifconfig em0 name em1

or to assign cisco-like names to you interfaces:

ifconfig xl0 name fastEthernet0 
ifconfig em0 name gigaEthernet0 
ifconfig fastEthernet0 192.168.1.0/24



Yony Yossef wrote: 

 




  


-Original Message-

From: H.fazaeli [mailto:faza...@sepehrs.com] 


Sent: Wednesday, January 14, 2009 6:24 PM

To: Yony Yossef

Cc: freebsd-...@freebsd.org; freebsd-questions@freebsd.org; 


Eitan Shefi; Oleg Kats; Liran Liss

Subject: Re: howto determine network device unit number? device.hints?





you may not change unit numbers as they are strictly 


controlled by kernel.

However, on freebsd 5.3+, you may use 'ifconfig name '

to achieve the same affect








Sorry, I don't understand the usage of ifconfig you suggested and the effect

it will cause.

Can you please explain it?

Yony



  


Yony Yossef wrote:




Hi,



I would like to determine the unit number of my network cards, e.g.

make the device on pci0:16 be assigned every time with unit 

  

number 0 




and pci0:19 with unit number 1.



Is it done by /boot/device.hints?

if so, how?



My cards are:



mtn...@pci0:19:0:0: class=0x02 card=0x001715b3 

  


chip=0x636815b3




rev=0xa0 hdr=0x00

mtn...@pci0:16:0:0: class=0x02 card=0x001715b3 

  


chip=0x636815b3




rev=0xa0 hdr=0x00



So I've tried:



hint.mtnic.0.at="pci0:16"

hint.mtnic.1.at="pci0:19"



but it doesn't work. They keep switching arbitrarily.

I'm using FreeBSD 7.0.



Thanks

Yony

___

freebsd-questions@freebsd.org mailing list 


http://lists.freebsd.org/mailman/listinfo/freebsd-questions

To unsubscribe, send any mail to 

  


"freebsd-questions-unsubscr...@freebsd.org"
 



  

  



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: reinstall all p5 installed ports with portmaster

2009-01-15 Thread Gelsema, P (Patrick) - FreeBSD
On Thu, January 15, 2009 12:19, Herbert J. Skuhra wrote:
> 2009/1/15 bsd :
>> Hello,
>>
>> I was looking for an efficient way to reinstall (recompile due to an
>> update
>> in the perl port) all installed p5 ports…
>
> Have you tried perl-after-upgrade? See UPDATING and man page.
>
>> I have done that manually, but I am certain there is a better way to do
>> that…
>>
>>
>> I have tried:
>>
>> # portmaster -rdf p5-
>>
>>
>> But that didn't work as I had to re-install all ports…
>
> Have you tried portmaster without -rf ?

try: portupgrade -f 'pkg_info | grep p5- | cut -d" " -f1'


>
> - Herbert
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "freebsd-questions-unsubscr...@freebsd.org"

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: FreeBSD USB Install

2009-01-15 Thread Brian McCann
On Wed, Jan 14, 2009 at 10:37 PM, Fbsd1  wrote:

>>
>
> Your link to the instructions is dead.
>

The page has been down on me before...give it a few hours, or plug
that URL into Google and load the cached version (which takes a while
to load since the CSS still tries to come from the original site).

--Brian

-- 
_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_
Brian McCann

"I don't have to take this abuse from you -- I've got hundreds of
people waiting to abuse me."
-- Bill Murray, "Ghostbusters"
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: reinstall all p5 installed ports with portmaster [solved]

2009-01-15 Thread bsd


Le 15 janv. 09 à 12:19, Herbert J. Skuhra a écrit :


2009/1/15 bsd :

Hello,

I was looking for an efficient way to reinstall (recompile due to  
an update

in the perl port) all installed p5 ports…


Have you tried perl-after-upgrade? See UPDATING and man page.


No…

That's exactly what I was looking for…
Works perfectly.




I have done that manually, but I am certain there is a better way  
to do

that…


I have tried:

# portmaster -rdf p5-


But that didn't work as I had to re-install all ports…


Have you tried portmaster without -rf ?


Yes, but no success…




- Herbert
___



Gregober ---> PGP ID --> 0x1BA3C2FD
bsd @at@ todoo.biz


P "Please consider your environmental responsibility before printing  
this e-mail"



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: reinstall all p5 installed ports with portmaster

2009-01-15 Thread Herbert J. Skuhra
2009/1/15 bsd :
> Hello,
>
> I was looking for an efficient way to reinstall (recompile due to an update
> in the perl port) all installed p5 ports…

Have you tried perl-after-upgrade? See UPDATING and man page.

> I have done that manually, but I am certain there is a better way to do
> that…
>
>
> I have tried:
>
> # portmaster -rdf p5-
>
>
> But that didn't work as I had to re-install all ports…

Have you tried portmaster without -rf ?

- Herbert
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

reinstall all p5 installed ports with portmaster

2009-01-15 Thread bsd

Hello,

I was looking for an efficient way to reinstall (recompile due to an  
update in the perl port) all installed p5 ports…


I have done that manually, but I am certain there is a better way to  
do that…



I have tried:

# portmaster -rdf p5-


But that didn't work as I had to re-install all ports…



Thanks for your help.




Gregober ---> PGP ID --> 0x1BA3C2FD
bsd @at@ todoo.biz


P "Please consider your environmental responsibility before printing  
this e-mail"



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: howto determine network device unit number? device.hints?

2009-01-15 Thread Mykola Dzham
 H.fazaeli wrote:
> 
>for example, say you have 2 interface em0 and em1 which
>you like to swap their minor numbers:
>ifconfig em0 name tmp
>ifconfig em1 name em0
>ifconfig em0 name em1
>or to assign cisco-like names to you interfaces:
>ifconfig xl0 name fastEthernet0
>ifconfig em0 name gigaEthernet0
>ifconfig fastEthernet0 192.168.1.0/24
>Yony Yossef wrote:

Interface renaming is complex when you use ng_ether: if ng_ether loaded
before renaming, then ng_ether node name remain unchanged after
ifconfig ... name

-- 
Mykola Dzham, LEFT-(UANIC|RIPE)
JID: lev...@jabber.net.ua
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: freebsd-update doesn't seem to update to Latest

2009-01-15 Thread Ricardo Jesus

Sebastian Setzer wrote:

Reading the handbook and several pages on the web, i got the impression that 
ports are always compiled from source.
I should have read the handbook more thorougly, sorry. It mentions portupgrade 
-P.

-Original Message-
From: Erik Osterholm [mailto:freebsd-lists-e...@erikosterholm.org]
Sent: Tue 1/13/2009 11:01 PM
To: Sebastian Setzer
Subject: Re: freebsd-update doesn't seem to update to Latest
 
On Tue, Jan 13, 2009 at 09:47:33PM +0100, Sebastian Setzer wrote:

Hi,
I did a freebsd-update to 7.1-RELEASE as described in the release notes.
After that, I installed Openoffice (with pkg_add) and got several warnings like 
this one:
pkg_add: warning: package 'gnome-vfs-2.22.0_2' requires 'atk-1.22.0_1', but 
'atk-1.20.0' is installed

Now I did
# pkg_add -r atk
pkg_add: package 'atk-1.22.0_1' or its older version already installed

so with pkg_add -r I get newer packages than I got with freebsd-update. Why?


freebsd-update only updates the base system. It doesn't touch ports.

Erik

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Portmaster is also nice to update ports. Plus its doesn't have dependecies.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: howto determine network device unit number? device.hints?

2009-01-15 Thread Olivier Nicole
Hi,

Sorry to jump in but...

> Problem is, this unit number is not constant and changing arbitrarily every
> time I reload the driver (card A unit number=0 & card B un=1 or the other
> way around).

Since I have been using FreeBSD, the NIC had always been given the
same unit number (that is, unless I play and swap the hardware inside
the machine).

And that is the normal behaviour. Of course at each boot the interface
em0 remains interface em0 and ithe interface em1 remains interface
em1, else it would be a headache.

> Plus, I still don't understand why the unit number should change at all,
> instead of being determined according to the card PCI location or some other
> constant.

Not only it should not change, but you are the first person I ever see
mentioning that it change at each boot.

Bests,

Olivier
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


RE: howto determine network device unit number? device.hints?

2009-01-15 Thread Yony Yossef

> Yony Yossef wrote:
> > Thanks for the explanation.
> >  
> > So there's no way to determine this in advance.. 
> >   
> What do you mean by 'in advance'? Assuming a fixed hardware 
> configuration, when the kernel is loaded, you know all the 
> interface names and can rename them, i.e., in rc.local.

>From the beginning:

I have a FreeBSD7 machine with two network cards, both carry the same device
name "mtnic".
My driver is a kernel module loaded manualy using kldload.
Upon load, the driver registers the net device by the name "mtnic", that is what you see in ifconfig.

Problem is, this unit number is not constant and changing arbitrarily every
time I reload the driver (card A unit number=0 & card B un=1 or the other
way around).
Therefore, IP assignment to mtnic0 by /etc/rc.conf may assign an interface
with an IP belongs to another subnet, since rc.conf is not changing.

Of course I can keep my own MAC-to-interface mapping and rename the
interfaces after I load the driver.
It doesn't sound like a reasonable solution though.

Plus, I still don't understand why the unit number should change at all,
instead of being determined according to the card PCI location or some other
constant.

Yony


> 
> > I must build a script that contains my own mapping between MAC 
> > addresses and the wanted interface names and run it after 
> each driver 
> > load, rename the interfaces if necessary.
> >   
> I do not quite understand your requirement. Can you please explain?
> Do you need a script that works on multiple machines with 
> different hardwares?
> 
> > It seems quite wrong, don't you agree?
> >  
> > And how come the unit number is given an arbitrary value? 
> Is there a 
> > good reason for that?
> >  
> > Yony


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: howto determine network device unit number? device.hints?

2009-01-15 Thread H.fazaeli


Yony Yossef wrote:

Thanks for the explanation.
 
So there's no way to determine this in advance.. 
  

What do you mean by 'in advance'? Assuming a fixed hardware configuration,
when the kernel is loaded, you know all the interface names and can
rename them, i.e., in rc.local.


I must build a script that contains my own mapping between MAC addresses and
the wanted interface names and run it after each driver load, rename the
interfaces if necessary.
  

I do not quite understand your requirement. Can you please explain?
Do you need a script that works on multiple machines with different 
hardwares?



It seems quite wrong, don't you agree?
 
And how come the unit number is given an arbitrary value? Is there a good

reason for that?
 
Yony




  _  

From: H.fazaeli [mailto:faza...@sepehrs.com] 
Sent: Thursday, January 15, 2009 10:26 AM

To: Yony Yossef
Cc: freebsd-...@freebsd.org; freebsd-questions@freebsd.org
Subject: Re: howto determine network device unit number? device.hints?



for example, say you have 2 interface em0 and em1 which
you like to swap their minor numbers:

ifconfig em0 name tmp
ifconfig em1 name em0
ifconfig em0 name em1

or to assign cisco-like names to you interfaces:

ifconfig xl0 name fastEthernet0 
ifconfig em0 name gigaEthernet0 
ifconfig fastEthernet0 192.168.1.0/24



Yony Yossef wrote: 

 




  


-Original Message-

From: H.fazaeli [mailto:faza...@sepehrs.com] 


Sent: Wednesday, January 14, 2009 6:24 PM

To: Yony Yossef

Cc: freebsd-...@freebsd.org; freebsd-questions@freebsd.org; 


Eitan Shefi; Oleg Kats; Liran Liss

Subject: Re: howto determine network device unit number? device.hints?





you may not change unit numbers as they are strictly 


controlled by kernel.

However, on freebsd 5.3+, you may use 'ifconfig name '

to achieve the same affect








Sorry, I don't understand the usage of ifconfig you suggested and the effect

it will cause.

Can you please explain it?

Yony



  


Yony Yossef wrote:




Hi,



I would like to determine the unit number of my network cards, e.g.

make the device on pci0:16 be assigned every time with unit 

  

number 0 




and pci0:19 with unit number 1.



Is it done by /boot/device.hints?

if so, how?



My cards are:



mtn...@pci0:19:0:0: class=0x02 card=0x001715b3 

  


chip=0x636815b3




rev=0xa0 hdr=0x00

mtn...@pci0:16:0:0: class=0x02 card=0x001715b3 

  


chip=0x636815b3




rev=0xa0 hdr=0x00



So I've tried:



hint.mtnic.0.at="pci0:16"

hint.mtnic.1.at="pci0:19"



but it doesn't work. They keep switching arbitrarily.

I'm using FreeBSD 7.0.



Thanks

Yony

___

freebsd-questions@freebsd.org mailing list 


http://lists.freebsd.org/mailman/listinfo/freebsd-questions

To unsubscribe, send any mail to 

  


"freebsd-questions-unsubscr...@freebsd.org"
 



  

  

  


--


Best regards.

Hooman Fazaeli 
Sepehr S. T. Co. Ltd.

Web: http://www.sepehrs.com
Tel: (9821)88975701-2
Fax: (9821)88983352




___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Blocking very many (tens of thousands) ip addresses in ipfw

2009-01-15 Thread Pieter de Goeje
On Wednesday 14 January 2009 18:13:06 Steve Bertrand wrote:
> Pieter de Goeje wrote:
> > On Wednesday 14 January 2009 17:23:25 Artem Kuchin wrote:
> >> I need to block around 15 ip addreses from acccess the server at all
> >> at any port.  The addesses are random, they are not nets.
> >> These are the spammer i want to block for 24 hours.
> >> The list is dynamically generated and regenerated every hour or so.
> >> What is the most efficient way to do it?
> >> At first i thought doing ipfw rules using 5 ips per rule, that would
> >> result in 3 rules! This will be too slow!
> >> I need to something really quick and smart. Like matching the first
> >> number from ip (195 from 192.1.2.3),
> >> if it does not match - skip, if it does - compare the next one
> >> and so on.
> >
> > Quoting ipfw(8):
> > LOOKUP TABLES
> >  Lookup tables are useful to handle large sparse address sets,
> > typically from a hundred to several thousands of entries.  There may be
> > up to 128 different lookup tables, numbered 0 to 127.
> >
> > net.inet.ip.fw.dyn_buckets should probably also be increased to
> > efficiently handle 150k IPs.
>
> Please correct me if I'm wrong, but if the OP is going to drop all
> traffic immediately from the 150k IPs, then dyn_buckets shouldn't come
> into play, as there is no dynamic rule generated.
>
> Steve

Ah nevermind then, I misread the manpage. I thought it also applied to normal 
tables.

-- 
Pieter de Goeje

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


setting up bootable copy of server on my home PC

2009-01-15 Thread Kurt Bigler
I'm running a small server based on FreeBSD 7.0-RELEASE (GENERIC).

I hope to be able to create an bootable copy of the server at home, and so I
freed up enough partition space on my PC, using a gparted CD, which is what
someone suggested I use.  The PC is running Vista.  I defragmented and then
reduced the Vista partition size, leaving me 120GB for two 58GB unix
partitions and a generous 4GB swap area.

I'm tentatively ignoring what is perhaps a typical protocol of having
separate partitions for /, /usr, and /var for the system at home, lumping
all 3 together instead, with my 2nd unix partition being used for web and
email hierarchies that are symlinked to from somewhere within /var and /usr.
I realize that will complicate the rsync a little since my server has /usr
and /var on separate partitions, but I think it can be made to work.

Then my plan was to run FreeBSD off a live-CD in order to initialize the
disk partitions and run rsync to copy the filesystems from my server, and
for that purpose I chose TrueBSD because the current release is based on
FreeBSD 7.1.  I'm hoping that the server and my home PC are sufficiently
compatible for the same kernel (i.e. obtained via rsync) to boot on either
box.  So set me straight if this seems unrealistic--but it seems like
FreeBSD does quite a range of dynamic hardware detection.

I got the TrueBSD live CD (maybe it was DVD) booted, and tried running fdisk
(whose manual page I can barely understand) and it complains that the
partition table is not fdisk-compatible, but it refers to the "in-core
disklabel", so I'm thinking it may not be reading the correct partition
table (from the hard drive).

I could go into more detail, but I figure the above will probably give
someone sufficient info to shoot my plan down, point me to a better
strategy, or with any luck confirm the basic plan and give me a few hints.

Someone else did the initial FreeBSD install for me to set up my server, so
I'm not savvy of that part of the process, but hope to be able to achieve
this goal in a relatively straightforward way, creating a bootable copy of
the server via rsync without doing a fresh install.

Thanks for any thoughts.

-Kurt Bigler


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: gvinum & gjournal

2009-01-15 Thread Ulf Lilleengen
On Wed, Jan 14, 2009 at 04:23:30PM -0500, Brian McCann wrote:
> Hi all.  I'm cross-posting this since I figure I'll have better luck
> finding someone who's done this before...
> 
> I'm building a system that has 4 1.5TB Seagate SATA drives in it.
> I've setup gvinum and made mirrors for my OS partitions, and a raid5
> plex for a big data partition.  I'm trying to get gjournal to run on
> the raid5 volume...but it's doing stuff that isn't expected.  First,
> here's my gvinum config for the array:
> 
> ---snip---
> drive e0 device /dev/ad8s1g
> drive e1 device /dev/ad10s1g
> drive e2 device /dev/ad12s1g
> drive e3 device /dev/ad14s1g
> volume array1
>   plex org raid5 128k
> sd drive e0
> sd drive e1
> sd drive e2
> sd drive e3
> ---/snip---
> 
> Now...according to the handbook. the volume it creates is essentially
> a disk drive.  So...I run the following gjournal commands to make the
> journal, and here's what I get:
> 
> ---snip---
> # gjournal label /dev/gvinum/array1
> GEOM_JOURNAL: Journal 4267655417: gvinum/plex/array1.p0 contains data.
> GEOM_JOURNAL: Journal 4267655417: gvinum/plex/array1.p0 contains journal.
> GEOM_JOURNAL: Journal gvinum/plex/array1.p0 clean.
> GEOM_JOURNAL: BIO_FLUSH not supported by gvinum/plex/array1.p0.
> # gjournal list
> Geom name: gjournal 4267655417
> ID: 4267655417
> Providers:
> 1. Name: gvinum/plex/array1.p0.journal
>Mediasize: 4477282549248 (4.1T)
>Sectorsize: 512
>Mode: r0w0e0
> Consumers:
> 1. Name: gvinum/plex/array1.p0
>Mediasize: 4478356291584 (4.1T)
>Sectorsize: 512
>Mode: r1w1e1
>Jend: 4478356291072
>Jstart: 4477282549248
>Role: Data,Journal
> --/snip---
> 
> So...why is it even touching the plex p0?  I figured it would, just
> like on a disk, if I gave it da0, create da0.journal.  Moving on, if I
> try to newfs the journal, which is now
> "gvinum/plex/array1.p0.journal", I get:
> 
Hi,

It think that it touches it because the .p0 contains the gjournal metadata in
the same way that the volume does, so gjournal attaches to that before the
volume. One problem is that gjournal attaches to the "wrong" provider, but
it's also silly that the provider is exposed in the first place. A fix for
this is in a newer version of gvinum (as the plex is not exposed) if you're
willing to try.

-- 
Ulf Lilleengen
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: howto determine network device unit number? device.hints?

2009-01-15 Thread H.fazaeli

   for example, say you have 2 interface em0 and em1 which
   you like to swap their minor numbers:
   ifconfig em0 name tmp
   ifconfig em1 name em0
   ifconfig em0 name em1
   or to assign cisco-like names to you interfaces:
   ifconfig xl0 name fastEthernet0
   ifconfig em0 name gigaEthernet0
   ifconfig fastEthernet0 192.168.1.0/24
   Yony Yossef wrote:

 

  

-Original Message-
From: H.fazaeli [[1]mailto:faza...@sepehrs.com]
Sent: Wednesday, January 14, 2009 6:24 PM
To: Yony Yossef
Cc: [2]freebsd-...@freebsd.org; [3]freebsd-questi...@freebsd.org;
Eitan Shefi; Oleg Kats; Liran Liss
Subject: Re: howto determine network device unit number? device.hints?


you may not change unit numbers as they are strictly
controlled by kernel.
However, on freebsd 5.3+, you may use 'ifconfig name '
to achieve the same affect



Sorry, I don't understand the usage of ifconfig you suggested and the effect
it will cause.
Can you please explain it?
Yony



Yony Yossef wrote:


Hi,

I would like to determine the unit number of my network cards, e.g.
make the device on pci0:16 be assigned every time with unit


number 0


and pci0:19 with unit number 1.

Is it done by /boot/device.hints?
if so, how?

My cards are:

mtn...@pci0:19:0:0: class=0x02 card=0x001715b3


chip=0x636815b3


rev=0xa0 hdr=0x00
mtn...@pci0:16:0:0: class=0x02 card=0x001715b3


chip=0x636815b3


rev=0xa0 hdr=0x00

So I've tried:

hint.mtnic.0.at="pci0:16"
hint.mtnic.1.at="pci0:19"

but it doesn't work. They keep switching arbitrarily.
I'm using FreeBSD 7.0.

Thanks
Yony
___
[4]freebsd-questi...@freebsd.org mailing list
[5]http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to


[6]"freebsd-questions-unsubscr...@freebsd.org"





--


Best regards.

Hooman Fazaeli [7]
Sepehr S. T. Co. Ltd.

Web: [8]http://www.sepehrs.com
Tel: (9821)88975701-2
Fax: (9821)88983352







___
[9]freebsd-...@freebsd.org mailing list
[10]http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to [11]"freebsd-net-unsubscr...@freebsd.org"




--


Best regards.

Hooman Fazaeli [12]
Sepehr S. T. Co. Ltd.

Web: [13]http://www.sepehrs.com
Tel: (9821)88975701-2
Fax: (9821)88983352

References

   1. mailto:faza...@sepehrs.com
   2. mailto:freebsd-...@freebsd.org
   3. mailto:freebsd-questions@freebsd.org
   4. mailto:freebsd-questions@freebsd.org
   5. http://lists.freebsd.org/mailman/listinfo/freebsd-questions
   6. mailto:freebsd-questions-unsubscr...@freebsd.org
   7. mailto:h...@sepehrs.com
   8. http://www.sepehrs.com/
   9. mailto:freebsd-...@freebsd.org
  10. http://lists.freebsd.org/mailman/listinfo/freebsd-net
  11. mailto:freebsd-net-unsubscr...@freebsd.org
  12. mailto:h...@sepehrs.com
  13. http://www.sepehrs.com/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Logs from wireless routers disclosing L2/MAC info?

2009-01-15 Thread John Conover

Some of the popular wireless routers have an option to email
access/security logs to an account on the Internet. When enabled, the
logs contain the last 24 bits of the MAC address of the router's cable
modem port, (the rest could be guessed since the brand name is
included in the email,) and, the MAC address of the cable modem's
router port.

Was I potty trained wrong, or is this risky.

Thanks,

John

-- 

John Conover, cono...@rahul.net, http://www.johncon.com/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Can't install from ports

2009-01-15 Thread Boris Samorodov
Rem P Roberti  writes:

> Boy, this hasn't been a good night.  I am unable to install from
> ports.  When I attempt to do
> a compile I get this error message:
>
> 1 open conditional:
> at line 131 (evaluated to true)
> make: fatal errors encountered -- cannot continue

This may help to narrow down your problem:
. update your ports tree;
. temporarily remove /etc/make.conf.


WBR
-- 
bsam
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"