Help to secure my FreeBSD/Apache installation

2013-07-17 Thread Andy Wodfer
Hi everybody!

I'm running a server on FreeBSD 8.1 STABLE (apache 2.2.16, mysql 5.1.50,
php 5.3.3) and I server some websites from it, most of them using Joomla or
Wordpress CMS.

I recently had a security breach where someone used a hole in an older
Joomla version and was able to install a php script called webadmin.php.
From that the person was able to browse all folders and view all files -
and change them... not nice!

Apache runs using the www user (std installation) and all virtualhosts
share the same user, but are placed in different directories.

I need some help and pointers to what I can do to strengthen security and
to atleast prevent someone from writing to the filesystem and browse all
directories and files. (allthough joomla needs some folders to be chmod 777)

I'm thinking about installing apache2-mpm-itk or similare to jail each site
into its own directory and run each virtualhost as its own user. Is this a
good idea?

Thankful for answers and pointers!

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


Re: ffmpef 1.1

2013-01-15 Thread Andy Wodfer
On Tue, Jan 15, 2013 at 8:53 PM, Mark Felder f...@feld.me wrote:

 On Tue, 15 Jan 2013 13:47:49 -0600, Zyumbilev, Peter 
 pe...@aboutsupport.com wrote:

  Hi,

 Does anybody know if there soon be port of ffmpeg 1.1 to FreeBSD ?


 I assume multimedia/ffmpeg1 just needs an update


Hi,
You might consider compiling it from source instead since it often takes
some time for the ports to be up to date with the development of ffmpeg.

Here is how I did it a while back:

Download the latest ffmpeg from GIT.

Extract .tgz file

# cd ffmpeg-0.10
# bash
# export LIBRARY_PATH=/usr/local/lib
# export CPATH=/usr/local/include
# ./configure --enable-gpl --enable-nonfree --enable-shared
--enable-libdirac --enable-libfaac --enable-libschroedinger
--enable-libvorbis --enable-libtheora --enable-libvpx --enable-libx264
--enable-libxvid --cc=gcc47
#gmake
#gmake install
___
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: /tmp filesystem full

2012-08-24 Thread Andy Wodfer
Hi everybody!

Thanks for answering my questions and helping me out with this problem.

It's been fixed now and I managed to locate the problem with the find /
-type d | awk 'length  900' command.

What caused it was something that looked like a directory loop or at least
a very deep list of sub directories from two old backups of src + kernel
compilations that recently got moved to this server from another one
(accidentally and in a hurry due to disk failure on the other server). I
think I counted 12 full lines in my terminal window for the directory bash
path...

I deleted them and now it works great again. Thanks again for great help!

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


Re: /tmp filesystem full

2012-08-23 Thread Andy Wodfer
Can't seem to figure out the problem with MAXPATHLEN.

locate: integer out of +-MAXPATHLEN (1024): 1029


In my /etc/locate.rc I have pruned several directories (even the most
obvious) - still the locate DB exeeds well over 1GB before outputting this
error message.

I have moved the tmp dir for locate to /usr/tmp which works fine (changed
in locate script) and there is no problems with diskspace here.

the find awk command suggested earlier in this thread didn't give me a
better clue about what's happening.

Anyone have any other ideas what I can try to find out why locate fails?

Thanks!
Andy

On Thu, Aug 23, 2012 at 6:24 AM, Michael Sierchio ku...@tenebras.comwrote:

 On Wed, Aug 22, 2012 at 7:17 PM, RW rwmailli...@googlemail.com wrote:

   tmpfs and swap md devices don't actually need swap. I don't seen any
   advantage in your way of creating an md device for /tmp.

 Then you don't understand. ;-)  The advantage of my approach is
 avoiding a kernel panic when writing to the tmpfs when you haven't
 pre-allocated all the filesystem space at creation time.  If that
 happens to matter to 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

___
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: /tmp filesystem full

2012-08-23 Thread Andy Wodfer
Btw, is /etc/locate.rc being read at all?

/Andy

On Thu, Aug 23, 2012 at 11:04 AM, Andy Wodfer wod...@gmail.com wrote:

 Can't seem to figure out the problem with MAXPATHLEN.


 locate: integer out of +-MAXPATHLEN (1024): 1029


 In my /etc/locate.rc I have pruned several directories (even the most
 obvious) - still the locate DB exeeds well over 1GB before outputting this
 error message.

 I have moved the tmp dir for locate to /usr/tmp which works fine (changed
 in locate script) and there is no problems with diskspace here.

 the find awk command suggested earlier in this thread didn't give me a
 better clue about what's happening.

 Anyone have any other ideas what I can try to find out why locate fails?

 Thanks!
 Andy


 On Thu, Aug 23, 2012 at 6:24 AM, Michael Sierchio ku...@tenebras.comwrote:

 On Wed, Aug 22, 2012 at 7:17 PM, RW rwmailli...@googlemail.com wrote:

   tmpfs and swap md devices don't actually need swap. I don't seen any
   advantage in your way of creating an md device for /tmp.

 Then you don't understand. ;-)  The advantage of my approach is
 avoiding a kernel panic when writing to the tmpfs when you haven't
 pre-allocated all the filesystem space at creation time.  If that
 happens to matter to 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



___
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


/tmp filesystem full

2012-08-22 Thread Andy Wodfer
Hi,
I have about 500MB in my /tmp and it seems to be too small when the
periodic LOCATE script runs every week.

What's the best way to increase the size of /tmp ? Could I simply remove it
and create a symbolic link ln -s to say /usr/tmp instead (where I have
several hundred GBs free)?

PS! This is on a live server and I would like to keep downtime and problems
to a minimum. :-)

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


Re: /tmp filesystem full

2012-08-22 Thread Andy Wodfer
Thanks to all for your input!

Editing /etc/periodic.rc seem to do the trick, but now I faced a different
problem which I've never seen before:

locate: integer out of +-MAXPATHLEN (1024): 1029


There are some directories that contains A LOT of small files I think. Need
to investigate.

Also thanks for the tip on omitting parts of the filesystem. Perhaps I need
to do that.

/Andreas


On Wed, Aug 22, 2012 at 1:56 PM, Michael Ross g...@ross.cx wrote:

 On Wed, 22 Aug 2012 12:59:13 +0200, Andy Wodfer wod...@gmail.com wrote:

  Hi,
 I have about 500MB in my /tmp and it seems to be too small when the
 periodic LOCATE script runs every week.

 What's the best way to increase the size of /tmp ? Could I simply remove
 it
 and create a symbolic link ln -s to say /usr/tmp instead (where I have
 several hundred GBs free)?

 PS! This is on a live server and I would like to keep downtime and
 problems
 to a minimum. :-)

 Cheers,
 Andy


 If it's just locate.updatedb filling it up temporarily,
 perhaps you can solve this by ommitting part of your filesystem from the
 locate index.

 See /etc/locate.rc


 Regards,

 Michael

___
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: /tmp filesystem full

2012-08-22 Thread Andy Wodfer
How can I find which directories break the MAXPATHLEN variable?

or can I somehow run the periodic script in verbose mode to see the output?

/Andy

On Wed, Aug 22, 2012 at 2:04 PM, Andy Wodfer wod...@gmail.com wrote:

 Thanks to all for your input!

 Editing /etc/periodic.rc seem to do the trick, but now I faced a different
 problem which I've never seen before:

 locate: integer out of +-MAXPATHLEN (1024): 1029


 There are some directories that contains A LOT of small files I think.
 Need to investigate.

 Also thanks for the tip on omitting parts of the filesystem. Perhaps I
 need to do that.

 /Andy



 On Wed, Aug 22, 2012 at 1:56 PM, Michael Ross g...@ross.cx wrote:

 On Wed, 22 Aug 2012 12:59:13 +0200, Andy Wodfer wod...@gmail.com wrote:

  Hi,
 I have about 500MB in my /tmp and it seems to be too small when the
 periodic LOCATE script runs every week.

 What's the best way to increase the size of /tmp ? Could I simply remove
 it
 and create a symbolic link ln -s to say /usr/tmp instead (where I have
 several hundred GBs free)?

 PS! This is on a live server and I would like to keep downtime and
 problems
 to a minimum. :-)

 Cheers,
 Andy


 If it's just locate.updatedb filling it up temporarily,
 perhaps you can solve this by ommitting part of your filesystem from the
 locate index.

 See /etc/locate.rc


 Regards,

 Michael



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


Help compiling ffmpeg from source

2012-02-29 Thread Andy Wodfer
I'm on FreeBSD 8.2 STABLE (AMD64).

I need to install the latest ffmpeg 0.10, but it fails when compiling. I
must admit I very rarely do it this way. Normally all software is installed
from ports, but I couldn't find this version of ffmpeg there.

Heres what I do:

./configure
gmake

and the problem looks like this:

[snip]
/var/tmp//ccKzWhb0.s:26921: Error: `ff_h264_norm_shift(%r10d)' is not a
valid 64 bit base/index expression
/var/tmp//ccKzWhb0.s:26923: Error: `ff_h264_mlps_state+128(%edi)' is not a
valid 64 bit base/index expression
/var/tmp//ccKzWhb0.s:26931: Error: `-1(%r9d)' is not a valid 64 bit
base/index expression
/var/tmp//ccKzWhb0.s:26936: Error: `ff_h264_norm_shift(%ecx)' is not a
valid 64 bit base/index expression
/var/tmp//ccKzWhb0.s:27045: Error: `ff_h264_lps_range(%r9d,%r12d,2)' is not
a valid 64 bit base/index expression
/var/tmp//ccKzWhb0.s:27055: Error: `ff_h264_norm_shift(%r12d)' is not a
valid 64 bit base/index expression
/var/tmp//ccKzWhb0.s:27057: Error: `ff_h264_mlps_state+128(%r9d)' is not a
valid 64 bit base/index expression
/var/tmp//ccKzWhb0.s:27065: Error: `-1(%r11d)' is not a valid 64 bit
base/index expression
/var/tmp//ccKzWhb0.s:27070: Error: `ff_h264_norm_shift(%ecx)' is not a
valid 64 bit base/index expression
gmake: *** [libavcodec/h264_cabac.o] Error 1

Any idea what I can do to fix this?

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


Re: Help compiling ffmpeg from source

2012-02-29 Thread Andy Wodfer
On Wed, Feb 29, 2012 at 2:50 PM, Da Rock 
freebsd-questi...@herveybayaustralia.com.au wrote:

 On 02/29/12 23:48, Andy Wodfer wrote:

 I'm on FreeBSD 8.2 STABLE (AMD64).

 I need to install the latest ffmpeg 0.10, but it fails when compiling. I
 must admit I very rarely do it this way. Normally all software is
 installed
 from ports, but I couldn't find this version of ffmpeg there.

 Heres what I do:

 ./configure
 gmake

 and the problem looks like this:

 [snip]
 /var/tmp//ccKzWhb0.s:26921: Error: `ff_h264_norm_shift(%r10d)' is not a
 valid 64 bit base/index expression
 /var/tmp//ccKzWhb0.s:26923: Error: `ff_h264_mlps_state+128(%edi)' is not a
 valid 64 bit base/index expression
 /var/tmp//ccKzWhb0.s:26931: Error: `-1(%r9d)' is not a valid 64 bit
 base/index expression
 /var/tmp//ccKzWhb0.s:26936: Error: `ff_h264_norm_shift(%ecx)' is not a
 valid 64 bit base/index expression
 /var/tmp//ccKzWhb0.s:27045: Error: `ff_h264_lps_range(%r9d,%r12d,**2)'
 is not
 a valid 64 bit base/index expression
 /var/tmp//ccKzWhb0.s:27055: Error: `ff_h264_norm_shift(%r12d)' is not a
 valid 64 bit base/index expression
 /var/tmp//ccKzWhb0.s:27057: Error: `ff_h264_mlps_state+128(%r9d)' is not a
 valid 64 bit base/index expression
 /var/tmp//ccKzWhb0.s:27065: Error: `-1(%r11d)' is not a valid 64 bit
 base/index expression
 /var/tmp//ccKzWhb0.s:27070: Error: `ff_h264_norm_shift(%ecx)' is not a
 valid 64 bit base/index expression
 gmake: *** [libavcodec/h264_cabac.o] Error 1

 Thats right, I remember this one- really simple but will get you every
 time! You need a newer gcc version (probably 4.6 will get you out of
 trouble if I remember correctly).

 The port already sets this, it will only bite when you're working solo.


Ok - thanks!

I'm currently doing this:
http://www.freebsd.org/doc/en/articles/custom-gcc/article.html

I will report back on how it goes. :-)

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


Re: Help compiling ffmpeg from source

2012-02-29 Thread Andy Wodfer
On Wed, Feb 29, 2012 at 3:09 PM, Andy Wodfer wod...@gmail.com wrote:

 On Wed, Feb 29, 2012 at 2:50 PM, Da Rock 
 freebsd-questi...@herveybayaustralia.com.au wrote:

 On 02/29/12 23:48, Andy Wodfer wrote:

 I'm on FreeBSD 8.2 STABLE (AMD64).

 I need to install the latest ffmpeg 0.10, but it fails when compiling. I
 must admit I very rarely do it this way. Normally all software is
 installed
 from ports, but I couldn't find this version of ffmpeg there.

 Heres what I do:

 ./configure
 gmake

 and the problem looks like this:

 [snip]
 /var/tmp//ccKzWhb0.s:26921: Error: `ff_h264_norm_shift(%r10d)' is not a
 valid 64 bit base/index expression
 /var/tmp//ccKzWhb0.s:26923: Error: `ff_h264_mlps_state+128(%edi)' is not
 a
 valid 64 bit base/index expression
 /var/tmp//ccKzWhb0.s:26931: Error: `-1(%r9d)' is not a valid 64 bit
 base/index expression
 /var/tmp//ccKzWhb0.s:26936: Error: `ff_h264_norm_shift(%ecx)' is not a
 valid 64 bit base/index expression
 /var/tmp//ccKzWhb0.s:27045: Error: `ff_h264_lps_range(%r9d,%r12d,**2)'
 is not
 a valid 64 bit base/index expression
 /var/tmp//ccKzWhb0.s:27055: Error: `ff_h264_norm_shift(%r12d)' is not a
 valid 64 bit base/index expression
 /var/tmp//ccKzWhb0.s:27057: Error: `ff_h264_mlps_state+128(%r9d)' is not
 a
 valid 64 bit base/index expression
 /var/tmp//ccKzWhb0.s:27065: Error: `-1(%r11d)' is not a valid 64 bit
 base/index expression
 /var/tmp//ccKzWhb0.s:27070: Error: `ff_h264_norm_shift(%ecx)' is not a
 valid 64 bit base/index expression
 gmake: *** [libavcodec/h264_cabac.o] Error 1

 Thats right, I remember this one- really simple but will get you every
 time! You need a newer gcc version (probably 4.6 will get you out of
 trouble if I remember correctly).

 The port already sets this, it will only bite when you're working solo.


 Ok - thanks!

 I'm currently doing this:
 http://www.freebsd.org/doc/en/articles/custom-gcc/article.html

 I will report back on how it goes. :-)

 Cheers,
 Andy


So, I updated gmake to 3.82 from ports and installed gcc47 from ports. I
updated /etc/make.conf as described here:
http://www.freebsd.org/doc/en/articles/custom-gcc/article.html

However, I don't have a libmap file so I skipped this one and the other
ones below in the article.

Here's some outputs:

# gmake -v
GNU Make 3.82
Built for amd64-portbld-freebsd8.2
Copyright (C) 2010  Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html

This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

# gcc -v
Using built-in specs.
Target: amd64-undermydesk-freebsd
Configured with: FreeBSD/amd64 system compiler
Thread model: posix
gcc version 4.2.2 20070831 prerelease [FreeBSD]

How do I tell the system to use gcc47 instead of 4.2.2 (if that's what
causes the problems)?

Compiling ffmpeg from source still failes on the same line as in my orginal
post.

Thanks a lot for any pointers that will help me resolve this. :-)

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


Re: Help compiling ffmpeg from source

2012-02-29 Thread Andy Wodfer
On Wed, Feb 29, 2012 at 9:20 PM, Waitman Gobble gobble...@gmail.com wrote:


 On Feb 29, 2012 12:10 PM, Andy Wodfer wod...@gmail.com wrote:
 
  On Wed, Feb 29, 2012 at 3:09 PM, Andy Wodfer wod...@gmail.com wrote:
 
   On Wed, Feb 29, 2012 at 2:50 PM, Da Rock 
   freebsd-questi...@herveybayaustralia.com.au wrote:
  
   On 02/29/12 23:48, Andy Wodfer wrote:
  
   I'm on FreeBSD 8.2 STABLE (AMD64).
  
   I need to install the latest ffmpeg 0.10, but it fails when
 compiling. I
   must admit I very rarely do it this way. Normally all software is
   installed
   from ports, but I couldn't find this version of ffmpeg there.
  
   Heres what I do:
  
   ./configure
   gmake
  
   and the problem looks like this:
  
   [snip]
   /var/tmp//ccKzWhb0.s:26921: Error: `ff_h264_norm_shift(%r10d)' is
 not a
   valid 64 bit base/index expression
   /var/tmp//ccKzWhb0.s:26923: Error: `ff_h264_mlps_state+128(%edi)' is
 not
   a
   valid 64 bit base/index expression
   /var/tmp//ccKzWhb0.s:26931: Error: `-1(%r9d)' is not a valid 64 bit
   base/index expression
   /var/tmp//ccKzWhb0.s:26936: Error: `ff_h264_norm_shift(%ecx)' is not
 a
   valid 64 bit base/index expression
   /var/tmp//ccKzWhb0.s:27045: Error:
 `ff_h264_lps_range(%r9d,%r12d,**2)'

   is not
   a valid 64 bit base/index expression
   /var/tmp//ccKzWhb0.s:27055: Error: `ff_h264_norm_shift(%r12d)' is
 not a
   valid 64 bit base/index expression
   /var/tmp//ccKzWhb0.s:27057: Error: `ff_h264_mlps_state+128(%r9d)' is
 not
   a
   valid 64 bit base/index expression
   /var/tmp//ccKzWhb0.s:27065: Error: `-1(%r11d)' is not a valid 64 bit
   base/index expression
   /var/tmp//ccKzWhb0.s:27070: Error: `ff_h264_norm_shift(%ecx)' is not
 a
   valid 64 bit base/index expression
   gmake: *** [libavcodec/h264_cabac.o] Error 1
  
   Thats right, I remember this one- really simple but will get you every
   time! You need a newer gcc version (probably 4.6 will get you out of
   trouble if I remember correctly).
  
   The port already sets this, it will only bite when you're working
 solo.
  
  
   Ok - thanks!
  
   I'm currently doing this:
   http://www.freebsd.org/doc/en/articles/custom-gcc/article.html
  
   I will report back on how it goes. :-)
  
   Cheers,
   Andy
  
 
  So, I updated gmake to 3.82 from ports and installed gcc47 from ports. I
  updated /etc/make.conf as described here:
  http://www.freebsd.org/doc/en/articles/custom-gcc/article.html
 
  However, I don't have a libmap file so I skipped this one and the other
  ones below in the article.
 
  Here's some outputs:
 
  # gmake -v
  GNU Make 3.82
  Built for amd64-portbld-freebsd8.2
  Copyright (C) 2010  Free Software Foundation, Inc.
  License GPLv3+: GNU GPL version 3 or later 
 http://gnu.org/licenses/gpl.html
  
  This is free software: you are free to change and redistribute it.
  There is NO WARRANTY, to the extent permitted by law.
 
  # gcc -v
  Using built-in specs.
  Target: amd64-undermydesk-freebsd
  Configured with: FreeBSD/amd64 system compiler
  Thread model: posix
  gcc version 4.2.2 20070831 prerelease [FreeBSD]
 
  How do I tell the system to use gcc47 instead of 4.2.2 (if that's what
  causes the problems)?
 
  Compiling ffmpeg from source still failes on the same line as in my
 orginal
  post.
 
  Thanks a lot for any pointers that will help me resolve this. :-)
 
  All the best,
  Andy
  ___
  freebsd-questions@freebsd.org mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-questions
  To unsubscribe, send any mail to 
 freebsd-questions-unsubscr...@freebsd.org

 is there a gcc47 or maybe a typo?

 should be
 # export CC=gcc46
 or
 # setenv CC gcc46

 if building from source

 --
 Waitman Gobble
 San Jose California USA


Yes, gcc47 was out a few days ago.

So, I'm making some progress.

I now export CC=gcc47

and by adding this ./configure --extra-cflags=-DBROKEN_RELOCATIONS (what
does this mean/do???)

I'm able to get past the h264 compile fail.

However, I now stop at vp5 with the following message:

CC  libavcodec/vp5.o
/var/tmp//ccmvakth.s: Assembler messages:
/var/tmp//ccmvakth.s:323: Error: `(%r8d,%eax)' is not a valid 64 bit
base/index expression
/var/tmp//ccmvakth.s:436: Error: `(%r8d,%eax)' is not a valid 64 bit
base/index expression
/var/tmp//ccmvakth.s:548: Error: `(%r8d,%eax)' is not a valid 64 bit
base/index expression
/var/tmp//ccmvakth.s:669: Error: `(%r8d,%eax)' is not a valid 64 bit
base/index expression
/var/tmp//ccmvakth.s:920: Error: `(%r8d,%eax)' is not a valid 64 bit
base/index expression
/var/tmp//ccmvakth.s:1136: Error: `(%r8d,%eax)' is not a valid 64 bit
base/index expression
/var/tmp//ccmvakth.s:1422: Error: `(%r8d,%eax)' is not a valid 64 bit
base/index expression
/var/tmp//ccmvakth.s:1531: Error: `(%r8d,%eax)' is not a valid 64 bit
base/index expression
/var/tmp//ccmvakth.s:1826: Error: `(%r8d,%eax)' is not a valid 64 bit
base/index expression
/var/tmp//ccmvakth.s:1923: Error: `(%esi,%edx

Re: Help compiling ffmpeg from source

2012-02-29 Thread Andy Wodfer
On Wed, Feb 29, 2012 at 9:46 PM, Waitman Gobble gobble...@gmail.com wrote:



 On Wed, Feb 29, 2012 at 12:37 PM, Andy Wodfer wod...@gmail.com wrote:

 On Wed, Feb 29, 2012 at 9:20 PM, Waitman Gobble gobble...@gmail.com
 wrote:

 
  On Feb 29, 2012 12:10 PM, Andy Wodfer wod...@gmail.com wrote:
  
   On Wed, Feb 29, 2012 at 3:09 PM, Andy Wodfer wod...@gmail.com
 wrote:
  
On Wed, Feb 29, 2012 at 2:50 PM, Da Rock 
freebsd-questi...@herveybayaustralia.com.au wrote:
   
On 02/29/12 23:48, Andy Wodfer wrote:
   
I'm on FreeBSD 8.2 STABLE (AMD64).
   
I need to install the latest ffmpeg 0.10, but it fails when
  compiling. I
must admit I very rarely do it this way. Normally all software is
installed
from ports, but I couldn't find this version of ffmpeg there.
   
Heres what I do:
   
./configure
gmake
   
and the problem looks like this:
   
[snip]
/var/tmp//ccKzWhb0.s:26921: Error: `ff_h264_norm_shift(%r10d)' is
  not a
valid 64 bit base/index expression
/var/tmp//ccKzWhb0.s:26923: Error: `ff_h264_mlps_state+128(%edi)'
 is
  not
a
valid 64 bit base/index expression
/var/tmp//ccKzWhb0.s:26931: Error: `-1(%r9d)' is not a valid 64
 bit
base/index expression
/var/tmp//ccKzWhb0.s:26936: Error: `ff_h264_norm_shift(%ecx)' is
 not
  a
valid 64 bit base/index expression
/var/tmp//ccKzWhb0.s:27045: Error:
  `ff_h264_lps_range(%r9d,%r12d,**2)'
 
is not
a valid 64 bit base/index expression
/var/tmp//ccKzWhb0.s:27055: Error: `ff_h264_norm_shift(%r12d)' is
  not a
valid 64 bit base/index expression
/var/tmp//ccKzWhb0.s:27057: Error: `ff_h264_mlps_state+128(%r9d)'
 is
  not
a
valid 64 bit base/index expression
/var/tmp//ccKzWhb0.s:27065: Error: `-1(%r11d)' is not a valid 64
 bit
base/index expression
/var/tmp//ccKzWhb0.s:27070: Error: `ff_h264_norm_shift(%ecx)' is
 not
  a
valid 64 bit base/index expression
gmake: *** [libavcodec/h264_cabac.o] Error 1
   
Thats right, I remember this one- really simple but will get you
 every
time! You need a newer gcc version (probably 4.6 will get you out
 of
trouble if I remember correctly).
   
The port already sets this, it will only bite when you're working
  solo.
   
   
Ok - thanks!
   
I'm currently doing this:
http://www.freebsd.org/doc/en/articles/custom-gcc/article.html
   
I will report back on how it goes. :-)
   
Cheers,
Andy
   
  
   So, I updated gmake to 3.82 from ports and installed gcc47 from
 ports. I
   updated /etc/make.conf as described here:
   http://www.freebsd.org/doc/en/articles/custom-gcc/article.html
  
   However, I don't have a libmap file so I skipped this one and the
 other
   ones below in the article.
  
   Here's some outputs:
  
   # gmake -v
   GNU Make 3.82
   Built for amd64-portbld-freebsd8.2
   Copyright (C) 2010  Free Software Foundation, Inc.
   License GPLv3+: GNU GPL version 3 or later 
  http://gnu.org/licenses/gpl.html
   
   This is free software: you are free to change and redistribute it.
   There is NO WARRANTY, to the extent permitted by law.
  
   # gcc -v
   Using built-in specs.
   Target: amd64-undermydesk-freebsd
   Configured with: FreeBSD/amd64 system compiler
   Thread model: posix
   gcc version 4.2.2 20070831 prerelease [FreeBSD]
  
   How do I tell the system to use gcc47 instead of 4.2.2 (if that's what
   causes the problems)?
  
   Compiling ffmpeg from source still failes on the same line as in my
  orginal
   post.
  
   Thanks a lot for any pointers that will help me resolve this. :-)
  
   All the best,
   Andy
   ___
   freebsd-questions@freebsd.org mailing list
   http://lists.freebsd.org/mailman/listinfo/freebsd-questions
   To unsubscribe, send any mail to 
  freebsd-questions-unsubscr...@freebsd.org
 
  is there a gcc47 or maybe a typo?
 
  should be
  # export CC=gcc46
  or
  # setenv CC gcc46
 
  if building from source
 
  --
  Waitman Gobble
  San Jose California USA
 

 Yes, gcc47 was out a few days ago.

 So, I'm making some progress.

 I now export CC=gcc47

 and by adding this ./configure --extra-cflags=-DBROKEN_RELOCATIONS (what
 does this mean/do???)

 I'm able to get past the h264 compile fail.

 However, I now stop at vp5 with the following message:

 CC  libavcodec/vp5.o
 /var/tmp//ccmvakth.s: Assembler messages:
 /var/tmp//ccmvakth.s:323: Error: `(%r8d,%eax)' is not a valid 64 bit
 base/index expression
 /var/tmp//ccmvakth.s:436: Error: `(%r8d,%eax)' is not a valid 64 bit
 base/index expression
 /var/tmp//ccmvakth.s:548: Error: `(%r8d,%eax)' is not a valid 64 bit
 base/index expression
 /var/tmp//ccmvakth.s:669: Error: `(%r8d,%eax)' is not a valid 64 bit
 base/index expression
 /var/tmp//ccmvakth.s:920: Error: `(%r8d,%eax)' is not a valid 64 bit
 base/index expression
 /var/tmp//ccmvakth.s:1136: Error: `(%r8d,%eax)' is not a valid 64 bit
 base/index expression
 /var/tmp

Help! Drive failing in zpool

2012-02-16 Thread Andy Wodfer
I have a drive failing and it's a member of a zpool. Since I don't deal
with these things every day I thought I ask for some help... :-)

I've already ordered a new drive which will arrive shortly, but I was
wondering if someone could guide me through the process of taking out a
drive of the pool and replacing it with a new one and keep all the data
intact?

Ie.

- put drive in offline mode
- remove drive
- insert new drive
- whatever needs to set it up
- add it to the zpool
run

Btw, rebooting this server is not a problem if needed.

Here are some system details btw:

FreeBSD 8.2-STABLE #2: Fri Jun 17 21:00:35 CEST 2011
root@server:/usr/obj/usr/src/sys/SERVER
amd64

ad1: FAILURE - READ_DMA48 status=51READY,DSC,ERROR
error=40UNCORRECTABLE LBA=281451125
ad1: FAILURE - READ_DMA48 status=51READY,DSC,ERROR
error=40UNCORRECTABLE LBA=281453348
ad1: FAILURE - READ_DMA48 status=51READY,DSC,ERROR
error=40UNCORRECTABLE LBA=288837128

# zpool status -v
  pool: files
 state: ONLINE
 scan: scrub repaired 33.8M in 3h24m with 0 errors on Wed Feb 15 12:30:27
2012
config:

NAMESTATE READ WRITE CKSUM
files   ONLINE   0 0 0
  raidz1-0  ONLINE   0 0 0
ad0 ONLINE   0 0 0
ad1 ONLINE   0 0 0
ad2 ONLINE   0 0 0
ad3 ONLINE   0 0 0

errors: No known data errors

Thanks for any help!!!

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


Help! Can't delete files ...

2011-10-19 Thread Andy Wodfer
A client has uploaded several files through a CMS and these files contain
Norwegian letters (I think). Æ Ø and Å.

I need to delete about 20 files, but I can't do it through the CMS nor by
command line on this FreeBSD 8.1 STABLE server. There's something with the
character encoding/keyboard or server setup I think.

Please advice.

This is what a file looks like when I ls:

28b Kjoepesenter n?ringsg?rdeier.docx

ls | more:

28b Kjoepesenter n91ringsg86rdeier.docx

If I try:

# rm 28b Kjoepesenter n91ringsg86rdeier.docx
Ambiguous input redirect

...

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


Re: Help! Can't delete files ...

2011-10-19 Thread Andy Wodfer
On Wed, Oct 19, 2011 at 9:04 PM, Robert Bonomi bon...@mail.r-bonomi.comwrote:

 A) learn to use wildcards.


I know how to use wildcards, but I forgot to tell in my first email that
there are 4 files that have almost the same filenames, so I couldn't do it
this way.


 B) learn to use the '-i' option to rm
 C) learn to use 'echo' to 'test' filename expansions.


Thanks! Very useful info.

For your 'problem' files, put a  '?' in  anywhere there is a space or a
 'strange character'.  Check what happens using echo, then use 'rm -i', so
 you make sure that you delete *only* the particular file you intend to.

 e.g. for the specific file you cited above try:

   echo 28b?Kjoepesenter?n?ringsg?rdeier.docx

 *ASSUMING* that that shows;
   28b Kjoepesenter n91ringsg86rdeier.docx

 then try:
   rm -i 28b?Kjoepesenter?n?ringsg?rdeier.docx

 Assuming that  it asks yout about deleting the full file name, type a 'y'.

 Repeat for each 'problem' file.


Thanks a lot! That did it! :-)

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


Re: Going STABLE in 64bit

2011-06-17 Thread Andy Wodfer
On Thu, Jun 16, 2011 at 6:00 PM, Mike Tancsa m...@sentex.net wrote:

 On 6/16/2011 11:49 AM, Andy Wodfer wrote:
  Hi, I'm running 8.2 REL. Are there any specific things to be aware of
 when compiling kernel and making world in 64bit? Required kernel modules
 etc?

 I sometimes forget that the kernel config is in
  cd /usr/src/sys/amd64/conf/
 and not
  cd /usr/src/sys/i386/conf/

 ... so I will be editing the wrong kernel config file, rebuilding, and
 not understanding why the changes are not reflected in my kernel as
 loaded.  But other than that and a little longer build times, all is
 pretty much the same

 Just to be clear, you have an existing 64bit 8.2 system you are just
 updating to stable right ?


Thanks for your email Mike!

Yes, my system is currently running in 64bit.

/Andreas
___
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


Going STABLE in 64bit

2011-06-16 Thread Andy Wodfer
Hi, I'm running 8.2 REL. Are there any specific things to be aware of when 
compiling kernel and making world in 64bit? Required kernel modules etc?

I've only done this in 32bit.

Thanks!
Andreas

---
Mvh/Rgds,
Andreas Wideroe andr...@wideroe.net

___
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


Urgent: Under attack - need tcpdrop help

2011-05-24 Thread Andy Wodfer
Hi,
One of my FreeBSD servers is currently being attacked (DDOS) and I'm
blocking IP addresses in my firewall. However, there are a large number of
hung tcp connections and I want them gone.

Can anyone help me with a script (command line) that can read a netstat -n
and tcpdrop all IP addresses that has more than 10 connections or a more
manual command where I can input an IP and it will drop all connections from
that IP regardless of port?

Thanks in advance!

Shell scripting isn't what I'm best at unfortunatly ...

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


Re: Urgent: Under attack - need tcpdrop help

2011-05-24 Thread Andy Wodfer
Thanks!
That would work on all my servers except this one .. which runs 6.3 STABLE
(due to some old services requiring old software).

Any other suggestions?

Thanks!

Andy


On Tue, May 24, 2011 at 10:42 PM, Greg Larkin glar...@freebsd.org wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 On 5/24/11 4:29 PM, Andy Wodfer wrote:
  Hi,
  One of my FreeBSD servers is currently being attacked (DDOS) and I'm
  blocking IP addresses in my firewall. However, there are a large number
 of
  hung tcp connections and I want them gone.
 
  Can anyone help me with a script (command line) that can read a netstat
 -n
  and tcpdrop all IP addresses that has more than 10 connections or a more
  manual command where I can input an IP and it will drop all connections
 from
  that IP regardless of port?
 
  Thanks in advance!
 
  Shell scripting isn't what I'm best at unfortunatly ...
 
  Andy

 Hi Andy,

 This will drop all connections to/from IP address 192.168.22.22:

 tcpdrop -l -a | grep 192.168.22.22 | sh

 Just substitute your desired IP address, and that will do the trick.

 Good luck,
 Greg
 - --
 Greg Larkin

 http://www.FreeBSD.org/   - The Power To Serve
 http://www.sourcehosting.net/ - Ready. Set. Code.
 http://twitter.com/cpucycle/  - Follow you, follow me
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.11 (Darwin)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

 iEYEARECAAYFAk3cGC8ACgkQ0sRouByUApBlvACfaOneJdIQGiNNo2FYbKJx3EI8
 w58AniK6ZolieHscRFWleR1CoofAtGe8
 =03TM
 -END PGP SIGNATURE-

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


Re: Urgent: Under attack - need tcpdrop help

2011-05-24 Thread Andy Wodfer
Thanks a lot! That was very helpful!

Things have calmed down now.

However, I was surprised to see how quick the tcp connections came back in
netstat. Have to take a closer look at my firewall I guess.

Cheers!
Andy

On Tue, May 24, 2011 at 11:00 PM, Greg Larkin glar...@freebsd.org wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 On 5/24/11 4:48 PM, Andy Wodfer wrote:
  Thanks!
  That would work on all my servers except this one .. which runs 6.3
 STABLE
  (due to some old services requiring old software).
 
  Any other suggestions?
 
  Thanks!
 
  Andy
 

 Ok, here goes:

 netstat -an | grep ^tcp | grep -v LISTEN | awk '{ print $5 }' | egrep -v
 '^(172\.16|192\.168|127\.0)' | cut -f1-4 -d\. | awk '{ a[$1]++ } END {
 for (i in a) { if (a[i]  10) { print i; } } }' | xargs -n1 -I % sh -c
 'sockstat -c | grep %' | awk '{ print $6   $7 }' | sed -e 's/:/ /g' -e
 's/^/tcpdrop /'

 Paste that all on one line, and it should print (but not execute!)
 tcpdrop commands for IPs that have more than 10 connections to your
 server.  The commands will work on 6.x and later versions of the OS,
 since it doesn't use tcpdrop -l -a.

 If you like the output and want to actually run the tcpdrop commands,
 add | sh to the end of the pipeline.

 YMMV, because I didn't actually execute the commands. I just printed the
 tcpdrop commands, and they looked good.

 Good luck,
 Greg

 
  On Tue, May 24, 2011 at 10:42 PM, Greg Larkin glar...@freebsd.org
 wrote:
 
  On 5/24/11 4:29 PM, Andy Wodfer wrote:
  Hi,
  One of my FreeBSD servers is currently being attacked (DDOS) and I'm
  blocking IP addresses in my firewall. However, there are a large
 number
  of
  hung tcp connections and I want them gone.
 
  Can anyone help me with a script (command line) that can read a
 netstat
  -n
  and tcpdrop all IP addresses that has more than 10 connections or a
 more
  manual command where I can input an IP and it will drop all
 connections
  from
  that IP regardless of port?
 
  Thanks in advance!
 
  Shell scripting isn't what I'm best at unfortunatly ...
 
  Andy
 
  Hi Andy,
 
  This will drop all connections to/from IP address 192.168.22.22:
 
  tcpdrop -l -a | grep 192.168.22.22 | sh
 
  Just substitute your desired IP address, and that will do the trick.
 
  Good luck,
  Greg
 
  ___
  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

 - --
 Greg Larkin

 http://www.FreeBSD.org/   - The Power To Serve
 http://www.sourcehosting.net/ - Ready. Set. Code.
 http://twitter.com/cpucycle/  - Follow you, follow me
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.11 (Darwin)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

 iEYEARECAAYFAk3cHIkACgkQ0sRouByUApDFdQCgtAPatfLnJP7/r2d/OBhy/P9T
 VJsAn3mWXgqG4GTa9GzuUuH2pDm4JPbz
 =27Nl
 -END PGP SIGNATURE-

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


Installing .bin file?

2011-05-12 Thread Andy Wodfer
On one of my old servers I'm running FreeBSD 6.3 and I'm having some disk
problems. The raid card is a Promise TX4310 and I'd like to install Webpam
(
http://firstweb.promise.com/support/download/download2_eng.asp?productId=136category=utilityos=100go=GO)
to swap + rebuild two broken disks and to have an overview via a webgui.

So, I download *WebPAM for
FreeBSD*http://firstweb.promise.com/upload/Support/Utility/freebsd_Webpam.rar,
unrar it and find a .bin file inside.

How do I install a .bin file on FreeBSD? I'm used to makefiles etc.

Thanks for any help!

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


X-Authentication-Warning (FreeBSD 8.1 STABLE)

2011-02-25 Thread Andy Wodfer
Hi,
A client is sending out a newsletter and I'm trying to set the FreeBSD
server user (www) to be trusted so that I don't get this warning in the
message header:

X-Authentication-Warning: host.domain.net: www set sender to
post@domain.netusing -f

I assume this is to be set in the sendmail.cf file (Twww), but on my FreeBSD
8.1 STABLE I have both a sendmail.cf and a freebsd.cf aswell as a
freebsd.submit.cf. I haven't played around with sendmail for a couple of
years, but I also seem to remember that you don't just edit the .cf file,
but infact edit the mc file and compile, install and restart?

Can someone please guide me through here?

PS! I'm the only login user on this system, but are there security issues
related to this that I should be concerned with?

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


How to forward old root mails to an external email address?

2011-02-19 Thread Andy Wodfer
Hi all!

I'm running FreeBSD 8.0 Release on this particular server and I have a
rather large root mailbox under /var/mail/root.

I have set up an alias under /etc/aliases for new emails, but I need to
forward all the old emails in this mailbox to an external email address.

How can I do that?

Thanks for your help!
Andreas
___
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 forward old root mails to an external email address?

2011-02-19 Thread Andy Wodfer
On Sat, Feb 19, 2011 at 10:24 PM, Daniel Staal dst...@usa.net wrote:

 --As of February 19, 2011 9:33:26 PM +0100, Andy Wodfer is alleged to have
 said:

  'm running FreeBSD 8.0 Release on this particular server and I have a
 rather large root mailbox under /var/mail/root.

 I have set up an alias under /etc/aliases for new emails, but I need to
 forward all the old emails in this mailbox to an external email address.

 How can I do that?


 --As for the rest, it is mine.

 Easiest way I know of is to set up a procmail rule to forward everything to
 the external address, then feed the old mailbox to procmail via formail.

 = .procmailrc:
 :0
 ! n...@example.com

   Command line:
 cat /var/mail/root | formail -s procmail


Hi Daniel and thanks for your reply!

I already tried something similare, but I keep getting command not found for
formail. I was hoping there was a way of doing this without installing
additional software - just use what comes with a default FreeBSD
installation.

Cheers,
Andreas
___
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 forward old root mails to an external email address?

2011-02-19 Thread Andy Wodfer
On Sat, Feb 19, 2011 at 11:14 PM, RW rwmailli...@googlemail.com wrote:

 On Sat, 19 Feb 2011 22:39:59 +0100
 Andy Wodfer wod...@gmail.com wrote:

  I already tried something similare, but I keep getting command not
  found for formail. I was hoping there was a way of doing this without
  installing additional software - just use what comes with a default
  FreeBSD installation.

 formail is installed as part of the procmail package. Check for typos
 and that PATH is set correctly.


Cool. Procmail is now installed, but the procmail.rc file, should that be
placed under root's home folder ie /root/procmail.rc or another user? I
assume root since Daniel's command doesn't specify any users?

That would mean I'm logged in as root, run the command, formail sends all
mails to procmail which sees the alias in procmail rc and sends the mails
out? Correct?

Cheers,
Andreas
___
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 and large harddrives

2010-11-19 Thread Andy Wodfer
Thanks a lot to all who responded to my post.

I have learned lots here. Too bad I have to find another use for my 4 x 2TB
green WDC drives I have laying around. Anyways - they'll probably end up as
a temp/work drive on a few Windows stations.

Btw. will these drive work better in a ZFS pool/tank (not connected to a
raid card)? I have noticed on my FreeNAS server that you can group several
drives together into one large ZFS drive.

So my conclusion is so far: I'm going to go for the 64bit version of FreeBSD
and use ZFS (mainly due to error correction), but perhaps UFS for the OS. I
will use a Raid controller (probably the RocketRaid 2640x1 which I have
here, but may also consider getting a new 3ware card with battery backup),
get the largest Raid Edition drives (need to order them) and use a separate
Raid 1 for the OS (or worst case simply a SATA connector on the motherboard
and backup this often) and a Raid 5 for the file storage area.

Again - thanks a lot for all your help! Very appreciated!

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


Re: FreeBSD and large harddrives

2010-11-19 Thread Andy Wodfer
On Fri, Nov 19, 2010 at 9:30 AM, Peter fb...@peterk.org wrote:

 I tend to stay away from raid cards.  With ZFS pools all you need is ZFS
 and any OS [easily move drives around servers], vs. raid cards have to be
 the same if moving/replacing/card fails.

 With 'ZFS: do not give it all your HDD'
 [ http://www.freebsddiary.org/zfs-with-gpart.php ]
 You don't even need to have drives that are exactly the same.

 Completely not tied to any hardware


Wow! I'm learning more and more and I'm really beginning to like ZFS!

Question: What happens if 1 drive out of say 4 fails in a pool? And what
about hotswapping a (faulty) drive? Is this still possible with ZFS? Can I
actually replace a Raid 5 setup with a ZFS settup and have the same data
security if drives fail?'

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


FreeBSD and large harddrives

2010-11-18 Thread Andy Wodfer
Hi,
I'm going to build a server that's intended to store uncompressed videofiles
(where 1 hour film equals about 500GB). I plan on using Western Digital 2TB
or 3TB SATA harddrives.  Total storage in version 1 of this server will
probably be 8-12 TB. Harddrive speed is not so important so a 5400rpm drive
would be OK. Seems like the green line of WD harddrives use both 5400rpm and
7200rpm. I will use RAID 5.

The processor will be a 64bit capable Intel processor and I plan on using a
Highpoint Rocketraid or 3ware Raid controller.

So now my questions:

1. Which FreeBSD version should I install? (it must support large drives).
I'm currently using the standard FreeBSD 8.1 (STABLE) on several servers,
but this is a 32bit version, right? I suppose I need a 64bit version when I
use large harddrives?

2. I know that the 3ware Raid controller supports larger drives than 2TB (or
was it 1TB?). The Highpoint controller I'm not so sure of, but I've had good
experience with these on a few Windows servers and on one FreeBSD server. My
setup would be to use the entire disk for both operating system and
filestorage (in version 1). How can I create this huge partition/slice? I
don't think the installer (atleast on the standard FreeBSD version) supports
these large drives?

Thanks for your help. I might have follow-up questions as my project make
progress.

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


Re: FreeBSD and large harddrives

2010-11-18 Thread Andy Wodfer
 [snip]

  1. Which FreeBSD version should I install? (it must support large
 drives).
  I'm currently using the standard FreeBSD 8.1 (STABLE) on several servers,
  but this is a 32bit version, right? I suppose I need a 64bit version when
 I
  use large harddrives?

 Freebsd has been 64 bit for a long time. It supports multiple
 architectures. You want amd64 (yes, even on an intel 64bit)


Thanks! I didn't know I could use amd64 on Intel servers. Then my next
questions will be: How about the ports collection - does the 64bit version
have most of the ports? I need ffmpeg, php, apache, mysql, imagemagick,
ghostscript, exiftools and a few more small ones.


 
  2. I know that the 3ware Raid controller supports larger drives than 2TB
 (or
  was it 1TB?). The Highpoint controller I'm not so sure of, but I've had
 good
  experience with these on a few Windows servers and on one FreeBSD server.
 My
  setup would be to use the entire disk for both operating system and
  filestorage (in version 1). How can I create this huge partition/slice? I
  don't think the installer (atleast on the standard FreeBSD version)
 supports
  these large drives?
 

 You can use vinum or ZFS.

Excellent. I'm using ZFS on a FreeNAS installation. Is ZFS still considered
experimental on FreeBSD or is it now production ready? What tool or command
is used to partition/format/create a large ZFS drive?

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


Undefined symbol php_pcre_exec

2010-10-29 Thread Andy Wodfer
Hi FreeBSD-Questions-readers,
This question is not exactly FreeBSD, but since I'm running FreeBSD 8.0
RELEASE on this server I was hoping this community would be able to give me
some help.

I'm trying to install the latest version (3.8.2144) of ResourceSpace (
http://www.resourcespace.org/ - open source digital assets management)  on a
FreeBSD 8.0 server running the latetst version of Apache 2.2.16, PHP5.3.3
and mysql 5.1.45.

On the first installation html page (/pages/setup.php) I fill inn all the
fields (database user, name, host and path to binaries etc) and click Begin
installation. This is as far as I get.

In Firefox I get a download window asking me to save or open setup.php, in
Safari I get an error message and in IE I get IE cannot display this page
error.

So I begin to dig... Tried several databases/user/passwords, with or without
paths to binaries, but still the same problem. So I check my http error log
and I notice that every time I click Begin installation I get a line with
this in my logfile:

My http error log shows this line every time I click Begin installation:
/libexec/ld-elf.so.1: /usr/local/lib/php/20090626/filter.so: Undefined
symbol php_pcre_exec

So I thought maybe my PHP installation is broken or I have missed some
modules. Tried reinstalling (with make rmconfig first), I even installed all
modules and did the same with Apache - several times. Problem still there.

So I start search for an answer and a Google search comes up with a
reference to /usr/ports/UPDATING where it says something like php_pcre is
from version 5.x now a part of the php core and can't be installed alone as
an
additional package to PHP. Could this have anything to do with my problems?

I'm running out of ideas here and I was hoping someone could help me out or
give me some pointers..

Thanks a lot!

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


Re: Undefined symbol php_pcre_exec

2010-10-29 Thread Andy Wodfer
On Fri, Oct 29, 2010 at 8:17 PM, Armin Pirkovitsch ar...@frozen-zone.orgwrote:

 I'd try
 `pkg_info -W /usr/local/lib/php/20090626/filter.so`
 to determine which port is responsible for that file - however it sounds
 imho quiet old. (I'd say it comes from security/php5-filter)

 My guess would be that it is a leftover from some older not properly
 removed library/program which now causes problems.


You were right!!! Thanks a lot!!!

I had version 5.3.2 on my system and the latest version in my ports was
5.3.3. An upgrade too care of the problem. Now I'm heading forward to fight
new problems (or challenges if you like)! ;-)

Thanks again and best regards,

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


Re: Resin 3.1.9, Apache 2.2.16 and mod_caucho?

2010-10-20 Thread Andy Wodfer
Got mod_caucho.so installed. The makefile only refers to Apache 20 while I am 
running 22. I changed the path in the Makefile to /usr/ports/www/apache22 and 
the compile arg to yes and it installed fine. Will test now.

Cheers,
Andy

---
Mvh/Rgds,
Andreas Wideroe andr...@wideroe.net


Den 14. okt. 2010 kl. 21:20 skrev Andy Wodfer wod...@gmail.com:

 On Thu, Oct 14, 2010 at 7:56 PM, Michael Powell nightre...@hotmail.com 
 wrote:
 Christer Solskogen wrote:
 
 [snip]
   Both Apache (port 80) and Resin3.1 (port 8080) runs fine alone.
  
 
  You probably have that module already installed. It comes with
  www/resin3 according to the Makefile.
 
 
  Don't think so. locate (updated) and find only shows these:
 
  ./tmp/caucho
  ./usr/local/resin3/webapps/resin-doc/WEB-INF/classes/com/caucho
  ./usr/local/resin3/webapps/resin-doc/WEB-INF/xsl/caucho
  ./usr/local/resin3/webapps/resin-doc/examples/amber-basic/WEB-
 INF/classes/com/caucho
 
 
  You might need to have apache[2|22] installed first.
 
 
 
 You do need Apache installed first as apxs is used to build the mod_caucho
 module. Install Apache by the ports system as you normally would. See the
 'Compiling mod_caucho.so' section here:
 
 http://www.caucho.com/resin-3.1/doc/install-apache.xtp
 
 If the configure script doesn't/can't find apxs automagically use the CLI
 switch and provide it with the location. It should be able to find it.
 
 Then config resin.conf and httpd.conf accordingly.
 
 Thanks Mike!
 
 Will try that and report back.
 
 Cheers,
 Andy 
 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Resin 3.1.9, Apache 2.2.16 and mod_caucho?

2010-10-14 Thread Andy Wodfer
Hi,
I'm trying to install Resin together with Apache and according to all
documentation I can find I'm supposed to compile the mod_caucho and include
this in the Apache httpd.conf,  but I can't find any reference to mod_caucho
in my ports, system or compile options.

Is the documentation outdated or can anyone give me some pointers as to how
I can make requests to Java sites go through Apache (using virtual hosts)?
Ie. http://caucho.com/resin-3.1/doc/install-apache.xtp

Both Apache (port 80) and Resin3.1 (port 8080) runs fine alone.

uname -a
FreeBSD domain.domain.net 8.0-RELEASE-p4 FreeBSD 8.0-RELEASE-p4 #0: Mon Jul
12 20:22:27 UTC 2010
r...@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC
i386

Cheers,
Andreas
___
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: Resin 3.1.9, Apache 2.2.16 and mod_caucho?

2010-10-14 Thread Andy Wodfer
On Thu, Oct 14, 2010 at 1:06 PM, Christer Solskogen 
christer.solsko...@gmail.com wrote:

 On Thu, Oct 14, 2010 at 10:16 AM, Andy Wodfer wod...@gmail.com wrote:
  Hi,
  I'm trying to install Resin together with Apache and according to all
  documentation I can find I'm supposed to compile the mod_caucho and
 include
  this in the Apache httpd.conf,  but I can't find any reference to
 mod_caucho
  in my ports, system or compile options.
 
  Is the documentation outdated or can anyone give me some pointers as to
 how
  I can make requests to Java sites go through Apache (using virtual
 hosts)?
  Ie. http://caucho.com/resin-3.1/doc/install-apache.xtp
 
  Both Apache (port 80) and Resin3.1 (port 8080) runs fine alone.
 

 You probably have that module already installed. It comes with
 www/resin3 according to the Makefile.


Don't think so. locate (updated) and find only shows these:

./tmp/caucho
./usr/local/resin3/webapps/resin-doc/WEB-INF/classes/com/caucho
./usr/local/resin3/webapps/resin-doc/WEB-INF/xsl/caucho
./usr/local/resin3/webapps/resin-doc/examples/amber-basic/WEB-INF/classes/com/caucho

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


Re: Resin 3.1.9, Apache 2.2.16 and mod_caucho?

2010-10-14 Thread Andy Wodfer
On Thu, Oct 14, 2010 at 6:11 PM, Christer Solskogen 
christer.solsko...@gmail.com wrote:

   Both Apache (port 80) and Resin3.1 (port 8080) runs fine alone.


 You might need to have apache[2|22] installed first.


Apache was installed first.

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


Re: [SOLVED] Trouble enabling GD in php/apache

2010-09-26 Thread Andy Wodfer
On Fri, Sep 24, 2010 at 1:52 PM, Andy Wodfer wod...@gmail.com wrote:

 I'm running FreeBSD 8.0 RELEASE.

 I can't get GD enabled. I have installed latestes php5 from ports aswell as
 php5-extensions and enabled GD on the option screen:

 cd /usr/ports/lang/php5
 make deinstall
 make clean
 make rmconfig
 make install clean

 cd /usr/ports/lang/php5-extensions
 make deinstall
 make clean
 make rmconfig
 make install clean

 I'm running the latest Apache 2.2.x version and GD 2.0.35.

 I'm currently doing a portupgrade -a to see if that helps, but I think not.

 What's the correct way of getting GD to work on Ie. a webshop (opencart)?

 Thanks for all help!

 Cheers,
 Andy


I solved my problem by manually deleting /usr/local/lib/php/20090626/gd.so
and reinstalling the php5-extensions.

/Andreas
___
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


Trouble enabling GD in php/apache

2010-09-24 Thread Andy Wodfer
I'm running FreeBSD 8.0 RELEASE.

I can't get GD enabled. I have installed latestes php5 from ports aswell as
php5-extensions and enabled GD on the option screen:

cd /usr/ports/lang/php5
make deinstall
make clean
make rmconfig
make install clean

cd /usr/ports/lang/php5-extensions
make deinstall
make clean
make rmconfig
make install clean

I'm running the latest Apache 2.2.x version and GD 2.0.35.

I'm currently doing a portupgrade -a to see if that helps, but I think not.

What's the correct way of getting GD to work on Ie. a webshop (opencart)?

Thanks for all help!

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


Re: Problem adding 1TB SATA disk to system

2010-09-24 Thread Andy Wodfer
On Sun, Sep 19, 2010 at 6:13 PM, freebsd-questions 
freebsd-questions@freebsd.org wrote:

 Dear Sir/Madam,

 Your email was unable reach the intended person that you were sending it
 to.
 For more information on our business please click on the following link:
 Click here for our website http://www.xpbargains.net
 We look forward to your continued business in the future.

 Regards,
 Webmaster

___
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: Problem adding 1TB SATA disk to system

2010-09-24 Thread Andy Wodfer
On Thu, Sep 16, 2010 at 6:17 PM, Michael Powell nightre...@hotmail.comwrote:

 Andy Wodfer wrote:

  I'm running FreeBSD 8.0 release (will upgrade to 8.1 STABLE tonight).
  However, I'm having big problems adding a new harddrive to the system. I
  want a separate 1TB SATA installed to recover backup files on, but when I
  add it I only get error messages:
 
  dmesg:
 
  ad2: 953869MB WDC WD1000FYPS-01ZKB0 02.01B01 at ata1-master SATA300
  GEOM: ad2: corrupt or invalid GPT detected.
  GEOM: ad2: GPT rejected -- may not be recoverable.
  GEOM: ufsid/4c80e66f50f43e15: corrupt or invalid GPT detected.
  GEOM: ufsid/4c80e66f50f43e15: GPT rejected -- may not be recoverable.
 
  I've tried label and fdisk, but I can't get it to work.
 
 [snip]

 I do not believe you can utilize fdisk and label for this. Since it appears
 there may be a possibility of a garbage MBR present this will wipe it:

 Boot a LiveFS CD, then at a root prompt do:

 sysctl kern.geom.debugflags=16  and:

 dd if=/dev/zero of=/dev/adx oseek=1 bs=512 count=1

 where x equals your drive number. This will zero out any old MBR.

 You will need to set this up with gpart instead of fdisk. More details in
 man gpart and possibly glabel. The devil is in the details, but this may be
 enough to get you pointed down the road.


I couldn't get it to work. My solution was to remove the 1TB drive and
install 2x500GB drives in a small RAID instead. Made life so much easier.
:-)

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


Re: Trouble enabling GD in php/apache

2010-09-24 Thread Andy Wodfer

 [snip]
 I had to install a new server and was surprised the extensions never
 loaded. However I knew from other installations that for example the gd
 extension should be in extensions.ini - I looked in there and it was
 absent. So what I had to do is to search for it. Before I did that, I
 had to run locate.updatedb as root. This showed gd.so to be in
 /usr/local/ports/graphics/php5-gd/work/php-5.3.3/ext/gd/modules/gd.so

 I copied that into /usr/local/lib/php/20090626/ and edited
 /usr/local/etc/php/extensions.ini with a line of extension=gd.so

 I had to do this with everything selected in php5-extensions, and then
 restart the webserver.


Hi John,
thanks for your input. In my case both extension.ini (gd.so line) and gd.so
in the /usr/local/lib/php/20090626 are present.

Any other ideas?

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


Re: Trouble enabling GD in php/apache

2010-09-24 Thread Andy Wodfer

 [snip]
 how bizarre. Does phpinfo() show gd? Sorry for the simple question, but
 it is inportant ;


No it doesn't. Here's the long output of phpinfo()

PHP Version 5.3.3

System FreeBSD webserver.domain.no 8.0-RELEASE FreeBSD 8.0-RELEASE #0:
Sat Nov 21 15:48:17 UTC 2009
r...@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC
i386
Build Date Sep 24 2010 13:07:36
Configure Command './configure' '--with-layout=GNU'
'--localstatedir=/var' '--with-config-file-scan-dir=/usr/local/etc/php'
'--disable-all' '--enable-libxml' '--with-libxml-dir=/usr/local'
'--with-pcre-regex=/usr/local' '--with-zlib-dir=/usr' '--program-prefix='
'--with-apxs2=/usr/local/sbin/apxs' '--with-regex=php' '--with-zend-vm=CALL'
'--disable-ipv6' '--prefix=/usr/local' '--mandir=/usr/local/man'
'--infodir=/usr/local/info/' '--build=i386-portbld-freebsd8.0'
Server API Apache 2.0 Handler
Virtual Directory Support disabled
Configuration File (php.ini) Path /usr/local/etc
Loaded Configuration File /usr/local/etc/php.ini
Scan this dir for additional .ini files /usr/local/etc/php
Additional .ini files parsed /usr/local/etc/php/extensions.ini
PHP API 20090626
PHP Extension 20090626
Zend Extension 220090626
Zend Extension Build API220090626,NTS
PHP Extension Build API20090626,NTS
Debug Build no
Thread Safety disabled
Zend Memory Manager enabled
Zend Multibyte Support disabled
IPv6 Support disabled
Registered PHP Streams php, file, glob, data, http, ftp, compress.bzip2,
https, ftps, compress.zlib, zip
Registered Stream Socket Transports tcp, udp, unix, udg, ssl, sslv3,
sslv2, tls
Registered Stream Filters string.rot13, string.toupper, string.tolower,
string.strip_tags, convert.*, consumed, dechunk, convert.iconv.*, bzip2.*,
zlib.*

Suhosin logo This server is protected with the Suhosin Patch 0.9.10
Copyright (c) 2006-2007 Hardened-PHP Project Copyright (c) 2007-2009
SektionEins GmbH

Zend logo This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies

PHP Credits
Configuration
apache2handler
Apache Version Apache/2.2.13 (FreeBSD) mod_ssl/2.2.13 OpenSSL/0.9.8k
DAV/2 PHP/5.3.3 with Suhosin-Patch
Apache API Version 20051115
Server Administrator a...@domain.no
Hostname:Port test.domain.no:0
User/Group www(80)/80
Max Requests Per Child: 400 - Keep Alive: on - Max Per Connection: 100
Timeouts Connection: 300 - Keep-Alive: 5
Virtual Server Yes
Server Root /usr/local/
Loaded Modules core prefork http_core mod_so mod_authn_file
mod_authn_dbm mod_authn_anon mod_authn_default mod_authn_alias
mod_authz_host mod_authz_groupfile mod_authz_user mod_authz_dbm
mod_authz_owner mod_authz_default mod_auth_basic mod_auth_digest
mod_file_cache mod_cache mod_disk_cache mod_dumpio mod_include mod_filter
mod_charset_lite mod_deflate mod_log_config mod_logio mod_env mod_mime_magic
mod_cern_meta mod_expires mod_headers mod_usertrack mod_unique_id
mod_setenvif mod_version mod_ssl mod_mime mod_dav mod_status mod_autoindex
mod_asis mod_info mod_cgi mod_dav_fs mod_vhost_alias mod_negotiation mod_dir
mod_imagemap mod_actions mod_speling mod_userdir mod_alias mod_rewrite
mod_php5

DirectiveLocal ValueMaster Value
engine11
last_modified00
xbithack00

Apache Environment
VariableValue
UNIQUE_ID TJzg3VDoT3IAAAZ4AnEC
HTTP_HOST test.domain.no
HTTP_USER_AGENT Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
rv:1.9.2.10) Gecko/20100914 Firefox/3.6.10 ( .NET CLR 3.5.30729)
HTTP_ACCEPT
text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_ACCEPT_LANGUAGE en-us,en;q=0.5
HTTP_ACCEPT_ENCODING gzip,deflate
HTTP_ACCEPT_CHARSET ISO-8859-1,utf-8;q=0.7,*;q=0.7
HTTP_KEEP_ALIVE 115
HTTP_CONNECTION keep-alive
HTTP_COOKIE
__utma=81389333.1474625124.1284883457.1284883457.1284883457.1;
__utmz=81389333.1284883457.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)
PATH /sbin:/bin:/usr/sbin:/usr/bin
SERVER_SIGNATURE no value
SERVER_SOFTWARE Apache/2.2.13 (FreeBSD) mod_ssl/2.2.13 OpenSSL/0.9.8k
DAV/2 PHP/5.3.3 with Suhosin-Patch
SERVER_NAME test.domain.no
SERVER_ADDR IP.IP.IP.IP
SERVER_PORT 80
REMOTE_ADDR 91.149.50.4
DOCUMENT_ROOT /usr/local/www/virtual/domain.no/test
SERVER_ADMIN andr...@domain.no
SCRIPT_FILENAME /usr/local/www/virtual/domain.no/test/test.php
REMOTE_PORT 1057
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING no value
REQUEST_URI /test.php
SCRIPT_NAME /test.php

HTTP Headers Information
HTTP Request Headers
HTTP Request GET /test.php HTTP/1.1
Host test.domain.no
User-Agent Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.10)
Gecko/20100914 Firefox/3.6.10 ( .NET CLR 3.5.30729)
Accept text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language en-us,en;q=0.5

Problem adding 1TB SATA disk to system

2010-09-16 Thread Andy Wodfer
Hi all,

I'm running FreeBSD 8.0 release (will upgrade to 8.1 STABLE tonight).
However, I'm having big problems adding a new harddrive to the system. I
want a separate 1TB SATA installed to recover backup files on, but when I
add it I only get error messages:

dmesg:

ad2: 953869MB WDC WD1000FYPS-01ZKB0 02.01B01 at ata1-master SATA300
GEOM: ad2: corrupt or invalid GPT detected.
GEOM: ad2: GPT rejected -- may not be recoverable.
GEOM: ufsid/4c80e66f50f43e15: corrupt or invalid GPT detected.
GEOM: ufsid/4c80e66f50f43e15: GPT rejected -- may not be recoverable.

I've tried label and fdisk, but I can't get it to work.

Fdisk:

WARNING:  It is safe to use a geometry of 1938021/16/63 for ad2 on │
│ computers with modern BIOS versions.  If this disk is
to be used   │
│ on an old machine it is recommended that it does not
have more │
│ than 65535 cylinders, more than 255 heads, or more
than│
│ 63 sectors per
track.  │

││
│ Would you like to keep using the current geometry?

Yes ... but it doesn't work. The computer hardware was bought new about 7
months ago and the mainboard is an intel server board.


Can someone help me get this disk up and running (if possible?)?

Thanks!

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


Re: Hardware RAID controller questions - 3Ware vs RocketRaid

2010-03-19 Thread Andy Wodfer
Thanks for all your feedback.

The problem occurs in the RAID controller BIOS (before we even boot or get
to the OS install).

Thanks to John for confirming these cards do work above 2TB. I will look
into upgrading the firmware (on these brand new cards). Perhaps it's just
the current firmware that can't handle 2TB harddrives x 3 in RAID.

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


Hardware RAID controller questions - 3Ware vs RocketRaid

2010-03-18 Thread Andy Wodfer
Hi,
We're setting up two backup servers where each server will have about 4TB of
harddrives (for now) connected (4x1TB and 8x500GB drives). Last night we ran
into trouble with the 3ware controllers we have (9650SE-8LPML) because we
couldn't create a larger RAID5 than 1.99TB.

We are going to use FreeBSD 8.0 and Bacula, but first we obviously need to
create a working RAID.

My questions are:

- Are HighPoint RocketRaid controllers a good alternative to 3ware
controllers? Are RocketRaid controllers true hardware RAID?

- What should we look for in a RAID controller spec to see that it has
support for larger than 2TB RAIDs?

I've been looking at these:
http://www.highpoint-tech.com/USA_new/series_rr2300.htm
http://www.highpoint-tech.com/USA_new/series_rr3500.htm

Any FreeBSD recommendations? Or perhaps for another 3ware controller?

We're using SATAII drives.

Thanks for your help!

Best regards,
Andreas
___
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: Hardware RAID controller questions - 3Ware vs RocketRaid

2010-03-18 Thread Andy Wodfer
On Thu, Mar 18, 2010 at 10:30 AM, Matthew Law m...@webcontracts.co.ukwrote:


 Is ZFS not an option?


I'm afraid ZFS is not an option for this customer. I use ZFS on other system
and it works great, but here the requirement is RAID5, hotswap, hotspare and
so on.

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


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

2009-01-15 Thread Andy Wodfer
On Wed, Jan 14, 2009 at 8:27 PM, Glen Barber glen.j.bar...@gmail.comwrote:

 On Wed, Jan 14, 2009 at 1:34 PM, Andy Wodfer wod...@gmail.com wrote:
  Hi,
  I'm getting an error message every week and I can't seem to understand
 why
  nor manage to fix it. Here it is:
 

 [snip]

 
  # df -h
  Filesystem SizeUsed   Avail Capacity  Mounted on
  /dev/ar0s1a989M 53M857M 6%/
  devfs  1.0K1.0K  0B   100%/dev
  /dev/ar0s1g 48G8.5G 36G19%/backup
  /dev/ar0s1d989M 44K910M 0%/tmp
  /dev/ar0s1f387G168G189G47%/usr
  /dev/ar0s1e7.7G398M6.7G 5%/var
 
  As you see there's 910MB free space in /tmp. Should be plenty to run the
  weekly locate script?
 

 Have you recently had disk failures?  When was your last `fsck' ?

 What is the output of `du -h /tmp' ?

 To rule out if 910M is not enough, you could `mv' /tmp to /tmp.bak and
 do a hard link pointing a new /tmp somewhere with more space, for
 example /usr/faketmp.

 I don't know how this will affect fstab or mount, however.


Thanks for your replies.

The requested outputs are:

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

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

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

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

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

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

Look forward to your replies. Thanks!

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


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

2009-01-15 Thread Andy Wodfer
On Wed, Jan 14, 2009 at 7:34 PM, Andy Wodfer wod...@gmail.com wrote:

 Hi,
 I'm getting an error message every week and I can't seem to understand why
 nor manage to fix it. Here it is:

 #dmesg
 [snip]
 pid 54753 (locate.code), uid 65534 inumber 23557 on /tmp: filesystem full

 # df -h
 Filesystem SizeUsed   Avail Capacity  Mounted on
 /dev/ar0s1a989M 53M857M 6%/
 devfs  1.0K1.0K  0B   100%/dev
 /dev/ar0s1g 48G8.5G 36G19%/backup
 /dev/ar0s1d989M 44K910M 0%/tmp
 /dev/ar0s1f387G168G189G47%/usr
 /dev/ar0s1e7.7G398M6.7G 5%/var

 As you see there's 910MB free space in /tmp. Should be plenty to run the
 weekly locate script?

 # uname -a
 FreeBSD host.domain.com 6.3-PRERELEASE FreeBSD 6.3-PRERELEASE #5: Sat Jan
 12 03:20:02 CET 2008 r...@host.domain.com:/usr/obj/usr/src/sys/MYOWN
 i386

 Does anyone have a suggestion what I can do to fix this problem?

 Thanks a lot!

 Best,
 Andy


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

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

UNEXPECTED SOFT UPDATE INCONSISTENCY

REMOVE? no

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

UNEXPECTED SOFT UPDATE INCONSISTENCY

REMOVE? no

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

UNEXPECTED SOFT UPDATE INCONSISTENCY

REMOVE? no

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

UNEXPECTED SOFT UPDATE INCONSISTENCY

REMOVE? no

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

UNEXPECTED SOFT UPDATE INCONSISTENCY

REMOVE? no

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

UNEXPECTED SOFT UPDATE INCONSISTENCY

REMOVE? no

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

UNEXPECTED SOFT UPDATE INCONSISTENCY

REMOVE? no

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

UNEXPECTED SOFT UPDATE INCONSISTENCY

REMOVE? no

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

UNEXPECTED SOFT UPDATE INCONSISTENCY

REMOVE? no

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

UNEXPECTED SOFT UPDATE INCONSISTENCY

REMOVE? no

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

UNEXPECTED SOFT UPDATE INCONSISTENCY

REMOVE? no

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

UNEXPECTED SOFT UPDATE INCONSISTENCY

REMOVE? no




** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
UNREF FILE  I=7961486  OWNER=www MODE=100620
SIZE=316 MTIME=Jan 15

Help! locate.code /tmp: filesystem full

2009-01-14 Thread Andy Wodfer
Hi,
I'm getting an error message every week and I can't seem to understand why
nor manage to fix it. Here it is:

#dmesg
[snip]
pid 54753 (locate.code), uid 65534 inumber 23557 on /tmp: filesystem full

# df -h
Filesystem SizeUsed   Avail Capacity  Mounted on
/dev/ar0s1a989M 53M857M 6%/
devfs  1.0K1.0K  0B   100%/dev
/dev/ar0s1g 48G8.5G 36G19%/backup
/dev/ar0s1d989M 44K910M 0%/tmp
/dev/ar0s1f387G168G189G47%/usr
/dev/ar0s1e7.7G398M6.7G 5%/var

As you see there's 910MB free space in /tmp. Should be plenty to run the
weekly locate script?

# uname -a
FreeBSD host.domain.com 6.3-PRERELEASE FreeBSD 6.3-PRERELEASE #5: Sat Jan 12
03:20:02 CET 2008 r...@host.domain.com:/usr/obj/usr/src/sys/MYOWN  i386

Does anyone have a suggestion what I can do to fix this problem?

Thanks a lot!

Best,
Andy
___
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