installed ATA RAID, now cannot boot - get mountroot prompt

2004-08-25 Thread DA Forsyth
Hiya all

I'm searching the web for answers on this too, but so far nothing 
useful.  hard to know what question to ask the search engines!

anyhow, the situation:
I installed 5.2.1-R some time back as a start to making a new server.
I used a 40 and an 80 Gb IDE drive plugged into the motherboard
Now I've got an Adaptec 2400a IDE RAID card and have installed it.
I created to raid 1 packs (2x40 and 2x80) and behold it starts to 
boot, finds all the drives etc, no problems, 
but then
it cannot find root as root WAS on /dev/ad0s1a
and is now on /dev/da0s1a
I get a 
   mountroot>
prompt and I type
   ufs:/dev/da0s1a
and it starts to boot but obviously gets a lot of errors because 
/etc/fstab contains the old drives names.

I eventually get a shell but cannot now edit fstab because only root 
has mounted and all the editors are 'somewhere unmounted'

now I'm lost.  how to do edit fstab to get it to mount the 
partitions?  doubly lost because I know I can mount them manually but 
don't know the parameters for 'mount' and , yes, 'man' won't work 
either.  yes, I'm still new at this BSD thing please help anyway.


--
   DA Fo rsythNetwork Supervisor
Principal Technical Officer  -- Institute for Water Research
http://www.ru.ac.za/institutes/iwr/



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


ncplib BSD 5.2.1-R - it crashes

2004-09-13 Thread DA Forsyth
hiya

I'm in the prcess of setting up a FreeBSD machine in order to replace 
an existing Novell 3.12 server.

I thought I could use 'ncplib' to connect to the Novell server and in 
this way transfer the data directly.

fat chance
I get a series of 'flag 12' kernel panics and it reboots itself.
this happens instantly when I try a 'ncplogin' but can also happen 
spontaneously.

To get to this point I
compiled IPX into the kernel
setup /boot/loader.conf to load the if_ef, nfs, and ncp modules
put an infonfig line in /etc/rc.conf to setup the ipx protocol on the 
network card.

all that appear to be happy with life, unless I try to USE it. >-:

now, I thought I'd install the port (I was just using what installed 
when I installed FreebSD5.2.1-R fro CD last week) but none of the 
mirrors have the file ncplib-1.3.4.tar.gz

what now?



--
   DA Fo rsythNetwork Supervisor
Principal Technical Officer  -- Institute for Water Research
http://www.ru.ac.za/institutes/iwr/



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


where did net-snmp go?

2005-01-17 Thread DA Forsyth
Hiya

Way back when I installed FreeBSD 5.0-R I installed net-snmp from the 
ports tree without issues.

Now I have a live server running 5.2.1-R and I need SNMP to monitor 
it with and it is not in the ports tree in the sense that there are 
some directories called net-snmp* but they all contain only one file, 
README.html.   

How do I install it now?
(Yes I did update the ports tree)

Thanks

--
   DA Fo rsythNetwork Supervisor
Principal Technical Officer  -- Institute for Water Research
http://www.ru.ac.za/institutes/iwr/



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


setting LPT1 to polled mode via acpi

2004-06-29 Thread DA. Forsyth
Hiya all

I've got 5.2.1-RELEASE on a P4 1.1Ghz machine
I've setup a HP laserjet (iiP) on the first parallel port using a simple 
filter to get the lines feeding correctly.

Sometimes it actually prints, but mostly it will
send the job to the printer then WAIT till I formfeed.
After that it will NOT access the printer.
LPQ reports jobs in the queue, but also says
'waiting for lp to become ready (offline?)'

the printer is not offline.  the cable it ok etc etc etc
resetting etc in LPC makes no difference

I just need some simple text printing from this thing, can it really 
be so hard?

dmesg says about 'ppc' 
  ppc0 port 0x378-0x37f irq 7 on acpi0
  ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode
  ppbus0:  on ppc0
which is correct

anyhow, I read the printing bit of the handbook, which referred me to 
the IRQ setting and mentions some HP printers not working in IRQ 
mode.
I commented the relevant line in /boot/device.hints
and rebooted
no change.

I then read some more and went along to the acpi(4) man page and got 
no further than suspecting
hw.acpi.pci.link.%d.%d.%d.irq
 Override the interrupt to use.
is what I need to use to disable the IRQ on the parallel port (I 
cannot do it in BIOS)

however, nowhere can I find out what to put instead of %d.%d.%d to 
tell it to NOT use IRQ's for the printer port, there is simply no 
explanation for those numbers.

please help
I need to print some of the conf files before I rebuild this box with an 
IDE RAID card for the disks 


--
David /"\
http://terrapin.ru.ac.za/~iwdf/   \ /
   ASCII Ribbon campaign against HTML E-Mail >  - - - - - - -> X
If you receive email saying "Send this to everyone you know," / \
  PLEASE pretend you don't know me.

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


how to fix bad superblock

2011-07-18 Thread DA Forsyth
Hiya all

After a hardrive let the smoke out last week, part of a 4 drive RAID 
array, I am now battling to get back into the array.
I have replaced the bad drive and it has been rebuilt (Intel Matrix 
Raid on the motherboard).

some partitions are ok but had lots of errors fsck fixed, others 
report 
** /dev/ar0s1f
BAD SUPER BLOCK: VALUES IN SUPER BLOCK DISAGREE WITH THOSE IN FIRST 
ALTERNATE

it then asks if it must look for alternates but claims 32 is not one 
and stops.  All my partitions are UFS so why doesn't it look at block 
160?

'newfs -N ar0s1f' displays a lot of copies of the superblock.

Google show that this error happens to a lot of folks,a nd there is 
no tool for fixing it.  fsck_ufs will use an alternate superblock, 
prompt you to update the master block, and then NOT do it, the error 
persists.

I used a dd command I found on the web to copy an alternate SB to the 
master superblock, and fsck still shows the message as above.
I then copied the 2nd alternate to both the master and the 1nd 
alternate superblock positions, and it STILL reports a mismatch.

Please tell me, how do I fix this.  ar0s1f is discardable which is 
why I am trying to fix it first.  /home has stuff I want to recover 
and it also has a bad superblock.

The stuff I googled shows that there is confusion about block sizes.
When 'newfs -N' shows a copy at block 160, what block size does it 
mean?  the 16384 it shows in its display for this partition, or the 
default of 512?

Thanks

--
   DA Fo rsythNetwork Supervisor
Principal Technical Officer -- Institute for Water Research
http://www.ru.ac.za/institutes/iwr/


___
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 fix bad superblock on UFS2?

2011-07-19 Thread DA Forsyth
Hi all

I had a drive let out smoke, it was part of a 4 drive RAID5 array on 
an intel Matrix motherboard controller (device ar).  Having fought 
various battles just to get the machine to boot again (had to upgrade 
to 7.4 from 7.2 to do it because of a panic in ataraid.c) I now have 
some partitions reporting superblock problems.   Havign googled 
around this topic for some hours now, and having tried copying one or 
more of the backup superblocks to the primary and secondary (at block 
160), I still get

** /dev/ar0s1f
BAD SUPER BLOCK: VALUES IN SUPER BLOCK DISAGREE WITH THOSE IN FIRST 
ALTERNATE
 
it then asks if it must look for alternates but claims 32 is not one 
and stops.  All my partitions are UFS2 so why doesn't it look at 
block 160, which 'newfs -N' finds correctly as the next superblock 
copy?

So, how do I fix this?

Also, why does fsck_ufs prompt to update the primary superblock when 
you give it an alternate with '-b xx', and then not do it?

I have now tried booting from the FreeBSD 8.2 live CD in the hopes 
that the most recent fsck will actually fix this, but it does not.

One thing I found in my web searching is that there is confusion over 
block sizes.  'newfs -N' appears to report sector counts as block 
addresses. 
Doing 
dd if=/dev/ar0s1fbs=512 skip=160 count=16 | hd -v | grep "54 19"
bears this out as the output does indeed contain the correct magic 
number.  'fsck_ufs -b 160 /dev...' also works as expected, but then 
you try 'fsck /dev/...' and it will report the bad superblock, and 
then fail to find any backup superblocks, which newfs managed just 
fine, and this might be because the disk thinks blocks are 16384 in 
size.

Thanks
--
   DA Fo rsythNetwork Supervisor
Principal Technical Officer -- Institute for Water Research
http://www.ru.ac.za/institutes/iwr/


___
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 fix bad superblock on UFS2?

2011-07-20 Thread DA Forsyth
On 20 Jul 2011 , Maxim Konovalov entreated about
 "Re: How to fix bad superblock on UFS2?":

> Try to use tools/tools/find-sb to locate superblocks.

Thankyou Maxim
I may yet need to use that on another partition, but last night I 
achieved some success by hacking fsck_ffs to display what it is 
doing.  By doing this I found that it considers the 'first alternate' 
superblock to be the one in the LAST cylinder group.

So, by using dd to copy a working superblock to block 128 and to the 
last one listed by 'newfs -N', fsck_ffs could then actually recover 
some files.  Since I probably broke more things on this partition 
than were broken by the 'disk smoke event', I was not surprised when 
only about half the drives files showed up in lost+found and the 
primary folder is now empty (the whole drive is a Samba share with 
quotas, so I create a folder to share so that users cannot mess with 
the quota.* files).   Not a problem for this partition as I have a 
full level 0 dump.

I now have 2 more partitions to resurrect
both report 'Cannot find file system superblock' though 'newfs -N' 
shows a sensible list of them, so I have hope.

But, further thanks to you for pointing out find-sb, because in 
googling for that I found various other very useful things, including
http://www.chakraborty.ch/tag/raid-filesystem-partition-recovery-ufs-
freebsd/
which at the least, points out things to avoid doing (-:

thanks

--
   DA Fo rsythNetwork Supervisor
Principal Technical Officer -- Institute for Water Research
http://www.ru.ac.za/institutes/iwr/


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


graid3 or graid5? with or without gjournal?

2011-07-25 Thread DA Forsyth
Hi all

I am busy putting together a new server.  I want to avoid using the 
motherboards raid 'hardware' (intel matrix raid) and rather do it all 
in software so if anything goes wrong with the motherboard, the 
drives can work in some other box.

I have 4x 1TB drives available for the main data array.
graid3 can only use 3
graid5 can use all 4, but is it production ready?
any ideas?

The advantage of using graid3 at this point is that the extra 1TB 
drive I have can then go into the backup server which needs more 
space anyway.

Having suffered data loss on the previous raid5 (intel matrix) array 
when UFS went bananas due to one drive failing, I am looking at 
solutions/preventatives.   Will gjournal be useful?

Thanks


--
   DA Fo rsythNetwork Supervisor
Principal Technical Officer -- Institute for Water Research
http://www.ru.ac.za/institutes/iwr/


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


faad2 build error

2010-03-30 Thread DA Forsyth
Hiya all

I keep getting this when building faad2

.
.
.
aclocal.m4:4655: _LT_AC_LANG_F77_CONFIG is expanded from...
aclocal.m4:4654: AC_LIBTOOL_LANG_F77_CONFIG is expanded from...
configure.in:14: warning: 
AC_CACHE_VAL(lt_prog_compiler_pic_works_GCJ, ...): suspicious cache-
id, must contain _cv_ to be cached
aclocal.m4:4761: _LT_AC_LANG_GCJ_CONFIG is expanded from...
aclocal.m4:4760: AC_LIBTOOL_LANG_GCJ_CONFIG is expanded from...
checking for a BSD-compatible install... /usr/bin/install -c -o root -
g wheel
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether gmake sets $(MAKE)... yes
./configure: 2553: Syntax error: word unexpected (expecting ")")
===>  Script "configure" failed unexpectedly.
Please report the problem to multime...@freebsd.org [maintainer] and 
attach
the "/usr/ports/audio/faad/work/faad2-2.7/config.log" including the 
output
of the failure of your make command. Also, it might be a good idea to 
provide
an overview of all packages installed on your system (e.g. an `ls
/var/db/pkg`).
*** Error code 1

Stop in /usr/ports/audio/faad.
--

I mailed the maintainer last week but have had no reply and no 
action.

I have looked at the code in 'configure' and cannot see a problem 
with line 2553, except maybe that it needs to be one line, and 
possibly needs quotes.  However, I've tried those changes but cannot 
seem to make them stick as the file gets rewritten somehwere in the 
make process.

Any ideas or workarounds?


--
   DA Fo rsythNetwork Supervisor
Principal Technical Officer -- Institute for Water Research
http://www.ru.ac.za/institutes/iwr/


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


building apr1 fails

2010-05-18 Thread DA Forsyth
Hiya all

Going round in circles here tryign to update apache 2.0 to 2.2
I have read UPDATING and it says to uninstall apache before updating 
apr.

However, apr will not build, giving

===>  Building for apr-ipv6-devrandom-gdbm-db42-1.4.2.1.3.9_1
cd /usr/ports/devel/apr1/work/apr-1.4.2; /usr/bin/env SHELL=/bin/sh 
NO_LINT=YES ACLOCAL=/usr/local/bin/aclocal-1.9 
AUTOMAKE=/usr/local/bin/automake-1.9 AUTOMAKE_VERSION=19 
AUTOCONF=/usr/local/bin/autoconf-2.62 
AUTOHEADER=/usr/local/bin/autoheader-2.62 
AUTOIFNAMES=/usr/local/bin/ifnames-2.62 
AUTOM4TE=/usr/local/bin/autom4te-2.62 
AUTORECONF=/usr/local/bin/autoreconf-2.62 
AUTOSCAN=/usr/local/bin/autoscan-2.62 
AUTOUPDATE=/usr/local/bin/autoupdate-2.62 AUTOCONF_VERSION=262 
LIBTOOL=/usr/local/bin/libtool LIBTOOLIZE=/usr/local/bin/libtoolize 
LIBTOOL_M4=/usr/local/share/aclocal/libtool.m4 PREFIX=/usr/local  
LOCALBASE=/usr/local X11BASE=/usr/local  MOTIFLIB="-L/usr/local/lib -
lXm -lXp" LIBDIR="/usr/lib"  CC="cc" CFLAGS="-O -pipe" CXX="c++" 
CXXFLAGS="-O -pipe"  MANPREFIX="/usr/local" 
BSD_INSTALL_PROGRAM="install  -s -o root -g wheel -m 555"  
BSD_INSTALL_SCRIPT="install  -o root -g wheel -m 555"  
BSD_INSTALL_DATA="install  -o root -g wheel -m 444"  
BSD_INSTALL_MAN="install  -o root -g wheel -m 444" make
/bin/sh /usr/ports/devel/apr1/work/apr-1.4.2/libtool --silent --
mode=compile cc -g -O2   -DHAVE_CONFIG_H-I./include -
I/usr/ports/devel/apr1/work/apr-1.4.2/include/arch/unix -
I./include/arch/unix -I/usr/ports/devel/apr1/work/apr-
1.4.2/include/arch/unix -I/usr/ports/devel/apr1/work/apr-
1.4.2/include  -o passwd/apr_getpass.lo -c passwd/apr_getpass.c && 
touch passwd/apr_getpass.lo
X--mode=compile: not found
*** Warning: inferring the mode of operation is deprecated.: not 
found
*** Future versions of Libtool will require --mode=MODE be 
specified.: not found
Xcc: not found
X-g: not found
X-O2: not found
X-DHAVE_CONFIG_H: not found
/usr/ports/devel/apr1/work/apr-1.4.2/libtool: X-I./include: not found
/usr/ports/devel/apr1/work/apr-1.4.2/libtool: X-
I/usr/ports/devel/apr1/work/apr-1.4.2/include/arch/unix: not found
/usr/ports/devel/apr1/work/apr-1.4.2/libtool: X-I./include/arch/unix: 
not found
/usr/ports/devel/apr1/work/apr-1.4.2/libtool: X-
I/usr/ports/devel/apr1/work/apr-1.4.2/include/arch/unix: not found
/usr/ports/devel/apr1/work/apr-1.4.2/libtool: X-
I/usr/ports/devel/apr1/work/apr-1.4.2/include: not found
X-c: not found
/usr/ports/devel/apr1/work/apr-1.4.2/libtool: Xpasswd/apr_getpass.lo: 
not found
libtool: compile: cannot determine name of library object from `': 
not found
*** Error code 1

Stop in /usr/ports/devel/apr1/work/apr-1.4.2.
*** Error code 1

Stop in /usr/ports/devel/apr1/work/apr-1.4.2.
*** Error code 1

Stop in /usr/ports/devel/apr1.
*** Error code 1

Stop in /usr/ports/devel/apr1.
==

I've tried a bunch of stuff, including rebuilding libtool22, 
upgrading to python26 and a few other things I cannot recall now.

Please help.


--
   DA Fo rsythNetwork Supervisor
Principal Technical Officer -- Institute for Water Research
http://www.ru.ac.za/institutes/iwr/


___
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: building apr1 fails

2010-05-18 Thread DA Forsyth
Michael Powell nightrecon at hotmail.com
Tue May 18 09:41:50 UTC 2010

Hi Mike

>Yes - the presence of 2.0 conflicts with 2.2 so it is necessary to 
>remove first.
 
>> However, apr will not build, giving
>> 
>...
>> 
>> Stop in /usr/ports/devel/apr1.
>> ==
>> 
>> I've tried a bunch of stuff, including rebuilding libtool22,
>> upgrading to python26 and a few other things I cannot recall now.
>> 

>I have seen before reports concerning problems with building Apache 
>utilizing the devel/apr port (the recommended default). Since the 
>variables controlling the Apache version have changed over time you 
>should look at your make.conf and ensure there is no left over cruft 
>of the WITH_APACHE=xx or USE_APACHE=xx variety. In the beginning of 
>the move towards 2.0 and the subsequent introduction of 2.2 it was 
>necessary to set these, but that is no longer true.

I don't have anything like that set

> When you do 'make config' for the Apache build, deselect the 
> 'APR_FROM_PORTS  "Use devel/apr (recommended)"' option. It is "ON" by
> default and is the recommended selection. It has some kind of
> problem and this error has been reported on these lists before. 

> I just updated Apache to 2.2.15_5 yesterday and it builds fine when
> the above mentioned option is turned off. 

Yes indeed, I upgraded the main server yesterday and it built fine 
except for having to turn 'mod_ssl' off as it kept dying in the ssl 
code.  I don't need ssl anyway.

However, today an update (cvsup) shows that that option has been 
removed entirely, I have just searched the Makefile to confirm it, 
also mentioned in UPDATING.
So now apache HAS to use devel/apr1 but apr1 will not compile with no 
real clue as to why not.

I have just finished upgrading perl to 5.10.1, with a forced 
recompile of everything that depends on it, and of course 
apache22/apr still fails.

sigh.


--
   DA Fo rsythNetwork Supervisor
Principal Technical Officer -- Institute for Water Research
http://www.ru.ac.za/institutes/iwr/


___
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: Migrate harddisk with FreeBSD into new machine

2008-08-18 Thread DA Forsyth
Message: 2
Date: Thu, 14 Aug 2008 22:40:57 +0200
From: "C.M. Burns" <[EMAIL PROTECTED]>
Subject: Re: Migrate harddisk with FreeBSD into new machine
To: freebsd-questions@freebsd.org
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed


[...]
>> the kernel?  I know modules for those are on the install CD (newer
>> cards will be managed by the ahc or ahd drivers).
>>
>>   

> I could switch to an LSI logic megaraid controller, but i have to
> check the version when i am back at work on monday. how can i load
> modules from floppy disk at loader prompt? 

I would rebuild the kernel on the old machine, incorporating the 
needed modules, then move the disk.


--
   DA Fo rsythNetwork Supervisor
Principal Technical Officer -- Institute for Water Research
http://www.ru.ac.za/institutes/iwr/


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


re: getting pam to put the ip address in the log

2008-08-20 Thread DA Forsyth
Date: Tue, 19 Aug 2008 14:02:59 +0200

> Recently I have been seeing lots of connections to my sshd trying to
> guess passwords.  One thing I noticed was the hostname reported in the
> auth.log without reverse dns.  sshd never puts in the ip address, this
> is all I see:  

> sshd[14450]: error: PAM: authentication error for illegal user access
> from host1.xxx.br  

> Is it possible to get pam or sshd or whatever is ultimatly logging
> this to put the ip address in the log so I can see where this is
> really coming from?  

I don't know about the log format (I'd run it through and AWK script 
that does the translation), but maybe you want to consider using PF 
to block those repeated attempts.  I've been contemplating this after 
reading the PF tutorial
   http://www.bsdly.net/~peter/pf.html
which indicates an automated way to catch those IP's and stick them 
into a block list so after a few attempts your machine stops 
responding.


--
   DA Fo rsythNetwork Supervisor
Principal Technical Officer -- Institute for Water Research
http://www.ru.ac.za/institutes/iwr/


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


Re: freebsd-questions Digest, Vol 229, Issue 12

2008-08-21 Thread DA Forsyth
On 21 Aug 2008 , [EMAIL PROTECTED] entreated 
about
 "freebsd-questions Digest, Vol 229, Issue 12":

> Date: Thu, 21 Aug 2008 15:24:30 +0200
> Subject: THE FOLLOWING DISK SECTORS COULD NOT BE READ
> 
> On a different dilemma, I have a FreeBSD proxy server with what looks
> like a failing drive. 
> 
> The drive ONLY holds cache so is not critical for system operation
> however id still like to try something. 
> 
> It seem that no matter how many times I run fsck it still comes up
> with same result, is there a way to isolate the bad sectors and use the
> replacement ones on drive? Or even just isolate so that I can continue
> using the drive for now. 

The only way I found to do this is to copy the data off the disk, 
then newfs that partition, then copy the data back.

my 'copy off' process was a dump | restore to a temporary disk I 
added to the machine.

also note: I replaced the disk within a couple of weeks after this.


--
   DA Fo rsythNetwork Supervisor
Principal Technical Officer -- Institute for Water Research
http://www.ru.ac.za/institutes/iwr/


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


Re: /etc/groups gone

2008-08-22 Thread DA Forsyth
On 22 Aug 2008 , [EMAIL PROTECTED] entreated 
about
 "freebsd-questions Digest, Vol 229, Issue 13":

> Hi,
> 
> Yesterday night at 1 a.m. I have managed to remove /etc/groups (rm instead of
> vi, was already sleepying). Luckily only a few groups (2-3) was created
> earlier. No backup, "of course".

you want to do
man rcs
and start using RCS to track changes to your important system files.
That way, if you delete one you can just check it out of the RCS 
store.  'backups with history'


--
   DA Fo rsythNetwork Supervisor
Principal Technical Officer -- Institute for Water Research
http://www.ru.ac.za/institutes/iwr/


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


Re: SATA, RAID and AHCI

2008-08-26 Thread DA Forsyth
On 26 Aug 2008 , [EMAIL PROTECTED] entreated 
about
 "freebsd-questions Digest, Vol 230, Issue 4":

> Message: 25
> Date: Mon, 25 Aug 2008 22:29:08 -0600
> Subject: SATA, RAID and AHCI
> 
> Hi,
> 
> This question is about the storage settings for this board (ASUS' name
> for it is "Storage Configuration").  In the CMOS (or whatever it's
> called these days, just out of curiousity, will FreeBSD support things
> like OpenBoot or UEFI on i386, sorry for the digression), I found
> where to turn the "Storage Configuration," as ASUS calls it, from
> "IDE," to "RAID," or "AHCI."  It's currently set to "IDE" because when
> set to RAID the MOBO apparently kept trying to put the SATA DVD drive
> as part of the RAID and when set to AHCI mode the install had hundreds
> of, "can't create symlink, no inodes free," during the copying of the
> files into the newly created file systems. 

strange things.  I have an Intel 965 board which has similar 
settings.  I had no trouble installing 7 Release using the RAID 
setting.  There is a ctrl+F10 or somesuch keypress during boot which 
takes one into the BIOS RAID setup, where you can choose which drives 
go into the RAID, and what form of RAID it is (mine is RAID5 across 
4x400Gb SATA drives).  The machine boots off 2x80G IDE drives in a 
gmirror arrangement.  Strangely, FBSD still recognizes the 4 SATA 
drives as individuals, and then loads the ar driver for the raid 
array.

> Now, I'm a complete neophyte to making these SATA RAID systems. 
> What's the magic to making it work, and how do you keep the DVD drive
> from being part of the RAID?  Also, what should be done for AHCI mode? 
> It looked as though in this mode the drives would perform *much*
> faster. 

RAID mode is what you want to make work.

As to speed.  my home machine runs Fedora Core and under FC5 I could 
not set to anything but 'IDE legacy mode' where it mapped all the 
SATA devices into the IDE space.  This severely affected access 
speed.  Since I use the box for multitrack sound recording, this was 
a big problem.   As soon as I could I upgraded to FC6 which has 
support for native SATA mode and now I get 50MB/s sustained write 
speed.  much happier writing 8 tracks at 48khz (-:

So, I suggest checking the BIOS for setup options that allow you to 
spec the RAID config.

oh, and replace the onboard lan with an Intel card.  they rock


--
   DA Fo rsythNetwork Supervisor
Principal Technical Officer -- Institute for Water Research
http://www.ru.ac.za/institutes/iwr/


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


jmicron based usb drive

2008-08-29 Thread DA Forsyth
Hiya

I was happy to purchase a device that allow an external drive to be 
connected via USB.  this thing just has 3 sockets, no case.  sockets 
for SATA, IDE and 2.5" IDE, plus an external power supply for drives 
that need it.  Works perfectly on my WinXP box...

but on FreeBSD 7.0R I get this in dmesg
umass0:  on uhub2
da1 at umass-sim0 bus 0 target 0 lun 0
da1:  Fixed Direct Access SCSI-2 device
da1: 40.000MB/s transfers
da1: 19092MB (39102336 512 byte sectors: 255H 63S/T 2434C)

but no /dev/da*
and attempts to mount/fdisk/disklabel the drive just do nothing, in 
fact fdisk never exited, and neither did 
mount /dev/da1s1a /mnt
(yes it has partitions on it from a previous cloning operation)

now i'll reboot the box and see what transpires...


--
   DA Fo rsythNetwork Supervisor
Principal Technical Officer -- Institute for Water Research
http://www.ru.ac.za/institutes/iwr/


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


apachectl graceful fails

2008-09-01 Thread DA Forsyth
Hiya

Seems some or other code change in apache has caused it to fail to 
restart gracefully when log rotating...  (it used to work fine but 
for the past 2 or 3 months has failed during the logrotate)

error.log shows
[Mon Sep 01 08:00:03 2008] [notice] Graceful restart requested, doing 
restart
[Mon Sep 01 08:00:04 2008] [notice] seg fault or similar nasty error 
detected in the parent process

and it never restarts.   A manual 'apachectl start' gets it going 
just fine, and a manual 'stop ... start' also is just fine, so it 
seems to be an issue in the 'graceful' code.

ideas?


--
   DA Fo rsythNetwork Supervisor
Principal Technical Officer -- Institute for Water Research
http://www.ru.ac.za/institutes/iwr/


___
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 compare 2 images from command line

2008-09-03 Thread DA Forsyth
On 2 Sep 2008 , [EMAIL PROTECTED] entreated about
 "freebsd-questions Digest, Vol 231, Issue 5":

> > Yes, there's a huge difference between testing differences in images and 
> > testing differences in files.  What do you mean by "...know if the 
> > display is working correctly."?
> > 
> > Andrew
> 
> I want to determine if Mplayer is working correctly. The best way to be 
> sure is to check if the display on the screen is changing. That's the 
> purpose of the screenshots. The screenshots are taken by Nagios every 5 
> minutes and the new screenshot is compared with the preceding one. But, 
> by now, it doesn't work because every tool we try is seeing a diffence 
> between 2 identical images.

JPG format will always be different because of the 
encoding/compression.  I think you need to save to an uncompressed 
format like BMP.  Maybe PNG has a mode that will work too.  BMP has 
no info headers, just the raw data, so that won't be affected by the 
time of the save (at the least).


--
   DA Fo rsythNetwork Supervisor
Principal Technical Officer -- Institute for Water Research
http://www.ru.ac.za/institutes/iwr/


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


Re:[6.3] Upgrading PHP5?

2008-09-04 Thread DA Forsyth
On 4 Sep 2008 , [EMAIL PROTECTED] entreated about
 "freebsd-questions Digest, Vol 231, Issue 10":

>   I successfully upgraded the Ports collection with csup and then
> compiled Apache2, but I don't know what to do about PHP5, as it has
> several Ports available:
> 
> php5-5.2.6  <   needs updating (port has
> 5.2.6_1)
> php5-bz2-5.2.6  <   needs updating (port has
> 5.2.6_1)
> php5-ctype-5.2.6<   needs updating (port has
> 5.2.6_1)
> php5-curl-5.2.6 <   needs updating (port has
> 5.2.6_1)
> etc.

install 'portupgrade' then do
   portupgrade -vrR php5


--
   DA Fo rsythNetwork Supervisor
Principal Technical Officer -- Institute for Water Research
http://www.ru.ac.za/institutes/iwr/


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


Re: safest way to upgrade a production server

2008-09-08 Thread DA Forsyth
On 8 Sep 2008 , [EMAIL PROTECTED] entreated about
 "freebsd-questions Digest, Vol 232, Issue 1":

Hi John

> So, my first question is, do I really need to do this?

yes

> If so, what is the minimum amount of upgrading I can do to be safe?   
> And how?

I track RELENG_7_0 in my source tree, but only build it when I see 
somehting important in UPDATING.  what is important?  stuff like,I 
don't run bind, so can ignore any bind related issues, but I do run 
Samba and Apache, so if anything effects them, I get right on it.

If I need to build world (I have a custom kernel) I can do it 
anytime, then after it is built (and kernel) I come in on a Saturday 
and take the server to single user and install world and kernel etc 
etc, following all the relevant instructions.  The thing that can 
take most time is mergemaster, but so what?  on a Saturday that only 
affects web visitors for half an hour or so.

> I also think I need to do this using freebsd-update to do a binary  
> update, to upgrade on an errata branch.

if you are not running custom kernels then freebsd-update is 
fantastic.  I use it on my 2 print servers, which have almost 
identicle 'minimal' setups and don't need a custom kernel.

> I've never done this, so will try upgrading a test system, first. If  
> all goes well, I will give it a whirl on one of the production servers.

I have installed all my software from ports, so I do this:

 - keep the ports tree updated.  I wrote a little script that gets 
called from cron on Monday morning early, that sends me an email 
telling me what ports have been updated in the last week.   
this mornings list is
 1  2 ipmitool
 1  2 mailman
 1  4 rsync
 1  5 samba
 1  9 apcupsd
 2  1 lsof
 2 10 pear-XML_Parser
 4  4 libksba
 7  7 libxslt
 9 11 pear-Log
10 58 gtk
24  1 png
54  5 apache

The numbers are 'required by', and 'requires', giving me an idea of 
how many things are affected by this upgrade.

- following that list, I decide whether to upgrade now or leave it 
till next week.
- to upgrade, I run 'portupgrade -vrR portname' and just fill in the 
portname from my emailed list.  sometimes I do several related ports 
at the same time, like all php* or lib*
- restart any services that were upgraded, in my case usually samba, 
but sometimes net-snmp and so on.
- TEST

with some early experiences in having a portupgrade break things, I 
prefer not to do a 'portupgrade -a', instead doing them one by one 
and thus seeing all the messages and so on.

Note that I do this Monday or Tuesday morning, on a live server with 
~25 local users online, and external web service, and have never had 
a huge problem.  A few years ago the horde upgrade broke a lot of 
stuff, but I fixed it from the backups of the setup files I keep on 
another server.  I tar /etc /usr/local/etc 
/usr/local/www/horde/config and so on.  havn't needed them in ages, 
but I do it anyway.

> Frankly, I find this idea terrifying, but I guess it needs to be done.

yeah, me too, but it gets easier.  keep records of what you have 
done, and what the results are.  makes problem tracking easier.  I 
use a 'sort of a blog' so I can access the information remotely.  I 
used to have the blog on a machine in a different building but that 
has become impossible, so now it exists on 2 local machines.
if the main machine dies I can still see my blog entries for help in 
fixing it.
info on how you set something up is just as important as backups of 
the machine itself.

>  > uname -a
> FreeBSD ***servername*** 6.3-PRERELEASE FreeBSD 6.3-PRERELEASE #1:  
> Mon Dec  3 09:46:53 EST 2007 [EMAIL PROTECTED]:/usr/obj/usr/ 
> src/sys/INET_ON  amd64

oooh, that is a bit old I think.  


--
   DA Fo rsythNetwork Supervisor
Principal Technical Officer -- Institute for Water Research
http://www.ru.ac.za/institutes/iwr/


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


Re: safest way to upgrade a production server

2008-09-10 Thread DA Forsyth
On 8 Sep 2008 , [EMAIL PROTECTED] entreated about
 "freebsd-questions Digest, Vol 232, Issue 3":

> >> FreeBSD ***servername*** 6.3-PRERELEASE FreeBSD 6.3-PRERELEASE #1:
> >> Mon Dec  3 09:46:53 EST 2007 [EMAIL PROTECTED]:/usr/obj/usr/
> >> src/sys/INET_ON  amd64
> >
> > oooh, that is a bit old I think.
> 
> I chose this server as an example, because it's the oldest one. I  
> didn't install the OS on this server, the vendor did. Not sure why  
> they chose a prerelease version... perhaps 6.3 was almost ready to go  
> and they wanted to put us on the 6.3 branch? I don't know.

maybe 6.3 had the drivers for the motherboard?   I had that - I 
purchased a nice shiny newmotherbaord in 2007 but could not use it 
before 7.0R came out as the chips were not supported by 6.x.  I chose 
not to use a CURRENT or RC version of 7, but to just wait.

> Anyway, I guess what I should do is patch this to the latest 6.3  
> version?

yes.

> Or should I go to the latest 6.x version? I am pretty sure I don't  
> want to experiment with a 7.x upgrade.

6.3 is the latest 6 verison (-:


--
   DA Fo rsythNetwork Supervisor
Principal Technical Officer -- Institute for Water Research
http://www.ru.ac.za/institutes/iwr/


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


Re: Auto blacklist ssh connections ...

2008-09-17 Thread DA Forsyth
On 17 Sep 2008 , [EMAIL PROTECTED] entreated 
about
 "freebsd-questions Digest, Vol 233, Issue 7":

> Does anyone know of a utility that I can use with sshd to auto-block by IP if
> there are more then N failed attempts in a row?

yes, 'pf' the packet filter.
http://home.nuug.no/~peter/pf/en/bruteforce.html
(but you really should read the tutorial from the beginning)


--
   DA Fo rsythNetwork Supervisor
Principal Technical Officer -- Institute for Water Research
http://www.ru.ac.za/institutes/iwr/


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


newsyslog and apache

2008-10-02 Thread DA Forsyth
I used to have one big apache log file, but decided to rotate it once 
a month using newsyslog.

However, now apache stops and does not restart when the log is 
rotated.

line from newsyslog.conf
/var/log/apache/httpd-access.log640 13 *$M1D8 B   
  /var/run/httpd.pid 30

with a similar one for the error log.

I have to manually start apache after this rotates the log.

I alos see that 'apachectl restart' stops apache but it doesn't 
restart.

any ideas?


--
   DA Fo rsythNetwork Supervisor
Principal Technical Officer -- Institute for Water Research
http://www.ru.ac.za/institutes/iwr/


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


Re: newsyslog and apache

2008-10-03 Thread DA Forsyth
On 2 Oct 2008 , [EMAIL PROTECTED] entreated about
 "freebsd-questions Digest, Vol 235, Issue 11":

> No need to change log rotation software since the problem clearly is
> somewhere else. You need to inspect Apache's error logs to see why it
> cannot start.
> 

the previous error log shows
[Wed Oct 01 08:00:03 2008] [notice] Graceful restart requested, doing 
restart
[Wed Oct 01 08:00:04 2008] [notice] seg fault or similar nasty error 
detected in the parent process

the new error log shows, after the manual start
[Wed Oct 01 08:39:09 2008] [warn] pid file /var/run/httpd.pid 
overwritten -- Unclean shutdown of previous Apache run?
[Wed Oct 01 08:39:09 2008] [notice] Apache/2.0.63 (FreeBSD) PHP/4.4.9 
with Suhosin-Patch DAV/2 SVN/1.5.2 configured -- resuming normal 
operations

those error messages are repeated any time I do a 
   apachectl graceful

However, doing
   apachectl stop
   apachectlstart
works as expected.

apache version is apache-2.0.63_2 from ports
uname -a gives
FreeBSD iwr.ru.ac.za 7.0-RELEASE-p1 FreeBSD 7.0-RELEASE-p1 #2: Mon 
Jun  2 13:10:26 SAST 2008 
iwr.ru.ac.za:/usr/obj/usr/src/sys/KERNIWR70  i386

php v4 is installed, though i do plan to upgrade that to V5 as soon 
as I get time to do it.

PS: I used to use logrotate, but it too stopped working correctly, 
with apache process stopping in a similar way that is why I changed 
to newsyslog.  I rotate the logs monthly, and set it to 8am so there 
is a chance I'll be on hand to start apache to minimize downtime.


--
   DA Fo rsythNetwork Supervisor
Principal Technical Officer -- Institute for Water Research
http://www.ru.ac.za/institutes/iwr/


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


compile error, 7.2R

2009-06-09 Thread DA Forsyth
Hiya all

I am trying to compile 7.2 on a box currently running 7.1 which was 
compiled from 7.0 (in fact way back to 5.2.1)

make buildworld
and
make kernel-toolchain

both produce this error

mkdep -f .depend -a-I/usr/obj/usr/src/tmp/legacy/usr/include 
config.c /usr/src/usr.sbin/config/main.c lang.c 
/usr/src/usr.sbin/config/mkmakefile.c 
/usr/src/usr.sbin/config/mkheaders.c 
/usr/src/usr.sbin/config/mkoptions.c kernconf.c
/usr/src/usr.sbin/config/config.y:81:20: error: config.h: No such 
file or directory
/usr/src/usr.sbin/config/main.c:59:19: error: y.tab.h: No such file 
or directory
/usr/src/usr.sbin/config/lang.l:38:20: error: config.h: No such file 
or directory
/usr/src/usr.sbin/config/mkmakefile.c:49:19: error: y.tab.h: No such 
file or directory
/usr/src/usr.sbin/config/mkheaders.c:48:19: error: y.tab.h: No such 
file or directory
/usr/src/usr.sbin/config/mkoptions.c:49:19: error: y.tab.h: No such 
file or directory
mkdep: compile failed
*** Error code 1

Stop in /usr/src/usr.sbin/config.
*** Error code 1

I did do a cvsup this morning which did not update anything.  I have 
configured a new kernel, but not built it yet as I always build world 
first according to the instructions in /usr/src/UPDATING.

That folder contains
lergy-/usr/src/usr.sbin/config > ls -l
total 102
-rw-r--r--  1 root  wheel516 Apr 15 05:14 Makefile
drwxr-xr-x  2 root  wheel512 Jul 21  2005 SMM.doc/
-rw-r--r--  1 root  wheel  10871 Apr 15 05:14 config.5
-rw-r--r--  1 root  wheel   7454 Apr 15 05:14 config.8
-rw-r--r--  1 root  wheel   5629 Apr 15 05:14 config.h
-rw-r--r--  1 root  wheel   8936 Apr 15 05:14 config.y
-rw-r--r--  1 root  wheel   2413 Apr 15 05:14 configvers.h
-rw-r--r--  1 root  wheel542 Apr 15 05:14 kernconf.tmpl
-rw-r--r--  1 root  wheel   6918 Apr 15 05:14 lang.l
-rw-r--r--  1 root  wheel  16212 Apr 15 05:14 main.c
-rw-r--r--  1 root  wheel   2305 Apr 15 05:14 mkheaders.c
-rw-r--r--  1 root  wheel  17706 Apr 15 05:14 mkmakefile.c
-rw-r--r--  1 root  wheel   8472 Apr 15 05:14 mkoptions.c

and config.h does exist, so the error message makes no sense at all.

Any solutions?


--
   DA Fo rsythNetwork Supervisor
Principal Technical Officer -- Institute for Water Research
http://www.ru.ac.za/institutes/iwr/


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


another compile error

2009-06-09 Thread DA Forsyth
Hiya

trying to build kernel for 7.2 and get this
(my earlier problem was my having CFLAGS=... in /etc/src.conf)

MAKE=make sh /usr/src/sys/conf/newvers.sh LERGY72
cc -c -O -pipe  -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -
Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -
Wcast-qual  -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc  -
I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -D_KERNEL -
DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -
finline-limit=8000 --param inline-unit-growth=100 --param large-
function-growth=1000  -mno-align-long-strings -mpreferred-stack-
boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -
ffreestanding -Werror  vers.c
linking kernel.debug
udbp.o(.text+0x59): In function `ng_udbp_disconnect':
/usr/src/sys/dev/usb/udbp.c:857: undefined reference to 
`ng_rmnode_self'
udbp.o(.text+0xc9): In function `udbp_detach':
/usr/src/sys/dev/usb/udbp.c:450: undefined reference to 
`ng_rmnode_self'
udbp.o(.text+0xde):/usr/src/sys/dev/usb/udbp.c:452: undefined 
reference to `ng_unref_node'
udbp.o(.text+0x79e): In function `udbp_attach':
/usr/src/sys/dev/usb/udbp.c:375: undefined reference to `ng_newtype'
udbp.o(.text+0x7cc):/usr/src/sys/dev/usb/udbp.c:381: undefined 
reference to `ng_make_node_common'
udbp.o(.text+0x813):/usr/src/sys/dev/usb/udbp.c:384: undefined 
reference to `ng_name_node'
udbp.o(.text+0x828):/usr/src/sys/dev/usb/udbp.c:385: undefined 
reference to `ng_unref_node'
udbp.o(.text+0x993): In function `ng_udbp_rcvmsg':
/usr/src/sys/dev/usb/udbp.c:705: undefined reference to 
`M_NETGRAPH_MSG'
udbp.o(.text+0xa55):/usr/src/sys/dev/usb/udbp.c:733: undefined 
reference to `ng_address_ID'
udbp.o(.text+0xa6e):/usr/src/sys/dev/usb/udbp.c:733: undefined 
reference to `ng_snd_item'
udbp.o(.text+0xa7d):/usr/src/sys/dev/usb/udbp.c:733: undefined 
reference to `ng_free_item'
udbp.o(.text+0xa89):/usr/src/sys/dev/usb/udbp.c:734: undefined 
reference to `M_NETGRAPH_MSG'
udbp.o(.text+0xb15): In function `udbp_in_transfer_cb':
/usr/src/sys/dev/usb/udbp.c:531: undefined reference to 
`ng_package_data'
udbp.o(.text+0xb3a):/usr/src/sys/dev/usb/udbp.c:531: undefined 
reference to `ng_address_hook'
udbp.o(.text+0xb4e):/usr/src/sys/dev/usb/udbp.c:531: undefined 
reference to `ng_snd_item'
udbp.o(.text+0xd33): In function `ng_udbp_rmnode':
/usr/src/sys/dev/usb/udbp.c:815: undefined reference to 
`ng_unref_node'
udbp.o(.text+0xd46):/usr/src/sys/dev/usb/udbp.c:817: undefined 
reference to `ng_make_node_common'
udbp.o(.text+0xd7f):/usr/src/sys/dev/usb/udbp.c:820: undefined 
reference to `ng_name_node'
udbp.o(.text+0xd90):/usr/src/sys/dev/usb/udbp.c:821: undefined 
reference to `ng_unref_node'
udbp.o(.text+0xde3): In function `ng_udbp_rcvdata':
/usr/src/sys/dev/usb/udbp.c:752: undefined reference to 
`ng_free_item'
udbp.o(.rodata+0x20): In function `ng_udbp_connect':
/usr/src/sys/dev/usb/udbp.c:842: undefined reference to 
`ng_parse_int32_type'
udbp.o(.rodata+0x3c): In function `ng_udbp_disconnect':
/usr/src/sys/dev/usb/udbp.c:853: undefined reference to 
`ng_parse_struct_type'
udbp.o(.rodata+0x64):/usr/src/sys/dev/usb/udbp.c:859: undefined 
reference to `ng_parse_int32_type'
udbp.o(.rodata+0x70): In function `udbp_detach':
/usr/src/sys/dev/usb/udbp.c:433: undefined reference to 
`ng_parse_int32_type'
*** Error code 1

Stop in /usr/obj/usr/src/sys/LERGY72.
*** Error code 1


--
   DA Fo rsythNetwork Supervisor
Principal Technical Officer -- Institute for Water Research
http://www.ru.ac.za/institutes/iwr/


___
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: another compile error

2009-06-10 Thread DA Forsyth
On 9 Jun 2009 , Kent Stewart entreated about
 "Re: another compile error":

> > > > trying to build kernel for 7.2 and get this
> > > > (my earlier problem was my having CFLAGS=... in /etc/src.conf)
> > > >
> > > > MAKE=make sh /usr/src/sys/conf/newvers.sh LERGY72
> > > > cc -c -O -pipe  -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -

> > Hello,
> >
> >  If you want udbp(4) you have to know that it requires netgraph(4).
> > They are both available as modules and/or kernel config options
> > (actually udbp(4) is a device :) ).
> 
> If that is all it takes, then, I think that GENERIC should mention 
> the "options NETGRAPH" as a requirement for udbp. There are numerous places 
> with "requires miibus" as a comment because a device won't compile without 
> it. A commented line has often been there because it was a work in progress 
> such as ULE was for what seems like years or broken for unknown reasons. 
> GENERIC was always self documenting.

Thanks guys.   having 'options NETGRAPH' is indeed the fix.  There is 
no mention of it being required for udbp in GENERIC, nor in either of 
the NOTES files.  It is mentioned in the man for udbp, which I hadn't 
read (yet), silly me.


--
   DA Fo rsythNetwork Supervisor
Principal Technical Officer -- Institute for Water Research
http://www.ru.ac.za/institutes/iwr/


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


cron output mail contains no recipient address

2009-06-15 Thread DA Forsyth
Hiya all

Ever since I upgraded my backup server to 7.2R (via source compile) 
cron jobs that produce output that used to be emailed to me now fail 
with a report of 
"contained no recipient addresses"
on the receiving server.

Mail setup is very basic, just exim that delivers to the main server.
A command like
ls | mail -s " test" root
will work fine, it is only the cron outputs that have no to: line
(root is aliased in the /etc/aliases)

Any ideas?  Google has been unhelpful, so far


--
   DA Fo rsythNetwork Supervisor
Principal Technical Officer -- Institute for Water Research
http://www.ru.ac.za/institutes/iwr/


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


cron mail problem solved

2009-06-15 Thread DA Forsyth
Why do I become so clever AFTER asking for help?

Anyhow, I have solved the cron not sending email problem.
The cron log file contains lines like this
NSSWITCH(nss_method_lookup): nis, group_compat, setgrent, not found
which when searched for produces the page at
http://www.ivorde.ro/FreeBSD_Cron__NSSWITCH_nss_method_lookup_errors-
44.html

So I have edited my /etc/nsswitch.conf to have 
group: files
password: files
(instead of 'compat')

and now it works again.

I guess I must have installed that file in the  upgrade during my 
glazed mergemaster phase of 'esc i enter' to install all those files 
whose only difference is the $Id$ tag (why do they bother?)


--
   DA Fo rsythNetwork Supervisor
Principal Technical Officer -- Institute for Water Research
http://www.ru.ac.za/institutes/iwr/


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


counting pages sent to postscript printer via samba and lpd

2009-06-18 Thread DA Forsyth
Hiya all.

I'm busy reading the manual on this, but am wondering if anyone has 
tips and howtos available.

I took delivery of our new color laser printer, a CP1515n, HP 
networked color laser.  since this thing is not exactly cheap to run 
I want to count pages per user, and since I have failed miserably to 
get this right when using PCL drivers, I'm thinking I can do it with 
Postscript drivers. but first, the system

Our Samba server hosts all printers (from a user perspective), and 
feeds the data directly to the print servers (FreeBSD minial install) 
for some printers, or directly to the printer for the other directly 
networked HP laser printer (PCL6).  This works fine, in fact very 
well, and a log of jobs per person is available (each person being an 
authorized samba user).

I have just installed the PS drivers on my XP PC and printed to the 
printer via the samba server with a simple printcap setup...

cp1515|CP1515n Color Laserjet:\
:sh:ff=:\
:lp=:\
:sd=/var/spool/lpd/cp1515:\
:lf=/var/log/lpd/lpd-cp1515errs:\
:ss=/var/log/lpd/stat-cp1515:\
:rm=xxx.yyy.zzz.aaa:\
:rp=RAW:

That means I have a record of *jobs* in the stat-cp1515 file, but 
what I need is a page count for each job.

tips?

(PS: I tried to set up LPng some time ago and somehow completely 
failed to get it to work and ended up just uninstalling it.  I'd 
really like to stay with stock lpd)


--
   DA Fo rsythNetwork Supervisor
Principal Technical Officer -- Institute for Water Research
http://www.ru.ac.za/institutes/iwr/


___
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: fsck and dump freeze freebsd. any ideas?

2009-07-29 Thread DA Forsyth
On 29 Jul 2009 , freebsd-questions-requ...@freebsd.org entreated 
about
 "freebsd-questions Digest, Vol 269, Issue 6":

>   After one of the last crashes, the system would lock up a short time
> after rebooting. I found the problem caused by background fsck locking
> up the system. I took the partition out of the startup check for now.
> I 'think' I was installing a port during the last crash, but it has
> been a while. I performed a fsck and a dump (to /dev/null) confirming
> that both do crash the freebsd 7.2 and 6.2 (which I booted off of a
> separate drive). A tar to /dev/null did run successfully, but I recall
> reading that that is not a recommended way to backup/move a
> filesystem. The /usr partition where it causes trouble is in a raid5
> geom_vinum three drive array. I did not yet have the array rebuild the

My experience has been that dump *with snapshot* of a live filesystem 
will crash if the filesystem is 'large'.  MY solution is to umount 
the partition.  This happens with my 800GB /home which is part of a 4 
drive raid5 array (ar driver with hardware setup).  It used to happen 
with the previous 320GB mirror array too, just with /home which is 
the biggest partition.   This is one reason I moved away from tape 
backup to a secondary server full of harddrives as backup target, the 
tape took far too long with /home unmounted and users were affected.

As for the fsck crashing, I'm lost.  Maybe a faulty drive?  




--
   DA Fo rsythNetwork Supervisor
Principal Technical Officer -- Institute for Water Research
http://www.ru.ac.za/institutes/iwr/


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


portupgrade broken, and apr won't build

2009-09-02 Thread DA Forsyth
Hiya all

Something weird going on with portypgrade (and maybe ports in 
general) here.  Somewhere between last months upgrade and this month, 
portupgrade has started to ignore ports that are reported by 
portversion as needing upgrading.  The result is I have to force each 
one, one at a time.  Big schlep.

For example
> portversion -v | grep samba
samba-3.0.35,1  <  needs updating (port has 3.0.36,1)

> portupgrade -vr samba
--->  Session started at: Wed, 02 Sep 2009 10:18:47 +0200
** None has been installed or upgraded.
--->  Session ended at: Wed, 02 Sep 2009 10:18:47 +0200 (consumed 
00:00:00)

The other thing is that devel/apr will not build.  The make stops 
with this
...
 checking whether it is safe to define __EXTENSIONS__... yes
 checking for library containing strerror... none required
 checking whether system uses EBCDIC... no
 performing libtool configuration...
 ./configure: 9753: Syntax error: word unexpected (expecting ")")
 *** Error code 2

 Stop in /usr/ports/devel/apr.
 *** Error code 1

 Stop in /usr/ports/devel/apr.

I cvsup every Monday morning.  I tried the upgrades last week but got 
these failures and decided to wait a week and see if there are fixes.
Apparently not.  I also had to manually fix the openssl distfile 
(missing MD5 and SH256) so that it would actually download the 
missing patch and confirm it.  I have never had so much trouble with 
the port system, who broke it? <-:

Any ideas?


--
   DA Fo rsythNetwork Supervisor
Principal Technical Officer -- Institute for Water Research
http://www.ru.ac.za/institutes/iwr/


___
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: apr won't build

2009-09-02 Thread DA Forsyth
replyign to myself, sor tof, seems this fixes it

http://www.mail-archive.com/freebsd-po...@freebsd.org/msg22758.html

remove all old cruft from libtool15 if you have upgraded to libtool22


--
   DA Fo rsythNetwork Supervisor
Principal Technical Officer -- Institute for Water Research
http://www.ru.ac.za/institutes/iwr/


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


Re: portupgrade broken

2009-09-16 Thread DA Forsyth
> Hiya all
> 
> Something weird going on with portupgrade (and maybe ports in 
> general) here.  Somewhere between last months upgrade and this month, 
> portupgrade has started to ignore ports that are reported by 
> portversion as needing upgrading.  The result is I have to force each 
> one, one at a time.  Big schlep.
> 
> For example
> > portversion -v | grep samba
> samba-3.0.35,1  <  needs updating (port has 3.0.36,1)
> 
> > portupgrade -vr samba
> --->  Session started at: Wed, 02 Sep 2009 10:18:47 +0200
> ** None has been installed or upgraded.
> --->  Session ended at: Wed, 02 Sep 2009 10:18:47 +0200 (consumed 
> 00:00:00)

I am still facing this issue.  I have tried several ways of 
rebuilding the index and pkgdb but nothing is changing this 
behaviour.

Doing a 'make index && pkgdb -fu' gets me a portversion list that 
shows nothing needs updating, which is clearly wrong when the cvsup 
just prior to it shows changes in ports I have installed.

'make fetchindex && pkgdb -fu'
is more successful, showing all the ports I need to update 
correctly(?), however, portversion will still do this

> portversion -v | grep png
png-1.2.38  <  needs updating (port has 1.2.40)

> portupgrade -vrR png-1.2.38
--->  Session started at: Wed, 16 Sep 2009 11:11:50 +0200
[Gathering depends for graphics/png  done]
[Gathering depends for misc/mc 
 done]
[Gathering depends for audio/sox  
done]
[Gathering depends for x11-toolkits/pango 
..
... done]
[Gathering depends for databases/rrdtool ... done]
[Gathering depends for sysutils/apcupsd . done]
[Gathering depends for multimedia/mplayer .. done]
[Gathering depends for net-mgmt/mrtg .. done]
[Exclude up-to-date packages 
..
 done]
** None has been installed or upgraded.
--->  Session ended at: Wed, 16 Sep 2009 11:12:06 +0200 (consumed 
00:00:16)

I saw someone ask about this in Google Groups on the 14th but he has 
not got an answer yet, so I am not the only one.

How do I fix this?

--
   DA Fo rsythNetwork Supervisor
Principal Technical Officer -- Institute for Water Research
http://www.ru.ac.za/institutes/iwr/


___
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: NO ONE knows??

2009-10-02 Thread DA Forsyth
On 2 Oct 2009 , freebsd-questions-requ...@freebsd.org entreated about
 "freebsd-questions Digest, Vol 278, Issue 10":

> Message: 28
> Date: Thu, 1 Oct 2009 12:22:45 -0700
> From: Gary Kline 
> Subject: NO ONE knows??
> To: FreeBSD Mailing List 
> Message-ID: <20091001192241.ga5...@thought.org>
> Content-Type: text/plain; charset=us-ascii
> 
> 
> so ==nobody== know how to get espeak working with the high-quality
> voices?  hard to believe on this list...

I use espeak, but have never tried to use any other than the stock 
voice, it works just fine.  I suspect most other folks have the same 
experience.

I use espeak to verbalize warnings and errors from XYMON on the main 
server which sits next to me, since I'm not always looking at email.

> gary


--
   DA Fo rsythNetwork Supervisor
Principal Technical Officer -- Institute for Water Research
http://www.ru.ac.za/institutes/iwr/


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


sshit runs out of semaphores

2008-12-02 Thread DA Forsyth
Hiya

I recently started (trying) to use sshit to filter the many brute 
force sshd attacks.

However, it has never worked on my box.  FreeBSD 7.0 p1.

This morning it would only give a message (without exiting)
   Could not create semaphore set: No space left on device
at /usr/local/sbin/sshit line 322
Every time it gets stopped by CTRL-C it leaves the shared memory 
behind, allocated.

I am going to reboot later and double the number of semaphores (in 
loader.conf).
I am running hobbit which uses 8, leaving only 2 free.  This may 
solve this issue, but I'd appreciate any ideas and experienced 
advice.

A side issue is that sshit will only filter rapid fire attacks, but I 
am also seeing 'slow fire' attacks, where an IP is repeated every 2 
or 3 hours, but there seem to be a network of attackers because the 
name sequence is kept up across many incoming IP's.  Is there any 
script for countering these attacks?
If not I'll write one I think.


--
   DA Fo rsythNetwork Supervisor
Principal Technical Officer -- Institute for Water Research
http://www.ru.ac.za/institutes/iwr/


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


freebsd-update through proxy with auth

2008-12-03 Thread DA Forsyth
Hiya

How do I get freebsd-update to fetch through a proxy that requires 
authentication?  I cannot find any options in the man pages.


--
   DA Fo rsythNetwork Supervisor
Principal Technical Officer -- Institute for Water Research
http://www.ru.ac.za/institutes/iwr/


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


Re: freebsd-update through proxy with auth

2008-12-03 Thread DA Forsyth
On 3 Dec 2008 , RW entreated about
 "Re: freebsd-update through proxy with auth":

> On Wed, 03 Dec 2008 10:36:29 +0200
> "DA Forsyth" <[EMAIL PROTECTED]> wrote:
> 
> > Hiya
> > 
> > How do I get freebsd-update to fetch through a proxy that requires 
> > authentication?  I cannot find any options in the man pages.
> > 
> 
> have you tried putting it in the proxy name
> 
> http://user:[EMAIL PROTECTED]:port 

sadly, that doesn't work
looks like freebsd-update never queries the http_proxy env variable

--
   DA Fo rsythNetwork Supervisor
Principal Technical Officer -- Institute for Water Research
http://www.ru.ac.za/institutes/iwr/


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


monitor DG965 montherbaord

2009-01-19 Thread DA Forsyth
Hiya folks

I want to monitor the fans and temperatures on a Intel DG965 
motherbaord.  I have added the coretamp driver to get temps from the 
dual core CPU, but so far I cannot find a way to get the motherboard 
temperatures.   I normally use mbmon for this, works well on other 
(older) motherboards.

FreeBSD 7R


--
   DA Fo rsythNetwork Supervisor
Principal Technical Officer -- Institute for Water Research
http://www.ru.ac.za/institutes/iwr/


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


telnet to mbmon

2009-01-20 Thread DA Forsyth
Hiya

I am using mbmon in  telnet mode to monitor some print servers 
remotely.

REvcently I moved the monitoring form one server to another, but now 
the telnet probe only works from the command line.  Any probe 
originating from a cron job gets no data in the reply (normally via 
mrtg, but I tried a direct telnet call as a cron job and it also got 
no data as a reply).

Yes, the connection is made.  mbmon is running on the targets.

This is affecting 3 target print servers.

I tried running the probe on the original server and it worked as 
usual.

where to look?


--
   DA Fo rsythNetwork Supervisor
Principal Technical Officer -- Institute for Water Research
http://www.ru.ac.za/institutes/iwr/


___
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:Saving pf state for accounting

2009-01-29 Thread DA Forsyth
On 29 Jan 2009 , freebsd-questions-requ...@freebsd.org entreated 
about
 "freebsd-questions Digest, Vol 246, Issue 69":

> Date: Thu, 29 Jan 2009 14:47:51 +0200
> Subject: Saving pf state for accounting
> 
> Hi guys,
> 
> My server uses up tons of bandwidth every month and I'd like to start 
> recording what traffic volumes my different services chew up on a 
> monthly basis. My firewall utility of choice is pf and I've recently 
> come across its neat "label" facility so that I can do a simple "pfctl 
> -sl" to get the latest readings.
> 
> That's all fair and well but I lose all that lovely accounting 
> information upon reboot so how do I go about saving this? I've googled 
> quite a bit to look for a solution but have found nothing useful so far, 
> just unanswered posts in the past.
> 
>  From what I can tell so far I'd have to write a custom rc script which 
> redirects "pfctl -sl" into some sort of logfile which then may be 
> retrieved at a later stage (and added to current counter output). Is 
> there an easier way perhaps?

I'd use MRTG to store the numbers continuously, viewable as graphs.
--
   DA Fo rsythNetwork Supervisor
Principal Technical Officer -- Institute for Water Research
http://www.ru.ac.za/institutes/iwr/


___
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: Patching / Updating / Upgrading

2009-02-03 Thread DA Forsyth
Message: 4
Date: Mon, 02 Feb 2009 16:37:14 -0500
From: Akenner 
Subject: Patching / Updating / Upgrading
To: freebsd-questions@freebsd.org

Hello all,

> So if anyone could lend a little but in typing out what they use for
> updates and how they go about it, I'd appreciate it. I've already
> gotten a full CVSup file sent to me by a member on here which was a
> great help in deciding how to set up the file. I'm more or less
> wondering with CVSup if I keep using RELEASE or do I use Stable. 

use RELEASE for a production server, STABLE on a desktop or test 
machine.  IMHO

use CVS if you have to build a custom kernel, I do this on my two 
production servers.  On my minimal install print servers, I use 
freebsd-update about once a month.   it is a bit fiddly to get 
through a proxy that needs auth, but it can be done.

> And of course if anyone uses freebsd-update if they have suggestions
> I'd love to hear those as well :) 

it works, it is quick, if you use the generic kernel.

> -Allen

--
   DA Fo rsythNetwork Supervisor
Principal Technical Officer -- Institute for Water Research
http://www.ru.ac.za/institutes/iwr/


___
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-update claims a file was changed

2009-04-30 Thread DA Forsyth
Hiya

I have 2 almost identicle machines running a minimal install of 7.1 
(updated from 7.0 just a few weeks ago).

Todays freebsd-update worked just fine on one box, but on the other I 
get
Looking up update.FreeBSD.org mirrors... 5 mirrors found.
Fetching metadata signature for 7.1-RELEASE from 
update1.FreeBSD.org... done.
Fetching metadata index... done.
Inspecting system... done.
Preparing to download files...
File changed while FreeBSD Update running: /boot/kernel/kernel

repeat ad nauseum.   Google has been no help.  What to do?


--
   DA Fo rsythNetwork Supervisor
Principal Technical Officer -- Institute for Water Research
http://www.ru.ac.za/institutes/iwr/


___
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: Opinion request about a file server

2009-06-08 Thread DA Forsyth
> I think my file/print/mail server is a bit overkill:
> http://w3.mutehq.net:8008/sysinfo/

Nice, esp when you compile world.   Last year I upgraded our server 
to a Core 2 Duo 1.8Ghz, Intel DG965 board.  2GB RAM.  Previous board 
was an ASUS P3 1.1GHz, which now hosts my backup server.  Both ran 
FreeBSD file/print/email/web services perfectly.  I upgraded to get 
the onboard SATA sockets so I could increase our available disk space 
(4x500GB in RAID5 for data).

However, a nice benefit is that the Core2 will compile world in 1/4 
the time, and user don't notice the server is 'busy'.

SO, to the original question, yes that motherboard will work just 
fine.   What are you doing for system backups?  A single drive is not 
enough.  I recommend a mirror pair at least, and suggest a second box 
for backups.


--
   DA Fo rsythNetwork Supervisor
Principal Technical Officer -- Institute for Water Research
http://www.ru.ac.za/institutes/iwr/


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


Re: freebsd-questions Digest, Vol 262, Issue 2

2009-06-08 Thread DA Forsyth
> Message: 22
> Date: Mon, 8 Jun 2009 08:10:50 -0300
> From: Friedrich Locke 
> Subject: SAN FreeBSD Server
> To: freebsd-questions@freebsd.org
> Message-ID:
>   
> Content-Type: text/plain; charset=ISO-8859-1
> 
> Dear gentleman,
> 
> i would like to configure a FreeBSD installation as storage server
> solution. Iwould like to use iSCSI.
> Is it possible to configure a server running FreeBSD as a iSCSI server
> (i.e., i mean as a target)?

indeed it is as others have said.  However, if all you need is a 
bunch of disk space accessible over the network, then FreeNAS would 
be a lot simpler to setup and maintain.   Based on FreeBSD, iSCSI 
service built in, WEbGUI interface (but you can ssh in if you want 
to).  one caveat, don't use it with USB external drives as it will 
lose connections as soon as you mount the 2nd USB drive.


--
   DA Fo rsythNetwork Supervisor
Principal Technical Officer -- Institute for Water Research
http://www.ru.ac.za/institutes/iwr/


___
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: Opinion request about a file server

2009-06-08 Thread DA Forsyth
On 8 Jun 2009 , freebsd-questions-requ...@freebsd.org entreated about
 "freebsd-questions Digest, Vol 262, Issue 2":

> Message: 13
> Date: Mon, 8 Jun 2009 09:18:09 +0200 (CEST)
> From: Wojciech Puchar 

> > SO, to the original question, yes that motherboard will work just
> > fine.   What are you doing for system backups?  A single drive is not
> > enough.  I recommend a mirror pair at least, and suggest a second box
> 
> why? it's a backup system not main system.

>From his original it seemd he would be using a single drive for the 
system and a mirror pair for data.  Seems I got it wrong and the 
single drive will be for 'some other purpose'.   Fine, but all the 
more reason to back it up.

A backup server is not the place to avoid data security.  From 
personal experience I can tell you that life is hell when your backup 
drives are needed but don't work.  My backup server has a mirror pair 
for the data, and that gets copied to an external drive which lives 
off site.  And I'm not sure I've got enough backups yet (-:


--
   DA Fo rsythNetwork Supervisor
Principal Technical Officer -- Institute for Water Research
http://www.ru.ac.za/institutes/iwr/


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


xRAID disks....

2008-06-10 Thread DA Forsyth
Hiya

I've had this for a while now and have done many searches for info 
but have not yet come up with the right question, hence have not got 
the answer.

My main server has an Adaptec IDE raid card.  A couple of years ago I 
took disks that had been a mirror pair on that card out of the server 
and put them into my test server, not as a raid pair since the test 
server has no raid hardware.

During boot I see this
ad0: 19092MB  at ata0-master UDMA66
ad1: 76319MB  at ata0-slave UDMA66
ad2: 76319MB  at ata1-master UDMA66
ad3: 19092MB  at ata1-slave UDMA66
ar0: 76319MB  status: BROKEN
ar0: disk0 DOWN no device found for this subdisk
ar0: disk1 DOWN no device found for this subdisk

The pair of ex-RAID disks are ad1 and ad2 and obviously are no longer 
a raid pair, yet 'something' is telling the ar() driver to try and 
pair them and failing because there is no raid hardware in that box.

Now I am reconfiguring that machine a bit and would like to fix this, 
both on these existing drives and on the 320MB drive I have just 
removed from a RAID1 pair and will be putting into the box instead of 
ad3 (the other 320GB from the pair is in a USB enclosure for other 
purposes and has not shown any signs of knowing it was in a raid 
pair)

I suspect the raidinfo is stored on the disk somewhere and a suitable 
'dd' command can erase it.  but where and how?

thanks for your help


--
   DA Fo rsythNetwork Supervisor
Principal Technical Officer -- Institute for Water Research
http://www.ru.ac.za/institutes/iwr/


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


Re: xRAID disks....

2008-06-12 Thread DA Forsyth
On 10 Jun 2008 , Erik Trulsson entreated about
 "Re: xRAID disks":

> > I suspect the raidinfo is stored on the disk somewhere and a suitable 
> > 'dd' command can erase it.  but where and how?
> 
> That kind of information is usually stored last on the disk (where it is
> least likely to be overwritten by filesystems, partitioning info, or boot
> loaders), so if you overwrite the last couple of KBs on those disks you will
> probably be fine.
> (If you want to be certain you can always use 'dd' to nuke all the
> information on the disk.  That will take longer time, but you get the extra
> advantage of testing all the blocks on the disk so that they work
> correctly.)
> 
> For the first you could do something like:
>  dd if=/dev/zero of=/dev/ad1 bs=1m skip=76318
> which should overwrite the last MB of ad1 with zeros.

I tried to overwrite just the last sector, but though dd reported 
success (and took ages, seems it has to do a read for every skipped 
sector) the data was still there when I used dd to display it.
I have just done a search for sector editing software but I cannot 
find anything in ports.  Starting to think of writing some C... how 
hard can it be just to seek to a given sector and scribble zeros on 
it?

so then I did this (overwrite last megabyte)and that did in fact zero 
the last megabyte, taking away the raid info AND all the partition 
info.  not exactly what I wanted but I was going to repartition 
anyway.
but I now have another disk with data and raid info on it and will 
need a way to nondestructively remove the raid info there.

I did try the suggestion of 'atacontrol' but it did nothing, I also 
tried 'gmirror clear' but that gives an error message, maybe I should 
first create a gmirror then clear it.  or maybe try the 'forget' 
command

hmmm, thinking now the gmirror create/remove route will probably 
work.  let me try it on a blankish disk and see


--
   DA Fo rsythNetwork Supervisor
Principal Technical Officer -- Institute for Water Research
http://www.ru.ac.za/institutes/iwr/


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


Re: xRAID disks....

2008-06-12 Thread DA Forsyth
On 10 Jun 2008 , Erik Trulsson entreated about
 "Re: xRAID disks":

> On Tue, Jun 10, 2008 at 04:56:07PM +0200, Wojciech Puchar wrote:
> > >
> > > The pair of ex-RAID disks are ad1 and ad2 and obviously are no longer
> > > a raid pair, yet 'something' is telling the ar() driver to try and
> > > pair them and failing because there is no raid hardware in that box.
> > 
> > there are no "raid hardware" on most devices. it's just marketing hype. 
> 
> Most (cheap) RAID controllers do almost everything in software. Some do have
> hardware support.

this was not a cheap card, it is an Adaptec 2400A.  4 disks.  It can 
do RAID5 too but I never tried that, having needed 2 mirror pairs 
instead.

the new motherboard is an Intel D965 with 6 SATA sockets, 4 of which 
are now supporting the new RAID5 array (4x400Gb disks).  whether is 
is the RAID hardware or just because it is SATA2, it is damn fast 
compared to IDE.  pleased so far.  oh, not booting off this, it is 
just data (and the old IDE mirror disks must now work in the non RAID 
backup server)


--
   DA Fo rsythNetwork Supervisor
Principal Technical Officer -- Institute for Water Research
http://www.ru.ac.za/institutes/iwr/


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


Re: xRAID disks....

2008-06-12 Thread DA Forsyth
On 12 Jun 2008 , DA Forsyth entreated about
 "Re: xRAID disks":

> hmmm, thinking now the gmirror create/remove route will probably 
> work.  let me try it on a blankish disk and see

this appears to be the answer to the question:
how to stop ar recognizing a disk that used to be on a raid 
controller

doing a 'gmirror label gm0 /dev/ad1' filled the last sector with 
data, and 'gmirror clear /dev/ad1' reset it all to zero

now to try it on the big disk with data on it...
YES: it works, and the data slice is still there, and the commands 
happen a lot faster than a dd with a skip parameter

sidenote:  to see the last sector use sysinstall's fdisk to see the 
data for the disk.  you'll see something like

Disk name:  ad3FDISK 
Geometry:  38913 cyls/255 heads/63 sectors = 625137345 sectors 
Offset   Size(ST)End Name  PType   Desc  Subtype  
 0 63 62- 12 unused0
63  625137282  625137344ad3s1  8freebsd  165
 625137345   5103  625142447- 12 unused0
   ^
you want that number in a dd commmand like this
   dd if=/dev/ad3 skip=625142447 | hd -v

Thanks to all for the pointers

--
   DA Fo rsythNetwork Supervisor
Principal Technical Officer -- Institute for Water Research
http://www.ru.ac.za/institutes/iwr/


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


Re: Installing FreeBSD

2008-06-12 Thread DA Forsyth
On 12 Jun 2008 , Telpiz Sorin entreated about
 "Installing FreeBSD":

>  tried several times to install 7.0-RELEASE x amd64 on my
> friend's machine that is eqiupped with hard drive manufactured by
> Samsung. The hard drive (master) appears to have SATA interface,
> nonetheless SYSINSTALL regognizes it as ad04! Besides, SYSINSTALL
> complains about the disk's geometry . The text console works very
> slowly, though the machine (ASUS motherboard) has 2 Gigs of RAM
> and a good GeForce video board. For comparison, my old IBM machine (
> PentiumII , 128Mb RAM , 16Mb video memory ) runs Free BSD much more
> faster. Could you help us fix the trouble? Best regards and much
> thanks. sorin at [EMAIL PROTECTED]

I had this with my Linux box at home.  The solution is to change the
CMOS setting for the drive mode to 'enhanced' (on my motherboard at
any rate).  If you use the compatibility mode then the chipset maps
the SATA drives to the 'IDE' space and speed will be limited to
somewhere around PIO4  (-:

in my experience, sysinstall ALWAYS complains about geometry and I
always just leave it and it always just works. YMMV


--
   DA Fo rsythNetwork Supervisor
Principal Technical Officer -- Institute for Water Research
http://www.ru.ac.za/institutes/iwr/


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


portupgrade dependency loop

2008-06-23 Thread DA Forsyth
Hiya

How do I fix this?

===>   Registering installation for horde-base-3.2_3
pkg_create: dependency loop detected for package pear-Auth-1.6.1
pkg_create: dependency loop detected for package pear-Auth_SASL-1.0.2
pkg_create: dependency loop detected for package pear-Net_SMTP-1.3.1

I tried doing a 'pkgdb -F' and removing the dependencies in the loop, 
but they just get rebuilt.


--
   DA Fo rsythNetwork Supervisor
Principal Technical Officer -- Institute for Water Research
http://www.ru.ac.za/institutes/iwr/


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


ich8 sensors

2008-06-23 Thread DA Forsyth
Hiya

After much searching around I stumbled on the coretemp driver for 
retrieving the core temperatures in a Core 2 Duo
however, I'd like to monitor fan speed and northbridge temperature if 
at all possible.

Motherboard is an Intel DG965WH with ICH8 chipset, Core 2 Duo 6300 
chip.  
FreeBSD 7.0-RELEASE-p1 #2:

at one point I thought it used IPMI and compiled in the ipmi driver, 
but it doesn't create the /dev/ipmi device so I am assuming I was 
wrong.  the manual talks about WfM platform, but searching for that 
gets me nowhere.

no, mbmon doesn't work >-:

thanks for any info


--
   DA Fo rsythNetwork Supervisor
Principal Technical Officer -- Institute for Water Research
http://www.ru.ac.za/institutes/iwr/


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


Re: freebsd-questions Digest, Vol 221, Issue 4

2008-06-24 Thread DA Forsyth
On 23 Jun 2008 , [EMAIL PROTECTED] entreated 
about
 "freebsd-questions Digest, Vol 221, Issue 4":

> Message: 26
> Date: Mon, 23 Jun 2008 23:46:58 +0100
> Subject: Re: CPU temp's on core 2 duo,should they be significantly
>   different?
> 
> On Mon, Jun 23, 2008 at 01:52:07PM -0700, George Hartzell wrote:
> >
> > Josh Carroll writes:
> >  > [...]
> >  > I'd recommend taking the heat sink off and seeing how the thermal
[]
> >  > CPU package.
> > 
> >   dev.cpu.0.temperature: 44
> >   dev.cpu.1.temperature: 28
> > 
> 
> My top on 7.0 says "CPU states:" not "CPU:"
> 
> Are you sure you're running on 2 cores?
> 
> dmesg will tell you and top will have a "C" column with 0 or 1 in it.

like this
  PID USERNAMETHR PRI NICE   SIZERES STATE  C   TIME   WCPU 
COMMAND
31856 root  1  960  8884K  4864K select 1   2:52  0.00% 
snmpd
  861 mysql10  960 67768K 21704K ucond  0   0:31  0.00% 
mysqld
  879 mailman   1  960 10996K  7564K select 0   0:22  0.00% 
python2.5
  875 mailman   1  960 10996K  7184K select 0   0:21  0.00% 
python2.5
  877 mailman   1  960 10996K  7560K select 1   0:21  0.00% 
python2.5

dmesg should contain stuff like this (dmesg | grep -i cpu)
CPU: Intel(R) Core(TM)2 CPU  6300  @ 1.86GHz (1868.55-MHz 686-
class CPU)
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
 cpu0 (BSP): APIC ID:  0
 cpu1 (AP): APIC ID:  1
cpu0:  on acpi0
est0:  on cpu0
p4tcc0:  on cpu0
cpu1:  on acpi0
est1:  on cpu1
p4tcc1:  on cpu1
SMP: AP CPU #1 Launched!

since I started monitoring yesterday, my cores are within 1 degree of 
each other all the time, server running apache + samba + exim, mainly 
as file and print server.

PS: I cannot find any man pages for est() and p4tcc()
The man page for acpi_thermal says it is part of 'device acpi' which 
is loading, but is not finding anything thermal on this motherboard.

> If you're running on one core, it will explain the temperature
> discrepancy.


--
   DA Fo rsythNetwork Supervisor
Principal Technical Officer -- Institute for Water Research
http://www.ru.ac.za/institutes/iwr/


___
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 simulate a user's crontab?

2008-07-17 Thread DA Forsyth
> Date: Wed, 16 Jul 2008 11:26:19 -0400
> From: John Almberg <[EMAIL PROTECTED]>

> I often run into permission problems with user crontabs. That is, a 
> crontab run under a user's permissions.

> First of all, it seems to me that a user's crontab doesn't have 
> exactly the same permission as the user himself. Is this true? 

> If so, what permissions does a user's crontab have?

> Is there anyway I can simulate these permissions on the command line, 
> so I can test things before putting them in a crontab? 

> What I'd like to avoid is the frustrating cycle of putting a line in 
> a user's crontab (a few minutes ahead), waiting for it to fire off, 
> have it fail, check error logs, try again... 

> It would be much simpler if I could simulate the crontab's 
> environment, and just run the thing from the command line. 

> Any hope? I'm running FreeBSD 6.3

John, it is not a permissions issue, but rather a path issue.
Do as the other poster suggested and run a cron job to dump the 
environment and you will see that the PATH inside a cron job is very 
rudimentary.  Either add what you need to it in the crontab or cron 
job, or always use absolute paths for everything in a cron entry.

alternatively, set up an AT job as the user, then find the script 
generated by at and grab a copy (/var/spool/cron ???).  You can use 
that copy as the basis for all cron scripts for that user, and always 
have the 'user' environment set up correctly.


--
   DA Fo rsythNetwork Supervisor
Principal Technical Officer -- Institute for Water Research
http://www.ru.ac.za/institutes/iwr/


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


re: Monitoring CPU temperature: mbmon shows 201 degrees C

2008-07-21 Thread DA Forsyth
From: Achilleas Mantzios <[EMAIL PROTECTED]>

> Hi, i have had various crashes and segfaults in the last hot days
> (room temp about 30 deg C). I tried to monitor CPU temp with mbmon,
> which shows a very big value in COU temperature:

> I also opened the case in order to get ventilated with fresh air from
> the room. 

Actually, that doesn't work, your components will get hotter.  This 
is because the case provides a through flow environment where air is 
forced to flow over most of the components most of the time.  By 
opening the case you remove the force, and now have to rely on 
convection.

What you want to do is make sure all the fans are running freely.
Especially the processor fan.  It may have stopped silently an dthat 
would definitely cause crashes.

A fan at the front of the case blowing IN is more effective than one 
on the back blowing out, so if there isn't one on the front, add one.
The 80 to 120mm ones can be very quiet and some can control their own 
speed if your motherboard cannot do it.  If one can blow in the front 
and directly on the harddrives then that is a bonus, cool harddrives 
last longer.

The basic idea of a case is to have air coming in the front and 
exiting at the rear.  So make sure all your fans are blowing in the 
right direction.

My office goes to 38C in summer, and all 5 computers just keep on 
going, using the principles above.  I fitted a fan to the UPS as well 
(-:




--
   DA Fo rsythNetwork Supervisor
Principal Technical Officer -- Institute for Water Research
http://www.ru.ac.za/institutes/iwr/


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


Re: local mirrors of ports and packages?

2008-07-30 Thread DA Forsyth
On 30 Jul 2008 , [EMAIL PROTECTED] entreated 
about
 "freebsd-questions Digest, Vol 226, Issue 6":

> Message: 26
> Date: Tue, 29 Jul 2008 21:24:49 +0200
> From: Coert Waagmeester <[EMAIL PROTECTED]>
> Subject: local mirrors of ports and packages?
> To: FreeBSD-questions 
> 
> Hi all!
> 
> I am quite new to FreeBSD. I am quite a boffin on Linux though.
> 
> What I would like to know is, how can I make local mirrors of ports and
> packages? I live in South-Africa, and bandwidth is painfully slow and
> expensive.
> 
> How many data would it be in total?

Hi Coert
LOTS of data (-:
But, there is a SA mirror or two, so you don't have to do it yourself
http://freebsd.mirror.ac.za/  
ftp://freebsd.mirror.ac.za
ftp://ftp.za.freebsd.org/

> Thanks in advance,
> Coert
> 
> FreeBSD newbie

I've been running several servers on FreeBSD since 2004 and sometimes 
I still feel like a newby.   I run Fedora at home.


--
   DA Fo rsythNetwork Supervisor
Principal Technical Officer -- Institute for Water Research
http://www.ru.ac.za/institutes/iwr/


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


Re: local mirrors of ports and packages?

2008-07-30 Thread DA Forsyth
On 30 Jul 2008 , [EMAIL PROTECTED] entreated 
about
 "freebsd-questions Digest, Vol 226, Issue 6":

> Yes, I am currently rsyncing:
> ftp://ftp.is.co.za/FreeBSD/ports/i386/packages-7-stable/
> 
> Is this the correct data? And where in FreeBSD do I change the mirror
> list or installation source?

type 'man make.conf'
look for 'master site backup'.
but, you don't need to download all the packages, only the ones you 
need to install, surely?   When I test installed 7.0R I burnt a set 
of CD's that contain most common packages for the basic install.  
After that I fetched ports as needed (after updating the ports tree 
of course).

However, you will find a number of ports that only exist in their own 
hosts, and never appear on the usual servers, so having a mirror 
won't help.

If you are installing several boxes with the same packages, then 
download to one and transfer the package files to the  others 
locally.  You can do this via flash stick, NFS, ftp, scp, samba 
share, and probably many other ways.  You can also create packages 
from ports and then transfer your newly created package as needed (I 
do this for my print servers which have a minimal install and do not 
have a full ports tree)


--
   DA Fo rsythNetwork Supervisor
Principal Technical Officer -- Institute for Water Research
http://www.ru.ac.za/institutes/iwr/


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