Re: How to force a static /etc/resolv.conf?

2013-06-13 Thread Darren Pilgrim

On 2013-06-13 05:02, Loic Capdeville wrote:

You can configure it in your dhclient.conf file.
Use the supersede keyword.
For example, in your case add:

supersede domain-search example.com example.net
supersede domain-name-servers 2001:db8::53


That only addresses the DHCPv4 client.  The DHCPv6 client doesn't have 
those options and neither do the VPN clients.


___
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: How to force a static /etc/resolv.conf?

2013-06-13 Thread Darren Pilgrim

On 2013-06-12 17:46, Darren Pilgrim wrote:

How do I tell resolvconf to always use a static configuration or, better
yet, to not muck with /etc/resolv.conf at all?


According to the project developer, the answer is to have resolvconf not 
touch /etc/resolv.conf by put the following in /etc/resolvconf.conf


resolv_conf=/dev/null

Then you just edit /etc/resolv.conf directly.

___
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


How to force a static /etc/resolv.conf?

2013-06-12 Thread Darren Pilgrim
I'm running 9.1.  I run a local recursive resolver, so my 
/etc/resolv.conf needs to remain static.  I have DHCPv4, DHCPv6 and VPN 
clients running which all want to modify /etc/resolv.conf.  I have set 
in /etc/resolvconf.conf:


search_domains=example.com. example.net.
name_servers=2001:db8::53

But that only prepends that information.  Search domains and nameservers 
from other sources still get included.  I can set /etc/resolv.conf as 
immutable, but's a hack and it generates errors from resolveconf.


How do I tell resolvconf to always use a static configuration or, better 
yet, to not muck with /etc/resolv.conf at all?

___
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


How to make local periodics run before base periodics?

2012-10-06 Thread Darren Pilgrim
I have some periodic scripts from ports that I need to run before 
periodic scripts in /etc/periodic; but I can't see how to make it so. 
Periodic always processes /etc/periodic before $local_periodic.  If I 
move /etc/periodic/*/999.local file to 000.local and set:


local_periodic=
daily_local=/usr/local/etc/periodic/daily/*
weekly_local=/usr/local/etc/periodic/weekly/*
monthly_local=/usr/local/etc/periodic/monthly/*

Then /usr/local/etc/periodic runs first, but it's not scalable since I 
moved a file that mergemaster cares about.  It's also noisy because 
999.local generates output for all scripts, even those that are not enabled.


What is the proper way to make local periodics run before base periodics?
___
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: ToS marking in pf

2012-08-21 Thread Darren Baginski


17.08.2012, 20:54, Darren Baginski kick...@yandex.ru:
 Hi list!

 Could you please point me how can I set DSCP/TOS bits for outgoing packets 
 using pf ?
 I would like to mark all packets going to the specific port marked with DSCP 
 CS3.
 

Can't believe no one is aware..
___
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


ToS marking in pf

2012-08-17 Thread Darren Baginski
Hi list!

Could you please point me how can I set DSCP/TOS bits for outgoing packets 
using pf ?
I would like to mark all packets going to the specific port marked with DSCP 
CS3. 
___
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: mpt(4) enabling write cache on raw disk

2012-07-30 Thread Darren Baginski


29.07.2012, 17:00, Stefan Johansson steve.johans...@telia.com:
 Hello!

 I have a HP 3080X SAS/SATA 8 port mpt(4) controller card that I want to use in
 a ZFS setup.
 My problem is that the write cache is not enabled on disks that are not a 
 part of a RAID volume (RAID0 or RAID1).
 The write speed is limited to about 20MB/s with both UFS and ZFS.
 If I create a RAID0 volume with mptutil(8) and then destroy it, write cache 
 gets enabled and the write speed reaches about 60MB/s with UFS and ZFS.
 Unfortunately it won't survive a reboot.

 Has anyone else seen this problem with mpt(4) controllers and/or knows how to 
 fix it?

I have to create 8 raid0 volumes consisting of one drive, and then enable 
#/usr/sbin/mptutil volume  cache  0 enable
#/usr/sbin/mptutil volume  cache  1 enable


___
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: bsdinstall to jail aborted (9.0-RELEASE-p3, amd64)

2012-07-28 Thread Darren Baginski


28.07.2012, 13:46, Matthias Petermann matth...@d2ux.net:
 Hello,

 currently I experienced an unexpected behavior of the FreeBSD bsdinstall 
 installer. Some weeks ago I could use it sucessfully to create a jail 
 environment with

 # bsdinstall jail /jails/myjail

 Today I tried to repeat this on another system(2) and it fails after the 
 selection of the to-be-used mirror. Also re-trying it on the original 
 system(1) leads to an error but a different one. Since then I upgraded from 
 9.0-RELEASE to 9.0-RELEASE-p3 using freebsd-update.

 Here are the symptoms:

 (2) FreeBSD 9.0-RELEASE-p3 amd64: After typing bsdinstall... it brings me 
 directly to the mirror selection list, but after selecting a mirror it aborts 
 with an error message An installation step has beeen aborted. Would you like 
 to restart the installer or exit the installer?

 (1) FreeBSD 9.0-RELEASE-p3 i386: After typing bsdinstall... it brings me to 
 the distribution select dialog. After selection of the distribution set, it 
 shows the mirror selection dialog. After selecting a mirror it aborts with a 
 fetch error Error while fetching /base.txz: Invalid URL scheme

 I tried different mirrors, too. And they all seem to be basically online - 
 pointing an FTP client to them showed no errors.

 So what am I doing wrong? Does bsdinstall maintain some hidden configuration 
 file which may influence its behavior? The environment variables mentioned in 
 bsdinstall(8) are not set on both systems. Or is there a known issue with 
 9.0-RELEASE-p3 which appears different on amd64 and i386 systems?

 It would be great if anyone could validate this.

I did a quick test on 9.1-PRERELEASE,  ant bsdinstall trying to fetch 
9.1-PRERELEASE files, which it surely can't find.
There must be an option like 'TARGET' to specify exact version to fetch like 
it's the case for Debian debootsrap.


 Kind regards,
 Matthias

___
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: bsdinstall to jail aborted (9.0-RELEASE-p3, amd64)

2012-07-28 Thread Darren Baginski


28.07.2012, 17:13, Darren Baginski kick...@yandex.com:
 28.07.2012, 13:46, Matthias Petermann matth...@d2ux.net:

  Hello,

  currently I experienced an unexpected behavior of the FreeBSD bsdinstall 
 installer. Some weeks ago I could use it sucessfully to create a jail 
 environment with

  # bsdinstall jail /jails/myjail

  Today I tried to repeat this on another system(2) and it fails after the 
 selection of the to-be-used mirror. Also re-trying it on the original 
 system(1) leads to an error but a different one. Since then I upgraded from 
 9.0-RELEASE to 9.0-RELEASE-p3 using freebsd-update.

  Here are the symptoms:

  (2) FreeBSD 9.0-RELEASE-p3 amd64: After typing bsdinstall... it brings me 
 directly to the mirror selection list, but after selecting a mirror it 
 aborts with an error message An installation step has beeen aborted. Would 
 you like to restart the installer or exit the installer?

  (1) FreeBSD 9.0-RELEASE-p3 i386: After typing bsdinstall... it brings me 
 to the distribution select dialog. After selection of the distribution set, 
 it shows the mirror selection dialog. After selecting a mirror it aborts 
 with a fetch error Error while fetching /base.txz: Invalid URL scheme

  I tried different mirrors, too. And they all seem to be basically online - 
 pointing an FTP client to them showed no errors.

  So what am I doing wrong? Does bsdinstall maintain some hidden 
 configuration file which may influence its behavior? The environment 
 variables mentioned in bsdinstall(8) are not set on both systems. Or is 
 there a known issue with 9.0-RELEASE-p3 which appears different on amd64 and 
 i386 systems?

  It would be great if anyone could validate this.

 I did a quick test on 9.1-PRERELEASE,  ant bsdinstall trying to fetch 
 9.1-PRERELEASE files, which it surely can't find.
 There must be an option like 'TARGET' to specify exact version to fetch like 
 it's the case for Debian debootsrap.


What I did next is:

#diff -u mirrorselect.orig mirrorselect
--- mirrorselect.orig   2012-07-28 12:55:33.0 +
+++ mirrorselect2012-07-28 12:58:49.0 +
@@ -192,7 +192,7 @@
 MIRROR_BUTTON=$?
 exec 3-
 
-BSDINSTALL_DISTSITE=$MIRROR/pub/FreeBSD/releases/`uname -m`/`uname -p`/`uname 
-r`
+BSDINSTALL_DISTSITE=$MIRROR/pub/FreeBSD/releases/`uname -m`/`uname 
-p`/$TARGET
 
 case $MIRROR_BUTTON in
 $DIALOG_CANCEL)

and then:
#export TARGET=9.0-RELEASE
and again
#bsdinstall jail  /tmp/tstenv

Got a working environment after that.
I thing release/arch selection has to be a part of the installer, either 
directly or via environment variables.


___
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


Removing sendmail from an installed system

2012-07-23 Thread Darren Pilgrim
I'm removing sendmail entirely from an installed system.  I had 
WITHOUT_SENDMAIL in /etc/src.conf when I updated to RELENG_8_3, but that 
left an old version of sendmail rotting away on disk.  This is the list 
I have so far:


/etc/mail/* (excluding mailer.conf)
/etc/rc.d/sendmail
/usr/bin/vacation
/usr/libexec/mail.local
/usr/libexec/sendmail
/usr/libexec/smrsh
/usr/sbin/editmap
/usr/sbin/mailstats
/usr/sbin/makemap
/usr/sbin/praliases
/usr/share/sendmail
/var/spool/clientmqueue
/var/spool/mqueue

Is this list complete?  I'm intentionally leaving the stuff for 
mailwrapper.  I'm ok with leaving /etc/rc.d/sendmail behind as well, but 
it looks like it's not needed by anything (i.e., nothing requires mail).


Even though I have WITHOUT_SENDMAIL specified and the world was built 
with that, mergemaster still installs /etc/mail/aliases and 
/etc/rc.d/sendmail.  Is there a way to prevent this other than adding 
them to IGNORE_FILES in mergemasterrc?

___
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: Segmentation fault in FreeBSD 9.0 flockfile ()

2012-05-01 Thread Darren Baginski
Hi!

Mind to share code snippet caused the problem?

01.05.2012, 22:08, Unga unga...@yahoo.com:
 Hi all

 I'm getting a  Segmentation fault in FreeBSD 9.0 as follows for myprog.c:

 Reading symbols from /libexec/ld-elf.so.1...done.
 Loaded symbols for /libexec/ld-elf.so.1
 #0  0x28ebb062 in flockfile () from /lib/libc.so.7
 [New Thread 29c04900 (LWP 100575/SDLTimer)]
 [New Thread 29c04300 (LWP 100416/myprog)]
 (gdb)
 (gdb) info threads
 * 2 Thread 29c04300 (LWP 100416/myprog)  0x28ebb062 in flockfile ()
    from /lib/libc.so.7
   1 Thread 29c04900 (LWP 100575/SDLTimer)  0x28e1527b in _umtx_op ()
    from /lib/libc.so.7
 (gdb)

 I don't use flockfile () directly in my program.

 I use -lpthread.

 Same program runs without any issue on FreeBSD 8.1.

 Any idea what's going on?

 Best regards
 Unga

 ___
 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


Write caching FreeBSD 9

2012-01-03 Thread Darren Baginski
Hi!

In FreeBSD 7,8 there was an option for mtp driver to enable write cache.
Is there a new one for FreeBSD 9, hw.mpt.enable_sata_wc=1 is no longer there.
___
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: OpenBGPd stability issue on FreebBSD 9-PRERELEASE

2011-11-28 Thread Darren Baginski
All RX, not a single packet arrives.


28.11.2011, 04:59, Adrian Chadd adr...@freebsd.org:
 Hi,

 Are all RX frames dropped at that point, or just the BGP TCP session
 related IP frames?

 Adrian
___
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


OpenBGPd stability issue on FreebBSD 9-PRERELEASE

2011-11-27 Thread Darren Baginski
Hi!

I'm having issues with OpenBGPd  openbgpd-4.9.20110612_1 running on  FreebBSD 
9-PRERELEASE.
BGP sessions flap for no reason every ~4hours, bgp sessions itself receive only 
default form cisco router.
FreeBSD 8.2 is not affected. 
How can I troubleshot this?
___
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: OpenBGPd stability issue on FreebBSD 9-PRERELEASE

2011-11-27 Thread Darren Baginski
Yes, I did a capture. Session time outing.
Bizarre that happens only on link with igb driver, while bce has no issues 
(server with two nics one 4ports igb and one 2ports bce).
tcpdump on igb link even do not show packets arriving while I see them sent 
from the other end.
The same link plugged to the bce works.
What else can be done to debug this ?

27.11.2011, 21:59, Kevin Oberman kob6...@gmail.com:
 On Sun, Nov 27, 2011 at 7:10 AM, Darren Baginski kick...@yandex.ru wrote:

  Hi!

  I'm having issues with OpenBGPd  openbgpd-4.9.20110612_1 running on  
 FreebBSD 9-PRERELEASE.
  BGP sessions flap for no reason every ~4hours, bgp sessions itself receive 
 only default form cisco router.
  FreeBSD 8.2 is not affected.
  How can I troubleshot this?

 Start by looking at the logs on both ends. Why did the session get
 torn down?  Which end triggered it? Without this information it is
 impossible to figure much out.

 If the logs don't provide a clue, you can capture the BGP traffic with
 tcpdump and analyze with wireshark.

 --
 R. Kevin Oberman, Network Engineer
 E-mail: kob6...@gmail.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


Mumble

2011-09-10 Thread Mr. Darren
I am trying to install Mumble on a headless FreeBSD server which has no need 
for X11.  Why is this port trying to install X11?  Seems like it shouldn't be 
needed.

___
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


looking for rack hosting company

2011-03-15 Thread Mr. Darren
Sorry if this is a bit off topic.  I am looking to run a Freebsd server with a 
hosting company.  Preferably on the cheaper side as our needs in the beginning 
will be somewhat limited.  I would need enough ram/storage to do some trial and 
error with different databases.  So the vmware virtual servers and limited ram 
are out.  I recall at one time seeing a very reasonable outfit that would rent 
you a rack cpu for around $100/month range and after 2 years would ship it to 
you and give you a new one.  Can't remember what they were called.  I will 
consider any suggestions.  I already checked out the list of venders at 
freebsd.org not finding what I need.  


 Darren Johnston


___
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


pkg_add

2010-06-30 Thread Mr. Darren
Though this will not be the focus of my question.  Lots of ports are being 
created for FreeBSD and none submitted.  I don't know why.

My problem arises when trying to install one of these which is put together 
quite well.  pkg_add -r http://site/something.tbz, or pkg_add something.tbz 
doesn't work for the dependencies.  So how do I tell pkg_add to fetch the first 
pkg from one site and the rest from the main sites?  It is available in source 
but the system is void of pkg's at the moment and with the 1ghz processor and 
512mb ram could take quite a while.  And the funny part is it will work 
perfectly if I just place it in ports/multimedia.  

 Darren Johnston


___
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


pf icmp6 question

2010-04-23 Thread Baginski Darren
Hi!

Could please someone explain me the difference between

pass quick inet6 proto icmp6 all keep state   - IPv6 works only within 
switch collision domain 

AND

pass quick proto icmp6 all keep state  - IPv6 works globaly for whole 
internet


IPv6 is staticaly set everywhere, none of routers or servers have stateless IPs.

Thank you!


___
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


Portsnap snapshot date in past abort

2010-03-29 Thread Darren Spruell
Receiving this recently:

Looking up portsnap.FreeBSD.org mirrors... 3 mirrors found.
Fetching snapshot tag from portsnap1.FreeBSD.org... done.
Latest snapshot on server is older than what we already have!
Cowardly refusing to downgrade from Sun Mar 28 01:00:58 MST 2010
to Sat Mar 27 01:20:17 MST 2010.

I recall in other systems' package management repository update
schemes seeing similar metadata errors and I've always felt it may be
due to the caching on a transparent HTTP proxy on the network egress.
Is the above likely due to such a situation? If so, is there a
canonical fix for the issue (configuring cacheability on mirrors,
configuration/tuning on proxies, options that may be passed on client
side to signal bypass of cache?

Or am I completely off base on this one?

FreeBSD 8.0-RELEASE-p2 FreeBSD 8.0-RELEASE-p2 #0: Tue Jan  5 21:11:58
UTC 2010 r...@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC
 amd64

# /etc/portsnap.conf
SERVERNAME=portsnap.FreeBSD.org
KEYPRINT=9b5feee6d69f170e3dd0a2c8e469ddbd64f13f978f2f3aede40c98633216c330
INDEX INDEX-6 DESCRIBE.6
INDEX INDEX-7 DESCRIBE.7
INDEX INDEX-8 DESCRIBE.8

-- 
Darren Spruell
phatbuck...@gmail.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


puppet and FreeBSD jaild

2010-03-12 Thread Baginski Darren
Hi!

I'm considering to use puppet to manage about ~50 FreeBSD servers with about ~5 
jails on each of them.
Is there any best practices/receipts/Howto's to do that?
I'm interested on something to have new jails auto deployed and configured with 
some polices.

Thank you!
___
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 create 'tank': permission denied

2010-01-27 Thread Baginski Darren
Hi!

Getting weird error
#zpool create  tank  mfid0p4
cannot create 'tank': permission denied

On dmesg:
vdev_geom_open_by_path:466[1]: Found provider by name /dev/mfid0p4.
vdev_geom_attach:112[1]: Attaching to mfid0p4.
vdev_geom_attach:153[1]: Created consumer for mfid0p4.
vdev_geom_read_guid:301[1]: Reading guid from mfid0p4...
vdev_geom_detach:173[1]: Closing access to mfid0p4.
vdev_geom_detach:177[1]: Destroyed consumer to mfid0p4.
vdev_geom_open_by_path:477[1]: guid mismatch for provider /dev/mfid0p4: 
15029269312013869400 != 0.
vdev_geom_open_by_guid:435[1]: Searching by guid [15029269312013869400].
vdev_geom_read_guid:301[1]: Reading guid from acd0...
vdev_geom_read_guid:301[1]: Reading guid from mfid0p4...
vdev_geom_read_guid:301[1]: Reading guid from mfid0p3...
vdev_geom_read_guid:339[1]: guid for mfid0p3 is 9402336837364771330
vdev_geom_read_guid:301[1]: Reading guid from mfid0p2...
vdev_geom_read_guid:301[1]: Reading guid from mfid0p1...
vdev_geom_read_guid:301[1]: Reading guid from 
gptid/85a347ae-0b3f-11df-84de-001ec9b0c152...
vdev_geom_read_guid:301[1]: Reading guid from ufsid/4b6033ebc4edab5d...
vdev_geom_read_guid:301[1]: Reading guid from 
gptid/2f7b4cd6-e983-11de-ac17-001ec9b0c152...
vdev_geom_read_guid:301[1]: Reading guid from 
gptid/2f7aa939-e983-11de-ac17-001ec9b0c152...
vdev_geom_read_guid:301[1]: Reading guid from mfid0...
vdev_geom_open_by_guid:449[1]: Search by guid [15029269312013869400] failed.
vdev_geom_open_by_path:466[1]: Found provider by name /dev/mfid0p4.
vdev_geom_attach:112[1]: Attaching to mfid0p4.
vdev_geom_open:521[1]: Provider /dev/mfid0p4 not found.

But
# gpart list
Geom name: mfid0
fwheads: 255
fwsectors: 63
last: 570949598
first: 34
entries: 128
scheme: GPT
Providers:
1. Name: mfid0p1
   Mediasize: 65536 (64K)
   Sectorsize: 512
   Mode: r0w0e0
   rawtype: 83bd6b9d-7f41-11dc-be0b-001560b84f0f
   label: (null)
   length: 65536
   offset: 17408
   type: freebsd-boot
   index: 1
   end: 161
   start: 34
2. Name: mfid0p2
   Mediasize: 124354560 (119M)
   Sectorsize: 512
   Mode: r0w0e0
   rawtype: 516e7cb5-6ecf-11d6-8ff8-00022d09712b
   label: (null)
   length: 124354560
   offset: 82944
   type: freebsd-swap
   index: 2
   end: 243041
   start: 162
3. Name: mfid0p3
   Mediasize: 6442449920 (6.0G)
   Sectorsize: 512
   Mode: r1w1e1
   rawtype: 516e7cba-6ecf-11d6-8ff8-00022d09712b
   label: (null)
   length: 6442449920
   offset: 124437504
   type: freebsd-zfs
   index: 3
   end: 12825951
   start: 243042
4. Name: mfid0p4
   Mediasize: 285759307264 (266G)
   Sectorsize: 512
   Mode: r0w0e0
   rawtype: 516e7cba-6ecf-11d6-8ff8-00022d09712b
   label: (null)
   length: 285759307264
   offset: 6566887424
   type: freebsd-zfs
   index: 4
   end: 570949598
   start: 12825952
Consumers:
1. Name: mfid0
   Mediasize: 292326211584 (272G)
   Sectorsize: 512
   Mode: r1w1e2

Any ideas ?

___
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 create 'tank': permission denied

2010-01-27 Thread Baginski Darren
Looks like it is the same issue as there
http://groups.google.com/group/muc.lists.freebsd.fs/browse_thread/thread/8bc6c68057e5d416
but still don't know how to fix

27.01.10, 21:02, Baginski Darren kick...@ya.ru:

 Hi!
  
  Getting weird error
  #zpool create  tank  mfid0p4
  cannot create 'tank': permission denied
  
  On dmesg:
  vdev_geom_open_by_path:466[1]: Found provider by name /dev/mfid0p4.
  vdev_geom_attach:112[1]: Attaching to mfid0p4.
  vdev_geom_attach:153[1]: Created consumer for mfid0p4.
  vdev_geom_read_guid:301[1]: Reading guid from mfid0p4...
  vdev_geom_detach:173[1]: Closing access to mfid0p4.
  vdev_geom_detach:177[1]: Destroyed consumer to mfid0p4.
  vdev_geom_open_by_path:477[1]: guid mismatch for provider /dev/mfid0p4: 
 15029269312013869400 != 0.
  vdev_geom_open_by_guid:435[1]: Searching by guid [15029269312013869400].
  vdev_geom_read_guid:301[1]: Reading guid from acd0...
  vdev_geom_read_guid:301[1]: Reading guid from mfid0p4...
  vdev_geom_read_guid:301[1]: Reading guid from mfid0p3...
  vdev_geom_read_guid:339[1]: guid for mfid0p3 is 9402336837364771330
  vdev_geom_read_guid:301[1]: Reading guid from mfid0p2...
  vdev_geom_read_guid:301[1]: Reading guid from mfid0p1...
  vdev_geom_read_guid:301[1]: Reading guid from 
 gptid/85a347ae-0b3f-11df-84de-001ec9b0c152...
  vdev_geom_read_guid:301[1]: Reading guid from ufsid/4b6033ebc4edab5d...
  vdev_geom_read_guid:301[1]: Reading guid from 
 gptid/2f7b4cd6-e983-11de-ac17-001ec9b0c152...
  vdev_geom_read_guid:301[1]: Reading guid from 
 gptid/2f7aa939-e983-11de-ac17-001ec9b0c152...
  vdev_geom_read_guid:301[1]: Reading guid from mfid0...
  vdev_geom_open_by_guid:449[1]: Search by guid [15029269312013869400] failed.
  vdev_geom_open_by_path:466[1]: Found provider by name /dev/mfid0p4.
  vdev_geom_attach:112[1]: Attaching to mfid0p4.
  vdev_geom_open:521[1]: Provider /dev/mfid0p4 not found.
  
  But
  # gpart list
  Geom name: mfid0
  fwheads: 255
  fwsectors: 63
  last: 570949598
  first: 34
  entries: 128
  scheme: GPT
  Providers:
  1. Name: mfid0p1
 Mediasize: 65536 (64K)
 Sectorsize: 512
 Mode: r0w0e0
 rawtype: 83bd6b9d-7f41-11dc-be0b-001560b84f0f
 label: (null)
 length: 65536
 offset: 17408
 type: freebsd-boot
 index: 1
 end: 161
 start: 34
  2. Name: mfid0p2
 Mediasize: 124354560 (119M)
 Sectorsize: 512
 Mode: r0w0e0
 rawtype: 516e7cb5-6ecf-11d6-8ff8-00022d09712b
 label: (null)
 length: 124354560
 offset: 82944
 type: freebsd-swap
 index: 2
 end: 243041
 start: 162
  3. Name: mfid0p3
 Mediasize: 6442449920 (6.0G)
 Sectorsize: 512
 Mode: r1w1e1
 rawtype: 516e7cba-6ecf-11d6-8ff8-00022d09712b
 label: (null)
 length: 6442449920
 offset: 124437504
 type: freebsd-zfs
 index: 3
 end: 12825951
 start: 243042
  4. Name: mfid0p4
 Mediasize: 285759307264 (266G)
 Sectorsize: 512
 Mode: r0w0e0
 rawtype: 516e7cba-6ecf-11d6-8ff8-00022d09712b
 label: (null)
 length: 285759307264
 offset: 6566887424
 type: freebsd-zfs
 index: 4
 end: 570949598
 start: 12825952
  Consumers:
  1. Name: mfid0
 Mediasize: 292326211584 (272G)
 Sectorsize: 512
 Mode: r1w1e2
  
  Any ideas ?
  
  ___
  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
  
  

-- 
Здесь спама нет http://mail.yandex.ru/nospam/sign
___
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


LSILogic SAS/SATA Adapter performance under FreeBSD 8.0 and 7.2 ( 20!!! times slower then in RHEL )

2010-01-05 Thread Baginski Darren
Hi!

I have a Dell 1435 with folowing LSI config:

mpt0:vol0(mpt0:0:0): Settings ( Hot-Plug-Spares High-Priority-ReSync )
mpt0:vol0(mpt0:0:0): Using Spare Pool: 0
mpt0:vol0(mpt0:0:0): 2 Members:
  (mpt0:1:32:0): Primary Online
  (mpt0:1:1:0): Secondary Online
mpt0:vol0(mpt0:0:0): RAID-1 - Optimal
mpt0:vol0(mpt0:0:0): Status ( Enabled )
(mpt0:vol0:1): Physical (mpt0:0:1:0), Pass-thru (mpt0:1:0:0)
(mpt0:vol0:1): Online
(mpt0:vol0:0): Physical (mpt0:0:32:0), Pass-thru (mpt0:1:1:0)
(mpt0:vol0:0): Online
da0 at mpt0 bus 0 target 0 lun 0
da0: Dell VIRTUAL DISK 1028 Fixed Direct Access SCSI-5 device 
da0: 300.000MB/s transfers
da0: Command Queueing enabled
da0: 237464MB (486326272 512 byte sectors: 255H 63S/T 30272C)


Here is simple test

[r...@freebsd tmp]# dd if=/dev/zero of=1g bs=1M count=1000 conv=sync
1000+0 records in
1000+0 records out
1048576000 bytes transferred in 196.386202 secs (5339357 bytes/sec)

[r...@freebsd tmp]# time $(dd if=/dev/zero of=1g bs=1M count=1000 ; sync)  
1000+0 records in
1000+0 records out
1048576000 bytes transferred in 198.980241 secs (5269749 bytes/sec)

real3m24.876s
user0m0.002s
sys 0m1.869s

So I've got _only_ 5Megabytes per second.
Now is the same server under RHEL5

[r...@rhel5 tmp]# dd if=/dev/zero of=1g bs=1M count=1000 conv=sync
1000+0 records in
1000+0 records out
1048576000 bytes (1.0 GB) copied, 5.34952 seconds, 196 MB/s

[r...@rhel5 tmp]# time $(dd if=/dev/zero of=1g bs=1M count=1000 ; sync)
1000+0 records in
1000+0 records out
1048576000 bytes (1.0 GB) copied, 4.70584 seconds, 223 MB/s

real0m42.567s
user0m0.007s
sys 0m6.038s

Both systems default install, no tweaking or custom kernels.
FreeBSD 8.0-release is on UFS, RHEL is on ext3.
I've tried same test on zfs/ufs FreeBSD 7.2 and 8.0 and got always about 
6megabytes per sec.

Any ideas ?
___
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: Re: LSILogic SAS/SATA Adapter performance under FreeBSD 8.0 and 7.2 ( 20!!! times slower then in RHEL )

2010-01-05 Thread Baginski Darren
Same mean I had initialy FreeBSD on it, not it's reformated under RHEL.
I can reformat back to FreeBSD 8.0 or 7.2 to perform additional tests.


05.01.10, 19:58, Boris Samorodov b...@ipt.ru:

 On Tue, 05 Jan 2010 18:46:06 +0300 Baginski Darren wrote:
  
   Now is the same server under RHEL5
  
  Is the server really the *same* or *alike*? I've got such difference
  in performance between similar RAID cards with and without BBU (battery
  backup unit).
  
  -- 
  WBR, Boris Samorodov (bsam)
  Research Engineer, http://www.ipt.ru Telephone  Internet SP
  FreeBSD Committer, http://www.FreeBSD.org The Power To Serve
  
  

-- 
Здесь спама нет http://mail.yandex.ru/nospam/sign
___
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


How to grow partition size on RAID volume?

2009-01-11 Thread Darren David

Hi all-

I need some help figuring out how to expand the existing partition on my 
RAID volume to take advantage of a new disk I just added -- without 
newfs'ing the volume and starting from scratch.


I added a 4th 750GB disk to my existing 1.5TB 3ware RAID5 volume, in an 
attempt to bring my total capacity up to ~2.25TB (4x750GB RAID5). I 
successfully used the 3ware 'tw-cli' utility to perform Online Capacity 
Expansion. The controller migrated the existing data across all 4 
disks, and it now reports a total volume capacity of 2095.44GB.


Now, I'm not quite sure how to get FreeBSD to recognize the extra space. 
I know that in order to use growfs, I first have to use disklabel to 
increase the partition size. However, disklabel doesn't like this big 
RAID volume:


  # disklabel /dev/da0
  disklabel: disks with more than 2^32-1 sectors are not supported

and the existing partition doesn't seem to have a label:

  # disklabel /dev/da0s1
  disklabel: /dev/da0s1: no valid label found

I'm unsure how to proceed here. CAn anyone shed some light as to how I 
might proceed?


Thanks in advance for any and all help,
Darren David


___
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: disklabel not returning values for large RAID

2009-01-01 Thread Darren David

Darren David wrote:

Hi all-

I recently added a 4th 750GB disk to my existing 1.5TB 3ware RAID5 
volume, in an attempt to bring my total capacity up to ~2.25TB (4x750GB 
RAID5).


I successfully used the 3ware 'tw-cli' utility to perform Online 
Capacity Expansion. The controller migrated the existing data across 
all 4 disks, and it now reports a total volume capacity of 2095.44GB. 
Excellent.


So, the issue I'm having is with getting FreeBSD 7.0-Release to 
recognize the additional space. I've seen scant few articles on the 
subject, the best of which is here:


http://ezine.daemonnews.org/200111/growfs.html

My primary issue right now is that when I attempt to run disklabel on 
the volume (/dev/da0) in order to get my calculations for fdisk, i get:


# disklabel /dev/da0
disklabel: disks with more than 2^32-1 sectors are not supported

and when I attempt it on the slice, i get:

# disklabel /dev/da0s1
disklabel: /dev/da0s1: no valid label found

What's the trick here?

Thanks in advance,
Darren David


Update:

OK, I discovered gpt. Here's the output:

# gpt show /dev/da0
   startsize  index  contents
   0   1 MBR
   1  62
  63  2929629402  1  MBR part 165
  2929629465  1464835815

Can anyone please give me some insight as to where to go from here?

Cheers,
Darren
___
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


disklabel not returning values for large RAID

2009-01-01 Thread Darren David

Hi all-

I recently added a 4th 750GB disk to my existing 1.5TB 3ware RAID5 
volume, in an attempt to bring my total capacity up to ~2.25TB (4x750GB 
RAID5).


I successfully used the 3ware 'tw-cli' utility to perform Online 
Capacity Expansion. The controller migrated the existing data across 
all 4 disks, and it now reports a total volume capacity of 2095.44GB. 
Excellent.


So, the issue I'm having is with getting FreeBSD 7.0-Release to 
recognize the additional space. I've seen scant few articles on the 
subject, the best of which is here:


http://ezine.daemonnews.org/200111/growfs.html

My primary issue right now is that when I attempt to run disklabel on 
the volume (/dev/da0) in order to get my calculations for fdisk, i get:


# disklabel /dev/da0
disklabel: disks with more than 2^32-1 sectors are not supported

and when I attempt it on the slice, i get:

# disklabel /dev/da0s1
disklabel: /dev/da0s1: no valid label found

What's the trick here?

Thanks in advance,
Darren David
___
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: puc(4) not attaching to NM9845-based serial card in 6.3-p5

2008-11-16 Thread Darren Pilgrim

Darren Pilgrim wrote:

I have the following PCI, 4-port serial card:

[EMAIL PROTECTED]:2:0: class=0x070002 card=0x00041000 chip=0x98459710 rev=0x01 
hdr=0x00

 vendor = 'MosChip Semiconductors (Was: Netmos Technology)'
 device = 'Nm9845 Parallel/Serial Port Adapter'
 class  = simple comms
 subclass   = UART

This is supposedly supported by puc(4); however, I'm unable to get the 
driver to attach to the card.  I tried both uart+puc and sio+puc.  In 
all both case, the uart/sio drivers attach to only the serial port on 
the motherboard.  There are a number of hits on the mailing list 
archives that discuss puc(4) not attaching to this device, but none 
provide any conclusive answers.


After much searching, I finally found a message from Marcel Moolenaar to 
freebsd-stable date 2008-05-06 regarding PCI serial cards working in 6.2 
but not 6.3.  The issue (and mine) were due to a problem with v1.51.2.3 
of sys/dev/puc/pucdata.c and caused by the commit to add support for the 
six-port version of my card.  The following change:


--- pucdata.c.orig  2006-12-15 14:31:37.0 -0800
+++ pucdata.c   2008-11-16 15:34:50.0 -0800
@@ -946,7 +946,7 @@

/* NetMos 4S0P PCI: 4S, 0P */
{   NetMos NM9845 Quad UART,
-   {   0x9710, 0x9845, 0,  0x0014  },
+   {   0x9710, 0x9845, 0,  0x0004  },
{   0x, 0x, 0,  0x  },
{
{ PUC_PORT_TYPE_COM, 0x10, 0x00, COM_FREQ },

Fixes the issue and I now have:

# dmesg | egrep '(uart|puc)'
Preloaded elf module /boot/kernel/uart.ko at 0xc08312c4.
Preloaded elf module /boot/kernel/puc.ko at 0xc0831370.
puc0: NetMos NM9845 Quad UART port 
0x1060-0x1067,0x1058-0x105f,0x1050-0x1057,0

x1048-0x104f,0x1040-0x1047,0x1020-0x102f irq 18 at device 2.0 on pci6
puc: name: NetMos NM9845 Quad UART
puc0: Reserved 0x8 bytes for rid 0x10 type 4 at 0x1060
puc0: Reserved 0x8 bytes for rid 0x14 type 4 at 0x1058
puc0: Reserved 0x8 bytes for rid 0x18 type 4 at 0x1050
puc0: Reserved 0x8 bytes for rid 0x1c type 4 at 0x1048
puc: Using uart0
puc: type 1, bar 10, offset 0
puc_alloc_resource: pdev 0xc4c37d60, looking for t 4, r 0
puc_alloc_resource: pdev 0xc4c37d60, looking for t 4, r 0
uart0: Non-standard ns8250 class UART with FIFOs on puc0
puc_alloc_resource: pdev 0xc4c37d60, looking for t 4, r 0
puc_alloc_resource: pdev 0xc4c37d60, looking for t 1, r 0
puc: Using uart1
puc: type 1, bar 14, offset 0
puc_alloc_resource: pdev 0xc4c37ca0, looking for t 4, r 0
puc_alloc_resource: pdev 0xc4c37ca0, looking for t 4, r 0
uart1: 16950 or compatible on puc0
puc_alloc_resource: pdev 0xc4c37ca0, looking for t 4, r 0
puc_alloc_resource: pdev 0xc4c37ca0, looking for t 1, r 0
puc: Using uart2
puc: type 1, bar 18, offset 0
puc_alloc_resource: pdev 0xc4c37be0, looking for t 4, r 0
puc_alloc_resource: pdev 0xc4c37be0, looking for t 4, r 0
uart2: 16550 or compatible on puc0
puc_alloc_resource: pdev 0xc4c37be0, looking for t 4, r 0
puc_alloc_resource: pdev 0xc4c37be0, looking for t 1, r 0
puc: Using uart3
puc: type 1, bar 1c, offset 0
puc_alloc_resource: pdev 0xc4c37b20, looking for t 4, r 0
puc_alloc_resource: pdev 0xc4c37b20, looking for t 4, r 0
uart3: 16550 or compatible on puc0
puc_alloc_resource: pdev 0xc4c37b20, looking for t 4, r 0
puc_alloc_resource: pdev 0xc4c37b20, looking for t 1, r 0
uart4: 16550 or compatible port 0x3f8-0x3ff irq 4 on acpi0
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


puc(4) not attaching to NM9845-based serial card in 6.3-p5

2008-11-15 Thread Darren Pilgrim

I have the following PCI, 4-port serial card:

[EMAIL PROTECTED]:2:0: class=0x070002 card=0x00041000 chip=0x98459710 rev=0x01 
hdr=0x00

vendor = 'MosChip Semiconductors (Was: Netmos Technology)'
device = 'Nm9845 Parallel/Serial Port Adapter'
class  = simple comms
subclass   = UART

This is supposedly supported by puc(4); however, I'm unable to get the 
driver to attach to the card.  I tried both uart+puc and sio+puc.  In 
all both case, the uart/sio drivers attach to only the serial port on 
the motherboard.  There are a number of hits on the mailing list 
archives that discuss puc(4) not attaching to this device, but none 
provide any conclusive answers.


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


Re: Even more documentation?

2008-04-25 Thread darren kirby
quoth the Edward Ruggeri:

 It seems like the man pages would be a good place to go, but my
 trouble with using them is that they're difficult to put together the
 information on different pages.  I suppose I want something like a
 textbook.  I dream of a KR type text that is very comprehensive and
 well-organized.

 If anyone has advice, I'd very much appreciate it!

Not sure how 'KR' like it is, but I have just finished reading 'Absolute 
FreeBSD' by Micheal W. Lucas. At 700+ pages it is almost textbook like. It 
seems comprehensive, and logically organized so that very little of the text 
depends on knowledge not yet explained.

Plus, it is witty and well written IMHO. Speaking as a moderately experienced 
Linux guy new to FreeBSD it has served me well. 

Also, There is 'The Complete FreeBSD' by Greg Lehey available from O'Reilley 
(and for download from the author's site) but I haven't (yet!) read it so I 
cannot say much about it...

Also, also, I seem to recall a 'further reading' section in the back of the 
FreeBSD handbook which had more suggestions.

 Sincerely,

 -- Ned Ruggeri

-d
-- 
darren kirby :: Part of the problem since 1976 :: http://badcomputer.org
...the number of UNIX installations has grown to 10, with more expected...
- Dennis Ritchie and Ken Thompson, June 1972
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Build a single kernel module?

2008-04-24 Thread darren kirby
quoth the Wojciech Puchar:
  today. The new card is a D-link DGE-530T which shall work with the 'sk'
  driver. My custom kernel does not have this driver.
 
  I wonder if I can build this single driver as a module to use with my
  already

 cd /usr/src/sys/modules/whatyouwant
 make


Thanks, I will remember this for the future.
-d
-- 
darren kirby :: Part of the problem since 1976 :: http://badcomputer.org
...the number of UNIX installations has grown to 10, with more expected...
- Dennis Ritchie and Ken Thompson, June 1972
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: nfs firewall, hard vs soft mount

2008-04-24 Thread darren kirby
quoth the Colin Brace:
 Hi all,

 I have a FreeBSD v7 box set up as gateway/mailserver/WAP. I leave my WAP
 unencrypted, so my neighbors can use it, and use PF to allow just a few
 specific services (dhcp dns, http, https).

 I'd like to be able to mount a couple of NFS shares from a desktop box
 running Fedora on a wireless client. I've opened  the sunrpc and nfs ports
 in PF, but that doesn't seem to be enough. tcpdump indicates some high upd
 ports in the 40k-50k range are used in the nfs negotiation, but I can't
 figure out exactly what is going on. Does anyone know what additional ports
 need to be opened for nfs? Will I need to use PF to redirect this udf
 traffic to the fedora host or will it find the nfs server on its own?

'rpcinfo -p server' will show the ports/proto you need open. However, it 
should change some each time because rpc.mountd, rpc.statd, and lockd assign 
ports dynamically. You can set a few NFS options to lock these down:

Eg:
RPCMOUNTDOPTS=-p 4002
RPCSTATDOPTS=-p 4000

Sadly, I have only ever run an NFS server on Linux, so I do not know if there 
is a config to set these, or if you have to add the '-p n' to the startup 
scripts directly.

Also, On Linux you must set the lockd port at boot time. Perhaps there is a 
sysctl for this on FreeBSD?

HTH
-d
-- 
darren kirby :: Part of the problem since 1976 :: http://badcomputer.org
...the number of UNIX installations has grown to 10, with more expected...
- Dennis Ritchie and Ken Thompson, June 1972
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Build a single kernel module?

2008-04-23 Thread darren kirby
Hi all,

I recently built a custom kernel for my new FreeBSD 7.0-RELEASE system, and it 
is working well. Sadly, I had to purchase and swap out a nic on this machine 
today. The new card is a D-link DGE-530T which shall work with the 'sk' 
driver. My custom kernel does not have this driver.

I wonder if I can build this single driver as a module to use with my already 
built custom kernel. The handbook mentions using MODULES_OVERRIDE: If you 
want to update a kernel faster or to build only custom modules, you should 
edit /etc/make.conf before starting to build the kernel

So as I understand it, if I add MODULES_OVERRIDE = sk to make.conf then it 
will build only the sk module? The page [0] is light on details so I am 
unsure hoe to proceed with this, ie: I just do a normal 'make installkernel' 
or some other way?

Also, I did look around, but if there are some docs that speak more clearly to 
this issue a pointer would be great.

Thanks for consideration,
-d

[0] 
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-building.html
-- 
darren kirby :: Part of the problem since 1976 :: http://badcomputer.org
...the number of UNIX installations has grown to 10, with more expected...
- Dennis Ritchie and Ken Thompson, June 1972
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


[solved] Re: Build a single kernel module?

2008-04-23 Thread darren kirby
quoth the darren kirby:

Please disregard. I have realized the module is called if_sk.ko, not sk.ko, so 
it is in fact built...

-d
-- 
darren kirby :: Part of the problem since 1976 :: http://badcomputer.org
...the number of UNIX installations has grown to 10, with more expected...
- Dennis Ritchie and Ken Thompson, June 1972
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Filesystem full......

2008-04-21 Thread darren kirby
quoth the Martin Tournoij:
 On Mon, Apr 21, 2008 at 05:44:43PM +0200, Leslie Jensen wrote:
  During make installkernel KERNCONF=GENERIC I get
 
  /: write failed, filesystem is full
  install: /boot/kernel/wlan_tkip.ko.symbols: No space left on device
  *** Error code 71
 
  output of df -H gives
 
  Filesystem SizeUsed   Avail Capacity  Mounted on
  /dev/ad0s1a260M259M-20M   108%/
  devfs  1.0k1.0k  0B   100%/dev
  /dev/ad0s1g127G 30G 87G25%/home
  /dev/ad0s1e260M 26M213M11%/tmp
  /dev/ad0s1f 26G6.0G 18G25%/usr
  /dev/ad0s1d260M209M 30M87%/var
  /dev/ad4s1d387G119G237G33%/backup
  linprocfs  4.1k4.1k  0B   100%/usr/compat/linux/proc
 
  It's a system I've had for a few years, and it has been upgreded a few
  times before.
 
  My question is can I get around this or have I made my / slice to small?
 
  Thanks
 
  /Leslie

 256M should be enough.

Might not be. I have a brand new install here of 7.0 Release (I did build a 
second kernel), and df is reporting my '/' is 267M. I have /usr and /var 
(not /tmp) mounted elsewhere. My /tmp is only using 10K right now, and /home 
has nothing but .cshrc et al so if you want a backup kernel you may need more 
than 256M.  

Did the install yesterday so there is no cruft yet...

 You probably have some junk on the root filesystem, you may want to
 check /boot/kernel.old and /root

 You can use du -hxd1 to check the sizes of directories, and see which
 are taking up so much space.

 Regards,
 Martin Tournoij

-d
-- 
darren kirby :: Part of the problem since 1976 :: http://badcomputer.org
...the number of UNIX installations has grown to 10, with more expected...
- Dennis Ritchie and Ken Thompson, June 1972
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Filesystem full......

2008-04-21 Thread darren kirby
quoth the darren kirby:
 quoth the Martin Tournoij:
  On Mon, Apr 21, 2008 at 05:44:43PM +0200, Leslie Jensen wrote:
   During make installkernel KERNCONF=GENERIC I get
  
   /: write failed, filesystem is full
   install: /boot/kernel/wlan_tkip.ko.symbols: No space left on device
   *** Error code 71
  
   output of df -H gives
  
   Filesystem SizeUsed   Avail Capacity  Mounted on
   /dev/ad0s1a260M259M-20M   108%/
   devfs  1.0k1.0k  0B   100%/dev
   /dev/ad0s1g127G 30G 87G25%/home
   /dev/ad0s1e260M 26M213M11%/tmp
   /dev/ad0s1f 26G6.0G 18G25%/usr
   /dev/ad0s1d260M209M 30M87%/var
   /dev/ad4s1d387G119G237G33%/backup
   linprocfs  4.1k4.1k  0B   100%/usr/compat/linux/proc
  
   It's a system I've had for a few years, and it has been upgreded a few
   times before.
  
   My question is can I get around this or have I made my / slice to
   small?
  
   Thanks
  
   /Leslie
 
  256M should be enough.

 Might not be. I have a brand new install here of 7.0 Release (I did build a
 second kernel), and df is reporting my '/' is 267M. I have /usr and /var
 (not /tmp) mounted elsewhere. My /tmp is only using 10K right now, and
 /home has nothing but .cshrc et al so if you want a backup kernel you may
 need more than 256M.

 Did the install yesterday so there is no cruft yet...

Ahhh

Disregard this. I copied GENERIC kernel to kernel.good, plus the kernel 
install made kernel.old for total of three kernels. After removing one my '/' 
is  155M

Sorry,
-d
-- 
darren kirby :: Part of the problem since 1976 :: http://badcomputer.org
...the number of UNIX installations has grown to 10, with more expected...
- Dennis Ritchie and Ken Thompson, June 1972
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Changing Console Video Modes

2008-04-20 Thread darren kirby
quoth the Edward Ruggeri:
 I'm just reading through the manual for FreeBSD, and I am at section
 3.2.6 Changing Console Video Modes.  This discusses how to change
 the default console resolution.  I would try this out, but as I can
 only access my FreeBSD box remotely at the moment, I am hesitant to
 recompile the kernel with the necessary options (I currently get an
 error when running #vidcontrol -i mode: getting active vty:
 Inappropriate ioctl for device.  I assume this is because the current
 kernel is insufficient?).  

I got this error too, over a ssh connection. vidcontrol worked fine when I 
tried it from the physical console. This was after rebuilding the kernel 
however.

 I'm afraid my computer might need to be 
 booted by hand, which I wouldn't be able to do.

I guess I would say hold off until you have physical access, because it makes 
no difference unless you are sitting in front. Perhaps it works over serial? 
I am not sure.

 In any case, lacking the ability to experiment, I am curious about
 different video modes.  Will greater resolutions allow me to fit more
 text on the screen in the console?  

Yes. Plus it just looks nicer, for lack of a better term.

 Of course I know (maybe less than 
 I think) about resolution in terms of graphical environments (e.g.,
 can see more of a high-resolution image w/ a greater resolution), but
 is it the same for text?

Can't speak to this issue technically, but it essentially allows you to use 
much smaller, yet readable fonts in the console. 

 Thanks!

 Sincerely,

 -- Ned Ruggeri

-d
-- 
darren kirby :: Part of the problem since 1976 :: http://badcomputer.org
...the number of UNIX installations has grown to 10, with more expected...
- Dennis Ritchie and Ken Thompson, June 1972
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


smbutil crypt'd password authentication failures

2008-04-14 Thread Darren Spruell
 controller port
0xfe00-0xfe07,0xfe10-0xfe13,0xfe20-0xfe27,0xfe30-0xfe33,0xfec0-0xfedf
mem 0xff97-0xff9703ff irq 20 at device 31.2 on pci0
atapci1: [ITHREAD]
atapci1: AHCI called from vendor specific driver
atapci1: AHCI Version 01.10 controller with 6 ports detected
ata2: ATA channel 0 on atapci1
ata2: [ITHREAD]
ata3: ATA channel 1 on atapci1
ata3: [ITHREAD]
ata4: ATA channel 2 on atapci1
ata4: [ITHREAD]
ata5: ATA channel 3 on atapci1
ata5: [ITHREAD]
ata6: ATA channel 4 on atapci1
ata6: [ITHREAD]
ata7: ATA channel 5 on atapci1
ata7: port not implemented
ata7: [ITHREAD]
pci0: serial bus, SMBus at device 31.3 (no driver attached)
fdc0: floppy drive controller port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on acpi0
fdc0: [FILTER]
fd0: 1440-KB 3.5 drive on fdc0 drive 0
sio0: 16550A-compatible COM port port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
sio0: type 16550A
sio0: [FILTER]
sio1: 16550A-compatible COM port port 0x2f8-0x2ff irq 3 on acpi0
sio1: type 16550A
sio1: [FILTER]
pmtimer0 on isa0
orm0: ISA Option ROMs at iomem
0xc-0xcbfff,0xcc000-0xcdfff,0xce000-0xd2fff,0xd3000-0xd3fff pnpid
ORM on isa0
atkbdc0: Keyboard controller (i8042) at port 0x60,0x64 on isa0
atkbd0: AT Keyboard irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
atkbd0: [ITHREAD]
ppc0: Parallel port at port 0x378-0x37f irq 7 on isa0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/8 bytes threshold
ppbus0: Parallel port bus on ppc0
ppbus0: [ITHREAD]
plip0: PLIP network interface on ppbus0
lpt0: Printer on ppbus0
lpt0: Interrupt-driven port
ppi0: Parallel I/O on ppbus0
ppc0: [GIANT-LOCKED]
ppc0: [ITHREAD]
sc0: System console at flags 0x100 on isa0
sc0: VGA 16 virtual consoles, flags=0x300
vga0: Generic ISA VGA at port 0x3c0-0x3df iomem 0xa-0xb on isa0
uhub5: Dell Dell USB Keyboard Hub, class 9/0, rev 1.10/48.01, addr 2 on uhub0
uhub5: 3 ports with 2 removable, bus powered
ukbd0: Dell Dell USB Keyboard Hub, class 0/0, rev 1.10/48.00, addr 3 on uhub5
kbd2 at ukbd0
uhid0: Dell Dell USB Keyboard Hub, class 0/0, rev 1.10/48.00, addr 3 on uhub5
ums0: vendor 0x0461 USB Optical Mouse, class 0/0, rev 2.00/2.00, addr
4 on uhub5
ums0: 3 buttons and Z dir.
Timecounters tick every 1.000 msec
firewire0: 1 nodes, maxhop = 0, cable IRM = 0 (me)
firewire0: bus manager 0 (me)
acd0: DVDR PHILIPS DVD+/-RW DVD8801/AD21 at ata0-master UDMA33
ad4: 152587MB WDC WD1600ADFS-75SLR2 21.07Q21 at ata2-master SATA300
ad6: 152587MB WDC WD1600ADFS-75SLR2 21.07Q21 at ata3-master SATA300
pcm0: HDA Codec: Sigmatel STAC9220
pcm0: HDA Driver Revision: 20071129_0050
acd0: FAILURE - INQUIRY ILLEGAL REQUEST asc=0x24 ascq=0x00
acd0: FAILURE - INQUIRY ILLEGAL REQUEST asc=0x24 ascq=0x00
ar0: 152585MB Intel MatrixRAID RAID1 status: READY
ar0: disk0 READY (master) using ad4 at ata2-master
ar0: disk1 READY (mirror) using ad6 at ata3-master
cd0 at ata0 bus 0 target 0 lun 0
cd0: PHILIPS DVD+-RW DVD8801 AD21 Removable CD-ROM SCSI-0 device
cd0: 33.000MB/s transfers
cd0: Attempt to query device size failed: NOT READY, Medium not present
SMP: AP CPU #1 Launched!
SMP: AP CPU #2 Launched!
SMP: AP CPU #3 Launched!
SMP: AP CPU #6 Launched!
SMP: AP CPU #7 Launched!
SMP: AP CPU #4 Launched!
SMP: AP CPU #5 Launched!
Trying to mount root from ufs:/dev/ar0s1a
WARNING: / was not properly dismounted
WARNING: /tmp was not properly dismounted
WARNING: /usr was not properly dismounted
WARNING: /var was not properly dismounted

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


Re: ftpd help

2008-04-03 Thread Darren Spruell
On Thu, Apr 3, 2008 at 8:23 AM, Victor Farah
[EMAIL PROTECTED] wrote:
 Hey
 I have a default install of freebsd 6.2, and I enable ftpd in inetd.
 That all works nicely, I add a user to the system that needs to access ONLY
 two directories that are in two different places.
  For example: /usr/local/www/dir1 and /usr/local/www/dir2/

  There are many directories in /usr/local/www/ that this person SHOULD not
 have access too.  I also made this person a home directory:
 /usr/home/personX/.  I then made the symlinks to the two directories they
 need to access.  After all that setup I went into my /etc/ftpchroot file and
 added the following line:
  personX
  saved and I try to log on to test to see if it is locked in the home
 directory but has access to the two other directories they need.
  Does work, is there anyway to do this with the default ftpd package that
 comes with this?

If you're attempting to restrict this FTP user to their home
directory, then symlinks to directories outside of their home
directory won't be accessible; this is the nature of chroot. You could
create those directories in that user's home directory and create
symlinks to those directories in the web directories (the opposite of
what you have) and that might work how you want. If the permissions on
your user's home directory are restricted you'd probably have to
modify permissions so that the web user could access them.

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


Re: FreeBSD 7.0 nvidia-driver woes

2008-03-27 Thread Darren Spruell
On Tue, Mar 18, 2008 at 12:00 PM, Derek Ragona
[EMAIL PROTECTED] wrote:
  Is it worthwhile to contact NVidia with bug reports? Does the FreeBSD
  community amount to much of a blip on their radar? Do we have a direct
  liaison in the community?
  Never hurts to file a bug report.  It seems to be in the nvidia older
 driver, I've not heard of the problem with the driver for the current cards.

Four days ago I emailed a problem report to
[EMAIL PROTECTED] I haven't heard a peep back. The NVIDIA
support site is structured about like this:

- If your NVIDIA card shipped with the computer direct from the OEM
manufacturer, it's not our problem. Contact [Dell,HP,Compaq,etc] for
resolution.
- If your NVIDIA card was purchased retail, it's not our problem.
Contact the card manufacturer [Gigabyte,MSI,etc.] for assistance.

Does anyone know a contact in NVIDIA that would have any concern over
(driver, etc.) issues like this?

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


Re: desktop dominance

2008-03-25 Thread Darren Spruell
-0xfe27,0xfe30-0xfe33,0xfec0-0xfedf
mem 0xff97-0xff9703ff irq 20 at device 31.2 on pci0
atapci1: [ITHREAD]
atapci1: AHCI called from vendor specific driver
atapci1: AHCI Version 01.10 controller with 6 ports detected
ata2: ATA channel 0 on atapci1
ata2: [ITHREAD]
ata3: ATA channel 1 on atapci1
ata3: [ITHREAD]
ata4: ATA channel 2 on atapci1
ata4: [ITHREAD]
ata5: ATA channel 3 on atapci1
ata5: [ITHREAD]
ata6: ATA channel 4 on atapci1
ata6: [ITHREAD]
ata7: ATA channel 5 on atapci1
ata7: port not implemented
ata7: [ITHREAD]
pci0: serial bus, SMBus at device 31.3 (no driver attached)
fdc0: floppy drive controller port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on acpi0
fdc0: [FILTER]
fd0: 1440-KB 3.5 drive on fdc0 drive 0
sio0: 16550A-compatible COM port port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
sio0: type 16550A
sio0: [FILTER]
sio1: 16550A-compatible COM port port 0x2f8-0x2ff irq 3 on acpi0
sio1: type 16550A
sio1: [FILTER]
pmtimer0 on isa0
orm0: ISA Option ROMs at iomem
0xc-0xcbfff,0xcc000-0xcdfff,0xce000-0xd2fff,0xd3000-0xd3fff pnpid
ORM on isa0
atkbdc0: Keyboard controller (i8042) at port 0x60,0x64 on isa0
atkbd0: AT Keyboard irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
atkbd0: [ITHREAD]
ppc0: Parallel port at port 0x378-0x37f irq 7 on isa0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/8 bytes threshold
ppbus0: Parallel port bus on ppc0
ppbus0: [ITHREAD]
plip0: PLIP network interface on ppbus0
lpt0: Printer on ppbus0
lpt0: Interrupt-driven port
ppi0: Parallel I/O on ppbus0
ppc0: [GIANT-LOCKED]
ppc0: [ITHREAD]
sc0: System console at flags 0x100 on isa0
sc0: VGA 16 virtual consoles, flags=0x300
vga0: Generic ISA VGA at port 0x3c0-0x3df iomem 0xa-0xb on isa0
uhub5: Dell Dell USB Keyboard Hub, class 9/0, rev 1.10/48.01, addr 2 on uhub0
uhub5: 3 ports with 2 removable, bus powered
ukbd0: Dell Dell USB Keyboard Hub, class 0/0, rev 1.10/48.00, addr 3 on uhub5
kbd2 at ukbd0
uhid0: Dell Dell USB Keyboard Hub, class 0/0, rev 1.10/48.00, addr 3 on uhub5
umass0: Lexar USB Flash Drive, class 0/0, rev 2.00/11.00, addr 4 on uhub5
ums0: vendor 0x0461 USB Optical Mouse, class 0/0, rev 2.00/2.00, addr
5 on uhub5
ums0: 3 buttons and Z dir.
Timecounters tick every 1.000 msec
firewire0: 1 nodes, maxhop = 0, cable IRM = 0 (me)
firewire0: bus manager 0 (me)
acd0: DVDR PHILIPS DVD+/-RW DVD8801/AD21 at ata0-master UDMA33
ad4: 152587MB WDC WD1600ADFS-75SLR2 21.07Q21 at ata2-master SATA300
ad6: 152587MB WDC WD1600ADFS-75SLR2 21.07Q21 at ata3-master SATA300
pcm0: HDA Codec: Sigmatel STAC9220
pcm0: HDA Driver Revision: 20071129_0050
acd0: FAILURE - INQUIRY ILLEGAL REQUEST asc=0x24 ascq=0x00
acd0: FAILURE - INQUIRY ILLEGAL REQUEST asc=0x24 ascq=0x00
ar0: 152585MB Intel MatrixRAID RAID1 status: READY
ar0: disk0 READY (master) using ad4 at ata2-master
ar0: disk1 READY (mirror) using ad6 at ata3-master
SMP: AP CPU #5 Launched!
SMP: AP CPU #7 Launched!
SMP: AP CPU #4 Launched!
SMP: AP CPU #6 Launched!
SMP: AP CPU #1 Launched!
SMP: AP CPU #3 Launched!
SMP: AP CPU #2 Launched!
cd0 at ata0 bus 0 target 0 lun 0
cd0: PHILIPS DVD+-RW DVD8801 AD21 Removable CD-ROM SCSI-0 device
cd0: 33.000MB/s transfers
cd0: Attempt to query device size failed: NOT READY, Medium not present
da0 at umass-sim0 bus 0 target 0 lun 0
da0: Lexar USB Flash Drive 1100 Removable Direct Access SCSI-0 device
da0: 1.000MB/s transfers
da0: 1920MB (3932160 512 byte sectors: 255H 63S/T 244C)
Trying to mount root from ufs:/dev/ar0s1a

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


Re: smbfs CIFS

2008-03-21 Thread Darren Spruell
On Thu, Mar 20, 2008 at 12:40 PM, Wojciech Puchar
[EMAIL PROTECTED] wrote:
 isn't SMB and CIFS the same?

Superficially, although there are differences in the protocols. CIFS
descended from the original SMB specification and adds to it.

Hence, why e.g. in Linux you find separate module support for cifs and smbfs.

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


Re: smb_iod_recvall: drop resp with mid errors

2008-03-19 Thread Darren Spruell
On Wed, Mar 19, 2008 at 10:25 AM, Chuck Swiger [EMAIL PROTECTED] wrote:
 Hi, Darren--


  On Mar 18, 2008, at 4:33 PM, Darren Spruell wrote:
   While this host was experiencing these issues a different FreeBSD host
   also encountered issues with a different share on the same Windows
   server. I think this points to issues of some sort on the Windows
   filesystem, but I'd like to understand the smb_iod_recvall output.

  While a fair number of people using FreeBSD also use Samba, asking
  here about the details of the Samba code is less likely to receive
  detailed responses compared to asking on a Samba-specific list, such
  as [EMAIL PROTECTED]...

No, nothing to do with samba. This is the native mount_smbfs(8) code in FreeBSD.

-- 
Darren Spruell
[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 7.0 nvidia-driver woes

2008-03-18 Thread Darren Spruell
](B)
[12] -1 0   0xdd00 - 0xddff (0x100) MX[B](B)
[13] 0  0   0x000a - 0x000a (0x1) MS[B]
[14] 0  0   0x000b - 0x000b7fff (0x8000) MS[B]
[15] 0  0   0x000b8000 - 0x000b (0x8000) MS[B]
[16] -1 0   0x - 0x (0x1) IX[B]
[17] -1 0   0x - 0x00ff (0x100) IX[B]
[18] -1 0   0xece0 - 0xecff (0x20) IX[B]E
[19] -1 0   0xfec0 - 0xfeff (0x40) IX[B]E
[20] -1 0   0xfe30 - 0xfe3f (0x10) IX[B]E
[21] -1 0   0xfe20 - 0xfe2f (0x10) IX[B]E
[22] -1 0   0xfe10 - 0xfe1f (0x10) IX[B]E
[23] -1 0   0xfe00 - 0xfe0f (0x10) IX[B]E
[24] -1 0   0xffa0 - 0xffbf (0x20) IX[B]E
[25] -1 0   0x0374 - 0x0377 (0x4) IX[B]E
[26] -1 0   0x0170 - 0x017f (0x10) IX[B]E
[27] -1 0   0x03f4 - 0x03f7 (0x4) IX[B]E
[28] -1 0   0x01f0 - 0x01ff (0x10) IX[B]E
[29] -1 0   0xff20 - 0xff3f (0x20) IX[B]E
[30] -1 0   0xff40 - 0xff5f (0x20) IX[B]E
[31] -1 0   0xff60 - 0xff7f (0x20) IX[B]E
[32] -1 0   0xff80 - 0xff9f (0x20) IX[B]E
[33] 0  0   0x03b0 - 0x03bb (0xc) IS[B]
[34] 0  0   0x03c0 - 0x03df (0x20) IS[B]
(II) NVIDIA(0): Initialized GPU GART.
(WW) NVIDIA(0): WAIT (2, 6, 0x8000, 0x, 0x0500)
(WW) NVIDIA(0): WAIT (1, 6, 0x8000, 0x, 0x0500)
(II) NVIDIA(0): Setting mode nvidia-auto-select
(WW) NVIDIA(0): WAIT (2, 1, 0x8000, 0x, 0x0598)
(WW) NVIDIA(0): WAIT (1, 1, 0x8000, 0x, 0x0598)
(II) Loading extension NV-GLX
(WW) NVIDIA(0): WAIT (2, 11, 0x8000, 0x0aac, 0x0b00)
(WW) NVIDIA(0): WAIT (1, 11, 0x8000, 0x0aac, 0x0b00)
(II) NVIDIA(0): NVIDIA 3D Acceleration Architecture Initialized
(II) NVIDIA(0): Using the NVIDIA 2D acceleration architecture
(==) NVIDIA(0): Backing store disabled
(==) NVIDIA(0): Silken mouse enabled
(**) Option dpms
(**) NVIDIA(0): DPMS enabled
(II) Loading extension NV-CONTROL
(WW) NVIDIA(0): WAIT (2, 6, 0x8000, 0x0aac, 0x104c)
(WW) NVIDIA(0): WAIT (1, 6, 0x8000, 0x0aac, 0x104c)
(==) RandR enabled
(II) Setting vga for screen 0.
(II) Initializing built-in extension MIT-SHM
(II) Initializing built-in extension XInputExtension
(II) Initializing built-in extension XTEST
(II) Initializing built-in extension XKEYBOARD
(II) Initializing built-in extension XC-APPGROUP
(II) Initializing built-in extension XAccessControlExtension
(II) Initializing built-in extension SECURITY
(II) Initializing built-in extension XINERAMA
(II) Initializing built-in extension XFIXES
(II) Initializing built-in extension XFree86-Bigfont
(II) Initializing built-in extension RENDER
(II) Initializing built-in extension RANDR
(II) Initializing built-in extension COMPOSITE
(II) Initializing built-in extension DAMAGE
(II) Initializing built-in extension XEVIE
(II) Initializing extension GLX
(**) Option Protocol auto
(**) Mouse0: Device: /dev/sysmouse
(**) Mouse0: Protocol: auto
(**) Option CorePointer
(**) Mouse0: always reports core events
(**) Option Device /dev/sysmouse
(==) Mouse0: Emulate3Buttons, Emulate3Timeout: 50
(**) Option ZAxisMapping 4 5 6 7
(**) Mouse0: ZAxisMapping: buttons 4, 5, 6 and 7
(**) Mouse0: Buttons: 11
(**) Mouse0: Sensitivity: 1
(**) Option CoreKeyboard
(**) Keyboard0: always reports core events
(**) Option Protocol standard
(**) Keyboard0: Protocol: standard
(**) Option AutoRepeat 500 30
(**) Option XkbRules xorg
(**) Keyboard0: XkbRules: xorg
(**) Option XkbModel pc105
(**) Keyboard0: XkbModel: pc105
(**) Option XkbLayout us
(**) Keyboard0: XkbLayout: us
(**) Option CustomKeycodes off
(**) Keyboard0: CustomKeycodes disabled
(II) evaluating device (Keyboard0)
(II) XINPUT: Adding extended input device Keyboard0 (type: KEYBOARD)
(II) evaluating device (Mouse0)
(II) XINPUT: Adding extended input device Mouse0 (type: MOUSE)
(II) Mouse0: SetupAuto: hw.iftype is 4, hw.model is 0
(II) Mouse0: SetupAuto: protocol is SysMouse
(WW) NVIDIA(0): WAIT (2, 6, 0x8000, 0x1418, 0x1448)
(WW) NVIDIA(0): WAIT (1, 6, 0x8000, 0x1418, 0x1448)
(WW) NVIDIA(0): WAIT (2, 6, 0x8000, 0x1418, 0x1474)
(WW) NVIDIA(0): WAIT (1, 6, 0x8000, 0x1418, 0x1474)
(WW) NVIDIA(0): WAIT (2, 6, 0x8000, 0x1418, 0x1490)
(WW) NVIDIA(0): WAIT (1, 6, 0x8000, 0x1418, 0x1490)
(WW) NVIDIA(0): WAIT (2, 6, 0x8000, 0x1418, 0x17e0)
(WW) NVIDIA(0): WAIT (1, 6, 0x8000, 0x1418, 0x17e0)
FreeFontPath: FPE /usr/local/lib/X11/fonts/misc/ refcount is 2,
should be 1; fixing.

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


Re: FreeBSD 7.0 nvidia-driver woes

2008-03-18 Thread Darren Spruell
On Tue, Mar 18, 2008 at 11:07 AM, Derek Ragona
[EMAIL PROTECTED] wrote:


  At 11:58 AM 3/18/2008, Darren Spruell wrote:
 Xorg + nvidia-driver woes...

  I also have a server running FreeBSD 7.0 with xorg 7.3 and an older Nvidia
 card.  I first had trouble under 6.3 when I upgraded to xorg 7.3 from 7.1.
 The nvidia driver seems to cause an interupt storm that paralyzes the
 system.  It doesn't freeze, but is so busy it is useless.

  It runs OK, not great, using the native xorg 7.3 driver which has no GL
 support.

Do you (anyone?) know if it is possible to use dual-monitor support in
the X.org nv driver? I don't need 3D acceleration necessarily, but
I've been of the impression that TwinView is needed for usable
dual-monitor capabilities. Someone (I thought) had mentioned earlier
that this driver didn't support Xinerama correctly (everything
stretched across two monitors).

  I don't have any idea what to do except wait for a new driver or xorg
 release that might fix this.

I notice it seems to be an unpopular sentiment in the FreeBSD
community, but as a user I feel it's worth mentioning it's upsetting
being at the mercy of a binary blob kernel driver. I've had pain from
6.3 also, and hoped that a clean installation of 7.0 might have
brought some good changes. Not the case, it seems.

Is it worthwhile to contact NVidia with bug reports? Does the FreeBSD
community amount to much of a blip on their radar? Do we have a direct
liaison in the community?

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


Re: Problem with ssh

2008-03-18 Thread Darren Spruell
On Tue, Mar 18, 2008 at 10:15 AM, White Hat [EMAIL PROTECTED] wrote:
 I have tried using the following command with negative results.

   ssh -L 5902:localhost:5901 scorpio

  That produces this error message:

   Permission denied (publickey).

The host 'scorpio' is denying you access to the system from your user
(it attempted public key authentication and that failed).

It should work if you make sure your authentication to the destination
host works.

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


smb_iod_recvall: drop resp with mid errors

2008-03-18 Thread Darren Spruell
I have a CIFS share mounted from a Windows 2003 server on FreeBSD
6.2/i386 host (FreeBSD 6.2-RELEASE-p9 FreeBSD 6.2-RELEASE-p9 #0: Thu
Nov 29 04:22:49 UTC 2007
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/SMP  i386).
Earlier today we ran into a case where we were intermittently unable
to write to files on the mounted filesystem. The following errors were
encountered when this occurred:

smb_iod_recvall: drop resp with mid 5412
smb_iod_recvall: drop resp with mid 5417
smb_iod_recvall: drop resp with mid 5422
smb_iod_recvall: drop resp with mid 5531
smb_iod_recvall: drop resp with mid 5591
smb_iod_recvall: drop resp with mid 5662
smb_iod_recvall: drop resp with mid 7278
smb_iod_recvall: drop resp with mid 7285
smb_iod_recvall: drop resp with mid 7297
smb_iod_recvall: drop resp with mid 12
smb_iod_recvall: drop resp with mid 15
smb_iod_recvall: drop resp with mid 18

$ mount
//[EMAIL PROTECTED]/MALWARE_BEWARE on /caffeineaddicts-malware (smbfs)
# /etc/fstab:
//[EMAIL PROTECTED]/Malware_Beware  /caffeineaddicts-malware
 smbfs   rw,-N,late  0   0

While this host was experiencing these issues a different FreeBSD host
also encountered issues with a different share on the same Windows
server. I think this points to issues of some sort on the Windows
filesystem, but I'd like to understand the smb_iod_recvall output. I
think this is the relevant code, with a check on line 361 resulting in
the error. Is there enough information to suggest what might be wrong
on the remote system to cause this?

/*
288  * Process incoming packets
289  */
290 static int
291 smb_iod_recvall(struct smbiod *iod)
292 {
293 struct smb_vc *vcp = iod-iod_vc;
294 struct thread *td = iod-iod_td;
295 struct smb_rq *rqp;
296 struct mbuf *m;
297 u_char *hp;
298 u_short mid;
299 int error;
300
...
360 SMB_IOD_RQUNLOCK(iod);
361 if (rqp == NULL) {
362 SMBERROR(drop resp with mid %d\n, (u_int)mid);
363 /*  smb_printrqlist(vcp);*/
364 m_freem(m);
365 }

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


Re: Unable to unmount idle filesystem on 6.2

2008-01-12 Thread Darren Pilgrim

Kris Kennaway wrote:

Darren Pilgrim wrote:

softdep_waitidle: Failed to flush worklist for 0xc66e5298

A quick check and that message gets spit out whenever I issue
any of the following commands:

# mount -uo ro /usr/ports # umount /usr/ports # umount -f 
/usr/ports


As luck would have it I ran into this in my own testing
yesterday, and Kostik Belousov has a proposed fix (apply it with
patch -p2). This is against 8.0 but should also appy to 7.0.
Don't know about 6.x.


It didn't apply cleanly, with hunks failing in:

sys/kern/vfs_subr.c (all)
sys/sys/vnode.h
sys/ufs/ffs/ffs_softdep.c (hunk 4)
sys/ufs/ffs/ffs_vfsops.c

The chunks that succeeded all had offsets, so I'm guessing the 
patch isn't going to work for 6.x.

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


Re: Unable to unmount idle filesystem on 6.2

2008-01-11 Thread Darren Pilgrim

Kris Kennaway wrote:

Darren Pilgrim wrote:

I'm unable to unmount an idle filesystem (or even drop it to
read-only):

# mount
/dev/da0s1a on / (ufs, local, noatime)
devfs on /dev (devfs, local)
/dev/da0s1d on /var (ufs, local, noatime, soft-updates)
/dev/da0s1e on /usr (ufs, local, noatime, soft-updates)
/dev/da0s1fp1 on /usr/obj (ufs, asynchronous, local, noatime)
/dev/da0s1fp2 on /usr/ports (ufs, local, soft-updates)
/dev/da0s1fp3 on /usr/src (ufs, local, soft-updates)
/dev/da0s2d on /data (ufs, local, noatime, soft-updates)

# fstat -f /usr/ports
USER CMD  PID   FD MOUNT  INUM MODE SZ|DV R/W

# umount /usr/ports
umount: unmount of /usr/ports failed: Device busy

# umount -f /usr/ports
umount: unmount of /usr/ports failed: Device busy

# mount -o ro /usr/ports
mount: /dev/da0s1fp2: Operation not permitted

# uname -r
6.2-RELEASE-p8


Strange, can you break to DDB and do 'show lockedvnods'?


I don't have the necessary options compiled into the kernel.  I'll 
build a kernel with the KDB and DDB options and hope the problem 
recurs.

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


Re: Unable to unmount idle filesystem on 6.2

2008-01-11 Thread Darren Pilgrim

Kris Kennaway wrote:

Darren Pilgrim wrote:

I'm unable to unmount an idle filesystem (or even drop it to
read-only):

# mount
/dev/da0s1a on / (ufs, local, noatime)
devfs on /dev (devfs, local)
/dev/da0s1d on /var (ufs, local, noatime, soft-updates)
/dev/da0s1e on /usr (ufs, local, noatime, soft-updates)
/dev/da0s1fp1 on /usr/obj (ufs, asynchronous, local, noatime)
/dev/da0s1fp2 on /usr/ports (ufs, local, soft-updates)
/dev/da0s1fp3 on /usr/src (ufs, local, soft-updates)
/dev/da0s2d on /data (ufs, local, noatime, soft-updates)

# fstat -f /usr/ports
USER CMD  PID   FD MOUNT  INUM MODE SZ|DV R/W

# umount /usr/ports
umount: unmount of /usr/ports failed: Device busy

# umount -f /usr/ports
umount: unmount of /usr/ports failed: Device busy

# mount -o ro /usr/ports
mount: /dev/da0s1fp2: Operation not permitted

# uname -r
6.2-RELEASE-p8
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
[EMAIL PROTECTED]





Strange, can you break to DDB and do 'show lockedvnods'?


I haven't done that yet; however, I did find 12 instances of the 
following in the log:


softdep_waitidle: Failed to flush worklist for 0xc66e5298

A quick check and that message gets spit out whenever I issue any 
of the following commands:


# mount -uo ro /usr/ports
# umount /usr/ports
# umount -f /usr/ports

A bit of searching on that error message tells me I've hit some 
kind of a corner case with soft-updates.  The filesystem was 
mounted read-only, then upgraded to rw so I could update the ports 
tree.  After cvsup was done, I tried to take the filesystem back 
down to read-only.  The common case seems to be that the mount 
change is followed too quickly after the large number of writes and 
it somehow wedges soft-updates.


Unfortunately, I haven't been able to find a fix other than 
rebooting the machine.  The problem is that the search results[1] 
also tell me the filesystem may well be hosed and the reboot won't 
be clean.  Luckily for me, I can just drop the FS from /etc/fstab 
and newfs the partition after the box comes back up.


[1]: 
http://lists.freebsd.org/pipermail/freebsd-current/2007-February/069178.html

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


Unable to unmount idle filesystem on 6.2

2008-01-10 Thread Darren Pilgrim

I'm unable to unmount an idle filesystem (or even drop it to
read-only):

# mount
/dev/da0s1a on / (ufs, local, noatime)
devfs on /dev (devfs, local)
/dev/da0s1d on /var (ufs, local, noatime, soft-updates)
/dev/da0s1e on /usr (ufs, local, noatime, soft-updates)
/dev/da0s1fp1 on /usr/obj (ufs, asynchronous, local, noatime)
/dev/da0s1fp2 on /usr/ports (ufs, local, soft-updates)
/dev/da0s1fp3 on /usr/src (ufs, local, soft-updates)
/dev/da0s2d on /data (ufs, local, noatime, soft-updates)

# fstat -f /usr/ports
USER CMD  PID   FD MOUNT  INUM MODE SZ|DV R/W

# umount /usr/ports
umount: unmount of /usr/ports failed: Device busy

# umount -f /usr/ports
umount: unmount of /usr/ports failed: Device busy

# mount -o ro /usr/ports
mount: /dev/da0s1fp2: Operation not permitted

# uname -r
6.2-RELEASE-p8
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Blocking undesirable domains using BIND

2007-12-30 Thread Darren Spruell
On Dec 30, 2007 9:52 AM, Maxim Khitrov [EMAIL PROTECTED] wrote:
  I was trying to do something similar.  I didn't research too hard, but 
  figured the only way to use Bind would be to make my server authoritative 
  for all those domains, which meant a huge config file and potential 
  overhead, as well as
  possibly breaking access to desirable servers in the domains.
 
  So hosts seemed easier, but apparently Bind never looks at hosts.  I did 
  find that Squid (which I already had installed and in limited use) has its 
  own DNS resolver, and it does look at hosts first before going to the 
  nameserver.
 
  Then I found this site:  http://everythingisnt.com/hosts.html and put their 
  list in hosts, and now client PCs get a squid error in place of ad junk.  
  Works ok for me ;)
 Well... you were right about overhead. In the last two days I wrote a
 script that would fetch a list of domains from several different
 sites, and output a valid BIND configuration file that could be
 included in the main config. I just ran the second test and the
 results are extremely poor. With only 27,885 blocked domains the
 server is now consuming 208 MB of ram. The first time I tried
 reloading the full list of domains (91,137 of them) and that nearly
 crashed my server. Had to kill bind, remove two of the largest
 sources, and try a second time.

Nearly 100,000 zones on that server is a fairly impressive amount.
Give it credit for what you're trying to do. :) Nonetheless, crashing
is unacceptable.

 Honestly, I can't figure out what BIND could possibly be using so much
 memory for. It's taking up about 7 KB for each zone. The zone file
 itself is not even 1 KB, and given that all the records are pointing
 to the exact same thing it seems to be needlessly wasting memory. In
 addition to that, if I comment out the blacklist config file and run
 rndc reload, it only frees up about 16 MB. So it doesn't even release
 memory when it is no longer needed.

My experience, albeit with a smaller number of zones, is a bit different.

First  you need to account for main program memory and memory utilized
by the nameserver's cache, if any. You may also be running your own
authoritative zones which will add memory utilization outside of that.
You can't account for all of the utilized memory in your additional
blocking zones.

Without my blocking zones loaded, I have 6 native zones on my
nameserver and the resident memory size of named is 2.2 MB. After a
fresh server startup, I expect minimum memory for cached records, so
that comes out to be about 375 KB/zone, unscientifically. If I restart
named (kill and start server fresh) with my blocking zones in the
config, I come out with 17239 zones and a resident process memory size
of 59 MB. (Unscientifically again,) this breaks down to about 3.5
KB/zone.

In my configuration, each of these blocking zones points to a simple
zone file 244B in size on disk:

$TTL 86400
@   IN  SOA ns.local. admin.local. (
1   ; serial
1h  ; refresh
30m ; retry
7d  ; expiration
1h ); minimum

IN  NS  ns.local.

IN  A   127.0.0.1
*   IN  A   127.0.0.1

So all told, I seem to notice somewhat slimmer utilization than you
(roughly half the memory utilization per zone, and though I have 61%
as many zones loaded my named takes only 28% of the memory yours
does.)

 It looks like my plan of using BIND for filtering purposes will not
 work. Given how poorly it performed on this test I'm actually inclined
 to try another name server to see if something else would be more
 memory-efficient.

You will almost certainly find most of the popular alternatives to be
much more resource efficient. djbdns in particular would be my next
choice if memory efficiency and stability are concerns.

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


Re: Imaging to new system

2007-12-30 Thread Darren Spruell
On Dec 30, 2007 10:54 AM, Robert Fitzpatrick [EMAIL PROTECTED] wrote:
 I have a server running 5.4-RELEASE using RAID-5 on an Intel RAID
 controller that I need to move to faster RAID. Is it possible to image
 or some other way to save the current install and restore after setting
 up the RAID or should I just plan to reinstall everything?

Running dump(8) and restore(8) would allow you to back up and restore
your system.

http://www.freebsd.org/cgi/man.cgi?query=dump
http://www.freebsd.org/cgi/man.cgi?query=restore

This is typically used with tape, although you can dump to disk as well.

If your data/system is critical, you ought to already have some backup
strategy you could restore the system from to your new RAID. If not,
you might put one in place (RAID != backups).

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


Re: Imaging to new system

2007-12-30 Thread Darren Spruell
On Dec 30, 2007 11:47 AM, Robert Fitzpatrick [EMAIL PROTECTED] wrote:
  Running dump(8) and restore(8) would allow you to back up and restore
  your system.
 
  http://www.freebsd.org/cgi/man.cgi?query=dump
  http://www.freebsd.org/cgi/man.cgi?query=restore
 
  This is typically used with tape, although you can dump to disk as well.
 
  If your data/system is critical, you ought to already have some backup
  strategy you could restore the system from to your new RAID. If not,
  you might put one in place (RAID != backups).

 Yes, of course, we have data backup and can restore after reinstalling
 everything, but I was looking for a complete system restore option. I'll
 look into these docs, thanks. There is no tape system, so I guess the
 only hope is if it can be dumped and restored from an NFS drive. From
 looking at the docs, it does appear this is possible, as long as the
 data in on a fs mounted by fstab?

Can be data on a mounted fs or an umounted filesystem altogether:

  'files-to-dump' is either a mountpoint of a filesystem or a list of files
  and directories on a single filesystem to be backed up as a subset of the
  filesystem.  In the former case, either the path to a mounted filesystem
  or the device of an unmounted filesystem can be used.  (dump(8))

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


Re: remote x session

2007-12-30 Thread Darren Spruell
On Dec 30, 2007 7:16 PM, Jonathan Horne [EMAIL PROTECTED] wrote:
 On Thursday 27 December 2007 02:35:05 am Steve Franks wrote:
  Perhaps I misunderstand, but I use x11vnc on the 'server' and
  vncviewer or tightvnc on the 'client'.  There are several pages to
  google on tunneling it thru ssh, and it's much better with latency
  than sending x iteslf over ssh, I'm told.  If you start x11vnc with no
  options, it will export the current session/desktop, but there is a
  switch to have it spawn a new x session also.  All the other vnc ports
  only spawn new sessions, and I usually use it to help my wife fix
  problems when I'm away at the office ;)
 
  Best,
  Steve

 well ultimately, im looking for something that i can operate a headless server
 with.  the server itself wouldnt be pre-logged into any x session (be it kde,
 gnome, xfce or whatever), so thats why im trying to get its x session into a
 window of my local desktop.

There is the XDMCP option, which allows you to remotely connect to an
X display manager for full, remote display sessions. This isn't
regarded to be a secure solution by most people.

If your remote system is a server, do you have a need for remote
desktop access? If you have one or two X applications on the remote
server, could you just get by with SSH X11 forwarding to access those
applications from your management station's display?

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


Re: Still having problems burning DVDs

2007-12-29 Thread Darren Spruell
On Dec 29, 2007 3:41 PM, Andrew Falanga [EMAIL PROTECTED] wrote:
 Ok,

 Thanks to the help of earlier posts (a couple of weeks ago), using kldload
 atapicam now allows for the scsi ioctls on my IDE CD/DVD burner.

 However, when I do the following:

 growisofs -Z /dev/cd0 -dvd-video /usr/local/dvds/whereisGod1.iso

 I get this output:
 Executing 'mkisofs -dvd-video /usr/local/dvds/whereisGod1.iso | builtin_dd
 of=/dev/pass0 obs=32k seek=0'
 mkisofs: Value too large to be stored in data type.
 File /usr/local/dvds/whereisGod1.iso is too large - ignoring
 mkisofs: Unable to make a DVD-Video image.
 :-( write failed: Input/output error

You should use the alternate syntax which takes a pre-mastered DVD image:

growisofs -dvd-compat -Z /dev/cd0=/usr/local/dvds/whereisGod1.iso

Notice how above it's trying to run mkisofs to create the image.
You've supposedly already got the image, so no need to master.

See '18.7.3 Burning Data DVDs'.

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


Re: Blocking undesirable domains using BIND

2007-12-28 Thread Darren Spruell
On Dec 28, 2007 8:49 AM, Kevin Kinsey [EMAIL PROTECTED] wrote:
 Olivier Nicole wrote:
  Again, I'm not trying to convince you otherwise or say that using
  BIND is a bad idea.  It's just that I'm curious because we use
  Squid for this sort of thing, and I was wondering why BIND instead?
 
  I think another issue is that Squid will only filter HTTP/FTP
  connections, while DNS would allow to filter any type of traffic that
  would try to go to places with a bad name.
 
  Olivier

 In the absence of egress filtering on the firewall, that
 would definitely be an advantage.  Does anyone use BIND
 for filtering in a small to medium business environment
 then?  How does it perform?

Performs fine.

# rndc status
number of zones: 17210
...

My 17000+ zones are loaded from the DNS-BH project and increase the
startup time of named to about 10 seconds and bump the resident memory
size up to about 55M. (AMD Duron 750MHz).

There's no real performance hit per se by DNS blackholing, other than
the resource utilization increase needed for handling additional
zones; your name server would normally be handling these DNS lookups
anyway.You're just overriding the response locally rather than
recursing for it. The zones themselves typically end up being very
small, like a single wildcard record pointing to 127.0.0.1 or a
honeypot or whatever.

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


Re: Small Unix install

2007-12-28 Thread Darren Spruell
On Dec 28, 2007 10:56 AM, DAve [EMAIL PROTECTED] wrote:
 Good morning,

 I am looking for a small install for an old laptop. I have an old but
 quite reliable Toshiba 330CDT that used to be my personal laptop. I ran
 FBSD 3.x/4.x on it for years but it has been wiped and in a closet for
 years. I want to use it again just to access a few web forums and read
 my email. I don't do POV RAY or 3D, I don't need Open Office, I don't
 watch any Tubes. Mutt, Fluxbox and a minimal browser would make me happy.

 I don't have the time or inclination to roll my own again. PCBSD can't
 finish the install due to only having 96mb of memory. Desktop BSD wants
 more than 4gb of drive space just to complete the install.

 I currently have 98SE on it only consuming 300mb and it runs fine, but
 it's 98SE ;^) Does anyone know of anything ready to install? BSD, Linux,
 I don't care.

Yes, there's plenty of options for very small Unix installs. Those
you've tried have been the modern desktop-oriented distributions of
FreeBSD and they of course don't shoot for the older class of systems.
Unix has resisted bloat

For example, I've put a smaller OpenBSD build on my Soekris that I run
for a firewall on my cable connection. Fits in 22 MB:

# df -h
Filesystem SizeUsed   Avail Capacity  Mounted on
/dev/wd0a  236M   22.1M202M10%/

Granted your desktop build will be plenty larger, but 300 MB is
certainly achievable. Follow the advice for a minimal installation of
the vanilla FreeBSD 6.x or 7 + whatever packages  you need and  you'll
be rolling.

You can find similar options in any of the BSDs and GNU/Linux.

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


Re: Blocking undesirable domains using BIND

2007-12-27 Thread Darren Spruell
On Dec 27, 2007 1:46 PM, Maxim Khitrov [EMAIL PROTECTED] wrote:
 Hello,

 I'm currently setting up a new firewall for my home network using
 FreeBSD 7. The firewall will also act as our local name server
 (authoritative for the local domain, and caching for everything else).
 One of the things I'd like to do with it is use BIND to block various
 undesirable domains (ad servers, malicious sites, etc.). The plan is
 to have a separate BIND config file which is included in the main one.
 In that file I map all the blocked domains to either the empty zone or
 perhaps my local web server that's just serving a blank page for any
 request. Haven't decided which way is better yet. This file is updated
 periodically (once a week maybe) and BIND is then told to reload the
 config. That's the plan as it stands now, eventually I hope to add a
 web interface to the system for adding and removing blocked domains.

 My question for you guys is if know any _reliable_ sources for getting
 that list of domains in the first place? I currently use the hosts
 file on all my machines, which is about 2MB in size and hasn't been
 updated in several years. I'll definitely import all of those entries
 myself, but it would be good if I could periodically pull an updated
 list from somewhere else. The following site has a pretty decent
 collection of ad servers, though it's a bit short compared to what I
 already have: http://pgl.yoyo.org/adservers/. It even provides the
 list in a BIND format, meaning that I don't need to do any additional
 processing with it. Just fetch the page and reload BIND. This,
 however, is not one of my requirements. I'm perfectly happy getting
 just a list of the domains (in any format), and then processing them
 into a BIND config file myself. Just need good sources. What are your
 recommendations?

Look into the Blackhole-DNS project, formerly one of the
BleedingThreats projects hosted at
http://www.bleedingsnort.com/blackhole-dns/.

This project tracks many hostile domains and produces BIND format
files for this very purpose. It's not a great resource for ad
blocking, as it focuses mainly on security threats (spyware, other
malware, etc.)

Since there has been some shuffling and reorganization happening
around the BleedingThreats project, it's in a state of flux right now.
The current home of the DNS-BH project is at
http://malwaredomains.com/.

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


Re: BIND9 won't start

2007-12-23 Thread Darren Spruell
On Dec 23, 2007 3:45 PM, QADMOS [EMAIL PROTECTED] wrote:
 Gelsema, P (Patrick) a écrit :

  On Sun, December 23, 2007 23:04, QADMOS wrote:
 
  Jonathan Horne a écrit :
 
  On Sunday 23 December 2007 02:52:43 pm QADMOS wrote:
 
 
  Hi everyone,
 
  i'm having a hard time with bind9.
 
  I'm trying to set up an authoritative dns server.
 
  Unfortunately when i try to launch it with an 'rndc start' i get this
 
  error message :
rndc: connect failed: 127.0.0.1#953: connection refused
 
 
  do you get same problem with:
 
  /etc/rc.d/named start
 
  Well i've also tried that actually and when i do that :
  1/ nothing is logged
  2/ nothing is launched either
 
 
  Do you have the following in rc.conf?
 
  hulk# cat /etc/rc.conf | grep named
  named_enable=YES
 
  To me it seems your problem lies in the fact that named is not starting,
  so rndc can not control anything.
 
  Rgds,
 
  Patrick
 
 
  there's just no error message despite that the named is not running
  (checked with ps waux | grep named )
 

 Well Patrick i followed your suggestion and rebooted (it didn't do much
 after just editing rc.conf) the box and now /etc/rc.d/named start
 works fine annd named is running, 'rndc' still has the same problem
 though (???)

 I'm a bit befuddled though, because i don't understand why it's
 necessary to use the named_enable directive to have named running ? I
 understand this is necessary if you want the daemon to run at boot time
 but why is this necessary if you want to run it manually once the box is
 on ?

/etc/rc.d/named is the rc script to control (start, stop etc.) named,
and this script is inactive unless  you've specified that named is
to be enabled using the named_enable variable. You can get around the
need to activate the variable by prefixing your commands with the
'force' keyword (e.g. /etc/rc.d/named forcestart, etc.)

Use sockstat(1) to figure out if the control port (953/tcp) is
listening. 'sockstat -4l' should show a listener on 127.0.0.1:953.

Also, 'start' is not a valid command to rndc. You would have a chicken
and egg problem; if named has not been started, then there is no
service to handle the start command to rndc. Use the rc script to
start named and rndc to control its runtime operation.

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


Re: BIND9 won't start

2007-12-23 Thread Darren Spruell
On Dec 23, 2007 10:43 PM, Jonathan McKeown
[EMAIL PROTECTED] wrote:
 On Monday 24 December 2007 02:15, Jonathan Horne wrote:

  otherwise, there is always 'forcestart' intead of 'start'.

 and Darren Spruell wrote:

  You can get around the need to activate the variable by
  prefixing your commands with the 'force' keyword (e.g.
  /etc/rc.d/named forcestart, etc.)

 To start a service which isn't enabled in rc.conf, it's better to use

 onestart

 From the rc.subr(8) manpage:

 force  Skip the checks for rcvar being set to ``YES'', and
sets rc_force=YES.  This ignores argument_precmd
returning non-zero, and ignores any of the required_*
tests failing, and always returns a zero exit status.

 oneSkip the checks for rcvar being set to ``YES'', but
performs all the other prerequisite tests.

Good to know, thx.

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


TCP window scaling 14

2007-12-21 Thread Darren Spruell
 WD1600ADFS-75SLR2 21.07Q21 at ata2-master SATA300
ad6: 152587MB WDC WD1600ADFS-75SLR2 21.07Q21 at ata3-master SATA300
pcm0: HDA Codec: Sigmatel STAC9220
pcm0: HDA Driver Revision: 20071129_0050
acd0: FAILURE - INQUIRY ILLEGAL REQUEST asc=0x24 ascq=0x00
acd0: FAILURE - INQUIRY ILLEGAL REQUEST asc=0x24 ascq=0x00
ar0: 152585MB Intel MatrixRAID RAID1 status: READY
ar0: disk0 READY (master) using ad4 at ata2-master
ar0: disk1 READY (mirror) using ad6 at ata3-master
SMP: AP CPU #1 Launched!
SMP: AP CPU #7 Launched!
SMP: AP CPU #2 Launched!
SMP: AP CPU #3 Launched!
SMP: AP CPU #6 Launched!
SMP: AP CPU #5 Launched!
SMP: AP CPU #4 Launched!
cd0 at ata0 bus 0 target 0 lun 0
cd0: PHILIPS DVD+-RW DVD8801 AD21 Removable CD-ROM SCSI-0 device
cd0: 33.000MB/s transfers
cd0: Attempt to query device size failed: NOT READY, Medium not present
Trying to mount root from ufs:/dev/ar0s1a


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


Re: Dangers of using a non-base shell

2007-11-08 Thread Darren Henderson

On Tue, 30 Oct 2007, Roland Smith wrote:


But if you're starting in single user mode, only / will be mounted. So
if you have /usr or /usr/local on a separate partition, you'd be screwed.

That is why root should only use a shell that's in the / partition.



You'll be prompted for a shell if your default isn't available.

I've used bash for the root shell for years. Doesn't mean that you will 
never have a problem but this paticular situation just means you'll have 
to hit enter to accept /bin/sh or enter another shell when booting into 
single user.



-Darren

__
Darren Henderson  [EMAIL PROTECTED]

   Help fight junk e-mail, visit http://www.cauce.org/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Set perms on attach of USB umass disk

2007-11-01 Thread Darren Spruell
I've been trying (and failing) to figure out how to adjust ownership
or permissions of a USB memory stick on device attach.


umass0: SanDisk Corporation Cruzer Mini, rev 2.00/0.20, addr 5
da0 at umass-sim0 bus 0 target 0 lun 0
da0: SanDisk Cruzer Mini 0.4 Removable Direct Access SCSI-2 device
da0: 1.000MB/s transfers
da0: 977MB (2001888 512 byte sectors: 64H 32S/T 977C)

$ usbdevs -v
Controller /dev/usb0:
addr 1: full speed, self powered, config 1, UHCI root hub(0x),
Intel(0x), rev 1.00
 port 1 addr 2: full speed, power 100 mA, config 1, Dell USB Keyboard
Hub(0x1004), Dell(0x413c), rev 48.01
  port 1 addr 3: low speed, power 90 mA, config 1, Dell USB Keyboard
Hub(0x2006), Dell(0x413c), rev 48.00
  port 2 addr 5: full speed, power 100 mA, config 1, Cruzer
Mini(0x5150), SanDisk Corporation(0x0781), rev 0.20


I've tried altering devfs.conf but this appears to only work for
devices that are attached at startup of devfs. I've tried configuring
devd(8):

attach 100 {
device-name da[0-9]+s1;
action /bin/chmod 0660 $device-name;
};

attach 100 {
device-name da[0-9]+;
action /bin/chmod 0660 $device-name;
};

Neither of these seem to result in the permission change I'm after
(making device writable by my user which is in the operator group):

$ ls -l /dev/da0*
crw-r-  1 root  operator0, 165 Oct 21 13:08 /dev/da0
crw-r-  1 root  operator0, 166 Oct 21 13:08 /dev/da0s1

What's the right way to handle this?

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


Re: Set perms on attach of USB umass disk

2007-11-01 Thread Darren Spruell
  I've tried altering devfs.conf but this appears to only work for
  devices that are attached at startup of devfs.
 [snip]

 As a matter of fact, this is documented in the devfs.conf manual page.
 This will also tell you where to look;

Yep:

It does not work for devices plugged in and out after the system is up
and running, e.g. USB devices.  See devfs.rules(5) for setting ownership
and permissions for all device nodes, and usbd.conf(5) for actions to be
taken when USB devices are attached or detached.

I overlooked that for some reason. :(

 create a new file /etc/devfs.rules with contents

 [system=10]
 add path 'da*' mode 660 group operator

 Then in /etc/rc.conf add
 devfs_system_ruleset=system
 and restart devfs (/etc/rc.d/devfs restart)

Works great, thanks.

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


Re: Multiple Instances of OpenVPN

2007-09-26 Thread Darren Spruell
On 9/26/07, Marcos Vinicius Buzo [EMAIL PROTECTED] wrote:
 Good afternoon.
 I would like to know how could I run multiple instances of openvpn
 with one startup script for each config file.
 I'm running one instance with the /usr/local/etc/rc.d/openvpn script
 and another with the command openvpn --config configfile.

Read the rc script that controls openvpn
(/usr/local/etc/rc.d/openvpn). It has information about running
multiple tunnels.

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


Re: nvidia-driver rebooting machine on X startup

2007-09-20 Thread Darren Spruell
On 9/18/07, Eric Ekong [EMAIL PROTECTED] wrote:
 Seems there is a new driver in ports as of yesterday for nvidia.
 Anyone tried it as of yet?

The update alone hasn't done anything for me, but I'm thinking I'm
suffering from an issue not directly related to the driver itself;
stale libraries like Mel suggested, or something.

I just completed an update to xorg-7.3_1 following the procedure in
UPDATING 20070519. Now running FreeBSD 6.2-RELEASE-p7 and
nvidia-driver-100.14.11 and the reboot still occurs when starting X.

Something else I noticed is that my xorg.conf gets truncated to 0
bytes when I 'startx' and hit a reboot. I can't figure what would
cause this, and it's intermittent (post reboot I'll sometimes see the
file whole whole, sometimes truncated). Must be connected somehow to
the reboot?

On the off chance it had anything to do with stale libraries, how
would I determine which those were and how to right what is wrong? I
don't see anything notable in the output of ldconfig -r, but I'm not
certain I know what to look for. I'll include the ldconfig* related
configurations from rc.conf and ldconfig -r output below. Any other
ideas?

# grep -i ld /etc/{defaults/rc.conf,rc.conf}
/etc/defaults/rc.conf:# to change the default startup behavior of your
system.  You should
/etc/defaults/rc.conf:# The ${rc_conf_files} files should only contain
values which override
/etc/defaults/rc.conf:kldxref_enable=NO   # Build linker.hints files
with kldxref(8).
/etc/defaults/rc.conf:kldxref_clobber=NO  # Overwrite old linker.hints at 
boot.
/etc/defaults/rc.conf:kldxref_module_path=# Override
kern.module_path. A ';'-delimited list.
/etc/defaults/rc.conf:pflog_logfile=/var/log/pflog# where pflogd
should store the logfile
/etc/defaults/rc.conf:  # node, you should stop 
advertisement.
/etc/defaults/rc.conf:ldconfig_insecure=NO# Set to YES to disable
ldconfig security checks
/etc/defaults/rc.conf:ldconfig_paths=/usr/lib/compat /usr/X11R6/lib
/usr/local/lib /usr/local/lib/compat/pkg
/etc/defaults/rc.conf:ldconfig32_paths=/usr/lib32 # 32-bit
compatibility shared library search paths
/etc/defaults/rc.conf:ldconfig_paths_aout=/usr/lib/compat/aout
/usr/X11R6/lib/aout /usr/local/lib/aout
/etc/defaults/rc.conf:ldconfig_local_dirs=/usr/local/libdata/ldconfig
/usr/X11R6/libdata/ldconfig
/etc/defaults/rc.conf:  # Local directories with ldconfig 
configuration files.
/etc/defaults/rc.conf:ldconfig_local32_dirs=/usr/local/libdata/ldconfig32
/usr/X11R6/libdata/ldconfig32
/etc/defaults/rc.conf:  # Local directories with 32-bit 
compatibility ldconfig


/var/run/ld-elf.so.hints:
search directories:
/lib:/usr/lib:/usr/lib/compat:/usr/X11R6/lib:/usr/local/lib:/usr/local/lib/compat/pkg:/usr/local/lib/compat:/usr/local/lib/nss
0:-lcrypt.3 = /lib/libcrypt.so.3
1:-lkvm.3 = /lib/libkvm.so.3
2:-lm.4 = /lib/libm.so.4
3:-lmd.3 = /lib/libmd.so.3
4:-lncurses.6 = /lib/libncurses.so.6
5:-lsbuf.3 = /lib/libsbuf.so.3
6:-lutil.5 = /lib/libutil.so.5
7:-lalias.5 = /lib/libalias.so.5
8:-latm.3 = /lib/libatm.so.3
9:-lbegemot.2 = /lib/libbegemot.so.2
10:-lbsnmp.3 = /lib/libbsnmp.so.3
11:-lc.6 = /lib/libc.so.6
12:-lcam.3 = /lib/libcam.so.3
13:-ldevstat.5 = /lib/libdevstat.so.5
14:-ledit.5 = /lib/libedit.so.5
15:-lbsdxml.2 = /lib/libbsdxml.so.2
16:-lgeom.3 = /lib/libgeom.so.3
17:-lgpib.1 = /lib/libgpib.so.1
18:-lipsec.2 = /lib/libipsec.so.2
19:-lipx.3 = /lib/libipx.so.3
20:-lufs.3 = /lib/libufs.so.3
21:-lkiconv.2 = /lib/libkiconv.so.2
22:-lpcap.4 = /lib/libpcap.so.4
23:-lpthread.2 = /lib/libpthread.so.2
24:-lz.3 = /lib/libz.so.3
25:-lreadline.6 = /lib/libreadline.so.6
26:-lcrypto.4 = /lib/libcrypto.so.4
27:-lbsm.1 = /usr/lib/libbsm.so.1
28:-lcom_err.3 = /usr/lib/libcom_err.so.3
29:-lnetgraph.2 = /usr/lib/libnetgraph.so.2
30:-lradius.2 = /usr/lib/libradius.so.2
31:-lrpcsvc.3 = /usr/lib/librpcsvc.so.3
32:-ltacplus.2 = /usr/lib/libtacplus.so.2
33:-lypclnt.2 = /usr/lib/libypclnt.so.2
34:-larchive.2 = /usr/lib/libarchive.so.2
35:-lbluetooth.2 = /usr/lib/libbluetooth.so.2
36:-lbz2.2 = /usr/lib/libbz2.so.2
37:-lc_r.6 = /usr/lib/libc_r.so.6
38:-lcalendar.3 = /usr/lib/libcalendar.so.3
39:-ldevinfo.3 = /usr/lib/libdevinfo.so.3
40:-lfetch.4 = /usr/lib/libfetch.so.4
41:-lform.3 = /usr/lib/libform.so.3
42:-lftpio.6 = /usr/lib/libftpio.so.6
43:-lmagic.2 = /usr/lib/libmagic.so.2
44:-lmemstat.1 = /usr/lib/libmemstat.so.1
45:-lmenu.3 = /usr/lib/libmenu.so.3
46:-lmilter.3 = /usr/lib/libmilter.so.3
47:-lmp.5 = /usr/lib/libmp.so.5
48:-lncp.2 = /usr/lib/libncp.so.2
49:-lngatm.2 = /usr/lib/libngatm.so.2
 

Re: Good FreeBSD Supported Gigabit Ethernet Card?

2007-09-14 Thread Darren Spruell
On 9/13/07, Subhro Kar [EMAIL PROTECTED] wrote:
 Oliver Hansen wrote:
  I'm looking to eventually upgrade my home network to all gigabit so I'm
  going to start by purchasing a few NICs for some old servers I just
  received. I know there are quite a few supported by FreeBSD6 which I
  found ( http://www.freebsd.org/releases/6.0R/hardware-i386.html#ETHERNET
  ) but I'm wondering if there is any real benefit in buying a $40 or $50
  NIC like the Netgear GA311 or just get a $20 NIC like the D-Link
  DFE-530TX+. The use will probably be a firewall, proxy, file server, and
  DVR.
  http://www.EagleBit.com/Netgear_GA311_Gigabit_PCI_Card_p/eb-400-00357.htm
 

 No offence meant, but why would you like to upgrade a home network to
 Gbit? Is it required at all?

This is a useless response. Why do you feel the need to question his
intentions?

Maybe he wants faster throughput. Maybe he'd like to utilize GigE
speeds on a switch he bought. Maybe he wants to learn more about
gigabit networking.

At any rate, why really doesn't matter.

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


Re: Strange port 80 access problem

2007-09-12 Thread Darren Spruell
On 9/12/07, Reid Linnemann [EMAIL PROTECTED] wrote:
 Written by Beech Rintoul on 09/12/07 11:14
  It's very possible that your ISP is blocking port 80. It seems more
  and more of them are doing that with home subscribers. I know someone
  who has service with one of the large telcos and they not only block
  port 80, but mail and ftp as well. They told him if he wanted to run
  servers he would have to subscribe to business service at 5X the cost
  of residential.
 

 I've had a similar experience with COX Communications in the US midwest.
 They block http, https, alternate http ports like 8000 and 8080, smtp,
 and I think pop and imap/imaps. I'm sure part of the reason for this
 paranoid behavior is to protect their networks from saturation from bots
 and whatnot, but part of me thinks they just want to stick it to their
 customers whom they view as pesky annoyances rather than valuable
 consumers. I circumvent these hassles by boring ssh tunnels to the
 services I need access to on my home machines. This is a stopgap until I
 get time to fiddle with openvpn.

It might depend where  you are on their network, but there's some
inconsistencies with the blocking. Port 80 is blocked, but port 443 is
allowed. Port 25 is blocked, but 587 is allowed. 135, 137, 139, and
445 are blocked. 8080, 8081, and 1 get through to my network. Most
other ports are allowed by default.

Like it or hate it, it's a control designed to support their
subscriber AUP, which states pretty plainly that customers are
forbidden to host servers on the home user accounts
(http://www.cox.com/policy/  #6). Business lines have such
restrictions listed and allow hosting services by policy, and puts the
burden of security on the customer rather than attempting to enforce
by technical means.

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


Re: nvidia-driver rebooting machine on X startup

2007-09-11 Thread Darren Spruell
On 9/11/07, Bruce Cran [EMAIL PROTECTED] wrote:
 Mel wrote:
  There's 3 things left I can think of:
  - weird module clash
  - bug in nvidia-driver (I assume you're running Xorg 7.x)
  - driver was not built against running kernel
 

 I'm seeing a similar problem, but my system spontaneously reboots
 whenever it uses any 3D - for example any of the 3D xscreensaver modules
 in full screen mode.   I'm running 7.0-CURRENT and just realised I have
 PREEMPTION enabled since it's now in GENERIC.  I remember a while ago
 this caused stability problems with the nvidia driver - does anyone know
 if this could still be a problem?   I think there's more going on
 however, since the driver doesn't seem to know about my card during
 bootup (it shows Unknown) though it clearly does find it when starting
 Xorg.   Going back to the nvidia-driver-96xx port appears to fix the
 problems, and that driver does know what nVidia card I'm using during boot.

3 of us have posted a thread on nvidia forums as problem reports; I've
at least tried an older (legacy) driver version to no luck and
eliminated every suggestion I've gotten from the fbsd community as
well.

If anyone would like, feel free to piggyback on the thread. There's
been no help response on the forums for a couple of days now.

http://forums.nvidia.com/index.php?showtopic=45590

If this *is* an issue with the nvidia driver, is there a good way for
us to alert Nvidia? Customer support, I guess?

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


Re: nvidia-driver rebooting machine on X startup

2007-09-07 Thread Darren Spruell
On 9/6/07, Derek Ragona [EMAIL PROTECTED] wrote:

  At 03:10 PM 9/6/2007, Darren Spruell wrote:

 Wondering if this is a known issue, or if anyone has suggestions to
  get it working...?

  Running FreeBSD 6.2-RELEASE-p4 SMP i386.

  I installed nvidia-driver-100.14.11 from ports (Sep. 5 snapshot),
  Linux compatibility enabled. After loading modules 'linux' and
  'nvidia', I do:

  # X -configure
  # X -config /root/xorg.conf.new

  At this point the system spontaneously reboots. 'X -configure' runs
  fine and produces a configuration without issue, but the reboot
  occcurs when launching X. Nothing is output to screen (it flickers as
  if starting X), and nothing is written to /var/log/Xorg.0.log. I do
  get the same behavior if running 'xorgcfg'.

  Card info:

  NV41 [Quadro FX 3450/4000 SDI] rev 162

  [EMAIL PROTECTED]:0:0: class=0x03 card=0x029b10de chip=0x00cd10de
  rev=0xa2 hdr=0x00
  vendor   = 'NVIDIA Corporation'
  class= display
  subclass = VGA

  I've tried an alternate version of the binary driver
  (nvidia-driver-96xx) to see if there was any change, and it also
  reboots on X startup.


  --
  Check your AGP settings and consult the readme, chapter 9, for the latest
 driver.  You should be running the latest driver with your card.

  Make sure you have the correct AGP settings, either letting FreeBSD do it
 in the kernel or disable the kernel and let the Nvidia driver manage it.

So, I'm not having terrific luck with any combination of settings I try.

The latest FreeBSD driver release from Nvidia is the same as the
version in the ports tree. This is what I've installed.

Attempting the AGPGART route (building the driver with
WITH_FREEBSD_AGP=yes and disabling NvAgp support in xorg.conf) still
results in a reboot.

Going the NvAGP route (Building without support for AGPGART, setting
NvAgp to 1 in the xorg.conf, and setting hint.agp.0.disabled=1 in
/boot/device.hints) also results in a reboot when X starts. One thing
I notice here; when I specify hint.agp.0.disabled=1, and check the
output of 'kldstat -v' after booting, I still see several agp drivers
loaded:

$ kldstat -v |grep -i agp
387 pci/agp_ali
388 pci/agp_amd
389 pci/agp_amd64
390 pci/agp_ati
391 pci/agp_i810
392 pci/agp_intel
393 pci/agp_nvidia
394 pci/agp_sis
395 pci/agp_via

Is this a problem?

I suspect a couple of problems with what I'm doing. Number one,
there's several knobs to turn (in the driver, in the OS, etc.) and
it's possible I'm not getting the correct combination. Other thing is,
I've been told by a technician that this is a PCI Express video card,
so would AGP even come into play?

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


Re: nvidia-driver rebooting machine on X startup

2007-09-07 Thread Darren Spruell
On 9/7/07, Mel [EMAIL PROTECTED] wrote:
 On Friday 07 September 2007 19:43:03 Darren Spruell wrote:
  On 9/6/07, Derek Ragona [EMAIL PROTECTED] wrote:
At 03:10 PM 9/6/2007, Darren Spruell wrote:
  
   Wondering if this is a known issue, or if anyone has suggestions to
get it working...?
  
Running FreeBSD 6.2-RELEASE-p4 SMP i386.
  
I installed nvidia-driver-100.14.11 from ports (Sep. 5 snapshot),
Linux compatibility enabled. After loading modules 'linux' and
'nvidia', I do:
  
# X -configure
# X -config /root/xorg.conf.new
  
At this point the system spontaneously reboots. 'X -configure' runs
fine and produces a configuration without issue, but the reboot
occcurs when launching X. Nothing is output to screen (it flickers as
if starting X), and nothing is written to /var/log/Xorg.0.log. I do
get the same behavior if running 'xorgcfg'.
  
Card info:
  
NV41 [Quadro FX 3450/4000 SDI] rev 162
  
[EMAIL PROTECTED]:0:0: class=0x03 card=0x029b10de chip=0x00cd10de
rev=0xa2 hdr=0x00
vendor   = 'NVIDIA Corporation'
class= display
subclass = VGA
  
I've tried an alternate version of the binary driver
(nvidia-driver-96xx) to see if there was any change, and it also
reboots on X startup.
  
  
--
Check your AGP settings and consult the readme, chapter 9, for the
   latest driver.  You should be running the latest driver with your card.
  
Make sure you have the correct AGP settings, either letting FreeBSD do
   it in the kernel or disable the kernel and let the Nvidia driver manage
   it.
 
  So, I'm not having terrific luck with any combination of settings I try.
 
  The latest FreeBSD driver release from Nvidia is the same as the
  version in the ports tree. This is what I've installed.
 
  Attempting the AGPGART route (building the driver with
  WITH_FREEBSD_AGP=yes and disabling NvAgp support in xorg.conf) still
  results in a reboot.
 
  Going the NvAGP route (Building without support for AGPGART, setting
  NvAgp to 1 in the xorg.conf, and setting hint.agp.0.disabled=1 in
  /boot/device.hints) also results in a reboot when X starts. One thing
  I notice here; when I specify hint.agp.0.disabled=1, and check the
  output of 'kldstat -v' after booting, I still see several agp drivers
  loaded:
 
  $ kldstat -v |grep -i agp
  387 pci/agp_ali
  388 pci/agp_amd
  389 pci/agp_amd64
  390 pci/agp_ati
  391 pci/agp_i810
  392 pci/agp_intel
  393 pci/agp_nvidia
  394 pci/agp_sis
  395 pci/agp_via
 
  Is this a problem?
 
  I suspect a couple of problems with what I'm doing. Number one,
  there's several knobs to turn (in the driver, in the OS, etc.) and
  it's possible I'm not getting the correct combination. Other thing is,
  I've been told by a technician that this is a PCI Express video card,
  so would AGP even come into play?

 Probably not. I'm seeing the same thing on one machine, no AGP on MB, and agp
 kernel modules loaded, but nvidia-driver doesn't care about it.
 Let's kill all red herrings:
 - Is COMPAT5X in the kernel?

COMPAT5X doesn't show up anywhere in /usr/src/; I do have 'options
COMPAT_FREEBSD5'  defined, though (stock SMP kernel).

 - Does running `nvidia-xconfig --query-gpu-info' reboot the system?
 - If you do not load the nvidia kernel module, but use Xorg's nv driver does
 this reboot the system?

No, doesn't reboot the system. Output attached below.

With the 'nv' driver, X starts fine. I don't use it because I don't
have success with the two output displays and xinerama window sizing.

nvidia-xconfig --query-gpu-info:

Number of GPUs: 1

GPU #0:
  Name  : Quadro FX 3450/4000 SDI
  PCI BusID : PCI:7:0:0

  Number of Display Devices: 2

  Display Device 0 (CRT-0):
 EDID Name : DELL 2001FP
 Minimum HorizSync : 31.000 kHz
 Maximum HorizSync : 80.000 kHz
 Minimum VertRefresh   : 56 Hz
 Maximum VertRefresh   : 76 Hz
 Maximum PixelClock: 162.000 MHz
 Maximum Width : 1600 pixels
 Maximum Height: 1200 pixels
 Preferred Width   : 1600 pixels
 Preferred Height  : 1200 pixels
 Preferred VertRefresh : 60 Hz
 Physical Width: 410 mm
 Physical Height   : 310 mm

  Display Device 1 (CRT-1):
 EDID Name : DELL 2001FP
 Minimum HorizSync : 31.000 kHz
 Maximum HorizSync : 80.000 kHz
 Minimum VertRefresh   : 56 Hz
 Maximum VertRefresh   : 76 Hz
 Maximum PixelClock: 162.000 MHz
 Maximum Width : 1600 pixels
 Maximum Height: 1200 pixels
 Preferred Width   : 1600 pixels
 Preferred Height  : 1200 pixels
 Preferred VertRefresh : 60 Hz
 Physical Width: 410 mm
 Physical Height   : 310 mm

-- 
Darren Spruell
[EMAIL PROTECTED

nvidia-driver rebooting machine on X startup

2007-09-06 Thread Darren Spruell
 pending error: blocks 0 files 1
WARNING: /usr was not properly dismounted
WARNING: /var was not properly dismounted
bge0: firmware handshake timed out

xorg.conf.new

Section ServerLayout
Identifier X.org Configured
Screen  0  Screen0 0 0
InputDeviceMouse0 CorePointer
InputDeviceKeyboard0 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  dbe
Load  dri
Load  extmod
Load  record
Load  xtrap
Load  glx
Load  freetype
Load  type1
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 Monitor
Identifier   Monitor0
VendorName   Monitor Vendor
ModelNameMonitor Model
EndSection

Section Device
Identifier  Card0
Driver  nvidia
VendorName  nVidia Corporation
BoardName   NV41 [Quadro FX 3450/4000 SDI]
BusID   PCI:7:0:0
EndSection

Section Screen
Identifier Screen0
Device Card0
MonitorMonitor0
SubSection Display
Viewport   0 0
Depth 1
EndSubSection
SubSection Display
Viewport   0 0
Depth 4
EndSubSection
SubSection Display
Viewport   0 0
Depth 8
EndSubSection
SubSection Display
Viewport   0 0
Depth 15
EndSubSection
SubSection Display
Viewport   0 0
Depth 16
EndSubSection
SubSection Display
Viewport   0 0
Depth 24
EndSubSection
EndSection

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


Re: nvidia-driver rebooting machine on X startup

2007-09-06 Thread Darren Spruell
On 9/6/07, Mel [EMAIL PROTECTED] wrote:
 On Thursday 06 September 2007 22:10:42 Darren Spruell wrote:
  Wondering if this is a known issue, or if anyone has suggestions to
  get it working...?
 
  Running FreeBSD 6.2-RELEASE-p4 SMP i386.
 
  I installed nvidia-driver-100.14.11 from ports (Sep. 5 snapshot),
  Linux compatibility enabled. After loading modules 'linux' and
  'nvidia', I do:
 
  # X -configure
  # X -config /root/xorg.conf.new
 
  At this point the system spontaneously reboots. 'X -configure' runs
  fine and produces a configuration without issue, but the reboot
  occcurs when launching X. Nothing is output to screen (it flickers as
  if starting X), and nothing is written to /var/log/Xorg.0.log. I do
  get the same behavior if running 'xorgcfg'.
 
  Card info:
 
  NV41 [Quadro FX 3450/4000 SDI] rev 162
 
  [EMAIL PROTECTED]:0:0: class=0x03 card=0x029b10de chip=0x00cd10de
  rev=0xa2 hdr=0x00
  vendor   = 'NVIDIA Corporation'
  class= display
  subclass = VGA

  Section Device
  Identifier  Card0
  Driver  nvidia
  VendorName  nVidia Corporation
  BoardName   NV41 [Quadro FX 3450/4000 SDI]
  BusID   PCI:7:0:0
  EndSection

 Removing BusID do anything? All those Displays sounds a bit much too. I
 *strongly* recommend using nvidia-xconfig (x11/nvidia-config).

Commenting BusID has the same effect - prompt reboot.

The Display subsections are pretty standard for every X configuration
I've ever used; why would they cause a problem in this case?

 And anything /var/log/Xorg.0.log? Using nvAgp or FreeBSD Agp?

No, nothing gets to the log before reboot occurs.

Not using either of nvAgp or FreeBSD Agp, that I'm aware of. I did not
enable FREEBSD_AGP at build time.

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


Re: nvidia-driver rebooting machine on X startup

2007-09-06 Thread Darren Spruell
On 9/6/07, Jona Joachim [EMAIL PROTECTED] wrote:
 On Thu, 6 Sep 2007 13:10:42 -0700
 Darren Spruell [EMAIL PROTECTED] wrote:

  Wondering if this is a known issue, or if anyone has suggestions to
  get it working...?
 
  Running FreeBSD 6.2-RELEASE-p4 SMP i386.
 
  I installed nvidia-driver-100.14.11 from ports (Sep. 5 snapshot),
  Linux compatibility enabled. After loading modules 'linux' and
  'nvidia', I do:
 
  # X -configure
  # X -config /root/xorg.conf.new
 
  At this point the system spontaneously reboots. 'X -configure' runs
  fine and produces a configuration without issue, but the reboot
  occcurs when launching X. Nothing is output to screen (it flickers as
  if starting X), and nothing is written to /var/log/Xorg.0.log. I do
  get the same behavior if running 'xorgcfg'.

 Did you reinstall/upgrade X after having installed nvidia-driver?
 X actually overwrites libraries that nvidia-driver installs so you have
 to reinstall nvidia-driver every time you upgrade X.
 I remember having had some bad crashes some time ago because X overwrote
 nvidia GLX libraries.

 Best regards,
 Jona


Nope - driver was the most recent thing installed.

I'm looking into AGP options as suggested earlier... didn't realize
that this _needed_ AGP support to function.

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


syslogd, exec and alarms

2007-08-20 Thread Darren Henderson


I have a syslog.conf line that has a selector pointing to action that is a 
perl script. The script takes action based on the content of the line 
passed to it. Simple stuff. Works fine.


Wanting to be resource sensitive, I would like the script to terminate 
after so many idle seconds - its likely to get occasional bursts of input 
with quiet periods here and there. No problem, set an alarm with a maximum 
idle time and shutdown if it fires.


This works fine if I execute the script from the command line. Doesn't 
work at all if spawned by syslogd. I assume syslogd or the sh being fired 
to spawn the command are grabbing the alarm signal for themselves. I am 
missing something obvious. Is there any way to make this work?


As it is I can keep the program going all the time or I can have syslogd 
respawn it every time a line is sent. Neither option is appealing.


This problem seems to be relatively resistant to google searches for me 
thus far.


-Darren

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


Net/Force install

2007-05-23 Thread Darren Terry

Hello,

  The co-host that i use to host my email, web and DNS doesn't 
offer the option of using FreeBSD. This isn't really a problem per-se,  
but i would *really* rather use FreeBSD as it is what i am accustomed to 
and most comfortable using.


So, off to my question. They offer a rescuemode where i can boot into 
and have full access to the disks. Do you think it would be possible to 
maybe create an image of an existing BSD install with the same disk 
makeup, etc. and dd it to the remote disk? Have any of you ever 
attempted this before? The procedure that i was planning to use involved 
using dd to pipe the image over a netcat connection.


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


Re: Tagging email subject line with something like [fbsd-questions]

2007-04-27 Thread Darren Henderson

On Wed, 25 Apr 2007, Chad Perrin wrote:


I wasn't referring to a desire for instructions on how to use procmail.
I was hoping for some suggestion as to what to set up.  It's usually


This will put messages from the freebsd lists in folders by list name 
prepended with FBSD-


:0:
* ^Sender: owner-freebsd-\/[EMAIL PROTECTED]@FreeBSD.ORG
{
   LISTNAME=${MATCH}
   :0
   * LISTNAME??^\/[EMAIL PROTECTED]
   Mail/In/FBSD-${MATCH}
}


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


Xorg/Gnome 2.16 stops responding to mouse clicks

2007-03-21 Thread Darren David

hey all-

I've got an issue where Xorg/Gnome 2.16 stops responding to mouse clicks 
- I can click, say, 3 or 4 times once Xorg first launches, but then it's 
hit and miss. Some interface elements are clickable, most are not. I 
have no problem moving the mouse around. Sometimes, intermittently, the 
ability to click will be restored. I was eager to blame my wireless 
logitech mouse, but if connectivity were an issue then I would also have 
issues moving the pointer around. I can't tell you when the problem 
started or for how long it's been going on, I haven't been running Xorg 
for many months now, so it's all new to me. PRior to this issue, my 
entire nautils desktop background vanished, and I reinstalled Gnome to 
fix it.


Corruption somewhere? Driver issue? Any thoughts?

Thanks in advance,
Darren David

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


Re: csh as default root Shell

2006-09-22 Thread Darren Henderson

On Tue, 19 Sep 2006, RW wrote:


What you shouldn't do is set a shell installed from packages as the root
shell, such as bash.


This has become so what canonized however... there is no problem in 
running your chosen shell. If you boot single user it will ask you for a 
shell to use. Just use /bin/sh if the volume containing your chosen shell 
isn't mounted.


Take appropriate steps to configure your login scripts accordingly if they 
are doing anything important that is dependent on the shell.

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


FreeBSD 6.1 installer doesn't recognize ICH5R RAID1

2006-07-25 Thread Darren David

hi all-

doing a clean install to 6.1, and i've decided to set up my system 
drives as RAID 1 now that I see that 6.1 has support for the ICH5R raid 
controller. My BIOS recognizes the SATA RAID 1 array correctly, but the 
FreeBSD installer still sees 'ad4' and 'ad6' as two separate drives. The 
installer has no problem with my 3ware 9500-based RAID5 array.


FWIW, ad4 and ad6 both have old installs of freebsd 5.4 on them, 
including bootloaders, not sure if that's causing some of the confusion 
here.


any thoughts?

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


xset dpms during X startup?

2006-03-19 Thread Darren Spruell
Is it possible to configure xset(1) DPMS settings in a ~/.xsession
file for when a login session starts?

I have the following ~/.xsession file:

 /usr/X11R6/bin/xset -b
 /usr/X11R6/bin/xset dpms 1800 7200 14400
 /usr/X11R6/bin/xscreensaver -no-splash 
 exec startfluxbox

But after logging into XDM after X is restarted 'xset q' still shows:

DPMS (Energy Star):
  Standby: 7200Suspend: 7200Off: 14400
  DPMS is Disabled

Option DPMS is enabled in my xorg.conf.

Is there something I don't know about DPMS and .xsession?

FreeBSD 6.0-RELEASE-p4
xorg-6.9.0
fluxbox-devel-0.9.14_1

TIA,

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


RE: ipprecedence ?

2006-03-01 Thread Darren Pilgrim
[Redirected to -questions from -net.]

From: S.I
 
 How Can I set ipprecedence flag on FreeBSD?

Precendence bits are part of the ip_tos bits in FreeBSD inet sockets.  The
ip(4) man page gives an example of using setsockopt(2) to set the ToS bits.
See src/sys/netinet/ip.h (v1.29) lines 76 to 99 for a set of named
precedence and ToS options (you don't have to use them, but it's
recommended).


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


Re: freebsd hosting

2006-01-30 Thread Darren Henderson

On Thu, 26 Jan 2006, Robin Becker wrote:

I need recommendations for good reliable freeBSD hosting. The brief calls for 
two geographically separated machines. Probably we require modern python cgi, 
but perhaps not root access.


pair networks (www.pair.com). 100% FreeBSD - it's the only thing they deal 
with. Their dedicated servers are actually full servers and not virtual 
servers. Outstanding connectivity. Almost always in the netcraft top 5. 
Very supportive of FreeBSD and open source projects.


Not sure how well they can meet the geographical element at this point.

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


Need help switching between two FreeBSD boot drives

2006-01-05 Thread Darren David

hi all-

i've got one i've been tearing my hair out over here, and even after 
finding some information out there, i'm still totally lost. this may 
take a while to explain, so please bear with me.


I've got 2 80GB SATA drives in my FreeBSD machine, which are mapped as 
/dev/ad4 and /dev/ad6. I've got 5_STABLE installed on 1 drive, and my 
plan is to get a working install of 6_STABLE on the other drive, so i 
can take my time to work out the kinks with the upgrade on the 2nd drive 
(it hasn't been straighforward) and be able to switch back to my working 
5_STABLE machine as needed. That's the plan, anyway.


So I followed the general instructions here:

http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/book.html#NEW-HUGE-DISK

to clone drive 1 over to drive 2. very cool, no problems, i can pick 
either drive in the bootloader and boot up there. so all is well and 
good until i boot into drive 2 and start the upgrade process. I realize 
the /dev/ad4 and /dev/ad6 are not exactly fixed. It seems almost 
arbitrary which drive ends up mapped as /dev/ad6 and /dev/ad4, and this 
caused me to nearly munge all of the data on the working 5_STABLE 
install before i caught myself. If i boot into drive 1 at boot time, 
everything ends up being mounted at /dev/ad6. If i mount into drive 2 at 
boot time, the same thing happens. Mind you, i /did/ check /etc/fstab to 
ensure that all was well, but i ended up with a weird situation where, 
say, / would be /dev/ad4s1a and all of the other mountpoints were at 
/dev/ad6*. ugh. confusing!


I found this page, which explains the problem /somewhat/:

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/install-steps.html

but to be completely honest, the concept didn't stick. What i need help 
with, since these drives are exactly the same size and make, is how i 
can do the following:


1) determine the relationship between Drive 1/Drive 2 and ad4/ad6
2) determine exactly which physical drive i am working on at any given 
time, since the /dev node mappings seem to be malleable
3) enable an environment where i can safely and surely boot into either 
drive and know for a fact that the right partitions are mounted ( all of 
the data on all of the partitions aside from / is mirrored, so it's 
practically impossible to tell which drive is which )

4) (bonus points) My bootloader shows the following on boot:

  F1: FreeBSD
  F2: FreeBSD
  F5: Drive 1

a) I've only got 1 FreeBSD install on this drive, so what is F2? It just 
beeps at me when i try it
b) I assume that F5: Drive 1 means that the drive i'm staring at the 
options for is Drive 2, adn that selecting F5 will toggle to Drive 1? 
Just clarifying!


i hope this is an easy one to solve. i look forward to any and all help!

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


RE: How to bind ntpd to a single address?

2006-01-04 Thread Darren Pilgrim
From: Matthew Seaman [mailto:[EMAIL PROTECTED] 
 Darren Pilgrim wrote:
  I don't like (let alone want) ntpd binding to every IP address on
  the host.  The man pages don't say anything about specifying a
  binding address for ntpd.  A search of the sources and Google
  also failed to reveal anything useful.
  
  So how to I tell ntpd to bind to a specific IP address?
 
 ntpd doesn't have that functionality I'm afraid.  The next best you
 can do is review your /etc/ntpd.conf 'restrict' rules carefully and
 implement a firewall to control access to port 123/UDP.

The ntp.conf(5) man page isn't what I would consider well-written, so it's a
bit difficult understand how rules are applied.  For example, if I put:

restrict default noquery nopeer limited
restrict local_network/mask nomodify
restrict peerhost nomodify
restrict 127.0.0.1

Does that mean:

- Provide only rate-limited, non-peering time service by default.
- Provide unlimited time service to the local network and also let the local
network make read-only mode 6/7 queries.
- Peers are given the same treatment as the local network.
- Let localhost do anything.


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


How to bind ntpd to a single address?

2006-01-02 Thread Darren Pilgrim
I don't like (let alone want) ntpd binding to every IP address on the host.
The man pages don't say anything about specifying a binding address for
ntpd.  A search of the sources and Google also failed to reveal anything
useful.

So how to I tell ntpd to bind to a specific IP address?


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


Re: flash plugin in 6.0 / realplayer fontconfig

2005-12-23 Thread Darren Henderson

On Fri, 23 Dec 2005, Kent Stewart wrote:


Use the location menu item on RealPlayer and add
http://66.246.59.69:8700

You probably won't understand it but Xeoax, Oaxaca is the only realaudio
stream that I listen to.



kmplayer and gmplayer handle it perfectly. Xine handles it but doesn't 
sound quite as good (lot of tinkering that can be done there though).


Totem plays it but its only tolerable if you really like chipmunks.

-Darren

__
Darren Henderson  [EMAIL PROTECTED]

   Help fight junk e-mail, visit http://www.cauce.org/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: flash plugin in 6.0 / realplayer fontconfig

2005-12-21 Thread Darren Henderson

On Mon, 19 Dec 2005, Rob wrote:


I can sympathize about these linux program problems.  I want to be
able to listen to Real Audio streams, but as it is now I have to boot
into Windows to do it.


While not directly related to the point its possible to listen to 
realaudio streams just fine without linux compatibility or resorting to 
windows. Look into mplayer, mplayer-plugin, xine, kmplayer, gmplayer and 
perhaps even xmms.



__
Darren Henderson  [EMAIL PROTECTED]

   Help fight junk e-mail, visit http://www.cauce.org/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


HP-UX NFS client

2005-12-13 Thread Darren Henderson


synopsis: freebsd NFS server, HP-UX NFS client. Client succeeds if it uses 
automount to mount the volumes but fails if a manual mount is used despite 
options.


question: anyone have experience in a similar enviroment that can point me 
toward a solution?



We use HP's Data Protector as an enterprise backup solution (formerly 
known as omniback). It only supports NFS backups of FreeBSD systems.


I'm having an issue manually mounting volumes from a FreeBSD 6.0-STABLE 
(using source from 12/7) system on an HP-UX 11i (11.11) system.


If I automount the volumes everything works fine and the HP system is able 
to hook up as expected and it can access the desired files. However, if I 
try to manually mount the volumes I get:


nfs mount: getaddr_nfs: monhegan: NFS service not responding(retry delay=5s)
nfs mount: retry: retrying(1) for: /monhegan after 5 seconds
nfs mount: retry: giving up on: /monhegan

I've tried forcing the version to 2 (as well as 1) - still returns the 
same thing, no apparent change in behavior. I've made sure the HP box's 
nsswitch.conf is pointing to files for everything - still returns the same 
thing. Numerous other combinations of options have been tried with no luck 
- I can not duplicate automounts success.


So... automount (not autofs) on the HP box works differently then a manual 
mount in some undefined way or at least uses a set of options for the 
mount that I've not attempted.


nfsstat -m on an HP-UX system, with a manually mounted NFS filesystem 
will display the options and flags used to do the mount. It displays 
nothing for automounted filesystems. I'm not aware of anything on the 
FreeBSD system that would tell me what options an NFS client used to 
connect.


Watching with tcpdump on the freebsd system I see that both the manual and 
automount attempts make connections to the box, but they do look 
different:


manual mount:

PORTMAP V2 GETPORT in
PORTMAP V2 GETPORT Reply out
MOUNT   V3 NULL Call in
MOUNT   V3 NULL Reply out
MOUNT   V3 MNT Call in
MOUNT   V3 MNT Reply
:
:

auto mount:

NFS V2 NULL Call in
NFS V2 NULL Reply out
PORTMAP V2 GETPORT Call in
PORTMAP V2 GETPORT Reply out
TCP port 712 in
TCP port 712 out
MOUNT   V1 EXPORT Call in
MOUNT   V1 EXPORT Reply out
:
:

Unfortunately, we've had little luck using automounted volumes with Data 
Protector so we wish to manually mount the volumes in the pre-backup 
script an then umount them in the post-backup script.


Has anyone manually mounted a FreeBSD volume from an HP-UX client? Were 
there any special requirements?



-Darren


__
Darren Henderson  [EMAIL PROTECTED]

   Help fight junk e-mail, visit http://www.cauce.org/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: HP-UX NFS client

2005-12-13 Thread Darren Henderson

On Tue, 13 Dec 2005, Darren Henderson wrote:



synopsis: freebsd NFS server, HP-UX NFS client. Client succeeds if it uses 
automount to mount the volumes but fails if a manual mount is used despite 
options.


question: anyone have experience in a similar enviroment that can point me 
toward a solution?



Replying to my own post for the archive.

It turned out that for whatever reason rpcinfo was not reporting out nfs. 
I suspect I probably caused rpcbind to restart at some point without 
restarting nfsd.


After rebooting the box rpcinfo did report out.

The reason the automount on the client machine worked was that it didn't 
care about rpc issue. It just assumed the port was there and used it.



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


Dual Display

2005-12-02 Thread Darren Terry
I was wondering if any of you had a dual-head setup and if so what video 
card were you using?

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


Hardware Donation?

2005-10-27 Thread Darren Sessions
I am wondering if the FreeBSD project is in need of any server hardware.
If so, I would like to make a donation.

Thanks,

 - Darren

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


fsck woes: no '-b' option?

2005-10-19 Thread darren david

hi all-

i had a wonderful crash ( my fault, don't mess with hardware while the 
box is still running, no matter how steady your hands :| ). anyhoo, my 
3ware RAID 5 volume is a bit unhappy now. when running fsck, i get the 
following:




# fsck -y /dev/da0s1d
** /dev/da0s1d

CANNOT READ BLK: 1464762144
CONTINUE? yes

THE FOLLOWING DISK SECTORS COULD NOT BE READ: 1464762144, 1464762145, 
1464762146, 1464762147,


LOOK FOR ALTERNATE SUPERBLOCKS? yes

32 is not a file system superblock

CANNOT READ BLK: 458687976
CONTINUE? yes

THE FOLLOWING DISK SECTORS COULD NOT BE READ: 458687976, 458687977, 
458687978, 458687979, 458687980, 458687981, 458687982, 458687983, 
458687984, 458687985, 458687986, 458687987, 458687988, 458687989, 
458687990, 458687991,


CANNOT READ BLK: 917375920
CONTINUE? yes

THE FOLLOWING DISK SECTORS COULD NOT BE READ: 917375920, 917375921, 
917375922, 917375923, 917375924, 917375925, 917375926, 917375927, 
917375928, 917375929, 917375930, 917375931, 917375932, 917375933, 
917375934, 917375935,


CANNOT READ BLK: 1376063864
CONTINUE? yes

THE FOLLOWING DISK SECTORS COULD NOT BE READ: 1376063864, 1376063865, 
1376063866, 1376063867, 1376063868, 1376063869, 1376063870, 1376063871, 
1376063872, 1376063873, 1376063874, 1376063875, 1376063876, 1376063877, 
1376063878, 1376063879,

SEARCH FOR ALTERNATE SUPER-BLOCK FAILED. YOU MUST USE THE
-b OPTION TO FSCK TO SPECIFY THE LOCATION OF AN ALTERNATE
SUPER-BLOCK TO SUPPLY NEEDED INFORMATION; SEE fsck(8).




this is all well and good, but according to 'man 8 fsck', there is no 
'-b' option. any thoughts on way around this? I'm running on 5.4-STABLE.


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


Re: fsck woes: no '-b' option?

2005-10-19 Thread darren david
fair enough, that seemed to get it working again. so now the question 
is... how does one go about selecting which block to use as a new 
superblock? i realize this may be a trivial question regarding 
filesystems ( it's over my head) so i will happily take a link to a 
comprehensive resource as a response, unless it really is an easy answer...


thanks again,
darren david

David Kirchner wrote:

On 10/18/05, darren david [EMAIL PROTECTED] wrote:


SEARCH FOR ALTERNATE SUPER-BLOCK FAILED. YOU MUST USE THE
-b OPTION TO FSCK TO SPECIFY THE LOCATION OF AN ALTERNATE
SUPER-BLOCK TO SUPPLY NEEDED INFORMATION; SEE fsck(8).




this is all well and good, but according to 'man 8 fsck', there is no
'-b' option. any thoughts on way around this? I'm running on 5.4-STABLE.



It looks like the fsck man page needs to be clarified, and the fsck
output needs to be modified. What is actually telling you to use -b is
fsck_ffs.

!DSPAM:4355ecc0544949158843437!


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


newfs options for .75TB RAID 5 unit

2005-10-19 Thread darren david

hey all-

in the somewhat pending case that i may not be able to retrieve my data 
from RAID 5 unit, I'm wondering what my best option is for blocksize on 
a .75TB RAID 5 volume. does the 64k RAID stripe size have any impact on 
these figures? It was previously set to the default( 16384 blocksize, 
2048 fragment ) without any noticeable perf issues, but i'm just 
wondering if, well, size matters? ;)


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


Re: newfs options for .75TB RAID 5 unit

2005-10-19 Thread darren david

darren david wrote:

hey all-

in the somewhat pending case that i may not be able to retrieve my data 
from RAID 5 unit, I'm wondering what my best option is for blocksize on 
a .75TB RAID 5 volume. does the 64k RAID stripe size have any impact on 
these figures? It was previously set to the default( 16384 blocksize, 
2048 fragment ) without any noticeable perf issues, but i'm just 
wondering if, well, size matters? ;)


thanks,
darren david


I should add that this .75 TB unit is in fact a 4x250GB drive array, for 
.75TB of total space. not that it makes a difference, but more info 
can't hurt.


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


Re: newfs options for .75TB RAID 5 unit

2005-10-19 Thread darren david

Matt Virus wrote:

darren david wrote:


hey all-

in the somewhat pending case that i may not be able to retrieve my 
data from RAID 5 unit, I'm wondering what my best option is for 
blocksize on a .75TB RAID 5 volume. does the 64k RAID stripe size have 
any impact on these figures? It was previously set to the default( 
16384 blocksize, 2048 fragment ) without any noticeable perf issues, 
but i'm just wondering if, well, size matters? ;)


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




You shouldn't have any problems.  Read about tunefs if you wish, it may 
help you.


I have a 6x250gb array (1.25tb RAID5).  FBSD 5.2.1 refused to support a 
filesystem larger than 1.0tb, so i chunked it into 2 partitions to get 
around that problem and then I mounted them back using mount_nullfs so 
it appears as though all dirs are on the same partition in a single 
directory.  Not sure if the 1TB filesystem limit problem is unique to me 
or not, but you will be fine with your .75tb no question.


Coolness. What was /your/ blocksize for your filesystem, and why did you 
choose it?


darren


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


wine, freebsd, starcraft

2005-10-17 Thread darren
on a recent kernel build,  5.4 stable oct 1st.  xorg-6.8.2
nvidia-driver-1.0.7676 wine-20050930.  runs notepad.exe just fine,  when I
give it a cd which is an iso linked to md0 (I don't keep a cd drive in
this computer).  wine d:\\install.exe on the starcraft cd, it brings up a
window, I hear choppy audio, and never get any type of graphic what so
ever, just a frozen window. Anyone know why?  I think it might have
something to do with graphic acceleration.

-Darren

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


  1   2   3   >