Re: ZFS question

2013-03-21 Thread Jeremy Chadwick
On Wed, Mar 20, 2013 at 10:10:20PM -0700, Reed A. Cartwright wrote:
 {snipped stuff about CAM and mps and ZFS deadman}

 Jeremy, I have a question about enabling kernel dumps based on my
 current swap config.

 I currently have a 1TB drive split into 4 geli encrypted swap
 partitions (Freebsd doesn't like swap partitions over ~250 GB and I
 have lots of RAM).

 These partitions are UFS-swap partitions and are
 not backed by any mirroing or ZFSing.
 
 So, how do I best enable crash dumps?  If I need to remove encryption,
 I can do that.

I have zero familiarity with geli(8), gbde(8), and file-based swap.

My gut feeling is that you cannot use this to achieve a proper kernel
panic dump, but I have not tried it.

You can force a kernel panic via sysctl debug.kdb.panic=1.  I'm not
sure if an automatic memory dump to swap happens with the stock GENERIC
kernel however.  I can talk more about that if needed (it involves
adding some options to your kernel config, and one rc.conf variable).

Regarding enabling crash dumps as a general concept:

In rc.conf you need to have dumpdev=auto (or point it to a specific
disk slice, but auto works just fine assuming you have a swap or
dump device defines in /etc/fstab -- see savecore(8) man page).  Full
details are in rc.conf(5).  How this works:

After a system reboots, during rc script startup, rc.d/savecore runs
savecore which examines the configured dumpdev for headers + tries to
detect if there was previously a kernel panic.  If it finds one, it
begins pulling the data out of swap and writing the results directly to
/var/crash in a series of files (again, see savecore(8)).  It does this
***before*** swapon(8) is run (reason why should be obvious) via
rc.d/swapon.  After it finishes, swapon is run (meaning anything
previously written to the swap slice is effectively lost), and the
system continues through the rest of the rc scripts.

Purely for educational purposes: to examine system rc script order, see
rcorder(8) or run rcorder /etc/rc.d/*.

-- 
| Jeremy Chadwick   j...@koitsu.org |
| UNIX Systems Administratorhttp://jdc.koitsu.org/ |
| Mountain View, CA, US|
| Making life hard for others since 1977. PGP 4BD6C0CB |
___
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: Handbook Jail Chapter rewrite available for critique

2013-03-21 Thread Ian Smith
On Tue, 19 Mar 2013 17:53:30 +0100, Dirk Engling wrote:
  On 18.03.13 20:16, s...@tormail.org wrote:
  
   to configure things themselves. In my experience, ezjail is a much better
   solution. I also see that you are the maintainer/author of qjail and like
   to shovel your opinion as the only solution, both in this rewrite and
   all over the FreeBSD forums.
  
  Taking a look at the qjail code I can not help to notice several odd
  similarities with the ezjail-admin script, down to the very basic bail
  out routines. I would not go so far to claim it was just a global
  search/replace job but to me the code looks familiar enough to find the
  
  # Copyright  2010,  Qjail project. All rights reserved.
  
  offensive. I am usually quite open with the license of my software,
  beerware is as permissive as it gets. I just can not take some script
  kiddie right out copying my code verbatim and selling it as his, not
  even acknowledging me as the original author.
  
  Anyone here with suggestions how to properly react to this kind of fork?

Yes.  Publicity.  Making sure the FreeBSD community gets to finds out.

You may be polite and un-selfserving enough to not go so far Dirk, but 
I will.  Huge swathes of qjail are direct copies of your code, in most 
cases only with the names of the variables changed from ezjail_* to 
qjail_*.  I found it cute renaming 'flavour' to the American spelling.

Anyone looking at bin/qjail from qjail-2.1.tbz alongside the latest 
ezjail-admin (mine downloaded from your cvsweb) cannot fail to notice
within the first couple of screens.  Sure there are changes, additions 
and deletions, but to fail to acknowledge the original authorship of 
this code, and the implication that Joe Barbish (aka 'Qjail project') is 
its original author is entirely outrageous; not ethical, even if legal.

To that end I'm cross-posting this to -questions, where Mr Barbish has 
also posted about his proposed rewrite of Chapter 16 of the Handbook, 
which is nothing but a huge and poorly written manual for 'the qjail 
way', with its peculiar assumptions and unique jailcell terminology.  
Fourth Generation, no less!

The idea that the doc gang would entertain the idea of removing all of 
the worthy content of the present Chapter 16 - even if it does need some 
updating - and replace it with this effort is laughable, yet stranger 
things have happened if there's any disconnect between developers and 
documenters .. witness the Handbook firewalls section, by Joe Barbish.

cheers, Ian
___
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: ZFS question

2013-03-21 Thread Jeremy Chadwick
{thread snip}

For those following/interested in this conversation, it's been moved to
freebsd-fs:

http://lists.freebsd.org/pipermail/freebsd-fs/2013-March/016812.html
http://lists.freebsd.org/pipermail/freebsd-fs/2013-March/016813.html

And the long/more recent analysis I did of the problem stated:

http://lists.freebsd.org/pipermail/freebsd-fs/2013-March/016814.html

-- 
| Jeremy Chadwick   j...@koitsu.org |
| UNIX Systems Administratorhttp://jdc.koitsu.org/ |
| Mountain View, CA, US|
| Making life hard for others since 1977. PGP 4BD6C0CB |
___
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: Leaking disk space

2013-03-21 Thread Dan Thomas
 Have you used fstat to identify the big growing file which is taking up the 
 space, and which process has the file open?

It's not an unlinked file. I've tried using fstat and lsof to identify
it, and there's no inodes with zero links or that don't have a
matching file on disk.

Dan

On 20 March 2013 23:08, Daniel O'Callaghan da...@clari.net.au wrote:
 On 21/03/2013 3:55 AM, Dan Thomas wrote:

 Stopping Postgres doesn't fix it, but rebooting does which points at

 Have you used fstat to identify the big growing file which is taking up the
 space, and which process has the file open?
 A file which has been unlinked from all directories won't be seen by du, but
 it does not free disk space until no process has it open.

 USER CMD  PID   FD MOUNT  INUM MODE SZ|DV R/W
 root syslogd476488 /4317027 -rw-r--r--   19776  w
 root syslogd476489 /4317041 -rw---  63  w

 That might help to track it down.

 Danny


 ___
 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: Handbook Jail Chapter rewrite available for critique

2013-03-21 Thread Alejandro Imass
On Thu, Mar 21, 2013 at 3:35 AM, Ian Smith smi...@nimnet.asn.au wrote:
 On Tue, 19 Mar 2013 17:53:30 +0100, Dirk Engling wrote:
   On 18.03.13 20:16, s...@tormail.org wrote:
  
to configure things themselves. In my experience, ezjail is a much better
solution. I also see that you are the maintainer/author of qjail and like
to shovel your opinion as the only solution, both in this rewrite and
all over the FreeBSD forums.


[...]

  
   # Copyright  2010,  Qjail project. All rights reserved.
  
   offensive. I am usually quite open with the license of my software,
   beerware is as permissive as it gets. I just can not take some script
   kiddie right out copying my code verbatim and selling it as his, not
   even acknowledging me as the original author.
  
   Anyone here with suggestions how to properly react to this kind of fork?

 Yes.  Publicity.  Making sure the FreeBSD community gets to finds out.


[...]

 To that end I'm cross-posting this to -questions, where Mr Barbish has
 also posted about his proposed rewrite of Chapter 16 of the Handbook,
 which is nothing but a huge and poorly written manual for 'the qjail
 way', with its peculiar assumptions and unique jailcell terminology.
 Fourth Generation, no less!


+1

Thank you Ian for cross-posting here.

The first thing I did when I got the new chapter for review was search
for the work EzJail and I was curious as to why EzJail is not
mentioned anywhere in this new proposal and why it isn't mentioned in
the current handbook either under in section 16.5.2 High-Level
Administrative Tools in the FreeBSD Ports Collection. If there is
__any__ tool that should be mentioned in the jails chapter it is
EzJail because it's really easy to use and does a damn good job.

We've been using it in production __extensively__ since about 2010 and
the one and only issue we've had was probably related to some sort of
border-line bug with nullfs which has never happened since. We
currently run half a dozen servers with anywhere from 12 to 24 jails
each and we've only had a single isolated incident and it wasn't even
related directly to EzJail. We use flavours extensively and constantly
derive jails from others and move jails between servers, much like if
we were using VMWare; it's that easy, or easier, and works every time.

NOW some things start to make sense to me, when I posted a problem
with EzJail here last year that very few people, if any, knew what I
was talking about. An how could they? if it's not mentioned anywhere
in the handbook or that jail man page(s).

In fact, looking back at this thread[1] I can see that great deal of
misunderstanding an unnecessary confusion could have been that the
term EzJail meant nothing to most people commenting on the thread.
When I commented the problem to Dirk he immediately recognized that it
could have been a problem with nullfs and so did jb[2], who not only
immediately thought of nulls, but actually found some bugs that were
very similar to my situation[3], and which is BTW still open AFAICT.

Anyway, the point I'm trying to make is that it seems quite odd that
EzJail is not very publicized and I would like to see it prominently
mentioned in the handbook and man pages as a great tool for Jail
administration.

Thanks,

--
Alejandro Imass

[1] http://lists.freebsd.org/pipermail/freebsd-questions/2012-April/240468.html
 http://lists.freebsd.org/pipermail/freebsd-questions/2012-April/240501.html
 http://lists.freebsd.org/pipermail/freebsd-questions/2012-April/240551.html
[2] http://lists.freebsd.org/pipermail/freebsd-questions/2012-April/240566.html
 http://lists.freebsd.org/pipermail/freebsd-questions/2012-April/240569.html
[3] PR#147420
 http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/147420
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


http://localhost/phpmyadmin

2013-03-21 Thread Danny Gia

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


Installing openssl from ports

2013-03-21 Thread Jim Ballantine
Hi,

I understand that heimdal and openssl are both port of the base system and
both install
fine with a system build/install.  But when I attempt to install the latest
openssl for the
port system, it fails with a conflict (installs file in the same place)
with heimdal.  I've search
the web for an answer but haven't found one and asked the port owner.

So my question is short of editing the Make file to remove the installation
of the file in
conflict, what do I need to do to install the openssl port?

Thanks
Jim Ballantine
___
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


kernel config file

2013-03-21 Thread Fbsd8
Back around 4.x there was a File that had all the available kernel 
compile options with their meanings as comments. On 9.1 I don't see that 
file any more. Where can I find that file that lists all the kernel 
compile options? The 9.1 NOTES file is not that file.


I have makeoptions NO_MODULES=yes statement in my kernel config file 
and the blanktime and warp_saver load modules don't get created.


I need the options statements for those items so I can compile then into 
the kernel.


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: Installing openssl from ports

2013-03-21 Thread Jerry
On Thu, 21 Mar 2013 14:06:52 -0400
Jim Ballantine articulated:

 Hi,
 
 I understand that heimdal and openssl are both port of the base
 system and both install
 fine with a system build/install.  But when I attempt to install the
 latest openssl for the
 port system, it fails with a conflict (installs file in the same
 place) with heimdal.  I've search
 the web for an answer but haven't found one and asked the port owner.
 
 So my question is short of editing the Make file to remove the
 installation of the file in
 conflict, what do I need to do to install the openssl port?

I have the port version installed also. You need to put this in
your /etc/make.conf file sans quotations marks:
WITH_OPENSSL_PORT=yes and then build the port. Be sure to run
make config in the port prior to actually building it and that is
about it. If you are building it manually, you might want to run make
clean in the port prior to attempting to build it though.

-- 
Jerry ♔

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the Reply-To header.
__

___
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: kernel config file

2013-03-21 Thread Chris Whitehouse

On 21/03/2013 19:54, Fbsd8 wrote:

Back around 4.x there was a File that had all the available kernel
compile options with their meanings as comments. On 9.1 I don't see that
file any more. Where can I find that file that lists all the kernel
compile options? The 9.1 NOTES file is not that file.

I have makeoptions NO_MODULES=yes statement in my kernel config file
and the blanktime and warp_saver load modules don't get created.

I need the options statements for those items so I can compile then into
the kernel.


Would it be /usr/src/sys/conf/NOTES ?

%grep warp_saver /usr/src/sys/conf/NOTES
device  warp_saver

And isn't blanktime set in rc.conf?

%grep blank /etc/defaults/rc.conf
blanktime=300 # blank time (in seconds) or NO to turn it off.


Chris


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



___
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: kernel config file

2013-03-21 Thread Polytropon
On Thu, 21 Mar 2013 15:54:22 -0400, Fbsd8 wrote:
 Back around 4.x there was a File that had all the available kernel 
 compile options with their meanings as comments. On 9.1 I don't see that 
 file any more. Where can I find that file that lists all the kernel 
 compile options? The 9.1 NOTES file is not that file.

There are several files with such content. For architecture-
independent and general settings:

/usr/src/sys/conf/NOTES

For i386 or amd64 architecture, individual:

/usr/src/sys/i386/conf/NOTES
/usr/src/sys/amd64/conf/NOTES

Similarly, you'll find the DEFAULTS and GENERIC files helpful.



 I have makeoptions NO_MODULES=yes statement in my kernel config file 
 and the blanktime and warp_saver load modules don't get created.

Have a look at man src.conf for dealing with the creation
of modules.



 I need the options statements for those items so I can compile then into 
 the kernel.

If I remember correctly, you'll need device sc, device vga
and device splash for the splash screen and screen saver
support.

Also see /usr/src/sys/conf/NOTES where several savers are
listed with options like device warp_saver.



-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: No sound with Thinkpad X60

2013-03-21 Thread Peter Harrison
Saturday, 16 March 2013 at  0:17:18 +0100, Michael Ross said:
 On Sat, 16 Mar 2013 00:28:27 +0100, Peter Harrison  
 four.harris...@googlemail.com wrote:
 
  Friday, 15 March 2013 at 18:48:24 +0100, Michael Ross said:
  On Thu, 14 Mar 2013 23:59:09 +0100, Peter Harrison
  four.harris...@googlemail.com wrote:
 
   Hi list,
  
   I've a problem with sound on a Thinkpad X60, which has an Intel HDA  
  chip.
  
   This is what I see in dmesg:
  
   hdac0: Intel 82801G HDA Controller mem 0xee24-0xee243fff irq 17  
  at
   device 27.0 on pci0
   hdacc0: Analog Devices AD1981HD HDA CODEC at cad 0 on hdac0
   hdaa0: Analog Devices AD1981HD Audio Function Group at nid 1 on  
  hdacc0
   pcm0: Analog Devices AD1981HD (Analog) at nid 5 and 25,8 on hdaa0
   hdacc1: Conexant (0x2bfa) HDA CODEC at cad 1 on hdac0
   unknown: Conexant (0x2bfa) HDA CODEC Modem Function Group at nid 2  
  on
   hdacc1 (no driver attached)
  
   and from sndstat:
  
   FreeBSD Audio Driver (newpcm: 32bit 2009061500/i386)
   Installed devices:
   pcm0: Analog Devices AD1981HD (Analog) (play/rec) default
  
   and from mixer:
  
   Mixer vol  is currently set to 100:100
   Mixer pcm  is currently set to 100:100
   Mixer speaker  is currently set to 100:100
   Mixer cd   is currently set to   1:1
   Mixer rec  is currently set to   1:1
   Mixer igainis currently set to  42:42
   Mixer ogainis currently set to 100:100
   Mixer monitor  is currently set to  67:67
   Recording source: cd
  
   But I have no sound. This is using Gnome 2.32 on 9.1-R. I did  
  initially
   accidentally install Pulseaudio, but have subsequently deleted it and
   reinstalled everything that depended on it without the Pulseaudio
   dependency.
  
   Any thoughts on what I'm doing wrong?
  
   Thanks in advance.
 
  Possibly not helping a lot:
 
  I have a T510 thinkpad with Intel HDA audio, running Windows 7.
  I need to have the audio driver *and* the modem driver installed for any
  sound to work.
  So possibly the modem part has to be initialised or something.
  You have no driver attached on your modem, so maybe that's worth  
  looking
  at.
 
  You could also try if sound works from a terminal without running Gnome  
  at
  all,
  just to be sure it's not some Gnome configuration thing.
 
  Regards,
 
  Michael
 
  Thanks Michael.
 
  Tried turning gnome off. Still no sound from the console. Is there a  
  FreeBSD kernel module for the modem?
 
 
 Don't know.
 But stepping back, do you have snd_hda loaded?
 ( Silly me, should have been the first question. )
 
 Found this:
 http://www.bmichelsen.no/blog/2012/01/28/configuring-freebsd-for-x60s/
 
 Regards,
 
 Michael

Sorry for the late reply, been away from the keyboard for a while.

I'm not loading snd_hda separately, but it's definitely there:

root@thinkpad:/home/peter # kldload snd_hda
kldload: can't load snd_hda: File exists

I've seen that blog and a couple of other sites describing configure FreeBSD on 
the X60, and they all seem to infer that sound works without a problem.

So for the moment at least I'm stumped.

Thanks for trying to help.

Cheers,



Peter Harrison.
___
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


route BGP

2013-03-21 Thread just man man
dear firiend,

do you have configuration routing BGP in freebsd ?
 thank you
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: route BGP

2013-03-21 Thread Daniel O'Callaghan

Hi,

On 22/03/2013 12:28 PM, just man man wrote:

do you have configuration routing BGP in freebsd ?
  thank you


I use quagga, because that's what I have been using for the last 10 years.
http://www.freshports.org/net/quagga-re/
http://www.freshports.org/net/quagga/

You might also like to try OpenBGPD
http://www.freshports.org/net/openbgpd/

Danny
___
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[2]: route BGP

2013-03-21 Thread Vladislav Prodan

 Hi,
 
 On 22/03/2013 12:28 PM, just man man wrote:
  do you have configuration routing BGP in freebsd ?
thank you
 
 I use quagga, because that's what I have been using for the last 10 years.
 http://www.freshports.org/net/quagga-re/
 http://www.freshports.org/net/quagga/
 
 You might also like to try OpenBGPD
 http://www.freshports.org/net/openbgpd/


Or bird

 http://www.freshports.org/net/bird/


-- 
Vladislav V. Prodan
System  Network Administrator 
http://support.od.ua   
+380 67 4584408, +380 99 4060508
VVP88-RIPE

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


Re: No sound with Thinkpad X60

2013-03-21 Thread Bernt Hansson

2013-03-22 00:42, Peter Harrison skrev:

Sorry for the late reply, been away from the keyboard for a while.

I'm not loading snd_hda separately, but it's definitely there:

root@thinkpad:/home/peter # kldload snd_hda
kldload: can't load snd_hda: File exists

I've seen that blog and a couple of other sites describing configure FreeBSD on 
the X60, and they all seem to infer that sound works without a problem.

So for the moment at least I'm stumped.

Thanks for trying to help.

Cheers,


In your /etc/rc.conf you have

mixer_enable=YES  # Run the sound mixer.

sound_enable=YES Dont know if that should be in loader.conf or

rc.conf. Not having it myself.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: No sound with Thinkpad X60

2013-03-21 Thread Polytropon
On Fri, 22 Mar 2013 05:27:22 +0100, Bernt Hansson wrote:
 sound_enable=YES Dont know if that should be in loader.conf or
 rc.conf. Not having it myself.

That would be /boot/loader.conf, see /boot/defaults/loader.conf
for examples (e. g. how to specify snd_hda use).



-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: No sound with Thinkpad X60

2013-03-21 Thread Bernt Hansson

2013-03-22 00:42, Peter Harrison skrev:

Put this in your /boot/loader.conf and report back.

hw.snd.default_unit=0

Test with other nubers if 0 do not work.
___
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