Re: Virtual Box on FreeBSD Server

2013-04-21 Thread Josh Beard
As others have said, you can run VirtualBox without X.  The command line
tools provided by VirtualBox are pretty comprehensive and straight-forward.
 To add to that, there's also phpVirtualBox:
https://code.google.com/p/phpvirtualbox/  that provides a nice web
interface to managing your VMs, though it appears the project is on pause
right now.  I actually have a few semi-production servers running under
VirtualBox on a Linux host, as I found far better disk performance there
for FreeBSD guests than under KVM.  Hopefully that changes soon, if it
hasn't already.


On Fri, Apr 19, 2013 at 6:37 AM, Bill Tillman btillma...@yahoo.com wrote:

 I've been looking into setting up some Linux servers but instead I'm
 thinking that I could use Virtual Box on my FreeBSD servers to do this. I
 would like some seasoned advice from others on the following before
 proceeding:

 1. As I understand it you can install Virtual Box from the ports
 collection. But then I see the instructions in the Handbook:

   To launch VirtualBox, type from a Xorg session:
 % VirtualBox
 So am I to assume the only way to run Virtual Box is to have Xorg
 installed and running on the FreeBSD server?  Which is a drag because my
 current FreeBSD servers are exactly that, servers, and do not have the
 fancy video cards, monitors, etc.. to run Xorg. Is there an alternative to
 running the interface from Xorg. I'm a command line fanatic when it comes
 to servers. Or would I be able to install Xvnc or something like that and
 run it from one of my Windows 7 machines which has all the fancy
 video capabilities?


 2. Once installed, I will be able to install something like Fedora or
 openSUSE? These will only be installed as server so I can run databases
 like MySQL in the Linux environment. The client I'm working for insists on
 using SUSE...no FreeBSD allowed. They think it's poison and are very biased
 on this so there's no talking them out of it. I need to gain experience
 using these databases on Linux, not FreeBSD.

 3. I'm going to buy a 1 TB SATA drive for this setup. It will be running
 on an AMD64 server with FreeBSD 9.x or whatever is the latest release as of
 this weekend.

 4. There is also a Plan 'B' to go the other way. Since I already have two
 i7 machines running Windows 7, perhaps it might be better to install the
 Windows version of Virtual Box or even VMWare and create my instances of
 Linux on one or even both of these machines.

 Any advice would be appreciated.
 ___
 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: denyhosts, fail2ban, or something else?

2012-11-27 Thread Josh Beard
On Tue, Nov 27, 2012 at 3:25 PM, Aleksandr Miroslav
alexmiros...@gmail.comwrote:

 Finally got sick of seeing tons of ssh break-in attempts in my logs. Am
 considering using denyhosts, or fail2ban. Anyone have any experience
 with these?

 I'm already using the AllowUsers facility of ssh to only allow specific
 users in, so I'm not overly concerned about the attempts.

 This is for a FreeBSD 8.x box running pf, btw.

 Thanks


I've been using fail2ban (security/py-fail2ban) for a few years on my
FreeBSD and Linux systems and can't complain.  I like that I can easily
write a regex for any arbitrary log file and perform any action I want.  By
default, the port will install both ipfw and pf actions.

I can't give an honest opinion about DenyHosts or SSHGuard, having never
used them.  Fail2Ban, however, isn't specific to a service or action -
simply a regex matches a log file and performs an action.

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


utx.log doesn't update for Samba unmounts

2012-08-30 Thread Josh Beard
Hello,

I'm running 9.1-PRERELEASE (built Aug 1) with Samba 3.6 from ports.

I've noticed that the last command's output shows still logged in for
all previous smb connections since the last shutdown.  However, smbstatus
seems accurate, showing only a handful of users connected.  For instance,
right now, 'last' shows 500 users still logged in, when it's really only
a few.  I discovered this via a Nagios alert that I had a couple hundred
users logged in.

The last time I had active SMB/CIFS users was in May of this year, and I
don't recall this happening then (judging from Nagios), but that was
9.0-RELEASE.

Can anyone reproduce this or does anyone have any ideas?

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


Re: doom, quake, hexen...

2012-08-20 Thread Josh Tolbert
games/quake2max is a good one...At least it was years ago when I tried 
it. I see nothing in the Makefile that will prevent it from building on 
amd64.


Cheers,

Josh

On 8/20/12 12:16 PM, Polytropon wrote:

On Tue, 21 Aug 2012 00:05:17 +0700, Victor Sudakov wrote:

Polytropon wrote:

Please advise if there are any 3D shooters in the ports collection
which work out of the box on 9.0-STABLE (amd64)? None of those I have
tried work for a number of irritating reasons, like e.g.

games/uhexen: http://pastebin.com/ZaJ74eaa

MIDI load failed:/etc/timidity.cfg: No such file or directory

Install timidity++ from ports to get MIDI background music support.

Actually I have compiled it WITHOUT_MUSIC. Anyway, recompiling with background
music support does not make things any better:

Starting Hexen!
XDM authorization key matches an existing client!V_Init: allocate screens.
M_LoadDefaults: Load system defaults.
W_Init: Init WADfiles.
DEMO IWAD detected!
Z_Init: Init zone memory allocation daemon.
MN_Init: Init menu system.
CT_Init: Init chat mode data.
S_InitScript
SN_InitSequenceScript: Registering sound sequences.
I_Init: Setting up machine state.
SDL Audio opened successfully.
ST_Init: Init startup screen.
Executable: U-Hexen 0.5 build Aug 20 2012.
R_Init: Init Hexen refresh daemonTextures Bus error (core dumped)

Bus error doesn't sound good.




games/doom: http://pastebin.com/XdrCwzvn

doom-1.10_5 is only for i386, while you are running amd64.

A precise message.

Does not make me any happier.

But at least it tells the truth from the beginning.




games/quake2lnx even pretends to do something: it opens a tiny X11
window with some flickering rubbish and plays some farting sounds to
the audio system.

Is there any working 3D shooter in the ports collection my 8 year old
son could enjoy?

How about OpenArena? I'm currently playing it with pals via
Internet. Okay, not at this moment, as I'm writing this
message, obviously... :-)

This is some multiuser game, isn't it? I was looking for something one
could play alone, like Doom or Hexen.

You actually have a series of levels to play against computer
enemies (AI), but it's not that it contains a story like
DooM or Quake.




I have some WADs from the old
DOS CDs and from BBSes.

Try to load them with lsdldoom or prboom (I've tried both in
the past).




First make sure all your 3D stuff runs fine. Install xlockmore
and test it with:

% xlock -nolock -mode lament
% xlock -nolock -mode fire

Works fine?

Yes, it does. In fact, I use xlock as my screensaver all the time.

Very good, so there will be _no_ problem related to 3D, which
often is the main issue for those games.




Next consideration:

Games in ports collection that run out of the box (even though I
still have 8.2-STABLE/x86 here) include DooM 3 and Quake 4.

If I wanted a linux game, I would use the linux notebook. I am very
reluctant in install half-a-penguin on my FreeBSD box just to play a
game.

I also had to apply some tweaks to get those games running, it's
at least not trivial.




I've
also tried RTCW, but except a grey fullscreen I get nothing.
Music plays, I can move the mouse and listen to the main menu
choices clicking, but I don't see anything. For older DooM
ports, I've successfully been playing DooM, DooM II and Heretic
using lsdldoom port on a 300 MHz P2. Note lsdldoom also supports
OpenGL graphics.

Which port is it? make search key=lsdldoom finds nothing.

Oh, it's doomlegacy.




I could also play Quake, Quake 2 from ports,
and Jedi Knight II via wine.

Oh, is there really nothing native?

No, that game is far too old, but Quake and Quake 2 have ports
(to native FreeBSD) which work very nicely with the original
files from the DOS version. Still it was playable more than 5
years ago, so even considering the ongoing disimprovement, it
should run today. :-)

Maybe even other older DOS shooters (Duke Nukem 3D, Chasm,
Shadow Warrior, Dark Forces, Blood and so on) could be easily
run using a VM or emulator?






--
Josh Tolbert
h...@puresimplicity.net  ||  http://www.puresimplicity.net/~hemi/

Security is mostly a superstition. It does not exist in nature, nor
do the children of men as a whole experience it. Avoiding danger
is no safer in the long run than outright exposure. Life is either
a daring adventure, or nothing.
-- Helen Keller

___
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: oops, now: bsd question: how to record a tv stream?

2012-03-13 Thread Josh Tolbert

On 3/13/12 4:06 PM, Gary Kline wrote:

On Tue, Mar 13, 2012 at 12:39:38PM +1000, Da Rock wrote:
so that's it. i messed around with mythtv last fall on my ubuntu 
distro. couldn't get anywhere and finally realized that =you need some 
kind of HARDWARE=.


I have an HDHomeRun...The original classic two-tuner model, from 
http://www.silicondust.com. It's a stand-alone DTV streamer. I use it 
with an antenna; apparently you can get versions that work with antennas 
or cablecard/cable TV as well. Works great. I use it with Windows Media 
Center for scheduling recordings, but they work great with MythTV, VLC 
and others for recording. Using VLC, I've recorded some videos of a 
local band on a morning show that have ended up on YouTube...I can send 
links if you want to see how it looks, although that station only 
broadcasts in 480i.


For what it's worth, I've successfully used three BT848/878/878+ 
cards---all of which were PixelView or STB cards---in the same machine 
running FreeBSD with the bktr driver and Motion to handle 
surveillance-camera duties. mplayer/mencoder could only use bktr0 cause 
they hard-code bktr0 in the source and seemed thoroughly uninterested in 
fixing this oversight, even though the change would be fairly minor.


Hope that helps someone.

Cheers,

Josh

--
Josh Tolbert
h...@puresimplicity.net  ||  http://www.puresimplicity.net/~hemi/

Security is mostly a superstition. It does not exist in nature, nor
do the children of men as a whole experience it. Avoiding danger
is no safer in the long run than outright exposure. Life is either
a daring adventure, or nothing.
-- Helen Keller

___
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: Using sendmail as a client with auth

2012-02-13 Thread Josh Tolbert

On 2/13/2012 11:12 PM, Bernt Hansson wrote:


Thank you for your answer.



I wrote this ages ago and it's still valid. You can ignore the IMAP 
stuff if you like. :)


http://www.puresimplicity.net/~hemi/freebsd/sendmail.html

Cheers,

Josh

--
Josh Tolbert
h...@puresimplicity.net  ||  http://www.puresimplicity.net/~hemi/

Security is mostly a superstition. It does not exist in nature, nor
do the children of men as a whole experience it. Avoiding danger
is no safer in the long run than outright exposure. Life is either
a daring adventure, or nothing.
-- Helen Keller

___
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 Enable ls Color?

2012-01-08 Thread Josh Tolbert

On 1/8/2012 6:14 PM, Polytropon wrote:

On Sun, 08 Jan 2012 16:04:17 -0800, Drew Tomlinson wrote:

I've installed 9.0-RC3 amd64.  I'm trying to enable color output for
ls.  I've issued the basic 'ls -Gla' but output is not colored.  Yet if
I can get colorized output by providing color codes (echo
^[[34mhello^[[37m produces a blue hello) at the command line so I know
my terminal is capable.

Is there some other secret?  This is a new install and I'm just trying
to set things up.

Put

setenv LSCOLORS ExGxdxdxCxDxDxBxBxegeg

in the csh's initialisation file (typically ~/.cshrc
for local use, /etc/csh.cshrc for global effect)
and maybe setup an alias:

alias ls 'ls -FG'
alias ll 'ls -laFG'

However, ls should provide colored output even
if you don't set the $LSCOLORS variable. It
should work with the default terminal emulation
(cons25 or cons25l1).



From here: http://www.puresimplicity.net/~hemi/freebsd/misc.html

CLICOLOR=YES;export CLICOLOR
LSCOLORS=ExGxFxdxCxDxDxhbadExEx;export LSCOLORS

I last updated that page a while ago...But it still seems to be working for me. 
:) You shouldn't really have to muck around with term type or anything...

Cheers,

Josh

--
Josh Tolbert
h...@puresimplicity.net  ||  http://www.puresimplicity.net/~hemi/

Security is mostly a superstition. It does not exist in nature, nor
do the children of men as a whole experience it. Avoiding danger
is no safer in the long run than outright exposure. Life is either
a daring adventure, or nothing.
-- Helen Keller

___
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: Installer program for FreeBSD-9.0?

2010-12-09 Thread Josh Paetzel
 in the category of really rare edge cases, and I'm 
ok with making those people jump through hoops to get FreeBSD running on their 
classic pentium if it makes life easier for people attempting to do realistic 
things. I'm a huge proponent of not mixing and matching hardware and software 
generations. FreeBSD 2.1.5 ran well enough on our 386's that we used them as 
nameservers for thousands of users at my ISP. FreeBSD 9 works great on my dual 
Nehalem. I probably would be as unhappy with FreeBSD 2.x on my dual Nehalem as 
I would be with FreeBSD 9 on a 386oh, right, it won't even install in 
either case, let alone run. 

We are very aware that there are people doing CLI installs. Remote serial port, 
etc, etc, etc, and we are not going to go down a road that raises the barrier 
to entry very high for them. I think sysinstall proves you can set the bar 
pretty high though, and people will figure out a way to make it work. 

(Try and install FreeBSD to a RAID-Z for example, or use glabel, or install to 
GELI)

At the end of the day, pc-sysinstall needs a plain text config file that you 
can write by hand. (It's very well documented) So all this front end talk is 
really about what's the best way to build a config file. 

Thanks,

Josh Feedback Welcome Paetzel___
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: Support for hard drives 2 TB?

2010-12-03 Thread Josh Paetzel
On Friday, December 03, 2010 06:00:29 am Thomas Mueller wrote:
 Can FreeBSD be successfully installed, and run, on all or part of a hard
 drive  2 TB?  Sector size would be 4 KB, though I think the hard-drive
 firmware can make sector size look like 512 bytes.  I know fdisk can
 handle up to 2 TB; this limit is not just for BSD but Linux too.
 
 Western Digital has come out with a SATA hard drive of 3 TB.
 
 Tom

Sure.  FreeBSD supports installing to and booting from GPT labeled disks that 
don't suffer from the 2TB size limitation that fdisk imposes.  The caveat is 
that very few systems have a BIOS that can boot from a GPT labeled drive.  So 
regardless of your OS, you may still have issues.

It's worth noting that RAID arrays have been larger than 2 TB for years, and 
the way RAID cards have gotten around the issue is to carve off a chunk of the 
array and present it to the OS as a small boot LUN.

-- 
Thanks,

Josh Paetzel


signature.asc
Description: This is a digitally signed message part.


ssh interactive session, through intermediate hosts ... problems ...

2010-12-03 Thread Josh Suid
I connect to some systems via a series of ssh jumps - something like:

# ssh u...@host
Password:

host~/ # ssh u...@host2
Password:

host2~/ # ssh u...@host3
Password:

host3~/ #  (do some work)

This is working well for me and does what I want it to.  However, there are
some things I'd like to do that are not working well for me...

First, where on the ssh client command line (see above) can I specify a more
liberal timeout value ?  Since my interactive session has three or more layers
of host between it, the whole thing falls apart if even one link slows down a
bit...  how can I make my ssh sessions more tolerant to timeouts ?

Alternatively, since I control all of these systems, is there a global
FreeBSD setting (sysctl ?) that would do this ?

Second, how can I construct this session with just a single command ?  When I
try this:

ssh u...@host ssh u...@host2 ssh u...@host3

I get this error:

# ssh u...@host ssh u...@host2
Pseudo-terminal will not be allocated because stdin is not a terminal.
Permission denied (publickey,keyboard-interactive).

Is there a way to build this tunnel with a single command ? (an ssh command,
run over an ssh command, run over an ssh command)


Finally, is there a way to scp a file over intermediate hosts ?  That is to
say, I want to scp the file:  u...@host:/some/file to myself, but I want
the ssh session to go through hosts X and Y first ... there must be a way
to do this where you pipe the output of scp over ssh to ... head spinning...

Thanks a lot.


  
___
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: Installation - no disks detected

2010-07-30 Thread Josh Paetzel
On Friday 30 July 2010 05:58:02 Prateek Sharma wrote:
 Hello,
   I am trying to install FreeBSD-8.1 on a server with the LSI SAS 9200 
 disk
 controller card. Before the partitioning step the installer says disks
 not found..
 
 However, just after freebsd boots , i get the diagnostic message saying
 something like: Drive C: is disk ad0
 Drive D: is disk ad1
 .. 
 So are my disks getting detected or not? Does anyone know if the card is
 supported by FreeBSD? Is there any way i can get this to work?
 
 Thanks !

There's work in progress to get the new 6gbps LSI HBAs and RAID controllers 
working in FreeBSD, but so far the driver is pretty experimental.  Currently 
there's nothing in the tree, but hopefully soon there will be something ready 
for testing.

As far as what you are seeing on boot, the system BIOS is seeing the 
controller and disks, but FreeBSD doesn't have a driver so once the OS is 
charge you get the no disks found message.

-- 
Thanks,

Josh Paetzel
FreeBSD -- The power to serve


signature.asc
Description: This is a digitally signed message part.


Re: Hardware RAID controller questions - 3Ware vs RocketRaid

2010-03-18 Thread Josh Paetzel
On Thursday 18 March 2010 03:37:32 Andy Wodfer wrote:
 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

You are hitting an issue with DOS MBR limitations, not the RAID controller 
itself.  Either use GPT or put a filesystem on the raw device with no fdisk at 
all.  The latter strategy is the better one if you intend to ever grow the 
filesystem.

3ware controllers are the best game in town for FreeBSD.  We use them 
extensively both internally and for our customers at iXsystems.  You can flash 
the controller firmware from in the OS on FreeBSD using tw_cli.

You might also consider running ZFS on the hardware RAID instead of UFS.  You 
get the advantages of running a hardware RAID controller, plus the advantages 
of ZFS (namely no fsck)

r...@servant /usr/src -tw_cli /c0 show

Unit  UnitType  Status %RCmpl  %V/I/M  Stripe  Size(GB)  Cache  AVrfy
--
u0RAID-6OK -   -   256K5587.88   RiWON 

r...@servant /usr/src -grep 'da0' /var/run/dmesg.boot
da0 at twa0 bus 0 target 0 lun 0
da0: AMCC 9690SA-4I4 DISK 4.08 Fixed Direct Access SCSI-5 device 
da0: 100.000MB/s transfers
da0: 122879MB (251658239 512 byte sectors: 255H 63S/T 15665C)

** small boot LUN

r...@servant /usr/src -grep 'da1' /var/run/dmesg.boot
da1 at twa0 bus 0 target 0 lun 1
da1: AMCC 9690SA-4I4 DISK 4.08 Fixed Direct Access SCSI-5 device 
da1: 100.000MB/s transfers
da1: 5599104MB (11466964993 512 byte sectors: 255H 63S/T 713785C)

** The rest of it

r...@servant /usr/src -zpool  status -v
  pool: a
 state: ONLINE
 scrub: none requested
config:

NAMESTATE READ WRITE CKSUM
a   ONLINE   0 0 0
  da1   ONLINE   0 0 0

errors: No known data errors

r...@servant /usr/src -df -h a
FilesystemSizeUsed   Avail Capacity  Mounted on
a 5.2T2.2T3.0T42%/a


-- 
Thanks,

Josh Paetzel
FreeBSD -- The power to serve


signature.asc
Description: This is a digitally signed message part.


Re: KDE firefox integration

2010-03-07 Thread Josh Paetzel
On Sunday 07 March 2010 08:13:53 Elias Chrysoheris wrote:
 On Sunday 07 of March 2010 15:56:15 Anselm Strauss wrote:
  Hi,
  
  I noticed that in PC-BSD 8 firefox is nicely integrated into KDE. Anybody
  knows how to achieve this on FreeBSD 8?
  
  Anselm
  ___
  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
 
 I believe you mean that you need KDE to open Firefox whenever you click on
 a link. That's easy. From your KDE menu, open System Settings (in the
 first tab, favorites)
 Then select Default Applications. Then, in the left list of the
 applications, choose Web browser, and at the right part of the screen
 choose the radio button in the following browser and in the edit box
 enter the /usr/local/bin/firefox3. Then apply the new settings.
 
 Elias

Another trick that PC-BSD useswhich might be more of what you are asking 
about is the installation of a port called x11-themes/gtk-qt4-engine  This 
port allows gtk applications to be displayed using qt, which helps integrate 
the look of things like FF, Thunderbird, OOo with KDE.

-- 
Thanks,

Josh Paetzel
FreeBSD -- The power to serve


signature.asc
Description: This is a digitally signed message part.


Re: KDE firefox integration

2010-03-07 Thread Josh Paetzel
On Sunday 07 March 2010 10:53:29 Anselm Strauss wrote:
 On Sunday 07 March 2010 15:52:30 Josh Paetzel wrote:
  On Sunday 07 March 2010 08:13:53 Elias Chrysoheris wrote:
   On Sunday 07 of March 2010 15:56:15 Anselm Strauss wrote:
Hi,

I noticed that in PC-BSD 8 firefox is nicely integrated into KDE.
Anybody knows how to achieve this on FreeBSD 8?

Anselm
___
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
   
   I believe you mean that you need KDE to open Firefox whenever you click
   on a link. That's easy. From your KDE menu, open System Settings (in
   the first tab, favorites)
   Then select Default Applications. Then, in the left list of the
   applications, choose Web browser, and at the right part of the screen
   choose the radio button in the following browser and in the edit box
   enter the /usr/local/bin/firefox3. Then apply the new settings.
   
   Elias
  
  Another trick that PC-BSD useswhich might be more of what you are
  
   asking about is the installation of a port called
   x11-themes/gtk-qt4-engine  This port allows gtk applications to be
   displayed using qt, which helps integrate the look of things like FF,
   Thunderbird, OOo with KDE.
 
 I already installed the gtk-qt4-engine, but it has some serious bugs.
 Scroll bars are not painted, tab borders are painted at the wrong
 position, etc. Could this be because I modified some of KDEs appearance
 options?
 
 Are there any other integration tweaks, like icons, keyboard shortcuts,
 file chooser dialog, ... ?
 
 Thanks,
 Anselm

I've cc'd in Kris Moore.  Perhaps he can answer some of this.

-- 
Thanks,

Josh Paetzel
FreeBSD -- The power to serve


signature.asc
Description: This is a digitally signed message part.


Re: Disabling ssh timeouts?

2009-05-12 Thread Josh Carroll
On Tue, May 12, 2009 at 10:03 PM, Steve Kargl
s...@troutmask.apl.washington.edu wrote:
 Is there anyway to disable sshd from timing out a connection?
 I've tried setting  ClientAliveCountMax and ClientAliveInterval
 and TCPKeepAlive in sshd.conf, but no combination that I've
 tried has worked.

My suggestion would be to install and use the screen port:

/usr/ports/sysutils/screen

You can then start the test suite run, detach from the screen session,
then ssh in and re-attach to the screen session later to check up on
it.

Regards,
Josh
___
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


base system openssl in 7.1

2009-05-04 Thread Josh Paetzel
I've been trying to figure out a way to run openssl's make test  
against the openssl included in FreeBSD RELENG_7_1


What I haven't been able to make go is make test in /usr/src/crypto/ 
openssl using various permutations of ./config


Can someone clue me in?

Thanks,

Josh Paetzel




___
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 create a livecd without compiling everything.

2009-04-20 Thread Josh Paetzel


On Apr 20, 2009, at 1:23 AM, Peter Wang wrote:



Hi, all.

I want to create a customized freebsd livecd, and i have read quite a
lot guides about how to do that. but the problem is: most of these
need make buildworld, make buildkernel ... I think it's hard for my
notebook do that. so is there a simpler/quicker way in which i can
create a livecd, what i want to be included in the livecd are the base
freebsd system plus some customized packages/config files.



In order to create a livecd you need to run mkisofs somewhere that has  
a complete copy of FreeBSD.  There are two options for this, one being  
running it against the live install of your system (ala /) and the  
other option is populating a stage directory.  Most guides assume that  
the easiest way to do this is via the DESTDIR=/mystagedir option of  
make installworld installkernel distribution, and it probably is the  
easiest way, assuming you have done make buildworld buildkernel


In your case where this is an undesirable option you can do one of a  
few things.


1) Use the live system to build the stage directory...

# mkdir /usr/mystage ; ( cd / ; tar --exclude /usr/mystage -cf - .) |  
( cd /usrr/mystage -xf - )


2) copy over /usr/src and /usr/obj from a faster machine that's run  
make buildworld buildkernel and then use make installworld  
intallkernel distribution to build the stage dir


3) Use your live system directly to run mkisofs

Thanks,

Josh Paetzel

___
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: mount_cd9660 - /dev/md0: Invalid Arguement

2009-04-20 Thread Josh Carroll
On Mon, Apr 20, 2009 at 12:32 PM, Евгений Л root1...@gmail.com wrote:
 Hello everyone, I am trying to mount an ISO image (which was converted with
 with help from ccd2iso tool), I used

 mdconfig -a -t vnode -f ./isoimage.iso -u 3
 mount -t cd9660 /dev/md3 /cdrom

 and

 mdconfig -a -f /path/disk.iso md1
 mount -t cd9660 /dev/md1 /mnt/path

 variant of the proper way. It doesn't work.

Both work fine here on 7.2-RC1/amd64:

r...@pflog:~# mdconfig -a -t vnode -f ./7.2-RC1-i386-bootonly.iso
md0
r...@pflog:~# mount -t cd9660 /dev/md0 /mnt  ls /mnt  umount /mnt
boot boot.catalog cdrom.inf

r...@pflog:~# mdconfig -d -u 0

r...@pflog:~# mdconfig -a -f ./7.2-RC1-i386-bootonly.iso -u 3
r...@pflog:~# mount -t cd9660 /dev/md3 /mnt  ls /mnt  umount /mnt
boot boot.catalog cdrom.inf

How doesn't it work? What error do you get? I would be more suspicious
of the .iso file being invalid/corrupt.

Regards,
Josh
___
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: Flash 10

2009-04-19 Thread Josh Carroll
On Sun, Apr 19, 2009 at 10:32 PM, Christopher Chambers
ccha...@interchange.ubc.ca wrote:
 Hi,

 Nspluginwrapper's website says that version 1.2.2 is capable of
 installing flash 10. When I tried it, I got the message: no appropriate
 viewer found. Any ideas?

I just installed it with success on 7.2-RC1/amd64. I had
nspluginwrapper-1.2.2_2 already installed and installed flash10 with:

cd /usr/ports/www/linux-f8-flashplugin10
make install clean

Then I just ran this as my regular user:

nspluginwrapper -v -a -i

What option(s) were you using to nspluginwrapper? Can you provide the
full output from nspluginwrapper when you run it?

Regards,
Josh
___
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: find command question

2009-04-09 Thread Josh Carroll
On Thu, Apr 9, 2009 at 8:01 AM, Jay Hall jh...@socket.net wrote:
 When using the find command with the -exec option, does the find command
 wait for the command being executed to finish before returning the next
 result?

 For example, if I am using find -exec {} to copy files to tape, will find
 wait for the command to write the file to tape complete before it returns
 the next result?

It has to wait. It's easily verified by creating a simple script:

#!/bin/sh

echo My args were: $*
sleep 1

Then:

find /some/path -exec /path/to/f.sh {} \;

You'll see:

My args were: /some/path/a
(1 second delay)
My args were: /some/path/b
(1 second delay)
...

Regards,
Josh
___
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: memtest question on 8 GB RAM AMD64 system

2009-04-09 Thread Josh Carroll
On Thu, Apr 9, 2009 at 2:43 PM, Dino Vliet dino_vl...@yahoo.com wrote:
 Dear freebsd people,

 I have just installed 4 x 2gb kingston memory banks (Kingston HyperX 4GB 
 800mhz DDR2 Non-ECC CL5 (5-5-5-15) DIMM) onto my AMD 64 system with a X2 5200 
 CPU. The motherboard I have in this system is MSI K9AG Neo2-Digital.

 The system boots fine and I wanted to try memtest to see if there would be 
 errors. So I installed that /usr/ports/sysutils/memtest port and did

 # memtest 2400

 The output I got is:
 Continuing with unlocked memory; testing will be slower and less reliable.

 ...
 pagesize 4096
 pagesizemask is 0xf000
 want 2400MB (2516582400 bytes)
 got   2400MB (2516582400 bytes), trying mlock ...failed for unknown reason
 Loop 1:
 .

 In my /etc/rc/conf file I had added these lines in the past (when I had 4gb 
 RAM installed in it)

 sysctl -w kern.ipc.shmmax=1954311424
 sysctl -w kern.ipc.shmall=238000

 What is the case here? Why is memtest failing to use mlock? How can I 
 eventually make sure I can run memtest with 8000mb?

 The purpose of this machine is that it will be used for a various data 
 intensive tasks where I need to be able to allocate as much memory possible. 
 I am running a postgresql database server on it as well to store my source 
 data.

I've run into similar problems trying to use that particular memtest port.

If you want to more reliably test the memory, I'd suggest using
memtest86+ from http://www.memtest.org/

It is much more thorough and runs independent of the operating system.

Regards,
Josh
___
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 Update my Freebsd packages kernel and Core

2009-04-02 Thread Josh Paetzel

On Apr 2, 2009, at 5:59 PM, Glen Barber glen.j.bar...@gmail.com wrote:


2009/4/2 Panos panos...@gmail.com:
Hello I'm new to Freebsd and I would like to know if there is  
anything like
apt-get for upgrating everything in my Freebsd. If  not Could you  
tell me

how I can do it.


There is no 'apt' in FreeBSD.

Documentation on how to manage your installed software is located  
here:


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

Some of my packages are from ports and some using the sysinstall  
and I

install them from the cd.
I use Freebsd 7.1



--
Glen Barber


One of the distinctions that freebsd makes that linux does not is  
between the base system and 3rd party software. Hence you will find no  
unified tool that upgrades everything like apt does for debian. The  
link above explains how to deal with 3rd party software. For the  
kernel and base system check out freebsd-update.


Thanks,

Josh Paetzel
___
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: Why?? (prog question)

2009-03-30 Thread Josh Carroll
On Mon, Mar 30, 2009 at 10:57 PM, Gary Kline kl...@thought.org wrote:
 people, i've been under the weather for days and will probably be for a few 
 more.
 new  and TEMPORARY meds dont like me, ugh.

 can anybody clue me in why the followin joinline program fails to catch if 
 argc == 1?


 /*
  * simple prog to join all | very nearly all lines of a text file that
  * make up one paragraph into one LONG line.
  *
  * paragraphs are delimiated by a single \n break.
  */

 #include stdio.h
 #include string.h
 #include stdlib.h

 main(int argc, char argv[])
 {
   char buf[65536];

   if (argc == 1)
   {
        printf(Usage: %s  file  newfile\n, argv[0]);
        exit (-1);
   }
   while (fgets(buf, sizeof buf, stdin) )
   {
     if (*buf == '\n')
     {
       fprintf(stdout, \n\n);
     }
     else
     {
       buf[strlen(buf)-1] = ' ';
       fputs(buf, stdout);
     }
   }
 }

main should be:

int main(int argc, char **argv)

or perhaps

int main(int argc, char *argv[])

As is, you're defining int as   char argv[]  (e.g. char *) instead of char **.

What will likely happen is you'll get a segmentation fault when you
try to run the program, since your printf format spec has %s, but
you're passing it a char.

In fact, if you compile it with -Wall, you'll see the two problems
I've mentioned:

t.c:13: warning: second argument of 'main' should be 'char **'
t.c: In function 'main':
t.c:20: warning: format '%s' expects type 'char *', but argument 2 has
type 'int'

Change char argv[] to char *argv[] or char **argv and it should work properly.

Note also that your main should have an int return type and should
return a value.

Regards,
Josh
___
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 list in a machine

2009-03-09 Thread Josh Carroll
On Mon, Mar 9, 2009 at 2:59 PM, gahn ipfr...@yahoo.com wrote:

 Hi all:

 How could I find out the list of hardware in my machine? I used dmesg and 
 var/run/dmesg.boot, it didn't seem to help that much as I expected.

 which file lists all of hardware in the machine?

 Thanks.

Give the sysutils/dmidecode port a shot.

Josh
___
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: SAS drives seem slow

2009-02-26 Thread Josh Paetzel


On Feb 26, 2009, at 12:28 AM, Wojciech Puchar wrote:

FreeBSD services.tcbug.org 8.0-CURRENT FreeBSD 8.0-CURRENT #0: Mon  
Feb 16 21:07:14 UTC 2009 root@:/usr/obj/usr/src/sys/SERVICES   
amd64


But 6.x and 7.x give similar results.

The disks themselves are capable of sequential read/write in the  
180 Meg/sec range, so I'm trying to understand why I'm being told  
they are 100 Meg/sec, and why that seems to be their real world  
performance cap.




probably you use RAID5



Hrmm, I should have included drive configuration.

r...@services /home/jpaetzel -tw_cli /c0 show

Unit  UnitType  Status %RCmpl  %V/I/M  Stripe  Size(GB)   
Cache  AVrfy

--
u0RAID-1OK -   -   -   135.031
ON ON
u1RAID-1OK -   -   -   298.013
ON ON


VPort Status Unit Size  Type  Phy Encl-SlotModel
--
p0OK u0   136.98 GB SAS   0   -FUJITSU  
MBA3147RC
p1OK u0   136.98 GB SAS   1   -FUJITSU  
MBA3147RC
p2OK u1   298.09 GB SATA 2   -WDC  
WD3200AAKS-00SB
p3OK u1   298.09 GB SATA 3   -WDC  
WD3200AAKS-00SB



But I get similar results when I connect just a single SAS drive and  
export it as a raw device.  It's also worth noting that the SATA drive  
array is reported as 100MB/sec transfers, even though the drives  
aren't capable of anything close to that, unless they are reading from  
cache, in which case SATA2 is capable of more like 300MB/sec...but  
then so is SAS...



Thanks,

Josh Paetzel




___
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


SAS drives seem slow

2009-02-25 Thread Josh Paetzel
I have a 3ware 9690SA SAS RAID controller in a PCI-e 8x slot with  
Fujitsu MBA series 15k SAS drives attached, and the array is coming up  
as:


da0 at twa0 bus 0 target 0 lun 0
da0: AMCC 9690SA-4I  DISK 4.06 Fixed Direct Access SCSI-5 device
da0: 100.000MB/s transfers
da0: 138272MB (283181056 512 byte sectors: 255H 63S/T 17627C)

The controller is probed as:

twa0: 3ware 9000 series Storage Controller port 0x2000-0x20ff mem  
0xe000-0xe1ff,0xe410-0xe4100fff irq 16 at device 0.0 on pci2

twa0: [ITHREAD]
twa0: INFO: (0x15: 0x1300): Controller details:: Model 9690SA-4I, 128  
ports, Firmware FH9X 4.06.00.004, BIOS BE9X 4.05.00.015


FreeBSD services.tcbug.org 8.0-CURRENT FreeBSD 8.0-CURRENT #0: Mon Feb  
16 21:07:14 UTC 2009 root@:/usr/obj/usr/src/sys/SERVICES  amd64


But 6.x and 7.x give similar results.

The disks themselves are capable of sequential read/write in the 180  
Meg/sec range, so I'm trying to understand why I'm being told they are  
100 Meg/sec, and why that seems to be their real world performance cap.


# dd if=/dev/zero of=stuff bs=8m count=100
100+0 records in
100+0 records out
838860800 bytes transferred in 8.711125 secs (96297644 bytes/sec)

Thanks,

Josh Paetzel




___
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: gpac-libgpac port not building on amd64

2009-02-14 Thread Josh Carroll
On Sat, Feb 14, 2009 at 1:42 PM, Troy t...@twisted.net wrote:
 I just did a successful portupgrade of multimedia/gpac-libgpac but when
 trying to upgrade the exact same port on amd64, it fails with the
 following error.

 Thanks

 cc -O3  -O2 -fno-strict-aliasing -pipe  -fPIC -pthread
 -fno-strict-aliasing -Wno-pointer-sign
 -I/usr/ports/multimedia/gpac-libgpac/work/gpac/include  -I../
 -DGPAC_HAVE_CONFIG_H  -fPIC -DPIC -c compositor/events.c -o
 compositor/events.opic
 compositor/events.c: In function 'load_text_node':
 compositor/events.c:239: warning: passing argument 3 of 'gf_utf8_wcstombs'
 from incompatible pointer type
 compositor/events.c:247: warning: passing argument 3 of 'gf_utf8_wcstombs'
 from incompatible pointer type
 cc -O3  -O2 -fno-strict-aliasing -pipe  -fPIC -pthread
 -fno-strict-aliasing -Wno-pointer-sign
 -I/usr/ports/multimedia/gpac-libgpac/work/gpac/include  -I../
 -DGPAC_HAVE_CONFIG_H  -fPIC -DPIC -c compositor/font_engine.c -o
 compositor/font_engine.opic
 cc -O3  -O2 -fno-strict-aliasing -pipe  -fPIC -pthread
 -fno-strict-aliasing -Wno-pointer-sign
 -I/usr/ports/multimedia/gpac-libgpac/work/gpac/include  -I../
 -DGPAC_HAVE_CONFIG_H  -fPIC -DPIC -c compositor/hardcoded_protos.c -o
 compositor/hardcoded_protos.opic
 cc -O3  -O2 -fno-strict-aliasing -pipe  -fPIC -pthread
 -fno-strict-aliasing -Wno-pointer-sign
 -I/usr/ports/multimedia/gpac-libgpac/work/gpac/include  -I../
 -DGPAC_HAVE_CONFIG_H  -fPIC -DPIC -c compositor/mesh.c -o
 compositor/mesh.opic
 In file included from compositor/mesh.c:33:
 compositor/gl_inc.h:45:19: error: GL/gl.h: No such file or directory
 gmake: *** [compositor/mesh.opic] Error 1
 *** Error code 2

 Stop in /usr/ports/multimedia/gpac-libgpac.

I ran into this, too. Since I didn't want OpenGL support anyway, I
just added OPTIONS support to this port, and one of those options is
to disable OpenGL support and submitted this as a PR.

The PR hasn't fully posted yet, but here's the URL for when it's in the system:

http://www.freebsd.org/cgi/query-pr.cgi?pr=131681

The patch is here if you're interested:

http://pflog.net/~floyd/gpac-libgpac.patch

cd /usr/ports/multimedia/gpac-libgpac

patch  /path/to/gpac-libgpac.patch

Then just make config and unselect the option for OPENGL, and it should build.

The port should have OpenGL as a dependency if OpenGL support is
enabled - as it is now, it's building with GL support if it finds
GL/gl.h and libGL.so, but it should be listed explicitly as a
dependency in the Makefile. I'll work on another patch for that.

As for getting it to build as-is, I think it'd be sufficient to add
-I${LOCALBASE}/include to --extra-cflags and -L${LOCALBASE}/lib to
--extra-ldflags, but I'm not sure this is the proper way to do that
(I'd have to check the porter's handbook). It does in fact build
properly by adding those, though so just update those lines in the
Makefile to:

--extra-cflags=${CFLAGS} ${PTHREAD_CFLAGS} -fPIC
-I${LOCALBASE}/include \
--extra-ldflags=${LDFLAGS} ${PTHREAD_LIBS} -L${LOCALBASE}/lib \

Josh
___
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: gpac-libgpac port not building on amd64

2009-02-14 Thread Josh Carroll
 http://pflog.net/~floyd/gpac-libgpac.patch

Oops, if anyone grabbed that patch, grab it again, I ran the diff
against the wrong original Makefile that had my --disable-opengl
hard-coded in there during testing.

Sorry for the trouble.

Josh
___
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: coretemp for AMD?

2009-01-25 Thread Josh Carroll
On Sun, Jan 25, 2009 at 11:21 AM, Chris Whitehouse cwhi...@onetel.com wrote:
 Hello,

 Can I read cpu die temperature for my AMD Athlon 64 X2 cpu with coretemp?
 According to

 http://www.alcpu.com/CoreTemp/supportlist.html

 it includes AMD processors but when I load coretemp.ko sysctl still can't
 see dev.cpu.?.temperature.

 Is this even the same coretemp as the website talks about windows a lot?

 This is on FreeBSD 7.1-PRERELEASE #1: Tue Dec 16 18:28:48 GMT 2008 with
 GENERIC kernel.

For (supported) AMD processors, check out k8temp(4).

Josh
___
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: atacontrol software or hardware raid

2009-01-25 Thread Josh Paetzel
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Omer Faruk Sen wrote:
 How can I detect if system has Software or hardware raid? Since in manual 
 page:
 
  The atacontrol command can also be used to create purely software RAID
  arrays in systems that do NOT have a real hardware RAID card such as a
  Highpoint or Promise card.  A common scenario is a 1U server such as the
  HP DL320 G4 or G5.  These servers contain a SATA controller that has 2
  channels that can contain 2 disks per channel, but the servers are wired
  to only place a single SATA drive on each channel.
 
 Or how can I find out if the hardware is real hardware RAID card?
 For example my system has following dmesg output:
 
 ad4: 152627MB Seagate ST3160815AS 4.AAB at ata2-master SATA300
 ad6: 152627MB Seagate ST3160815AS 4.AAB at ata3-master SATA300
 ar0: 152625MB Intel MatrixRAID RAID1 status: READY
 ar0: disk0 READY (master) using ad6 at ata3-master
 ar0: disk1 READY (mirror) using ad4 at ata2-master
 
 This system is an intel server with S3210SH server board in it. While
 installing system I see ad4,ad6 and ar0 as harddrives in sysinstall. I
 choose to install ar0.
 
 Additionally as far as I see ar0 is very susceptible to errors since a
 single CRC error can break the RAID consistency is that normal?  I
 really appreciate those who uses such a kind of RAID1
 
 Regards.
 ___
 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

ar RAID devices are almost always software/BIOS RAID.  In this case
intel matrix raid is software RAID provided by the system BIOS.  The
disadvantages of using it is your RAID array isn't portable to machines
that don't have the same BIOS raid implimentation.

One of the advantages of BIOS RAID is that you can boot from stripes,
which you aren't doing anyways.

You'll probably find that disabling the motherboard RAID and creating a
gmirror device is a better option for software RAID 1.

- --
Thanks,

Josh Paetzel

PGP: 8A48 EF36 5E9F 4EDA 5ABC 11B4 26F9 01F1 27AF AECB
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.8 (Darwin)

iEYEARECAAYFAkl81jYACgkQJvkB8Sevrsu1swCcCCq6/cG0WYajBvutibgvhIaA
kn8An27y/SPbEKzRyaWntfZV95z/UJia
=k2Gx
-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: atacontrol software or hardware raid

2009-01-25 Thread Josh Paetzel
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Omer Faruk Sen wrote:
 How can I detect if system has Software or hardware raid? Since in manual 
 page:
 
  The atacontrol command can also be used to create purely software RAID
  arrays in systems that do NOT have a real hardware RAID card such as a
  Highpoint or Promise card.  A common scenario is a 1U server such as the
  HP DL320 G4 or G5.  These servers contain a SATA controller that has 2
  channels that can contain 2 disks per channel, but the servers are wired
  to only place a single SATA drive on each channel.
 
 Or how can I find out if the hardware is real hardware RAID card?
 For example my system has following dmesg output:
 
 ad4: 152627MB Seagate ST3160815AS 4.AAB at ata2-master SATA300
 ad6: 152627MB Seagate ST3160815AS 4.AAB at ata3-master SATA300
 ar0: 152625MB Intel MatrixRAID RAID1 status: READY
 ar0: disk0 READY (master) using ad6 at ata3-master
 ar0: disk1 READY (mirror) using ad4 at ata2-master
 
 This system is an intel server with S3210SH server board in it. While
 installing system I see ad4,ad6 and ar0 as harddrives in sysinstall. I
 choose to install ar0.
 
 Additionally as far as I see ar0 is very susceptible to errors since a
 single CRC error can break the RAID consistency is that normal?  I
 really appreciate those who uses such a kind of RAID1
 
 Regards.
 ___
 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

ar RAID devices are almost always software/BIOS RAID.  In this case
intel matrix raid is software RAID provided by the system BIOS.  The
disadvantages of using it is your RAID array isn't portable to machines
that don't have the same BIOS raid implimentation.

One of the advantages of BIOS RAID is that you can boot from stripes,
which you aren't doing anyways.

You'll probably find that disabling the motherboard RAID and creating a
gmirror device is a better option for software RAID 1.

- --
Thanks,

Josh Paetzel

PGP: 8A48 EF36 5E9F 4EDA 5ABC 11B4 26F9 01F1 27AF AECB
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.8 (Darwin)

iEYEARECAAYFAkl81jYACgkQJvkB8Sevrsu1swCcCCq6/cG0WYajBvutibgvhIaA
kn8An27y/SPbEKzRyaWntfZV95z/UJia
=k2Gx
-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: make -jN build with portmaster

2009-01-25 Thread Josh Carroll
On Sun, Jan 25, 2009 at 4:44 PM, cpghost cpgh...@cordula.ws wrote:
 To build ports in parallel on a 4 core machine, I usually
 do this manually:

  # cd /usr/ports/some/port
  # make configure  make -j5 build  make install clean

 because all steps except make build are not compatible
 with -jN (some ports don't work with -jN in the make build
 phase either, but they are quite rare).

 Now, is there a way to teach portmaster to build or rebuild
 ports this way? The only workaround for now is something
 like:

What I do is the following via make.conf, which will work for
portmaster/portupgrade or manual builds:

# set MAKE_ARGS for the build target(s)
.if !(make(*install) || make(package))
MAKE_ARGS+=-j8
.endif

Then as you find ports that don't build properly, add an entry like this:

# some ports don't like -j8, so we can undo the MAKE_ARGS addition for those
.if ${.CURDIR:M*/multimedia/mplayer}
MAKE_ARGS:=${MAKE_ARGS:C/-j8//}
.endif

It's a bit of a hack, but I've had decent success with this. Enough
ports fail to build with -jX, that I'd never do the above on a
production machine, especially since it's possible for some sort of
silent error that produces an unpredictable binary. But for my home
machine, I've been pretty happy with it.

Regards,
Josh
___
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 thru SSH session

2009-01-20 Thread Josh Carroll
On Tue, Jan 20, 2009 at 9:10 AM, Jos Chrispijn j...@webrz.net wrote:
 Can someone tell me what I should attend for when I am disconnected in the
 middle of a portupgrade and the terminal session is aborted?
 The portupgrade was halted by a [yes/no] prompt, on which I had to react.
 Unfortunately being not present and I having not set my Putty keepalive
 session timeperiod I was disconnected due to no activity on this system
 prompt $-|.
 What I did after having logged on again was deleting that specific ruby
 process and some tty processes. Perhaps I should delete some other temp
 files as well?

For future runs, you might consider using something like screen
(/usr/ports/sysutils/screen) so you can resume the session later,
should you get disconnected.

Josh
___
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: 7.1 release / apache22 / php5

2009-01-05 Thread Josh Carroll
On Mon, Jan 5, 2009 at 7:52 PM, Jim Pazarena fqu...@ccstores.com wrote:
 for some odd reason, with this latest install (7.1), apache22 complains that
 it cannot find libphp5.so
 I usually compile php5 from ports
 and apache22 from ports
 after I think about it, I have never actually placed libphp5.so anywhere. I
 am not even sure who/what
 causes php5 module to be added to /usr/local/libexec/apache22/libphp5.so
 it's present on my 7.0 system, and missing on my 7.1 system.
 advice would be much appreciated.

Do you have something like:

LoadModule php5_modulelibexec/apache22/libphp5.so

in /usr/local/etc/apache22/httpd.conf ?  If not, that's the likely culprit.

You'd also need the IfModule mod_php5.c ... /IfModule block in
there as well (or in an included file).

Regards,
Josh
___
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: 7.1 release / apache22 / php5

2009-01-05 Thread Josh Carroll
 the httpd config file isn't the issue. it hasn't changed in a few years.
 yes,
 I do have the correct entries.

 what I do NOT have is the actual libphp5.so library file! it doesn't exist
 on my system,
 so apache complains that it can't open it.

Did you build the lang/php5 port with the Build Apache module option
checked via make config?

make -C /usr/ports/lang/php5 showconfig | grep APACHE

Should return:

 APACHE=on Build Apache module

If not, make config in there, check that option, then rebuild and
reinstall the port.

Josh
___
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: Snow in my Server

2008-12-19 Thread Josh Tolbert
On Fri, Dec 19, 2008 at 08:10:51PM +0100, Roger Olofsson wrote:
 
 
 Gary Hartl skrev:
 Help, I'm in southern Ontario and I have 20cm of snow on my freebsd
 7-release server.
 
 IT seems to be causeing some http outages.
 
 My FBSD 6-.0 doesn't seem to be affected thou.
 
 
 Any suggestions,
 
 
 Cheers,
 
 Gary 
 
 
 Locate roof in ports and build roof!
 
 /R

Build a bike shed over the server? :)

Josh
-- 
Josh Tolbert
h...@puresimplicity.net  ||  http://www.puresimplicity.net/~hemi/

Security is mostly a superstition. It does not exist in nature, nor
do the children of men as a whole experience it. Avoiding danger
is no safer in the long run than outright exposure. Life is either
a daring adventure, or nothing.
-- Helen Keller
___
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: Setting per processor (/core) affinity from within FreeBSD

2008-12-15 Thread Josh Carroll
On Mon, Dec 15, 2008 at 7:34 PM, Garrett Cooper yanef...@gmail.com wrote:
 Hi guys,
I was wondering if anyone has written a utility for FreeBSD to tie
 a particular process group to a processor / core, similar to what
 Linux has done with taskset, so that affinity can be properly set with
 FreeBSD and the ULE scheduler.

I believe cpuset(2) will do what you want. It is available starting
with 7.1-RELEASE (which isn't released yet, but you can grab 7.1-RC1
to test it out).

Regards,
Josh
___
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: Mounting ext3fs partition

2008-12-03 Thread Josh Carroll
On Wed, Dec 3, 2008 at 2:45 PM, Fernando Apesteguía
[EMAIL PROTECTED] wrote:
 Hi all,

 I'm running FreeBSD 7.1-BETA2. I have several partitions/filesystems
 in my computer and I would like to have full access to all of them.

 I've mounted the NTFS partition without problems (though it is
 read-only, it's enough for me)

 I've compiled the kernel with the EXT2FS option. I can mount the partition 
 with:

 mount -t ext2fs /dev/ad4s1 /mnt/linux

 note: the partition is actually a ext3fs...

 But if I enter the mount point and do ls, I get:

 ls: /mnt/linux: Bad file descriptor

Is is possible you are running into a case where the inode size of the
partition is not the previous default for e2fsprogs of 128. I have a
patch that addresses this, but I am hesitant to suggest it, since I
have not yet validated that it does not trample some additional ext2
metadata. However, in the testing I've done, it has worked with all
the tests I've put it through.

You can verify the inode size with:

tune2fs -l /dev/ad4s1 | grep Inode size

It is likely 256 (the new e2fsprogs default), in which case you will
not be able to see or use the mount without a fix. If you're
interested in my patch, let me know and I can send it to you (the
machine it is hosted on is down at the moment).

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


Re: Mounting ext3fs partition

2008-12-03 Thread Josh Carroll
 Hi josh,

 Exactly, it is 256. So according to you, I can't use the mounted
 filesystem, right?

 Could you please explain in more detail, what the problem is?

 Thanks in advance.

I believe around e2fsprogs version 1.40.5 or so, they changed the
default inode size from 128 to 256. The current ext2fs driver in
FreeBSD has a hard-coded inode size defined:

#define EXT2_INODE_SIZE128

I have a patch that dynamically determines this size, but I do not yet
have a good enough understanding of the ext2/3 spec to decide if the
changes I made are sufficient to fix the problem or if there is some
risk of breakage because the extra 128 is required for some metadata
of some sort.

What happened in your case is something I was afraid of and what
prompted me to look into a fix in the first place - namely, newer
Linux distributions or even file systems created by e2fsprogs from
ports in FreeBSD will be unusable with the current ext2fs driver,
since it assumes a size of 128.

There is some more information here regarding the patch and its current status:

http://unix.derkeiler.com/Mailing-Lists/FreeBSD/stable/2008-11/msg00421.html

I (or even better, someone more knowledgeable about file systems) need
to read through the ext2/3 spec and determine if the changes I've made
cause any breakage.

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


Re: Xeon Quad Core (Was: Server Freezing Solid)

2008-11-24 Thread Josh Carroll
 Sorry, I wasn't very clear.  I am currently running FreeBSD 7.0 the regular
 i386 release.  I would prefer to keep it that way if migration to the 64bit
 release would mean rebuilding from scratch (there is probably an easier way
 to convert an i386 release to a amd64 release).  Another poster seemed to
 indicate that the i386 release would run just fine on a quad core chip.

Yes, i386 will run just fine on a 64-bit Xeon. And no, there isn't an
easier (well,
one could argue it's easy, but tedious) way to convert to an amd64 release.

 Would there be a major performance gain with amd64 over that of the i386
 build on a Xeon Quad Core?

It depends entirely on your workload. Some things benefit, others may actually
slow down. One example that seems to benefit in general is multimedia type
applications (e.g. media encoding/decoding/transcoding).

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


Re: distributed shell (dancers shell)

2008-11-24 Thread Josh Carroll
On Mon, Nov 24, 2008 at 7:31 PM, Evuraan::ഏവൂരാന്‍ [EMAIL PROTECTED] wrote:
 How/where can I get dsh for Freebsd? attempts to compile it afresh
 have been failing, hence this question. thx.

 checking for endnetgrent... yes
 checking for open_dshconfig in -ldshconfig... no
 configure: error: dshconfig not found!!

It looks to me like you haven't compiled libdshconfig per the instructions here:

http://www.netfort.gr.jp/~dancer/software/dsh.html.en

Or, it can't find libdshconfig (where it installs by default depends on the
behavior of the libdshconfig build), in which case you should set CFLAGS
and LDFLAGS to help it find libdshconfig.

Whether it compiles cleanly/runs properly on a modern FreeBSD is
questionable, since this code hasn't been touched since 2005. But your
compile error does not appear to be a problem with FreeBSD.

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

Re: Xeon Quad Core (Was: Server Freezing Solid)

2008-11-24 Thread Josh Carroll
 I always thought AMD was Intel compatible.

In this case, it's the reverse. Intel's EM64T extensions are compatible
with AMD's X86-64.

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


Re: OT: Shell Script using Awk

2008-11-02 Thread Josh Paetzel
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

David Allen wrote:
 On 11/1/08, Sahil Tandon [EMAIL PROTECTED] wrote:
 David Allen [EMAIL PROTECTED] wrote:

 My apologies for asking on this list, but I'm stuck without Perl and need
 to use awk to generate a report.

 I'm working with a large data set spread across multiple files, but to
 keep things simple, say I have A Very Long String that containing records,
 each delimited by a single space.  I need to print those records in
 columnar format, but with only 7 columns per line:

 record1  record2  record3  record4  record5  record6  record7
 record08 record09 record10 record11 record12 record13 record14
 ...
 A small sh script:

 #!/bin/sh
 awk ' {
 for (i=1; i=NF; i++) {
  printf(%s , $i)
  if (i % 7 == 0) { printf(\n) }
 }
 if (NF % 7 != 0) { printf(\n) }
 } ' input
 
 An elegant solution if ever I read one.  The mod operator should have
 been the first thing that came to mind.
 
 I'm not sure whether I need a class in remedial math, or remedial awk,
 but either way, my thanks for the solution.

Just in case you've never discovered column, piping the output of this
to column -t will get you nice formatting for free.

- --
Thanks,

Josh Paetzel

PGP: 8A48 EF36 5E9F 4EDA 5ABC 11B4 26F9 01F1 27AF AECB
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.8 (Darwin)

iEYEARECAAYFAkkNlBEACgkQJvkB8Sevrsv6lwCdHk5llGh4ZG+0CnQLARJDqGD9
0AEAniRtmjDNfKXHdsGAudA3uiwYFB9f
=IImT
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Filesystem, RAID Question

2008-10-29 Thread Josh Paetzel
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Matthew Seaman wrote:
 Rich Fairbanks wrote:
 
 Now, this is how I set up the array. I installed the card, popped in the
 drives. The card bios found the drives and allowed me to setup in RAID 5.
 Then, FreeBSD booted and found the disk as da0. I want the entire
 array to
 be one big chunk of space. In other words, I don't need a bunch of
 slices or
 partitions (or DO I? I'm still very new to the whole slice vs. partition
 concept)
 

newfs /dev/da0 gives you a filesystem with softupdates turned off.
You'll want to enable them.  Either reinitialize the filesystem with
newfs -U or use tunefs to turn softupdates on.

3ware recently released new firmware for the 9650 and 9690 cards that
has given me some impressive jumps in application level performance.
You can flash the card from in the OS using tw_cli


- --
Thanks,

Josh Paetzel

PGP: 8A48 EF36 5E9F 4EDA 5ABC 11B4 26F9 01F1 27AF AECB
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.8 (Darwin)

iEYEARECAAYFAkkIxXUACgkQJvkB8SevrsvQugCbBOFjfcTsxt+yzoiATJ7pgVk7
55sAmQF7v302XoF0OBv7hoC6rZA6tPhM
=oSsJ
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: FreeBSD-7.1, BETA2 or PRERELEASE

2008-10-24 Thread Josh Paetzel
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Jeremy Chadwick wrote:
 On Fri, Oct 24, 2008 at 03:07:32PM +0530, Masoom Shaikh wrote:
 Hi folks,
 y'day I csuped the src and built installed the kernel from RELENG_7
 I was expecting FreeBSD-BETA2 in output of `uname -a`
 it is still -PRERELEASE, is it by decision or I have to change something ?

 I greped /usr/src for PRERELEASE but cud not locate it. I guess release
 engineering team does that. comments ?
 
 This question keeps coming up.
 
 http://lists.freebsd.org/pipermail/freebsd-questions/2008-October/184992.html
 
 RELENG_7 == PRERELEASE.  There is no BETA2 tag to follow.
 
 No one is sure at this point where the BETA2 string has come from
 (meaning why it was idealised or why it's being used).  I'm of the
 belief that it's something Ken is hand-hacking in newvers.sh before
 building + making ISO releases and putting them up on the mirrors.
 And I am also of the opinion that this should stop, and we should simply
 name the releases PRERELEASE-MMDD to signify the build date.
 

When you run make release you have to set BUILDNAME to something.  That
value then sets the value of RELEASE in sys/conf/newvers.sh, which then
affects uname output.

I suppose everyone has an opinion as to what to name things, a classic
bikeshed item.  My opinion is that if BETA2 is an arbitrary name and
there's no way to know the timestamp it was built from in CVS, then
replacing BETA2 with the timestamp used for the CVS checkout makes
sense.  Of course CVS is good down to the second, so it would have to be
MMDDHHMMSS...and at that point 7.1-PRERELEASE-20081020071001 starts
making BETA2 look good.

- --
Thanks,

Josh Paetzel

PGP: 8A48 EF36 5E9F 4EDA 5ABC 11B4 26F9 01F1 27AF AECB
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)

iD8DBQFJAb2iJvkB8SevrssRAvDqAJ4glXZL7dtiMLlaU2r8glSSa3XEsgCfY2ag
S7+FOqNjJ10miUOLuq/AEEQ=
=VzUi
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: new hdd numeration after mainboard change

2008-10-13 Thread Josh Paetzel
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Jeremy Chadwick wrote:
 On Mon, Oct 13, 2008 at 07:12:20PM +0200, [EMAIL PROTECTED] wrote:
 i run FreeBSD  7.1-PRERELEASE i had a change of the mainboard of my
 lenovo notebook t60. after reboot the harddisk which was before
 recognized as ad0 is now ad4. i cannot find any other devices, no
 ad0/ad1/ad2 in /dev. even in the dmesg only ad4
 
 The T60 is a laptop.  It only has one hard disk -- so I'm not sure why
 you were seeing ad0, ad1, ad2 in the past.  You shouldn't have been,
 unless you had 3 hard disks hooked up somehow.
 
 The bottom line here is this: absolutely *nothing* requires the device
 numbering to start at zero.  And this is definitely the case.
 
 does fbsd create a uniqe identifier for harddisks in combination with
 the motherboard or something like that?  where can i dig further into
 that issue?
 
 It's not really an issue.  Very likely your computer has toggled some
 BIOS settings.
 
 The T60 series has the ability to run the SATA ports in two modes: AHCI,
 or Enhanced/Compatible.  Chances are before the motherboard swap, yours
 was running in the opposite mode that it is now.
 
 I would highly recommend using the AHCI mode.  It works quite well with
 FreeBSD under Intel controllers.  Turn AHCI on (if it's not already),
 and do not mess with it.
 

I can verify as a T60 owner, if you toggle the BIOS between AHCI and
Compatability the hard drive will show up as either ad4 or ad0.

It works fine in either mode with FreeBSD.  Unless you are running
another OS that doesn't have SATA support there's really no reason to
use compatibility mode

- --
Thanks,

Josh Paetzel

PGP: 8A48 EF36 5E9F 4EDA 5ABC 11B4 26F9 01F1 27AF AECB
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)

iD8DBQFI86WTJvkB8SevrssRAssTAJ97EJz5QdzKCm9vdsbI7zLJrMvBXgCfd4NB
TSrrfE8CN+2BcQB21dcRDjY=
=k2q2
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: irq256 ????

2008-10-09 Thread Josh Carroll
 I've just found in my machine's vmstat -i output:

 irq256: em042054  2

*snip*

 $ dmesg|fgrep em0
 em0: Intel(R) PRO/1000 Network Connection 6.9.5 port 0x30c0-0x30df
 mem 0x9030-0x9031,0x90324000-0x90324fff irq 20 at device 25.0 on pci0
 em0: Using MSI interrupt em0: [FILTER]
 em0: Ethernet address: 00:19:d1:25:78:0a
 $ uname -a
 FreeBSD XXX 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #0: Thu Oct  2 21:35:45 
 CEST 2008
 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC  i386 $
 

 What's that? (world and kernel are in sync)

For what it's worth, I see the same thing on 7.1-PRERELEASE on a box
with an em0 (PCI card) and on-board PCI-E msk0:

% grep -E '(em0|msk0|mskc0)' /var/run/dmesg.boot
mskc0: Marvell Yukon 88E8056 Gigabit Ethernet port 0xc800-0xc8ff mem
0xfe9fc000-0xfe9f irq 17 at device 0.0 on pci2
msk0: Marvell Technology Group Ltd. Yukon EC Ultra Id 0xb4 Rev 0x03 on mskc0
msk0: Ethernet address: 00:1d:60:bc:cc:39
miibus0: MII bus on msk0
mskc0: [FILTER]
em0: Intel(R) PRO/1000 Network Connection 6.9.5 port 0xec00-0xec3f
mem 0xfebe-0xfebf,0xfebc-0xfebd irq 17 at device 1.0
on pci5
em0: [FILTER]
em0: Ethernet address: 00:0e:0c:6c:b9:16
em0: link state changed to UP

% vmstat -i
interrupt  total   rate
irq1: atkbd0   2  0
irq6: fdc011  0
irq17: em0 atapci1  53621626108
irq18: uhci2 ehci+ 1  0
irq19: fwohci0+   10  0
irq22: atapci2  29345269 59
irq23: uhci3 ehci1 1  0
cpu0: timer991289650   2000
irq256: mskc0   37714212 76
cpu1: timer991279642   2000
cpu2: timer991279641   2000
cpu3: timer991279641   2000
Total 4085809706   8243

And despite the weird interrupt, msk0 is operating just fine.

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


Re: More RAM for buffers?

2008-10-02 Thread Josh Carroll
 inactive, cache, and buffer are all different types of buffer.

That is my understanding as well.

 I'm fairly sure that inactive is memory used by program code.  When the
 program terminates, the memory is marked as inactive, which means the
 next time the program starts the code can simply be moved back to
 active and the program need not be reloaded from disk.

I think non-program code can also be inactive.

For example, top memory output before:

Mem: 337M Active, 1455M Inact, 407M Wired, 352K Cache, 214M Buf, 1745M Free

and after:  find /usr/src -type f -print0 | xargs -0 cat  /dev/null 21

Mem: 348M Active, 1905M Inact, 402M Wired, 912K Cache, 214M Buf, 1288M Free

I am also not sure exactly what constitutes each of these. I only know
what the top man page says. And for Buf it says:

   Buf:   number of pages used for BIO-level disk caching

I'm not entirely sure what BIO-level disk caching is, but it is
apparently NOT the caching of filesystem data.

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


Re: Optimal File System config for 2.5TB RAID5

2008-10-01 Thread Josh Paetzel
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Wojciech Puchar wrote:
 | | the simple answer is that software RAID on todays computers vastly
 | outperforms ANY hardware raid solution, maybe except the ones for
 1$ | or more.

 You're basically correct, but I think you're overestimating the price of
 a good RAID controller.
 
 no. please give me example of any RAID hardware below 1$ that WILL
 be faster than properly configure software RAID solution under FreeBSD
 with same amount of same disks.
 
 i mean faster under normal unix-like load, which is lots of parallel
 accesses to same or different things, not simple tests.
 
 
 there are NONE.

I have a number of systems running postgresql + a python web application
that see fairly heavy concurrent access.

The 3ware 9690SA outperforms gmirror and can be had in 4 port with the
battery for $600 or so.  8 port with a battery is closer to $1000

Hardware RAID gets you boot support from stripes, email alerts for RAID
events in many cases, and with a battery the option to turn write
caching on on the controller.

Unfortunately there are a number of bad and/or poorly supported RAID
controllers out there, especially on FreeBSD.  I'd never suggest to
anyone that my highpoint 2300 or LSI 3041R-E are high performance, but
on the other hand, at real world tasks like a database that backs up a
webserver doing millions of hits a day, the LSI 320-2E does RAID 10
faster than gvinum, and my 3ware 9690SA's are faster than gmirror at
RAID 1, plus offer the option for a warm spare.

Software RAID has advantages, namely hardware independance.  And it can
be faster than low end hardware RAID.  But you don't have to spend much
to get a hardware solution that will smoke software RAID at real world
applications.


- --
Thanks,

Josh Paetzel

PGP: 8A48 EF36 5E9F 4EDA 5ABC 11B4 26F9 01F1 27AF AECB
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)

iD8DBQFI5EbNJvkB8SevrssRAvdLAJ96CLUVK3M2YLKNmAxmIPlxoqp+fgCgnLp6
H1OgEHevOKqDJ/FRg5+fHpU=
=MQFo
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Optimal File System config for 2.5TB RAID5

2008-09-30 Thread Josh Paetzel
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Danny Do wrote:
 Hello,
 
 I am building a 6x500GB SATA HARDWARE RAID5 storage server to
 - Store large files, 10BM~1GB/file
 - Handling 500+ concurrent connections
 - Transfer rate around 100~200Mbit/s
 
 I am thinking of using the patch from Wojciech Puchar to reduce hard drive
 data seek in order to handle large number of concurrent connections whilst
 outputting 100~200Mbit/s.
 
 patch /usr/src/sys/sys/param.h
 #ifndef DFLTPHYS
 #define DFLTPHYS(1024 * 1024)   /* default max raw I/O transfer size
 */
 #endif
 #ifndef MAXPHYS
 #define MAXPHYS (1024 * 1024)   /* max raw I/O transfer size */
 #endif
 #ifndef MAXDUMPPGS
 
 
 To store files greater than 10MB, I come up with the following proposal for
 my File System:
 - UFS2
 - Soft Update  Enable
 - block-size   1,048,576
 
 I am not completely sure what advantage I got from this configuration but I
 am pretty sure that FSCK is much quicker with 1M file system block-size. 
 
 Is there any other thing I need to consider in term of performance and
 reliability?
 
 I hope that this system will perform much better than my current 6x300GB
 SCSI 10K RPM system.
 
 Appreciate any advice,
 
 Danny

Why do you think slower drives using an interface that has known
problems handling concurrent connections will be faster than faster
drives using an interface designed for concurrency?

Based on my experiences with SATA vs. U160/U320 SCSI or SAS your likely
outcome is to see a marked decrease in performance.  I'd be interested
to hear your results.


- --
Thanks,

Josh Paetzel

PGP: 8A48 EF36 5E9F 4EDA 5ABC 11B4 26F9 01F1 27AF AECB
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)

iD8DBQFI4hxmJvkB8SevrssRAqErAJ0Tt9WPT25RhkUfGVLxEzSykEMvtwCeKXRV
jdgJ/whLeeAQ3E97i7FkB4w=
=UyD6
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: help with AWk

2008-09-27 Thread Josh Carroll
 dig +short -x 1.2.3.4 | awk '{if ( $0 ==  ) {print PTR_NUL } else {print 
 $0 } }'

If you run the dig command without the pipe, it should give you an
idea of why what you're trying is not working.

 dig +short -x 1.2.3.4 | wc
   0   0   0

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


Re: Conflicting packages installing to same dir

2008-08-31 Thread Josh Carroll
 there both needed as a dependency by X.Org so although your suggestionis  good
 in theory, unf not going to work in prac, although i had tried it :)

They are both dependencies because you've told it so.

cd /usr/ports/x11-drivers/xorg-drivers
make config

Deselect either the i810 or intel driver.

Then you should be able to rebuild without issue.

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


[ANNOUNCE] Shouton.com v1.3b Released

2008-08-19 Thread Josh Rhodes [EMAIL PROTECTED]

ShoutOn.com

Invitation

   Private Invitation:
   o   From Josh Rhodes (Head of marketing)

About our free link exchange services:

   o   ShoutOn.com would like to invite you to be one of our early
   adapters to use our fully free in-direct link exchange services. The
   system is now officialiy in invite-only stage and will only go public
   in the next few months.
   Start your high quality, spam free, link exchange in minutes. Our link
   exchange services are free and very effective. The procedure is fast
   and easy to follow. Our product simply provides your site with 5 links
   from other partners, assuming you as well, placed the code on your
   site and participated in the service, while linking to others.
   Do not wait until tomorrow; improve your Link Popularity, PageRank,
   and SE Rankings using our Free Link Exchange service.
   Access the system by entering [1]http://www.shouton.com

   ShoutOt.com has some important benefits:
 * Increase your Traffic and Google PageRank
 * Improved Position in Search Engines
 * Receive 5 Links from other ShoutOn Partners!
   ShoutOn.com values your privacy. At no time has ShoutOn made your
   email address available to others without your permission. If you
   no longer wish to receive further Emails, please send an email
   with the word remove in the subject to: [EMAIL PROTECTED] �
   2008, ShoutOn Corporation.

References

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


Re: Is it possible to run i386 only, on a amd64 freebsd 7?

2008-08-19 Thread Josh Carroll
 O.K I understand that.  So I can see that unless I have an i386 FreeBSD 
 build, I really cannot
 install those i386 only software titles.

 In that situation I assume I can only use amd64 ports and software.

 I have an idea though, would it be possible to build a i386 FreeBSD on an 
 another partition.  And use it to run i386 software while using the amd64 
 FreeBSD?

I tried something similar using an i386 chroot, but wine failed to run
(SIGABRT). If you need these i386-only ports/software, you should
probably just run the i386 version of FreeBSD. Do you have a
compelling reason for using the amd64 release (e.g.  4GB of RAM)?

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


Re: security updates

2008-08-15 Thread Josh Carroll
 of course, for such use I will take the or stable version :-)

 I was sure it was easy :-)

 thanks
 jdd

Just to clarify, X-STABLE does not indicate end-user stability. It
indicates the ABI is (generally) stable (ABI-compatibility is
maintained within a branch). There are exceptions, but this generally
holds true. That said, -RELEASE is a better idea for a production
system, unless you have some dire need for a feature/enhancement in
-STABLE.

You can read more about the FreeBSD release engineering process here:

http://www.freebsd.org/doc/en_US.ISO8859-1/articles/releng/index.html

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


Re: Migrate harddisk with FreeBSD into new machine

2008-08-14 Thread Josh Paetzel
On Thursday 14 August 2008 19:04:14 C.M. Burns wrote:
 Derek Ragona schrieb:
  At 01:26 PM 8/14/2008, C.M. Burns wrote:
  Hi list,
 
  I have a problem. A faulty machine was running freeBSD with a two
  harddisk software raid.
  now these two disks should be put into a new machine, but of course
  it won't boot because it is new hardware.
  Kernel just reports: cannot mount root device from /dev/mirror/gm0s1a
  (or sth like this).
 
  question is now, how can i add the correct driver into the initial
  ramdisk (if there is such a thing on bsd) so the machine finds the
  two drives?
  second question: how can i afterwards remove the software mirror and
  only use one harddisk from that moment on?
 
  any help is very welcom, as i have no idea about bsd. i am a linux guy
  ;)
 
  thanks!
 
  What I would do, is install FreeBSD onto a new separate hard disk.
  Disks are cheap.  Once you get the boot disk installed you can create
  a custom kernel if necessary to support the RAID.

 maybe there is a way to use the loader prompt to manually load the
 module? it is a buslogic bt948 controller.
 i would rather not compile a new kernel :)

It sounds like the kernel on the disks doesn't have the driver for the 
buslogic bt948 SCSI controller in it.  Unfortunately, this driver is not 
available to be loaded as a module either.  the GENERIC kernel comes with the 
needed driver (called bt).  You don't have to compile a new kernel, but you 
are going to have to replace the kernel on the disks with one containing the 
needed driver (like GENERIC).   Either way, the recovery procedure involves 
booting off a CD and replacing the on disk kernel.

--
Thanks,

Josh Paetzel

PGP: 8A48 EF36 5E9F 4EDA 5A8C 11B4 26F9 01F1 27AF AECB


signature.asc
Description: This is a digitally signed message part.


Re: ATi Intel graphics

2008-08-13 Thread Josh Carroll
 Jail. I suspect I could build the base system plus X and copy
 everything over to a jailed dir. Once there, I could set -m32 in the
 CFLAGS and CXXFLAGS of the system make.conf. Build WINE in the jail,
 add a /usr/local... bin32, lib32 and libexec32 to the main (non-jail)
 part of the OS, and copy everything there. Then update the path and
 libpath for my system... OK, not simple, but it'll be an interesting
 experiment.

I tried this a while ago with a chroot. I installed 7.0-RELEASE/i386
there, and built ports inside the chroot. You need to also do a few
things to trick things like libtool (and other auto* tools) that your
arch is i386 and not amd64. From memory, I think you need to:

env UNAME_m=i386 make ...

For what it's worth, I got wine (and all depends) built, but it did
not work. It is likely I made a mistake along the way, of course. I
believe the resulting binary was generating a SIGABRT.

Naturally, if you have success doing this, it might be worth
publishing the (excruciating) details.

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


Best SMTP Gateway Program and Reporting Tools

2008-08-12 Thread Josh Kidd
I just wanted to pose this question to the list on people's opinions as
to what the best SMTP Gateway program (ie. Sendmail, Postfix, etc) is
and what the best log analysis tool for that SMTP program is. 

 

We are currently using Symantec Mail Security for our  outgoing SMTP
Gateway but want to employ an open-source solution instead. My problem
is our main requirement is to have a way to view the logs on a web based
interface that will allow our system administrators when a customer
complains they didn't receive an email to be able to go into the logs
and search by date/time and view the activity for that period to
determine if the mail went through our system or if it was blocked and
if so why. 

 

I've heard of and read about a few different programs like SMA and
Anteater and pflogstats, but I don't know if these will have the
functionality I need to allow admins to search logs for a specific
date/time and/or specific phrase/address on a web based interface.

 

I appreciate any help, advice in making this decision.

 

Josh 

 

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


Re: F7: base system reinstall, no (open)ssh anymore...

2008-08-08 Thread Josh Carroll
 Am I missing some essential settings in /etc/make.conf?
 What is needed there in order to get (Open)SSH from the base system?
 Thanks!
 Rob.

It should be there by default. Check that /etc/make.conf (or
/etc/src.conf) does not set/define:

WITHOUT_OPENSSH

There are other knobs that implicitly set this as well, so check for these, too:

WITHOUT_CRYPT
WITHOUT_OPENSSL

If any of those are set, it will not build the ssh components.

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


Re: x11/kde4 tries to install kde3?

2008-08-08 Thread Josh Carroll
On Fri, Aug 8, 2008 at 10:14 AM, Kirk Strauser [EMAIL PROTECTED] wrote:
 When attempting to install KDE4, I get:

 $ cd /usr/ports/x11/kde4
 $ sudo make install
 ===  Installing for kde-3.5.8_2
 [...]
 ===  Checking if x11/kde4 already installed
 ===   kde-3.5.8_2 is already installed
 [...]
 Stop in /usr/ports/x11/kde4.

 I installed on this hardware about two weeks ago, so it should be fairly
 clean of any weird legacy settings.  Has anyone else successfully installed
 KDE4 on FreeBSD 7?

KDE4 is not yet available. The x11/kde4 and x11/kde4base port
skeletons were created, but as far as I know, kde 4 isn't quite ready.

If you look at x11/kdebase4, you'll see that it still references KDE 3.5.8:

# cat /usr/ports/x11/kdebase4/distinfo
MD5 (KDE/kdebase-3.5.8.tar.bz2) = 9990c669229d8fca4c5e354441fd
SHA256 (KDE/kdebase-3.5.8.tar.bz2) =
0f1876d1c68f01ed8fee346c1bae4f53dd2c1dc56db94e309b3d1adfc6138493
SIZE (KDE/kdebase-3.5.8.tar.bz2) = 24200172

# grep '^PORTVERSION' /usr/ports/x11/kdebase4/Makefile
PORTVERSION=${KDE_VERSION}

# grep KDE_VERSION /usr/ports/Mk/*
/usr/ports/Mk/bsd.kde.mk:KDE_VERSION=   3.5.8
/usr/ports/Mk/bsd.kde.mk:KDE_ORIGVER=   ${KDE_VERSION}
/usr/ports/Mk/bsd.kde4.mk:KDE_VERSION=  3.5.8
/usr/ports/Mk/bsd.kde4.mk:KDE_ORIGVER=  ${KDE_VERSION}

Soon now, I think. But it's not quite ready.

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


Re: FreeBSD 7.0 on Xen

2008-08-08 Thread Josh Carroll
On Fri, Aug 8, 2008 at 12:04 PM, OutBackDingo [EMAIL PROTECTED] wrote:
 I have a working config for non-HVM systems, its stable enough to play with 
 but
 not for production, if you have however a HVM machine, FreeBSD runs great
 under linux KVM

What host OS are you using for dom0? I'm considering setting this up
on my second box, so I can run 7.0-STABLE and 8.0-CURRENT
simultaneously (and use the full capabilities/speed of the processor),
but I've heard of limited success, depending on the host/dom0 OS.

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


Re: Questions about healthd and mprime

2008-08-07 Thread Josh Carroll
 OK, so _now_ I've looked around and found out that a lot of folks
 these days heat up their CPUs by running the mprime thingy.  Swell.
 But I don't know diddly poo about this program.  So can somebody please
 tell me the set of best command line options for the thing if your
 only goal is to stress your CPU?

 Thanks in advance.

If you just want to heat up your CPU, this should suffice:

yes  /dev/null 

Once for each CPU/core.

mprime is useful to stress test the cores, looking for a situation
where the core fails. This can cause odd system problems, and not
necessarily a crash or lock up.

But in terms of just heating the cores up, yes should do the trick.

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


Re: Questions about healthd and mprime

2008-08-07 Thread Josh Carroll
Try sysutils/k8temp. When run with -n, it only prints the CPU's temperature.

 U... On the system I'm most interested in at the moment, which has
 only _one_ athlon64 _single core_ processor in the whole system,
 k8temp -n prints this:

 19
 10

Well it may not work properly on your particular hardware. You can
report this to the maintainer and/or file a PR.

You can also try one of:

/usr/ports/sysutils/mbmon

/usr/ports/sysutils/consolehm  (and use chm -I  from this)

 I was hoping to find something that didn't touch disk (nor use up all of
 my remaining space in the /usr partition).  I think I'll wait and try to
 learn more about mprime.  But thanks.

Then what is wrong with my suggestion of yes  /dev/null? It does not
touch the disk at all (other than to read the yes binary into memory).
It will sufficiently generate a load on the CPU to increase the
temperature. You might get the CPU 1-2C hotter with mprime, but I
doubt 1 C is going to make or break you. Also, if you are running the
amd64 release, the mprime port does not work for the amd64 arch. I've
been able to compile it manually, but the port will not work on the
amd64 arch.

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


Re: undocumented tar --unlink switch

2008-08-02 Thread Josh Carroll
 Around line 37 of /usr/src/usr.sbin/pkg_install/add/extract.c
 there's an invocation of /usr/bin/tar with a --unlink switch,
 which I don't see mentioned in the tar(1) manpage.  Anyone
 happen to know what this does, or do I need to dig into the
 code?

My guess was that it was the long option version of -U:

 -U  (x mode only) Unlink files before creating them.  Without this
 option, tar overwrites existing files, which preserves existing
 hardlinks.  With this option, existing hardlinks will be broken,
 as will any symlink that would affect the location of an

A quick perusal of the source confirms.

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


Re: Extracting tracks as WAV from a worn-out CD

2008-07-19 Thread Josh Carroll
Sorry this is truncated, the google mail application on blackberry
doesn't include the full mail.

Anyway, I would highly suggest using cdparanoia from ports. I have had
great success recovering very scratched discs with it in the past.

Good luck!
Josh

On 7/19/08, Razmig K [EMAIL PROTECTED] wrote:

 Hello,

 I could successfully extract the last track, no. 7, on a pretty worn-out
 audio CD issuing the command:
 % cdda2wav -D 0,0,0 -t 7
 (0,0,0 being the SCSI device corresponding to the cdda2wav -scanbus output)
 while I have failed doing so earlier via:
 % cdda2wav -D /dev/acd0 -t 7
 since it got stuck at %84 giving the error cooked: Read cdda :
 Input/output error. I experienced similar failure with KAudioCreator.
 Any explanations to this?
 This is 7.0-RELEASE running KDE 3.5.8.
 Thanks!


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

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


Re: Core(TM)2 Quad and TOP output

2008-07-14 Thread Josh Carroll
 I have new server(webserver) quad core but performans is not well (according
 our old webserver pent IV ). Maybe its performans depends on our web page
 sourcecode. FreeBSD 6.3 stable is running on it. dmesg is in below.

Can you provide some more detail here? How is it slower? Serving less
clients? The load (from your top snapshot) is nearly 0 and there isn't
much of a memory load on the box either.

 1-I wonder in my TOP output can I see all CPU or not?


 last pid: 19887;  load averages:  0.13,  0.04,  0.01 up 2+21:18:18
 16:53:16
 48 processes:  1 running, 47 sleeping
 CPU:  0.0% user,  0.0% nice,  0.0% system,  0.0% interrupt,  100% idle
 Mem: 119M Active, 352M Inact, 126M Wired, 48K Cache, 112M Buf, 1401M Free
 Swap: 5120M Total, 5120M Free

Run top with the -S option, and you will see the idle process for
each core/CPU. The CPU: line there is an aggregate of all processors
in the system.

If you're in doubt:

sysctl hw.ncpu

Or run:

mptable

 2-FreeBSD 7.0 has got default multiprocessor generic kernel??? since during
 installations only one generic kernel shown

Yes, 7.0 includes SMP by default in GENERIC.

 FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs
  cpu0 (BSP): APIC ID:  0
  cpu1 (AP): APIC ID:  1
  cpu2 (AP): APIC ID:  2
  cpu3 (AP): APIC ID:  3

There you go, it's seeing all 4 cores.

The system is seeing all of them, so your real question is likely -
why is this not performing as well as my old box? We need more details
to answer that.

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


Re: Core(TM)2 Quad and TOP output

2008-07-14 Thread Josh Carroll
  I have new server(webserver) quad core but performans is not well
  (according
  our old webserver pent IV ). Maybe its performans depends on our web
  page
  sourcecode. FreeBSD 6.3 stable is running on it. dmesg is in below.

I'm sorry, I completely missed that you were running 6.3 and not a 7.x
release. You are running the GENERIC kernel then, and while the
processors are visible, it's only using one since you are not running
with SMP support.

You can build the SMP kernel (basically, GENERIC + options needed for
SMP) by doing the following:

cd /usr/src
make kernel KERNCONF=SMP

Then reboot, and it should pick up the newly installed kernel with SMP
support. Note that this backs up your old kernel to /boot/kernel.old,
so if the new one fails to boot, at the beastie menu, you can boot
with the old kernel if necessary.

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


Re: Core(TM)2 Quad and TOP output

2008-07-14 Thread Josh Carroll
 He is already running with SMP, look at this part of his dmesg:

 ad10: 343399MB Seagate ST3360320AS 3.AAM at ata5-master SATA300
 ad12: 343399MB Seagate ST3360320AS 3.AAM at ata6-master SATA300
 acd0: DVDR ASUS DRW-2014S1T/1.01 at ata7-master SATA150
 SMP: AP CPU #1 Launched!
 SMP: AP CPU #3 Launched!
 SMP: AP CPU #2 Launched!

 His problem lies elsewhere I'm afraid...

Is SMP in GENERIC now in 6.3-STABLE then?

I don't know, mptable looks fine, as does dmesg, but hw.ncpu is 1 - very odd.

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


Re: Too Much Context Switching? - FIXED

2008-06-30 Thread Josh Carroll
 I will, probably as part of upgrading to 7.0 (which I may accelerate, given
 this point). I'm just ecstatic at the difference I'm already seeing, and
 specifically wanted to make note of it in the archives. Point very much
 taken, though. :-)

It's trivial to change to libthr, as pointed out earlier in this
thread. You simply add an entry/entries to /etc/libmap.conf (see man
libmap.conf for details) and then restart whatever it is that is
currently running against libkse.

I'll second Kris' recommendation to move to libthr. I saw a drastic
improvement in MySQL and ffmpeg performance on 6.2 when I switched
from libkse to libthr. Certainly 7.0 would give it to you
automatically, but there's no reason not to use libmap to use it now,
as an interim solution.

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


Re: CPU temp's on core 2 duo, should they be significantly different?

2008-06-23 Thread Josh Carroll
 I've noticed that cpu.0 is consistently hotter than cpu.1, even on an
 unloaded machine.  Is that because that core's doing housekeeping work
 whilst the other is truly idle?

 dev.cpu.0.temperature: 44
 dev.cpu.1.temperature: 29

I notice some differences on my quad-core (Q6600) CPU, too:

dev.cpu.0.temperature: 35
dev.cpu.1.temperature: 34
dev.cpu.2.temperature: 27
dev.cpu.3.temperature: 30

The differences also stay around the same when I yes  /dev/null 4
times to load up each core:

dev.cpu.0.temperature: 47
dev.cpu.1.temperature: 45
dev.cpu.2.temperature: 38
dev.cpu.3.temperature: 42

The discrepancy isn't as much as in your case, though. 15 C is pretty
significant. It could be that either your heat spreader or heat sink
are concave or convex causing one of the cores to get hotter.

On my dual-core box, here are the idle temps:

dev.cpu.0.temperature: 33
dev.cpu.1.temperature: 31

and under load:

dev.cpu.0.temperature: 48
dev.cpu.1.temperature: 46

I'd recommend taking the heat sink off and seeing how the thermal
grease is spread on the CPU's head spreader and on the heatsink
itself. If it looks lopsided or extremely thick on one side of the CPU
package or extremely thin (to the point where you can still see the
sheen of the heatsink or heat spreader), then re-mount the heatsink
and try to make sure it's evenly distributing the pressure down on the
CPU package.

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


Re: CPU temp's on core 2 duo, should they be significantly different?

2008-06-23 Thread Josh Carroll
 Not sure if the core duos work the same as older 2 CPU and 4 CPU
 motherboards, but there are some BIOS functions that always use the first
 CPU.  So you never get true SMP because the hardware uses the first CPU more
 to service interrupts.

True, but interrupt handling and minimal background processing should
not cause a core to be 15 C hotter. I guess the original poster can
mention the load on both cores (or post a top snapshot) so we can see
if there is some load on the system.

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


Re: mrtg peak on reboot / snmp-issue?

2008-06-15 Thread Josh Carroll
Sorry the blackberry is truncating your original mail, but yes I have
noticed the same thing on my setup. In my case I am using a custom
rrdtool perl script. While not a fix for the actual problem, my
workaround has been to use a CDEF in my rrdgraph command to set the
value to 0 if it exceeds a sane maximum.

I'm not sure off hand if mrtg has a similar capability but you might
be able to set a max value for the graph so at least it won't skew the
graph and hide the rest of the data points.

Another option is to use a custom script to collect the values by
grabbing the data from snmp and then sanitizing them prior to
outputting to the value.

Regards,
Josh

On 6/15/08, Olivier Mueller [EMAIL PROTECTED] wrote:
 Hello,

 Small but curious thing on my freebsd-based systems: when a
 server is rebooted, it generates a peak (or spike?) on the
 network mrtg for all interfaces (here just before 1 am):
 http://8304.ch/om/stuff/mrtg_localhost_1-day.png

 It happens with both net-snmp and ucd-snmp, with a quite standard
 mrtg installation (generated by cfgmaker).

 Do you have the same issue on your own servers?  All I can add, is
 that there is not such a high traffic after a reboot, and that it
 doesn't happen on similar linux-based systems.

 Regards  a nice week to you,
 Olivier


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

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


Re: new hardware - compatible?

2008-06-12 Thread Josh Carroll
 Intel Quad Core Extreme 3Ghz, LGA775
 Asus P5K-E Motherboard (P35 chipset, Onboard LAN)

I have the same motherboard, and it runs great on 7.0-RELEASE (amd64).
I do not, however, use the onboard ethernet controller. I use a pair
of em cards, so I can't speak to the Marvell Gigabit chipset and
whether it works or not. The onboard ethernet on the Asus P5B is an
re, and works fine in 7-STABLE.

I also recently put a SATA DVD-RW into this box, which works well with
atapicam (for cdrecord/growisofs), but it doesn't work with burncd.
Not a huge deal, but just an FYI.

Here is my dmesg and pciconf -l -v output. Note that the ICH9
controller shows up as Intel AHCI controller, but it works great
(full performance).

Thanks,
Josh


dmesg:

Copyright (c) 1992-2008 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 7.0-RELEASE #0: Tue Mar 25 22:23:29 EDT 2008
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/PFLOG
Timecounter i8254 frequency 1193182 Hz quality 0
CPU: Intel(R) Core(TM)2 Quad CPUQ6600  @ 2.40GHz (3204.04-MHz K8-class CPU)
  Origin = GenuineIntel  Id = 0x6fb  Stepping = 11
  
Features=0xbfebfbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE
  Features2=0xe3bdSSE3,RSVD2,MON,DS_CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM
  AMD Features=0x20100800SYSCALL,NX,LM
  AMD Features2=0x1LAHF
  Cores per package: 4
usable memory = 4286599168 (4088 MB)
avail memory  = 4125327360 (3934 MB)
ACPI APIC Table: A_M_I_ OEMAPIC 
FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs
 cpu0 (BSP): APIC ID:  0
 cpu1 (AP): APIC ID:  1
 cpu2 (AP): APIC ID:  2
 cpu3 (AP): APIC ID:  3
ioapic0 Version 2.0 irqs 0-23 on motherboard
netsmb_dev: loaded
acpi0: A_M_I_ OEMXSDT on motherboard
acpi0: [ITHREAD]
acpi0: Power Button (fixed)
acpi0: reservation of 0, a (3) failed
acpi0: reservation of 10, cff0 (3) failed
Timecounter ACPI-fast frequency 3579545 Hz quality 1000
acpi_timer0: 24-bit timer at 3.579545MHz port 0x808-0x80b on acpi0
acpi_hpet0: High Precision Event Timer iomem 0xfed0-0xfed003ff on acpi0
Timecounter HPET frequency 14318180 Hz quality 900
cpu0: ACPI CPU on acpi0
ACPI Warning (tbutils-0243): Incorrect checksum in table [OEMB] -  8C,
should be 84 [20070320]
coretemp0: CPU On-Die Thermal Sensors on cpu0
cpu1: ACPI CPU on acpi0
coretemp1: CPU On-Die Thermal Sensors on cpu1
cpu2: ACPI CPU on acpi0
coretemp2: CPU On-Die Thermal Sensors on cpu2
cpu3: ACPI CPU on acpi0
coretemp3: CPU On-Die Thermal Sensors on cpu3
pcib0: ACPI Host-PCI bridge port 0xcf8-0xcff on acpi0
pci0: ACPI PCI bus on pcib0
pcib1: ACPI PCI-PCI bridge irq 16 at device 1.0 on pci0
pci1: ACPI PCI bus on pcib1
vgapci0: VGA-compatible display mem
0xfd00-0xfdff,0xd000-0xdfff,0xfc00-0xfcff irq
16 at device 0.0 on pci1
uhci0: UHCI (generic) USB controller port 0xc800-0xc81f irq 16 at
device 26.0 on pci0
uhci0: [GIANT-LOCKED]
uhci0: [ITHREAD]
usb0: UHCI (generic) USB controller on uhci0
usb0: USB revision 1.0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 on usb0
uhub0: 2 ports with 2 removable, self powered
uhci1: UHCI (generic) USB controller port 0xc880-0xc89f irq 21 at
device 26.1 on pci0
uhci1: [GIANT-LOCKED]
uhci1: [ITHREAD]
usb1: UHCI (generic) USB controller on uhci1
usb1: USB revision 1.0
uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 on usb1
uhub1: 2 ports with 2 removable, self powered
uhci2: UHCI (generic) USB controller port 0xcc00-0xcc1f irq 18 at
device 26.2 on pci0
uhci2: [GIANT-LOCKED]
uhci2: [ITHREAD]
usb2: UHCI (generic) USB controller on uhci2
usb2: USB revision 1.0
uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 on usb2
uhub2: 2 ports with 2 removable, self powered
ehci0: EHCI (generic) USB 2.0 controller mem 0xfbfffc00-0xfbff
irq 18 at device 26.7 on pci0
ehci0: [GIANT-LOCKED]
ehci0: [ITHREAD]
usb3: EHCI version 1.0
usb3: companion controllers, 2 ports each: usb0 usb1 usb2
usb3: EHCI (generic) USB 2.0 controller on ehci0
usb3: USB revision 2.0
uhub3: Intel EHCI root hub, class 9/0, rev 2.00/1.00, addr 1 on usb3
uhub3: 6 ports with 6 removable, self powered
pcib2: ACPI PCI-PCI bridge irq 17 at device 28.0 on pci0
pci3: ACPI PCI bus on pcib2
pcib3: ACPI PCI-PCI bridge irq 17 at device 28.4 on pci0
pci2: ACPI PCI bus on pcib3
atapci0: JMicron JMB363 SATA300 controller port
0xdc00-0xdc07,0xd880-0xd883,0xd800-0xd807,0xd480-0xd483,0xd400-0xd40f
mem 0xfeafe000-0xfeaf irq 16 at device 0.0 on pci2
atapci0: [ITHREAD]
atapci0: AHCI called from vendor specific driver
atapci0: AHCI Version 01.00 controller with 2 ports detected
ata2: ATA channel 0 on atapci0
ata2: [ITHREAD]
ata3: ATA channel 1 on atapci0
ata3: [ITHREAD]
ata4: ATA channel 2 on atapci0
ata4: [ITHREAD]
uhci3: UHCI (generic) USB controller port 0xc080-0xc09f irq 23

Re: Make buildworld

2008-06-08 Thread Josh Carroll
 I did some testing, at least for me, I get the most improvements when the 
 number
 of cores or processors equals the -j number.  You can make it higher, even
 double it, withoout hurting things, but 95% of the improvements come from
 matching the number of processes to the number of available CPUs (and that' by
 my own testing, not theory).

I've found that on my Q6600 (quad core) system, the optimal is 8
though the improvements after 5 were minimal. It depends if the jobs
are I/O bound or not and the scheduler. Although even with ffmpeg, the
optimal number of threads with this quad core system is 8. On my
previous system with a dual-core chip with the same hardware, the
magic number was 4 (again, 2x the number of cores). This was with
the ULE scheduler, I'm not sure if the same holds true for the 4BSD
scheduler or not.

And as you said, it's important to use make without -j if the build
fails before reporting bugs, since there are no guarantees that world
will build properly with multiple jobs.

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


Re: NFS drops with em0 driver

2008-06-01 Thread Josh Tolbert
On Sun, Jun 01, 2008 at 11:36:05AM +0530, Subhro wrote:
 Hello,
 
 I am facing a strange problem on my systems. I am running
 FreeBSD-6.2-RELEASE-p12. My network interface uses the em driver. I am
 facing a lot of issues where the NFS connections are dying randomly.
 Is there any known bug with the em driver? I am using the SCHED_ULE
 scheduler.
 
 Thanks
 Subhro

Hello Subhro,

I have nothing to add besides a me too. I ended up replacing my em0 with an
fxp0 and all of my networking issues (watchdog timeouts, link
dropping/reconnection, etc.) disappeared. This may have been flaky hardware.
Do you have another NIC you can try with?

Thanks,

Josh
-- 
Josh Tolbert
[EMAIL PROTECTED]  ||  http://www.puresimplicity.net/~hemi/

Security is mostly a superstition. It does not exist in nature, nor
do the children of men as a whole experience it. Avoiding danger
is no safer in the long run than outright exposure. Life is either
a daring adventure, or nothing.
-- Helen Keller
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: /boot is on the loose

2008-05-18 Thread Josh Paetzel
On Sunday 18 May 2008 06:00:44 am B H wrote:
 Hello list!

 After a reboot my /boot directory is missing.
 Is it possible to somehow regenerate /boot and the files that live
 there? I do not want to reinstall.

 Thanks for any help.

You will need install media.

The things the install media will not have is your /boot/loader.conf and any 
custom kernels you compiled.

In fact the /boot/loader.conf on the cd has goo in it that will need to be 
removed for normal booting.

-- 
Thanks,

Josh Paetzel

PGP: 8A48 EF36 5E9F 4EDA 5A8C 11B4 26F9 01F1 27AF AECB


signature.asc
Description: This is a digitally signed message part.


Re: telnet to mail server from outside does not get 220, telnet from inside works

2008-05-12 Thread Josh Carroll
On Mon, May 12, 2008 at 10:04 AM, brad davison
[EMAIL PROTECTED] wrote:

  Is there something I need to configure in telnetd or sendmail to allow 
 'outside' IP addresses to telnet to the mail server and get a 220 response?

  When I 'telnet localhost 25' i get:

  email# telnet localhost 25
  Trying ::1...
  Connected to localhost.x.com.
  Escape character is '^]'.
  220 email.x.com ESMTP Sendmail 8.13.8/8.13.8; Mon, 12 May 2008 
 10:01:39 -0400 (EDT)



  But if I try the same thing from 'outside' the firewall I get:

  %telnet email..com 25
  Trying 67.x.x.x...
  Connected to email.xxx.com.
  Escape character is '^]'.
  Connection closed by foreign host.

That looks like TCP wrappers dropping the connection. Have you checked
/etc/hosts.{allow,deny}? man 5 hosts_access for details.

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


Re: coretemp 70C = CPU too hot?

2008-05-09 Thread Josh Carroll
On Thu, May 8, 2008 at 10:55 PM, Nerius Landys [EMAIL PROTECTED] wrote:
 Howdy.  I purchased a 1U 10 inch deep server machine a few months ago:
 http://www.abmx.com/1u-10inch-deep-supermicro-mini-server-p-366.html?osCsid=80f3951929d5a7ae27a51733627ee18a

 The CPU is a Xeon 3xxx dual core 2.4 GHz.  The machine has no case fans, by
 design.

Which exact Xeon part number is it? You can look up the thermal
specification on Intel's web site:

http://processorfinder.intel.com

Looks like most of the 2.4 GHz Xeons' maximum operating temperature is
65C, but one of them is 85C. So let's hope you have that particular
part (the X3220). :)

Anyway, that should confirm whether it is too hot or not.

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


Re: growisofs: inapropriate ioctl for device

2008-05-09 Thread Josh Carroll
On Fri, May 9, 2008 at 4:31 PM, Steve Franks [EMAIL PROTECTED] wrote:
 I get the following from growisofs -Z/dev/acd0=image.iso:

:-( unable to CAMGETPASSTHRU for /dev/acd0: Inappropriate ioctl for device


Use /dev/cd0, not /dev/acd0.

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


Re: Cross compiling i386 packages on amd64

2008-05-06 Thread Josh Carroll
On Tue, May 6, 2008 at 12:21 PM, Andrew Cid [EMAIL PROTECTED] wrote:
 Hi all,

  I have an i386 jail running on an amd64 host that I use to build
  packages.  Most packages build fine, however I have a few that fail.
  This includes xorg (dri won't build) and mplayer.  In all cases I get an
  error messages similar to this:

  {standard input}:147: Error: `(%rsi)' is not a valid 32 bit base/index 
 expression
  {standard input}:148: Error: `(%rsi,%rax)' is not a valid 32 bit base/index 
 expression
  gmake[1]: *** [pullup.o] Error 1

  Any ideas how I can fix this?

There are some tricks you can play. Notably, you need to trick auto*
tools into thinking it's an i386 system. I think setting UNAME_m=i386
does the trick there:

 uname -a
FreeBSD pflog.net 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Tue Feb 26
01:20:52 EST 2008 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/PFLOG  amd64
 setenv UNAME_m i386
 uname -a
FreeBSD pflog.net 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Tue Feb 26
01:20:52 EST 2008 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/PFLOG  i386

I believe there is something else I'm forgetting that you need to do
to make compilation happy for some ports, but I can't recall them at
the moment.

Of course, things that expect to talk to an i386 kernel aren't going
to work, and you may have issues with things that use hand-written
ASM.

Try setting UNAME_m though and see if it helps. It might also be wise
to set ARCH=i386 and/or TARGET_ARCH=i386 in /etc/ports.conf.

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


Re: make buildworld

2008-05-04 Thread Josh Carroll
On Sun, May 4, 2008 at 10:03 AM, Aguiar Magalhaes [EMAIL PROTECTED] wrote:
 Hi list,

  How can i fix the error below ?

  Thanks,

  Aguiar


  # make buildworld

  - - - - - - - - - - - - - - - - - - - - -
  cc -O2 -fno-strict-aliasing -pipe  -I/usr/src/lib/libc/include 
 -I/usr/src/lib/li
  bc/../../include -I/usr/src/lib/libc/i386 -D__DBINTERFACE_PRIVATE 
 -I/usr/src/lib
  /libc/../../contrib/gdtoa -DINET6 -I/usr/obj/usr/src/lib/libc 
 -I/usr/src/lib/lib
  c/resolv -DPOSIX_MISTAKE -I/usr/src/lib/libc/locale -DBROKEN_DES -DPORTMAP 
 -DDES
  _BUILTIN -I/usr/src/lib/libc/rpc -DYP -DNS_CACHING -DSYMBOL_VERSIONING 
 -Wsystem-
  headers -Wall -Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign -c 
 /usr/src/l
  ib/libc/stdlib/strtoul.c
  In file included from /usr/src/lib/libc/stdlib/strtoul.c:39:
  /usr/src/lib/libc/../../include/stdlib.h:98: internal compiler error: 
 Segmentati
  on fault: 11

Typically, a segfault from gcc indicates failing hardware, the most
likely culprit being the RAM. Test the RAM with memtest86
(http://memtest86.com/download.html) to rule it out.

Josh
___
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 switch scheduler on 7.0?

2008-04-15 Thread Josh Carroll
n Tue, Apr 15, 2008 at 9:59 PM, Daniel Tourde [EMAIL PROTECTED] wrote:
 Hi!

  I would like to switch scheduler on my FreeBSD 7.0 box but I don't know how 
 to
  do that. The scheduler by default has terrible performances under KDE/Gnome
  and I would like to test the new one.

See the following for building a custom kernel:

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

You will want to use options SCHED_ULE instead of SCHED_4BSD in your
kernel config.

Regards,
Josh
___
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 switch scheduler on 7.0?

2008-04-15 Thread Josh Carroll
  What made you believe it is the scheduler?

  --
  Mel

There were some reports of problems with responsiveness with the 4BSD
scheduler in 7.0 leading up to its release, so it's certainly a
possibility.

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


PF appears to ignore packets or at leaaast sees them differently than tcpdump

2008-04-09 Thread Josh Paetzel
I'm trying to make use of ssh using tun devices.  So I have box A with a tun0 
10.3.10.1/30 creating a tunnel to box B which has a tun10 10.3.10.230

sshd listens on port 2020 on box A.

From box B, ssh 10.3.10.1 -p 2020 works as expected.

Here's my problem.  I'd like to ssh in to box A from box C, in this case 
sitting on 76.17.219.196.  So I set up the following PF rules on box B...

rdr on em0 proto tcp from any to $me port 2020 - 10.3.10.1 port 2020
pass in route-to tun10 proto tcp from any to 10.3.10.1 port 2020

Now, from box C, ssh $me -p 2020 times out, and the reason why is box A sees 
the traffic coming from 76.17.219.196 and replies out it's default route.  No 
big deal, I should be able to fix that with route-to rules.  So box A gets...

pass out on em0 route-to tun0 proto tcp from any to any port 2020

Ideally this rule would be more specific, but I've been getting looser and 
looser with it trying to see why it won't match.

# tcpdump -i em0 port 2020

listening on em0, link-type EN10MB (Ethernet), capture size 96 bytes
21:44:19.408264 IP 10.3.10.1.xinupageserver  
c-76-17-219-196.hsd1.mn.comcast.net.49242: S 349765613:349765613(0) ack 
97403528 win 65535 mss 1460,nop,wscale 1,nop,nop,timestamp 7877043 
175504784,sackOK,eol
21:44:22.408191 IP 10.3.10.1.xinupageserver  
c-76-17-219-196.hsd1.mn.comcast.net.49242: S 349765613:349765613(0) ack 
97403528 win 65535 mss 1460,nop,wscale 1,nop,nop,timestamp 7880043 
175504784,sackOK,eol

I thought maybe the state table was involved...

# pfctl -s state

no output

Why are packets going out em0 and ignoring my route-to rule?

Ideas, hints, feats of magic?

-- 
Thanks,

Josh Paetzel

PGP: 8A48 EF36 5E9F 4EDA 5A8C 11B4 26F9 01F1 27AF AECB


signature.asc
Description: This is a digitally signed message part.


Re: Large file system creation

2008-04-08 Thread Josh Paetzel
On Tuesday 08 April 2008 11:20:58 am Wojciech Puchar wrote:
  That looks like what I need.  I've got a seperate 32GB array to boot
   off of, so that's perfect.  Now to just read some man pages.  Thanks!
 
  How many memory do you have in this machine ?? To fsck 9 TB you will

 there is swap too . but my 1.4TB partition can be fsck'ed on 1GB RAM
 without swap.

  need a LOT of memory

 depends of block sized and inode counts.

 it will be most likely large 32K blocks, so quick fsck and little RAM


In my experience with UFS2 and fsck you will want to have a gig of ram per TB 
of filesystem.  You can get by with less sometimes, eventually you'll get 
bit.  Most mere mortals don't take UFS2 past 6-8TB in production.

There are of course exceptions

-- 
Thanks,

Josh Paetzel

PGP: 8A48 EF36 5E9F 4EDA 5A8C 11B4 26F9 01F1 27AF AECB


signature.asc
Description: This is a digitally signed message part.


Re: packet filter does not keep state

2008-04-02 Thread Josh Paetzel
On Wednesday 02 April 2008 09:03:06 am Erik Norgaard wrote:
 Hi,

 I have a problem connecting from one local subnet to another
 crossing an FBSD box with pf. Should be trivial, I have the
 following ruleset:

 snip
 # Local services accessible from wlan
 block in log on $wlan_if inet from $wlan_net to local_net
 pass  in log quick on $wlan_if inet proto tcp  from $wlan_net to \
   local_net port $local_tcp flags S/SA keep state
 pass  in log quick on $wlan_if inet proto udp  from $wlan_net to \
   local_net port $local_udp keep state
 pass  in log quick on $wlan_if inet proto icmp from $wlan_net to \
   local_net icmp-type $local_icmp keep state
 block in log quick on $wlan_if inet from $wlan_net to local_net

 block out log on $srv_if
 pass out quick on $srv_if inet from $srv_ip to $srv_net keep state
 pass out quick on $srv_if inet from $srv_ip to !local_net \
   keep state
 block out log quick on $srv_if
 /snip

 local_net is a table of the directly attached local networks, I
 try to connect from my wireless to a wired lan.

 But, tcpdump on pflog0 shows this:

 00 rule 54/0(match): pass in on ath0: 172.17.1.254.49347 
  192.168.0.254.80: [|tcp]
 81 rule 94/0(match): block out on vr0: 172.17.1.254.49347 
  192.168.0.254.80:  tcp 44 [bad hdr length 0 - too short,  20]

 Evidently, the packet is matched by the correct pass in rule, yet
 no state is created and it is subsequently blocked by the block
 out rule.

 I can add a pass out rule to get through, but that shouldn't be
 the correct solution, why does pf not keep state?

 Thanks, Erik

Is there an entry for the connection in the state table?  And does PF complain 
about the header length when what it really means to say is there's no state?  
It seems to me that a packet with no header might have trouble with the state 
table even if there's an entry for it.

I've had trouble wih PF acting in non-intuitive ways before, especially 
concerning nat, binat, and rdr rules, which it's hard to tell if you're 
dealing with due to the snip.

-- 
Thanks,

Josh Paetzel

PGP: 8A48 EF36 5E9F 4EDA 5A8C 11B4 26F9 01F1 27AF AECB


signature.asc
Description: This is a digitally signed message part.


Re: which ports tag should i follow?

2008-03-31 Thread Josh Carroll
On Tue, Apr 1, 2008 at 12:26 AM, CY Teng [EMAIL PROTECTED] wrote:
 Hi,
  i'm a newbie to freebsd. after reading handbook, i chose 7.0-stable and
  cvsup src-all, and now i don't know which ports tag to cvsup?
  does ports cvs tree have RELENG_7 tag too, or i should follow tag .?

Generally, you want to use .. The only time you'd use a specific tag
is in rare cases where you're using an old (EOL'd) version of FreeBSD
and want to point to a known-good snapshot of the ports tree for that
branch. For example, RELEASE_4_EOL.

So the short answer is, stick with . as the tag.

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


Re: problem with RAID Hard (hptrr driver)

2008-03-28 Thread Josh Paetzel
On Friday 28 March 2008 02:07:50 pm Nicolas Letellier wrote:
 Nicolas Letellier a écrit :
  Hello.
 
  I have a machine, with a RAID Controller.
  In the dmesg, I see:
  hptrr: HPT RocketRAID controller driver v1.1 (Mar 28 2008 16:05:16)
 
  And after, I see:
  hptrr: no controller detected.
 
  Is it normal? Does my RAID 1 work correctly?
 
  I read the hptrr manpage, and no informations are given.
  I read too the handbook (section RAID HARD) and the command atacontrol
  list returns nothing.
 
 
  In /dev, I see my hdd and the labels:
  /dev/twed0/dev/twed0s1a /dev/twed0s1c /dev/twed0s1e /dev/twed0s1g
  /dev/twed0s1  /dev/twed0s1b /dev/twed0s1d /dev/twed0s1f /dev/twed0s1h
 
  Anybody could help me? How verify if the RAID HARD is working well?
 
  Thanks.
 
   - Nicolas.

hptrr is the driver for a highpoint rocketraid, your controller is evidentally 
a 3ware, and is being picked up by twe.  You can monitor the array by 
installing sysutils/3dm from ports.

-- 
Thanks,

Josh Paetzel

PGP: 8A48 EF36 5E9F 4EDA 5A8C 11B4 26F9 01F1 27AF AECB


signature.asc
Description: This is a digitally signed message part.


Re: problem with RAID Hard (hptrr driver)

2008-03-28 Thread Josh Paetzel
On Friday 28 March 2008 04:08:04 pm Nicolas Letellier wrote:
 Josh Paetzel a écrit :
  hptrr is the driver for a highpoint rocketraid, your controller is
  evidentally a 3ware, and is being picked up by twe.  You can monitor the
  array by installing sysutils/3dm from ports.

 I monitor my array with tw_cli.
 I have this:

 /c0 show

 Unit  UnitType  Status %RCmpl  %V/I/M  Stripe  Size(GB)  Cache
 AVrfy
 ---
--- u0RAID-1OK -   -   -   232.885   ON
 -

 Port   Status   Unit   SizeBlocksSerial
 ---
 p0 OK   u0 232.88 GB   488397168 VDS41LT8D97USH
 p1 OK   u0 232.88 GB   488397168 VDS41LT8D7B8PH


 How know if my RAID is software or hardware?
 How know if data replication works?
 And, why this message hptrr: no controller detected in my dmesg?

 Thanks!

   - Nicolas.

That is a hardware RAID array
The OK tells you the mirror working
The hptrr driver is unneccessarily verbose about not finding devices to attach 
to.


-- 
Thanks,

Josh Paetzel

PGP: 8A48 EF36 5E9F 4EDA 5A8C 11B4 26F9 01F1 27AF AECB


signature.asc
Description: This is a digitally signed message part.


Re: confusion configuring NAT

2008-03-19 Thread Josh Paetzel
On Wednesday 19 March 2008 03:02:59 pm Robert Huff wrote:
   I'm trying to get NAT going, and apparently failing to
 understand large parts of the concept,
   1) Per the handbook I have added

 options IPFIREWALL
 options IPDIVERT

   to the kernel.
   2) The firewall is active, and configured so it works for the
 machine itself.  (Settings appended.)
   3) I need to do translation for all machines on 10.0.0.0/8.
   4) Working from the ipfw man page:

 ipfw add nat 10 all from any to any

   then

 ipfw nat 10 config log ip 10.0.0.0/8

   Uh-oh:

 ipfw: bad ip address ``10.0.0.0/8''

   OK, choose one machine.

 ipfw nat 10 config log ip 10.0.0.3

   Accepted.
   5) Now, start natd. (natd.conf appended)

 /sbin/natd -l -f /etc/natd.conf

   Nope:

 natd: instance default: aliasing address not given


   Huh?  This has gotten a lot more coplicated since the last
 time.  :-P



   Robert Huff

I don't see much in the man page for ipfw concerning nat, certainly not the 
rules you are specifying.   Try man natd  

-- 
Thanks,

Josh Paetzel

PGP: 8A48 EF36 5E9F 4EDA 5A8C 11B4 26F9 01F1 27AF AECB


signature.asc
Description: This is a digitally signed message part.


Re: Any software that can do X windows screen capture (with mouse cursor)

2008-03-18 Thread Josh Carroll
On Tue, Mar 18, 2008 at 12:54 PM, Patrick Dung [EMAIL PROTECTED] wrote:
 Hello

  As title, I have tried xwd, it can't capture mouse curosr.

The import program that's part of the ImageMagick port can do so:

import image.png

Then draw a box around whatever you want to screen shot.
Alternatively, it can do the whole root window:

import -window root ss.png

ImageMagick is in:

/usr/ports/graphics/ImageMagick

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


Re: Why not a DVD iso version too?

2008-03-17 Thread Josh Paetzel
On Monday 17 March 2008 08:15:25 am RW wrote:
 On Sun, 16 Mar 2008 16:29:29 -0500

 Joshua Isom [EMAIL PROTECTED] wrote:
  Well, since the OP just wants a DVD version, and not specifically a
  version that's too big to fit on a CD, why not just create a DVD iso
  that contains just enough to install?

 That's something I've been thinking about. These days I don't use CDs
 for anything other than than creating live disks, and installation
 disks, and once my stock runs out I don't really want to buy any more.

 Is it possible to burn a bootable CD ISO image to a DVD-R?

Yes.  It souldn't matter what media you use, there's nothing special about an 
OS iso for a dvd, other than it's bigger than what will fit on a cd.

-- 
Thanks,

Josh Paetzel

PGP: 8A48 EF36 5E9F 4EDA 5A8C 11B4 26F9 01F1 27AF AECB


signature.asc
Description: This is a digitally signed message part.


Re: pkg_list mypackage?

2008-03-13 Thread Josh Carroll
  The online FreeBSD manual in the 4.4 Using the Packages System part
  doesn't mention a command to list the files that were installed
  through a package.

  What is the equivalent of eg. pkg_list mypackage?

Have a look at the pkg_info man page. The option you're looking for is -L.

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


Re: no ad1s3a,b,d... on ad1s3 after bsdlabel

2008-03-12 Thread Josh Paetzel
On Wednesday 12 March 2008 07:30:34 am Snow Mountains wrote:
 2008/3/12, Lowell Gilbert [EMAIL PROTECTED]:
  Snow Mountains [EMAIL PROTECTED] writes:
I try to understand bsdlabel.
I have former fat slice (ad1s3) on my disk and I want to make several
BSD partitions on it. I did this:
   
# dd if=/dev/zero of=/dev/ad1s3 bs=1k count=1024
1024+0 records in
1024+0 records out
1048576 bytes transferred in 0.318986 secs (3287217 bytes/sec)
# bsdlabel -w ad1s3
# bsdlabel -e ad1s3
(edit)
# bsdlabel ad1s3
# /dev/ad1s3:
8 partitions:
#size   offsetfstype   [fsize bsize bps/cpg]
  a: 1000   164.2BSD0 0 0
  b: 1000 10164.2BSD0 0 0
  c: 476166600unused0 0 # raw part,
don't edit d: 27616644 20164.2BSD0 0 0
# newfs -U /dev/ad1s3a
newfs: /dev/ad1s3a: could not find special device
# ls /dev/ad1s3*
/dev/ad1s3
#
   
What I miss because I don't have ad1s3a,b,d?
If repeat same procedure on disk (big file) mounted as /dev/md0, a see
/dev/md0,a,b,d,e... after this group of commands.
 
  On what version of FreeBSD?

 This happens on:

 # uname -r
 6.2-RELEASE-p11

 SergiM

Did you delete and recreate the slice or is it still marked as FAT when you do 
fdisk /dev/ad1

If it's still a FAT/DOS slice you might try deleting and recreating it as a 
native FreeBSD slice, I'm not entirely sure putting a bsdlabel on a FAT slice 
is going to do the right thing (although I could be wrong here)

-- 
Thanks,

Josh Paetzel

PGP: 8A48 EF36 5E9F 4EDA 5A8C 11B4 26F9 01F1 27AF AECB


signature.asc
Description: This is a digitally signed message part.


Questions about camcontrol, hot-swapping, ciss and Compaq SmartArray

2008-03-10 Thread Josh Endries

Hello,

Today I saw that one of my disks seems to be dead/dying in a RAID 5 array I 
have:

http://pastebin.ca/937249

snip
loki.domain.int ciss0: *** Fatal drive error, SCSI port 1 ID 0
loki.domain.int (da1:ciss0:0:1:0): WRITE(10). CDB: 2a 0 c ae 3f d0 0 0 20 0
loki.domain.int (da1:ciss0:0:1:0): CAM Status: SCSI Status Error
loki.domain.int (da1:ciss0:0:1:0): SCSI Status: Check Condition
loki.domain.int (da1:ciss0:0:1:0): MEDIUM ERROR asc:11,0
loki.domain.int (da1:ciss0:0:1:0): Unrecovered read error
loki.domain.int (da1:ciss0:0:1:0): Retrying Command (per Sense Data)
/snip

I see messages for port 0 only, but varying ID 0-3, and I'm not sure what that 
means (partition?). After a while the error messages went away, though the 
disks were/are still being used. I found cciss_vol_status online but it says the 
volume is OK (not degraded), which doesn't really make sense to me:


# cciss_vol_status /dev/ciss0
/dev/ciss0: (Smart Array 642) RAID 0 Volume 0(?) status: OK.
/dev/ciss0: (Smart Array 642) RAID 5 Volume 1(?) status: OK.

Is there a way I can tell which port/disk is bad from these messages?

Assuming I can determine which disk it is, do I need to do anything in the OS 
before/after I swap out a drive? I've seen people talk about rescanning and 
running other camcontrol commands before...


Any other tips?

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


Re: ext3

2008-03-09 Thread Josh Paetzel
On Sunday 09 March 2008 07:23:14 am Manolis Kiagias wrote:
 Viktor Penkov wrote:
  Hi everybody!!!I've installed the new release of fbsd, but I can't mount
  my ext3 partitions.can somebody help me with this?
  best regards



 Have a look at

 man 5 ext2fs

 for instructions.

 You will have to mount ext3 as ext2. This is possible as long as the
 ext3 filesystem is not dirty (i.e. the journal is clean, meaning the
 volume was properly dismounted last time you used it). Mind you, IIRC,
 if you write something to the disk while it is mounted as ext2, it will
 probably go through a long fsck next time you reboot into Linux
 (assuming you are sharing this partition between Linux and FreeBSD).

This may be mentioned in the manpage, but in case it's not, sysutils/e2fsprogs 
is an invaluable tool for those wishing to deal with ext[2|3]fs on FreeBSD.

-- 
Thanks,

Josh Paetzel

PGP: 8A48 EF36 5E9F 4EDA 5A8C 11B4 26F9 01F1 27AF AECB


signature.asc
Description: This is a digitally signed message part.


Re: Help with pf ruleset

2008-03-09 Thread Josh Paetzel
On Sunday 09 March 2008 08:22:07 am erik Wilson wrote:
 I'm pulling my hair out here. I've been working on this for days without
 any success.

 I've whittled the ruleset down to the barest possible rules and even that
 doesn't work. I'm at my wits end. I would really appreciate it if someone
 could show me where i'm being a complete and total moron.

 Here's the situation. I have a somewhat unique environment. It consists of
 2 WAN's, an internal LAN, and numerous VLANS (isolated clients, which need
 to be accessible from the internet, but not to each other). This runs in a
 VMWare esx server, but that's not really important.

 FreeBSD 7.0-RELEASE

 em0 = lan (10.0.0.x)
 em2 = WAN1 (y.y.y.y) (dhcp)
 em3 = WAN2 (x.x.x.x) (static /28 subnet)

 the default gateway is on nic2. nic3 will need to forward ip:port's to
 various vlans. nic2 is used for all outbound lan traffic (internet). nic2
 will need to failover to nic3 eventually, and nic3 will have to failover to
 nic2 (for outbound, obviously no choice for inbound).

 So here's the problem. I can't even get nic2 or nic3 to respond to a ping
 request from outside my network when pf is enabled. I know the interfaces
 are set up correct, as I can ping the default gateways of both interfaces.

 Also, outbound NAT works perfectly on wan1.

 Here's my ruleset.

 lan_if=em0
 wan1_if=em2
 wan2_if=em3
 set block-policy return
 set skip on lo0
 nat on $wan1_if from $lan_if:network to any - ($wan1_if)
 block in log
 pass out log keep state
 pass in log inet proto icmp all icmp-type echoreq keep state
 pass in log quick on $lan_if

 Looks simple enough, right? Why won't it work? All i want is to get a ping
 from both of the firewalls WAN's from outside the network.

 Any ideas?

 Routing tables

 Internet:
 DestinationGatewayFlagsRefs  Use  Netif Expire
 defaulty.y.y.129   UGS 0 4433em2
 10.0.0.0/24link#1 UC  00em0
 10.0.0.1   00:0c:29:a9:e5:75  UHLW1  338em0   1177
 10.0.0.2   00:0c:29:c0:74:57  UHLW1 3291em0   1041
 10.0.0.10  00:19:db:b1:07:78  UHLW1 4827em0   1185
 10.0.1.0/24link#7 UC  00  vlan0
 10.0.2.0/24link#8 UC  00  vlan1
 10.0.2.2   00:0c:29:e9:8c:d2  UHLW1  251  vlan1   1190
 10.0.3.0/24link#9 UC  00  vlan2
 10.0.3.2   00:50:56:9c:53:89  UHLW1  420  vlan2   1152
 10.0.4.0/24link#10UC  00  vlan3
 10.0.5.0/24link#11UC  00  vlan4
 127.0.0.1  127.0.0.1  UH  00lo0
 y.y.y.128/25link#3 UC  00em2
 x.x.x.144/28 link#4 UC  00em3
 x.x.x.14600:0c:29:b5:0e:bb  UHLW16lo0

The obfusication is making it harder for my brain to deal with than it should 
be.  At any rate, em3 isn't going to work properly without a route-to rule to 
get it to answer back to pings out the proper gateway.  I'm not entirely sure 
why you can't ping the ip on em2, could you provide the output of tcpdump -i 
em2 while you ping it?

Also, what did you do with em1? :)

-- 
Thanks,

Josh Paetzel

PGP: 8A48 EF36 5E9F 4EDA 5A8C 11B4 26F9 01F1 27AF AECB


signature.asc
Description: This is a digitally signed message part.


Re: make.conf CPUTYPE Xeon Conroe?

2008-03-05 Thread Josh Paetzel
On Wednesday 05 March 2008 11:55:48 am Nerius Landys wrote:
  I'm running FreeBSD 7.0 on a server with an Intel Xeon Dual-Core 3060
 Conroe (2.4GHz) CPU.
 I'm wondering what I should set CPUTYPE to in my /etc/make.conf.
 The file /usr/share/examples/etc/make.conf has this information:

 #   (Intel CPUs)core2 core nocona pentium4m pentium4 prescott
 #   pentium3m pentium3 pentium-m pentium2
 #   pentiumpro pentium-mmx pentium i486 i386

 I guess those are the possibilities.  Which one should I choose for my
 processor?

 Also, by accident, I had CPUTYPE=p4 in my make.conf when I compiled world,
 kernel, and ports.  p4 is a flag from older FreeBSD distributions I
 think.  Will this (this meaning both that p4 may be unrecognized and/or
 it's not my processor type) cause any problems, or should I recompile
 everything with the correct CPUTYPE flag?  Installing world is a hassle
 because it's not easy for me to do it from single user mode.

 Thanks.

 - Nerius

As a general rule, setting a CPUTYPE is something you should try to 
avoid...there's all sorts of breakage it can cause for very little gain.  If 
you're heart is set on it though, your CPU is a core2.

-- 
Thanks,

Josh Paetzel

PGP: 8A48 EF36 5E9F 4EDA 5A8C 11B4 26F9 01F1 27AF AECB


signature.asc
Description: This is a digitally signed message part.


usb4bsd vs. stock ucom/umodem drivers and pantech px-500

2008-02-22 Thread Josh Paetzel
So in 6.3-RELEASE-p1 both amd64 and i386 I am getting 25K/sec off my sprint 
EVDO pcmcia card.  This is an order of magnitude drop vs. 6.2-R and 7.0-RC1  
7.0 had a habit of panicing after a few minutes of heavy transfer, so I ended 
up downgrading to 6.3-R.

In a search for a solution I gave usb4bsd a try and am back to normal speeds 
(250K/sec)

I'm not sure there is a question here, more just something for other people to 
google.

-- 
Thanks,

Josh Paetzel

PGP: 8A48 EF36 5E9F 4EDA 5A8C 11B4 26F9 01F1 27AF AECB


signature.asc
Description: This is a digitally signed message part.


Re: accessing a jailed samba server

2008-02-18 Thread Josh

I am having dramas with samba in a 6.3 jail

Basically the part that is not working, is I cant ping/resolve the 
netbios name of the samba box from any windows machine. There is a linux 
samba box here, and I tried the same config as that, and no go.


Baiscally if I try and ping it from a windows box, I get this:

ping bytecart
Ping request could not find host bytecart. Please check the name and try 
again.


Nothing in nbtstat -c relating to the samba box.

The weird thing is that I can see the samba box in windows explorer in 
the network places. Clicking on it obvious says 'network path not found' 
or such. I can manually map the network drive by going 
\\1.2.3.4\username though.


Also, this seems odd (from netstat -an):

udp4   0  0  192.168.94.9.138*.*
udp4   0  0  192.168.94.9.137*.*
udp4   0  0  192.168.94.9.138*.*
udp4   0  0  192.168.94.9.137*.*


So yeah, any ideas?

Cheers,
Josh


Gelsema, P (Patrick) - FreeBSD wrote:

On Wed, February 13, 2008 17:44, Dave wrote:

Hello,
Has anyone got samba running in a jail? And if so, is it possible to
access that server from outside this jail? I'm implementing some items in
a
jailed environment and now have to test samba before going production.
If any workarounds are needed i'd appreciate knowing them.
Thanks.
Dave.



Running Samba within a jail on Freebsd 7-RC2 serving data from a ZFS pool.
No issues or anything special required.

Rgds,

Patrick


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



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


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


  1   2   3   4   5   6   >