devfs and hot unplugging

2006-09-15 Thread M. L. Dodson
I was transferring a bunch of data files from compute nodes to a server 
using dump-restore.  I put the disks with the data files into an external 
firewire device, plugged it in, and did the transfers.  This is on 
6.1-RELEASE-p6.

When I finished the transfers, I just pulled the cable (the firewire disk 
partitions were not mounted).  When I plugged in the next drive, devfs 
created devices with names like /dev/da0s1aa, /dev/da0s1ab, /dev/da0s1ac, 
etc., in addition to the regular /dev/da0s1a, etc (which were left over 
from the first disk, they were not destroyed when I pulled the cable).  
When I tried to fsck the firewire disk partitions, /dev/da0s1a 
and /dev/da0s1g worked fine (as did the dump/restore from /dev/da0s1g).  
The other partitions, /dev/da0s1d, e, and f, failed, saying the superblock 
could not be found.  All the data disks were of the same kind and had 
identical partitioning schemes.

My question: Should I be doing something to signal devfs I'm going to unplug 
a device so it won't get confused when I plug in another similar, but not 
the same, device?  What's going on here?

Bud Dodson
-- 
M. L. Dodson
Email:  mldodson-at-houston-dot-rr-dot-com
Phone:  eight_three_two-56_three-386_one
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Apache & PV entries

2006-01-19 Thread M. L.

Hello list,

I am configuring a very heavily used apache webserver, that required 
some special needs.


This particular configuration needs to have at least 1024 httpds always 
running. Reaching this number is not a problem, but whenever I stop 
apache via apachectl stop, I notice all the httpds take a long time (1 
min) to vanish - and meanwhile, top shows most of them locked.


The states I see in top are:
*vm ob
RUN

while the header shows:
1038 processes:332 running, 12 sleeping, 694 lock

The numbers vary a lot. Eventually, they get killed, but it takes too 
much time.


After some searching, I found out the cause for this was running out of 
PVs. I've added the following relevant options to the kernel:

options KVA_PAGES=768
options PMAP_SHPGPERPROC=5120

sysctl vm.zone | grep PV shows: (note: httpd stopped here)
   (limit) (used)  (free)   
(requests)

PV ENTRY: 24, 84410445,   5522, 1632543,  5381679


So, if my assumptions are correct,  and running out of PVs was the cause 
(I did get that message about increasing PMAP_SHPGPERPROC before I 
placed that in the kernel), there is a problem now. If you look at the 
vm.zone output, there are 84,410,445 PVs that could exist, but the 
system shows only 1,632,543 free.


This leads me to believe there is another thing to tune. I already have 
a high PVs limit, but according to this output, it's not going further 
than 1,6 millions.


My question is, what can I do to make the system use the full 84 
millions, as I have not found any way to do this.







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


suPHP - secure/reliable?

2005-10-07 Thread M. L.

Hi all,

I'd like to know your opinions on suPHP. I was looking for some software 
that would execute PHP scripts as the user who owns them, instead of 
www, and came up with that. But the site is written in poor english, the 
software consists on a root setuid binary, so I'm a bit worried about 
the quality of this software.


Does anyone have anything to say about suPHP, either good or bad stuff ? 
I'd like your opinions.


Regards,

M. L.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: 6.0-BETA5, kismet & iwi ...

2005-10-02 Thread M. L.

albi wrote:


On Sun, 02 Oct 2005 19:14:26 +0100
"M. L." <[EMAIL PROTECTED]> wrote:

 

My wireless card is an Intel 2200BG, supported on FreeBSD by the iwi 
driver. I had it installed prior to upgrading by downloading from 
http://damien.bergamini.free.fr/ipw/ , but removed it and added device 
iwi to the 6.0 kernel instead. Now it always complains about "iwi0: 
Please load firmware."


So, I went to damien's site again, only to find that the download link 
had been removed, and a reference to ports/net/iwi-firmware was there 
instead. 
   



the link actually points to http://ipw2100.sourceforge.net/ which has a
download-link for firmware

 


For the ipw2100, and for Linux. I am on FreeBSD and with an iwi.


and from here :
http://kerneltrap.org/node/5414/print
you could try this for your kismet (replacing eth1 with iwi0)
source=ipw2200,eth1,ATHEROS

 



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


6.0-BETA5, kismet & iwi ...

2005-10-02 Thread M. L.

Hi list,

I've just upgraded my laptop to 6.0-BETA5, hoping I finally would be 
able to have functional wireless.. things didn't go quite as I expected, 
tho.


My wireless card is an Intel 2200BG, supported on FreeBSD by the iwi 
driver. I had it installed prior to upgrading by downloading from 
http://damien.bergamini.free.fr/ipw/ , but removed it and added device 
iwi to the 6.0 kernel instead. Now it always complains about "iwi0: 
Please load firmware."


So, I went to damien's site again, only to find that the download link 
had been removed, and a reference to ports/net/iwi-firmware was there 
instead. I've tried to install the port, and it says I've already got 
iwi(4) support, and won't let install anything. I'm left with a iwi0 
that has no firmware, an so is worthless. Is the firmware somewhere in 
the base 6.0 system ?


The other problem is kismet. Looking at the (poor) kismet documentation, 
the best I could get from it was that I needed to define radiotap_bsd_x 
as my capture source on kismet.conf. The documentation isn't clear about 
what X is, so I've tried:


- radiotap_bsd_x
- radiotap_bsd_g
- radiotap_fbsd_x
- radiotap_fbsd_g

Either way, it says the capture type is unknown. Then I tried with 
capture type ipw2200, and kismet said it wasn't built.


So.. where is the iwi firmware or where can I download it (pkg_add -r 
iwi-firmware doesn't work btw), and how to make kismet happy about my 
iwi0 card ?


Thanks in advance.

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


Re: FreeBSD 5.4 & Adaptec 2010s - raidutil / aaccli

2005-07-16 Thread M. L.

Hi,

I can't post exact messages now, but dmesg detects an asr "Adaptec 
Caching RAID", and the only disk detected (the RAID-10) is da0. As I 
mentioned, raidutil (from the asr utils package) keeps saying 
/dev/rdpti17 doesn't exist, and if I symlink asr0 -> rdpti17, the next 
time I run raidutil, it will erase the symlink. As I also mentioned, 
some posts from google mentioned symlinking /dev/rasr0 -> rdpti17, but I 
don't have such device.


If you're talking about the SYSV-related kernel options, I have tried 
these and the error is the same.




Chad Leigh -- Shire.Net LLC wrote:



On Jul 16, 2005, at 10:45 AM, M. L. wrote:


Hi,

I've managed to install FreeBSD 5 on a RAID-10 after my weird  
problem of random letters/numbers scrolling on the screen upon a CD  
boot (actually installed 4.10 from CD, cvsupped to 5.4, it worked -  
seems to be something related to the CD boot loader..).


Wanting to have something to manage the raid with, a simple make  
search key=adaptec showed asr-utils and aaccli. I've had no luck  
with either one.


I don't have the server online now (have it at home before shipping  
it, only have one set of cables, a pain to switch them due to cable  
locations etc)



With raidutil (from asr-utils), a raidutil -L all says something  
about COMPATIBITY NUMBER and then something about /dev/rdpti17.  I've 
tried to symlink /dev/asr0 to /dev/rdpti17, but the symlink is  gone 
when I run raidutil again. I googled a bit and there were  
suggestions about /dev/rasr0 -> /dev/rdpti17, but I have no rasr0  
device - only asr0. There was also some links about increasing SYSV  
memory, which I did, no luck either.


I tried aaccli after having no luck with raidutil, and a aaccli  open 
asr0 says the controller is invalid or non-existant.


camcontrol devlist shows the RAID-10, and I'm pretty sure the RAID  
is working - I've installed FreeBSD on it lol :-)


All that I'm missing now is a tool to be able to manage the raid..   
any suggestions ?



What is the device name for the disks?  What does dmesg say when it  
detects the controller?  If it says something with aac in it then you  
want the LINUX aaccli and if it says asr you want the asr utils, but  
you need to google on FreeBSD and asr as there is a kernel option you  
need for 5.4 to work with the asr utilities.


For the aac device, you need to get the Linux aaccli program (much  
more advanced) and also load the linux_aac kernel module.


I have both a 2200S (aac) working with 5.3 and a 2100S (asr) working  
with 5.4.  ALl on i386 version of FBSD


Chad





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




---
Chad Leigh -- Shire.Net LLC
Your Web App and Email hosting provider
[EMAIL PROTECTED]





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


FreeBSD 5.4 & Adaptec 2010s - raidutil / aaccli

2005-07-16 Thread M. L.

Hi,

I've managed to install FreeBSD 5 on a RAID-10 after my weird problem of 
random letters/numbers scrolling on the screen upon a CD boot (actually 
installed 4.10 from CD, cvsupped to 5.4, it worked - seems to be 
something related to the CD boot loader..).


Wanting to have something to manage the raid with, a simple make search 
key=adaptec showed asr-utils and aaccli. I've had no luck with either one.


I don't have the server online now (have it at home before shipping it, 
only have one set of cables, a pain to switch them due to cable 
locations etc)



With raidutil (from asr-utils), a raidutil -L all says something about 
COMPATIBITY NUMBER and then something about /dev/rdpti17. I've tried to 
symlink /dev/asr0 to /dev/rdpti17, but the symlink is gone when I run 
raidutil again. I googled a bit and there were suggestions about 
/dev/rasr0 -> /dev/rdpti17, but I have no rasr0 device - only asr0. 
There was also some links about increasing SYSV memory, which I did, no 
luck either.


I tried aaccli after having no luck with raidutil, and a aaccli open 
asr0 says the controller is invalid or non-existant.


camcontrol devlist shows the RAID-10, and I'm pretty sure the RAID is 
working - I've installed FreeBSD on it lol :-)


All that I'm missing now is a tool to be able to manage the raid..  any 
suggestions ?



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


FreeBSD 5.4 CD and Adaptec 2010s controller w/ RAID 10

2005-07-14 Thread M. L.

Hi list,

I'm having a strange problem while trying to install FreeBSD on a 
pentium 4 server with an adaptec 2010s controller with a built RAID 10. 
It goes fine until


it tries to read the CD (to install FreeBSD), at that point it starts 
spitting random numbers and letters in blocks, something like:


cc 99 cc aa dd 99 cc 99 cc aa dd 99 cc 99 cc aa dd 99
cc 99 cc aa dd 99 cc 99 cc aa dd 99 cc 99 cc aa dd 99
cc 99 cc aa dd 99 cc 99 cc aa dd 99 cc 99 cc aa dd 99
cc 99 cc aa dd 99 cc 99 cc aa dd 99 cc 99 cc aa dd 99
cc 99 cc aa dd 99 cc 99 cc aa dd 99 cc 99 cc aa dd 99


(letters/numbers are different)

and it never stops. If I destroy the RAID 10, FreeBSD will boot up 
fine and detect all 4 disks.. if I insert a Windows CD, it will go to 
Windows the installation screen, which leads me to believe it is a 
problem related with FreeBSD and the fact that there is a RAID 10 
created (remember, if I destroy the RAID it works fine and will go to 
sysinstall)


This is my first RAID installation on a FreeBSD system, so I might be 
missing something obvious.. Does anyone have a clue ?


Thanks in advance!



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


FreeBSD 5.4 CD and Adaptec 2010s controller w/ RAID 10

2005-07-13 Thread M. L.

Hi list,

I'm having a strange problem while trying to install FreeBSD on a 
pentium 4 server with an adaptec 2010s controller with a built RAID 10. 
It goes fine until
it tries to read the CD (to install FreeBSD), at that point it starts 
spitting random numbers and letters in blocks, something like:


cc 99 cc aa dd 99 cc 99 cc aa dd 99 cc 99 cc aa dd 99
cc 99 cc aa dd 99 cc 99 cc aa dd 99 cc 99 cc aa dd 99
cc 99 cc aa dd 99 cc 99 cc aa dd 99 cc 99 cc aa dd 99
cc 99 cc aa dd 99 cc 99 cc aa dd 99 cc 99 cc aa dd 99
cc 99 cc aa dd 99 cc 99 cc aa dd 99 cc 99 cc aa dd 99


(letters/numbers are different)

and it never stops. If I destroy the RAID 10, FreeBSD will boot up fine 
and detect all 4 disks.. if I insert a Windows CD, it will go to Windows 
the installation screen, which leads me to believe it is a problem 
related with FreeBSD and the fact that there is a RAID 10 created 
(remember, if I destroy the RAID it works fine and will go to sysinstall)


This is my first RAID installation on a FreeBSD system, so I might be 
missing something obvious.. Does anyone have a clue ?


Thanks in advance!


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


Re: changing network card MAC address

2005-06-12 Thread M. L. Dodson
On Sunday 12 June 2005 17:32, Christopher Black wrote:
> Check out /etc/dhclient.conf.  The options are described in 'man 5
> dhclient.conf'
>
> On Sun, 2005-06-12 at 17:26 -0500, M. L. Dodson wrote:
> > Just set up a new box (5.4-RELEASE) as a home gateway and had to
> > change the network card MAC address that does DHCP through the
> > cable modem.  I put the following in /etc/rc.early, but this seems
> > inelegant and possibly deprecated.  What is the proper way to do
> > this on a DHCP interface?
> >
> > ifconfig rl1 ether 'aa:bb:cc:dd:ee:ff'
> >
> > Thanks

Renaming /etc/rc.early to /etc/dhclient-enter-hooks works (as
I am sure renaming it to /etc/start_if.rl1 would have done).  Thanks
for the responses!

-- 
M. L. Dodson[EMAIL PROTECTED]
409-772-2178FAX: 409-772-1790

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


changing network card MAC address

2005-06-12 Thread M. L. Dodson
Just set up a new box (5.4-RELEASE) as a home gateway and had to
change the network card MAC address that does DHCP through the
cable modem.  I put the following in /etc/rc.early, but this seems
inelegant and possibly deprecated.  What is the proper way to do
this on a DHCP interface?

ifconfig rl1 ether 'aa:bb:cc:dd:ee:ff'

Thanks
-- 
M. L. Dodson[EMAIL PROTECTED]
409-772-2178FAX: 409-772-1790

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


nfs installs of 5.1

2003-06-30 Thread M. L. Dodson
$subject seems broken for me for 5.1 miniinst.iso

Export /cdrom from 10.2.1.4; exports line:
/cdrom -maproot=0 -alldirs -network 10.2 -mask 255.255.0.0
(nfs server setup is well tested).

when prompted for nfs info during install, give 10.2.1.4:/cdrom,
netmask 255.255.0.0 (same subnet as target machine) -> configure
install target network (ip 10.2.1.200) -> get error:

Error mounting 10.2.1.4:/cdrom on /dist: no such file or directory

On ttyv4 find error messages (hand copied):
mount_nfs: can't update /var/db/mountdtab for 10.2.1.4:/cdrom
mount_nfs: Operation not supported by device

On ttyv4 I can cd to /dist

Anyone have suggestions?

TIA,
Bud Dodson
-- 
M. L. Dodson[EMAIL PROTECTED]
409-772-2178FAX: 409-772-1790
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"