Re: pkg-config --cflags glib-2.0 gives wrong -I dir

2011-06-26 Thread Matthias Apitz
El día Saturday, June 25, 2011 a las 07:20:52PM -0500, Dan Nelson escribió:

> Checking Solaris and SUSE Linux, I see a similar pair of directories:
> 
> solaris$ pkg-config --cflags glib-2.0
> -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
> 
> linux$ pkg-config --cflags glib-2.0 
> -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include
> 
> The /usr/lib* directory on each system contains a single file: glibconfig.h. 
> On FreeBSD, this file is in /usr/local/include/glib-2.0/ along with all the
> other headers (headers don't belong in /lib/ anyway).

I totally agree: headers don't belong there. The same is broken for:

$ pkg-config --cflags gtk+-2.0
-D_THREAD_SAFE -D_REENTRANT -I/usr/local/include/gtk-2.0 
-I/usr/local/lib/gtk-2.0/include...

matthias
-- 
Matthias Apitz
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e  - w http://www.unixarea.de/
___
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"


fubar'ed it good this time...

2011-06-26 Thread Kurt Buff
Sitrep: Lenovo T61, dual booting WinXP and FreeBSD (amd64 8.1-RELEASE)
on a 500gb drive. Just did a freebsd-update from 8.1 to 8.2, just
doing the second boot to do 'freebsd-update install' for the second
time, and got dumped into the mountroot prompt.

AFAICT, I managed somehow to write something strange into /etc/fstab.
Can't tell what it is, because during boot it passes by too quickly
for me to read, and the boot process dumps me into the mountroot
prompt.

WinXP still boots just fine, and the FreeBSD boot manager is in place,
and was working before the update.

FreeBSD was booting just fine from /dev/ad0s2a, prior to running freebsd-update.

Now, however, when I select f1 to boot FreeBSD, I get the boot menu,
output from the boot process, and (as I've mentioned) then I get the
mountroot prompt.

I've even downloaded and burned the 8.2 live boot iso, but it says it
can't find a hard drive from sysinstall - both the Fdisk and Label
options say
 "No disks found! Please verify that your disk controller
 is being properly probed at boot time. See the Hardware
 guide on the Documentation menu for clues on
 diagnosing this type of problem."

I get no love from the Fixit shell, either, with /dev being void of
any reference to the hard drive - just acd0.

I'm pretty sure that if I can mount the disk that I can just edit the
cruft out of /etc/fstab, and it will all be fine, but I can't get
there...

Anyone have a thought on how to get this running? I've googled myself
silly on this, and am getting nowhere.

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


Using a "special" proxy for ports

2011-06-26 Thread Dennis Glatting


I have a requirement where I need to archive ports used across twenty 
hosts for a year or more. I've decided to do this using Squid and to take 
advantage of Squid's cache when updating common ports across those hosts.


(BTW, at another site I used rsync to sync /usr/ports/distfiles across the 
hosts to a local master site then specified _MASTER_SITES_DEFAULT in 
make.conf to a FTP server on the local site. That method works when the 
port is previously cached however if the file isn't in the cache and I 
simultaneously install the port across ten hosts, the port is fetched ten 
times. Sigh.)


I have a Squid proxy installed that isn't meant for every-day/every-user 
use and requires authentication. (Users either go through another Squid 
proxy or direct.) The special Squid proxy works. No surprise there. 
Authentication works. No surprise there.


What I need is a method to embed into make.conf a proxy specification for 
fetch. Setting the environment variable HTTP_PROXY from the login shell 
/is not/ preferred because the account is used by different 
administrators, I don't what the special proxy accidentally polluted with 
non-port stuff, and it would only create confusion.


Setting http_proxy in make.conf does not work. .netrc doesn't appear to be 
a viable method (if it did, I could specify FETCH_ARGS in make.conf).


___
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: [UPDATE] host-setup(1): a dialog(1)-based utility for configuring FreeBSD

2011-06-26 Thread Devin Teske

On Apr 23, 2011, at 4:42 AM, Thomas Dickey wrote:

> On Sat, Apr 23, 2011 at 08:54:51AM +0100, Bruce Cran wrote:
>> On Fri, 22 Apr 2011 09:52:44 -0700
>> "Devin Teske"  wrote:
>> 
>>> Looks like `--hline' is not supported anymore. Thinking this should
>>> either be patched or documented in ERRATA/UPGRADING.
>> 
>> I think you mean UPDATING :)
> 
> perhaps.  But reporting bugs is nicer than long discussion threads.

I've released a new version of my host-setup utility.

Available here:
http://druidbsd.sourceforge.net/download/host-setup.txt
or here:
http://druidbsd.sourceforge.net/

Now at version 3.2, here's the delta:

- Added support for FreeBSD-9.x's new dialog(1) (which lacks `--hline' support).
- Added support for /usr/ports/x11/Xdialog

You can now execute this on the console or in X windows.

Default is console, to execute in X windows, execute:

host-setup -X
-- 
Cheers,
Devin Teske


-> LEGAL DISCLAIMER <-
This message  contains confidential  and proprietary  information
of the sender,  and is intended only for the person(s) to whom it
is addressed. Any use, distribution, copying or disclosure by any
other person  is strictly prohibited.  If you have  received this
message in error,  please notify  the e-mail sender  immediately,
and delete the original message without making a copy.

-> FUN STUFF <-
-BEGIN GEEK CODE BLOCK-
Version 3.12
GAT/CS/B/CC/E/IT/MC/M/MU/P/S/TW d+(++) s: a- C+++@$ UB$ P@$ L$ E-
W+++ N? o? K? w@ O M++$ V- PS+>++ PE@ Y+ PGP-> t(+) 5? X(+) R(-) tv+ b+>++ DI+
D+(++) G++ e> h r+++ z+++
--END GEEK CODE BLOCK--
http://www.geekcode.com/

-> END TRANSMISSION <-

_

The information contained in this message is proprietary and/or confidential. 
If you are not the intended recipient, please: (i) delete the message and all 
copies; (ii) do not disclose, distribute or use the message in any manner; and 
(iii) notify the sender immediately. In addition, please be aware that any 
message addressed to our domain is subject to archiving and review by persons 
other than the intended recipient. 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"


Traffic ignore security policies for SA in IPSec site-to-site connection

2011-06-26 Thread NutipA
First af all, I apologize if I chose the wrong mailing list. I need to 
establish IPSec site-to-site connection between two offices as it shown 
below:


LAN1 (192.168.1.0/24)
|
FreeBSD 8.2 (192.168.1.2) + ipfw NAT over PPTP(X.X.X.X)
|
|
internet
|
|
FreeBSD 8.2 (192.168.1.2) + ipfw NAT over PPPoE(X.X.X.X)
|
LAN2 (192.168.10.0/24)

The connection between two gatways has been successfully established. 
All traffic between two VPN-gateways with global addresses X.X.X.X and 
Y.Y.Y.Y has been sucessfully encapsulated and encrypted. I see this 
traffic as packets with ESP headers in my sniffer. Then I added static 
routes to each LAN. But when I ping any private address in LAN2 from my 
computer (192.168.1.102) I see the next output in tcpdump on LAN1 gateway:


19:33:42.506971 IP X.X.X.X > Y.Y.Y.Y : IP 192.168.1.102 > 192.168.10.1: 
ICMP echo request, id 13941, seq 4, length 64 (ipip-proto-4)


Traffic hasn't been encrypted and processed by ipsec! It has rather been 
placed only in gif-interface and of course remote site is not 
responding. So IP-packets ignore security policies for SA:


192.168.10.0/24[any] 192.168.1.0/24[any] any
in ipsec
esp/tunnel/Y.Y.Y.Y-X.X.X.X/use
spid=6 seq=1 pid=23533
refcnt=1
192.168.1.0/24[any] 192.168.10.0/24[any] any
out ipsec
esp/tunnel/X.X.X.X-Y.Y.Y.Y/use
spid=5 seq=0 pid=23533
refcnt=1

As I understand, the traffic from client machines in any direction 
should look like this:


21:34:16.486698 IP Y.Y.Y.Y > X.X.X.X: ESP(spi=0x043488c2,seq=0x66), 
length 116


Please help me to solve this strange problem.  I have created a test 
environment (5 virtual machines) and everything was ok! The only 
difference was that the tests were run in a several private local 
networks, without ISP and pptp/pppoe-interfaces. Also, on the advice of 
other people I need to try it without gif-interface, but all my tests 
was made according by handbook article.


P.S. I have attached my configs and output of any commands, because my 
message is too big.
[19:00]root@beta:/home/NutipA# cat /usr/local/etc/racoon/setkey.conf
flush;
spdflush;
# To the second office network
spdadd 192.168.1.0/24 192.168.10.0/24 any -P out ipsec 
esp/tunnel/X.X.X.X-Y.Y.Y.Y/require;
spdadd 192.168.10.0/24 192.168.1.0/24 any -P in ipsec 
esp/tunnel/Y.Y.Y.Y-X.X.X.X/require;

---

[19:02]root@beta:/home/NutipA# cat /usr/local/etc/racoon/racoon.conf
pathpre_shared_key  "/usr/local/etc/racoon/psk.txt"; #location of 
pre-shared key file
log debug;  #log verbosity setting: set to 'notify' when testing and 
debugging is complete

padding # options are not to be changed
{
maximum_length  20;
randomize   off;
strict_checkoff;
exclusive_tail  off;
}

timer   # timing options. change as needed
{
counter 5;
interval20 sec;
persend 1;
#   natt_keepalive  15 sec;
phase1  30 sec;
phase2  15 sec;
}

listen  # address [port] that racoon will listening on
{
isakmp  X.X.X.X [500];
isakmp_natt X.X.X.X [4500];
}

remote  Y.Y.Y.Y [500]
{
exchange_mode   main,aggressive;
doi ipsec_doi;
situation   identity_only;
my_identifier   address X.X.X.X;
peers_identifieraddress Y.Y.Y.Y;
lifetimetime 8 hour;
passive off;
proposal_check  obey;
#   nat_traversal   off;
generate_policy off;

proposal {
encryption_algorithm3des;
hash_algorithm  md5;
authentication_method   pre_shared_key;
lifetime time   30 sec;
dh_group1;
}
}

sainfo  (address 192.168.1.0/24 any address 192.168.10.0/24 any)# address 
$network/$netmask $type address $network/$netmas
{   # $network must be the two internal networks 
you are joining.
pfs_group   1;
lifetimetime36000 sec;
encryption_algorithm3des,des;
authentication_algorithmhmac_md5,hmac_sha1;
compression_algorithm   deflate;
}

---

[18:53]root@beta:/home/NutipA# ifconfig
em0: flags=8843 metric 0 mtu 1500
options=2098
ether 00:17:31:55:a6:07
inet 192.168.1.2 netmask 0xff00 broadcast 192.168.1.255
media: Ethernet autoselect (1000baseT )
status: active

tun0: flags=8151 metric 0 mtu 1400
options=8
inet X.X.X.X --> 81.25.33.1 netmask 0x 
Opened by PID 32338
gif0: flags=8051 metric 0 mtu 1280
tunnel inet X.X.X.X --> Y.Y.Y.Y
inet

what is the RIGHT(TM) way to configure background DHCP?

2011-06-26 Thread deeptec...@gmail.com
as of recent times, on my network, the DHCP server takes a very long
time (>30s) to reply, slowing down the boot process. so i've decided
to put the DHCP client in the background (via rc.conf) during the boot
process.

attempt 1:
#background_dhclient="YES"
#background_dhclient_sk0="YES"
with this, the DHCP client isn't even started.

attempt 2:
#ifconfig_sk0="DHCP"
#background_dhclient="YES"
#background_dhclient_sk0="YES"
with this, the DHCP client is started, but there is a 30s waiting time.

(as if the background_dhclient and background_dhclient_ variables
had no effect.)

attempt 3:
#ifconfig_sk0="DHCP"
#defaultroute_delay="0"
this works, but looks hacky.

so what is the RIGHT(TM) way to configure a background DHCP client, and why?
are any of the DHCP-client-related rc.conf options redundant/useless?

btw, there is no example in /etc/defaults/rc.conf for ifconfig_="DHCP"
___
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: cvs vs. DVD

2011-06-26 Thread Lars Eighner

On Sun, 26 Jun 2011, wayne mitchell wrote:


hey,
be warned, you are dealing with a  'newbie'



Be warned, I don't know the official best practices response.  I'm 
just telling you what I would do^H^Htry in your circumstances.



i have one machine that has internet access and another that does not
both machines were installed with FreeBSD_RELEASE_8_1 with a DVD
i am now using cvsup to upgrade the RELENG_8_1_RELEASE tree

my second machine does not have working ethernet

how do i transfer the updated ports tree to the other machine using
only storage media (DVD, USB)


This is assuming 1) You haven't crossed a major release number since you
installed from disc on both. 2) you know how to make a dvd from a file
system.  Since you are going from BSD to BSD, you don't have to make ISOs,
but it will do no harm if you do (and might even be good for you).

In the updated machine go to /usr/src/ and make clean.  The official right
way, I think is to use backup to make the file you will write to DVD and
restore on the netdead machine to recreate /usr/src/ from disc. tar + dd or
cp might work. (backup and restore are commands, check them out)

Then on the netdead machine do the make buildworld, make kernel, etc. to
update the machine's system.  The instructions are in /usr/src/UPDATING near
the bottom.

In /usr/ports/ (master machine) use portsclean -CDP. This should clean out
all the working directories and the old versions of packages and
distributions which are no longer necessary to recreate the ports you have
installed.  This is not strictly necessary, but there is no point in
carrying over the deadwood.  If you have a relatively young installation,
on the other hand, this may not save much.

Now you can do whatever you did (backup/restore), dd, etc. with the source
tree to the ports tree.  Then you can update ports on the slave machine, or
hold off. The important thing is for the ports tree itself to be somewhat
in sync with world.


my guess (hack) is to find all relavent files/data trees and simply
copy over, then run necessary updates (portsdb, make world...)


Do not mess directly with the ports database (in /var/db/pkg) on either
machine.  Until you actually do some updates in ports, pkgdb, which
deals with installed ports, will not change.


if that is correct then can you tell where those files are ?


The whole ports tree is in /usr/ports/.  This should include the distfiles
and packages you have installed since you installed from disc.  The
whole source tree is in /usr/src/.  It is possible to install from disc
without installing either of these, but if you have been cvsup'ing or cvs
source and ports on the netlive machine, it certainly has them.  If you did
not install them on the netdead machine, you can install the copies from
the netlive machine without further ado.  You can even delete them from
the netdead machine (if they are there) on the netdead machine, and you
will still have an operable system -- nothing in them is necessary to run.
But if you have the disc space, I suggest you rename (mv) them until you
know your update is successful.  I suggest you go through the mergemaster
both times in rebuilding the system on the netdead machine. It is almost
impossible to keep configuration files sufficiently in sync to make copying
/etc and /usr/local/ect a viable plan (moreover, it would certainly be wrong
to do so if both machines are on a net, local or internet).



if not then how should i do this ?


I think you are basically on the right track.

This probably will work across major releases and with drastically different
architectures between the machines, but caution on the target machine is in
order.  (Other than cleaning, this process should not involve anything
remotely dangerous to the source machine.)

--
Lars Eighner
http://www.larseighner.com/index.html
8800 N IH35 APT 1191 AUSTIN TX 78753-5266

___
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: cvs vs. DVD

2011-06-26 Thread Matthew Seaman
On 26/06/2011 19:02, wayne mitchell wrote:
> be warned, you are dealing with a  'newbie'
> i have one machine that has internet access and another that does not
> both machines were installed with FreeBSD_RELEASE_8_1 with a DVD
> i am now using cvsup to upgrade the RELENG_8_1_RELEASE tree
> 
> my second machine does not have working ethernet
> 
> how do i transfer the updated ports tree to the other machine using
> only storage media (DVD, USB)
> 
> my guess (hack) is to find all relavent files/data trees and simply
> copy over, then run necessary updates (portsdb, make world...)
> 
> if that is correct then can you tell where those files are ?

For updating the base system, you need only copy across everything under
/usr/src -- you can then upgrade by building and installing world
+ kernel.  Easiest way to copy that directory tree across is to make a
tarball of it.  Assuming you have a USB stick mounted at /mnt/usb,
then:

 # cd /usr
 # tar -Jcvf /mnt/usb/usr-src.tar.xz src

Then unmount the usb stick, and mount it on the other host.  Extract
the files by:

 # cd /usr
 # mv src src.old   (or rm -rf src if you're feeling over-confident)
 # tar -xvf /mnt/usb/usr-src.tar.xz

How to update your machine by compiling the system sources is well
described in the Handbook, and there are instructions in
/usr/src/UPDATING too.

For updating ports, you can either copy /usr/ports in much the same way
-- assuming you've kept all of the distfiles you're going to need still
in /usr/ports/distfiles.

Or you can create pkg tarballs for any port you have installed on your
connected machine, plus pkgs for all of the dependencies.  First make
sure that everything on your connected machine is up to date:

 # portsnap fetch update   (or csup, or whatever you prefer)
 # portmaster -a

Then make packages of anything you want on the other machine, plus any
dependencies thereof:

 # cd /mnt/usb
 # pkg_create -b -R foobar-1.2.3

Move the USB stick to the other machine and install the pkg, which will
automatically include any dependencies not already installed:

 # pkg_add /mnt/usb/foobar-1.2.3.tbz

This will work equally well for ports you've installed yourself from the
ports tree, or for pkgs installed from the FreeBSD ftp servers[*].

It gets slightly tricky if you want to upgrade stuff via pkgs.  I
believe it should work if you install portmaster on your isolated
machine, and then do:

-- on the connected machine:

 # cd /mnt/usb
 # pkg_create -b -R foobar-1.2.3(as before)
 # cp /usr/ports/INDEX-8 /mnt/usb

-- move the usb stick over to the isolated machine and do:

 # cp /mnt/usb/INDEX-8 /usr/ports/INDEX-8
 # portmaster -PP --local-packagedir=/mnt/usb \
  --packages-local foobar-1.2.3

(Not tested -- but if it works the way I think it should, that will
update foobar-1.2.3 and anything it depends on to the latest available
versions)

Cheers,

Matthew

[*] Verb. Sap.  Mixing up stuff installed from a local ports tree and
stuff installed from the pkg archives frequently leads to version
clashes, wailing and gnashing of teeth.  Unless you know exactly what
you are doing, it's best to stick exclusively to one or other of those
methods.

-- 
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
JID: matt...@infracaninophile.co.uk   Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature


Re: cvs vs. DVD

2011-06-26 Thread Matthias Apitz
El día Sunday, June 26, 2011 a las 07:02:57PM +0100, wayne mitchell escribió:

> hey,
> be warned, you are dealing with a  'newbie'
> i have one machine that has internet access and another that does not
> both machines were installed with FreeBSD_RELEASE_8_1 with a DVD
> i am now using cvsup to upgrade the RELENG_8_1_RELEASE tree
> 
> my second machine does not have working ethernet
> 
> how do i transfer the updated ports tree to the other machine using
> only storage media (DVD, USB)
> 
> my guess (hack) is to find all relavent files/data trees and simply
> copy over, then run necessary updates (portsdb, make world...)
> 
> if that is correct then can you tell where those files are ?
> 
> if not then how should i do this ?

Hey, this is easy (because it is FreeBSD).

# cd /var/db/pkg
# ls > /tmp/pkgs
# cd  (you need some Gbyte of space there)
# mkdir PKGDIR
# cd PKGDIR
# sh
# while read pkgname; do pkg_create -Rnb $pkgname; done < /tmp/pkgs

this will create a binary packages ready for installation of all your
ports and other packages you have installed;

move the result over with DVD/USB and install them with pkg_add(1M);

HIH

matthias
-- 
Matthias Apitz
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e  - w http://www.unixarea.de/
___
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: Dual Boot 8.2 and Windows 7

2011-06-26 Thread Gyrd Thane Lange
On Fri, 24 Jun 2011 16:47:26 -0700
per...@pluto.rain.com wrote:

> d...@safeport.com wrote:
> 
> > If FreeBSD can be installed in an extended partition,
> > that would be a very useful howto.
> 
> _Installing_ it in an "extended partition" is easy enough.
> geom(8) understands "extended partitions" (although sysinstall
> does not, so you need to install using Fixit# as for other
> non-sysinstall cases such as ZFS).
> 
> The problem is _booting_ it.  The code in i386/boot2 and
> lib/libstand is written to find the / (or /boot) FS on a
> BSD partition of an fdisk "primary partition" (aka slice),
> or in a GPT partition, and would need additions to handle
> fdisk "extended partitions".

Some years ago I ran into a similar problem. I ran out of primary
partitions (using MBR-speak) and had to move FreeBSD into an extended
partition.

Here the simple patch I wrote for the FreeBSD boot loader:



To update your source use:

patch -d /usr/src/sys/boot/i386/libi386/ < boot_loader.diff

The FreeBSD loader has since a very long time ago attempted to work
with MBR extended partitions but a simple logical error has prevented
it from succeeding:

How it normally works.

-
| 1 |
-
| 2 | --
-   |
|
|
|
- <-
| 5 |
-
|   | --
-   |
|
|
|
- <-
| 6 |
-
|   |
-


How /boot/loader (incorrectly) works.

-
| 1 |
-
| 2 | --
-   |
|
|
|
- <-
| 5 |
-
| 6 | --
-   |
|
|
|
- <-
| 7 |
-
| 8 |
-


It has been a long time since I installed my system but I seem to
remember that all that is required is to copy the /boot/loader binary
from a patched system onto the newly installed one. (I have included a
copy of my /boot/loader at the URL above.)

The next challenge is to find a boot manager that will pick up FreeBSD
in an extended partition. For myself I use a self patched GRUB. (GRUB
also nearly worked out of the box, but had a different problem.) You're
welcome to have those patches as well if you need them.

Lastly I have the following in my kernel configuration file:

include GENERIC
...
nooptions GEOM_PART_BSD
nooptions GEOM_PART_MBR
options   GEOM_BSD
options   GEOM_MBR

That is because I am not fond of the new mangled device names, but
prefer the old ones.

Hope any of this helps.
Best regards,

Gyrd ^_^
___
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"


cvs vs. DVD

2011-06-26 Thread wayne mitchell
hey,
be warned, you are dealing with a  'newbie'
i have one machine that has internet access and another that does not
both machines were installed with FreeBSD_RELEASE_8_1 with a DVD
i am now using cvsup to upgrade the RELENG_8_1_RELEASE tree

my second machine does not have working ethernet

how do i transfer the updated ports tree to the other machine using
only storage media (DVD, USB)

my guess (hack) is to find all relavent files/data trees and simply
copy over, then run necessary updates (portsdb, make world...)

if that is correct then can you tell where those files are ?

if not then how should i do this ?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


I have a error in freebsd 8.2, an internal system error has ocurred

2011-06-26 Thread Edgar Rodolfo
Hi guys!, i am new on freebsd, but i had installed freebsd 8.2 with
graphical interface (gnome), i was very happy, but suddendly i saw a
message, exactly the message said:
we were not expecting has ocurred ..., look the photo, i don't
understand exactly, 30 min the message appears, is dangerous the
message?

http://subefotos.com/ver/?46893c74c902254a3d7789bb38a6b457o.png
___
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"


negative sbsize

2011-06-26 Thread Jimmie James
After the last firefox update and flash, I've been getting thousands and 
thousands of "kernel: negative sbsize for uid = 1001" in my logs, and 
google appears to show a bug from 2001, 
http://www.freebsd.org/cgi/query-pr.cgi?pr=27275 with no solution. Flash 
sites now crawl, hang firefox, midori and opera . I even updated sources 
and rebuilt world and kernel, and still getting the error/issues.


firefox-5.0,1
linux-f10-flashplugin-10.3r181.26
nspluginwrapper-1.4.2
midori-0.3.6
opera-11.11
opera-linuxplugins-11.11
FreeBSD jimmiejaz.org 8.2-STABLE FreeBSD 8.2-STABLE #0: Sun Jun 26 
08:42:45 EDT 2011 jim...@jimmiejaz.org:/usr/obj/usr/src/sys/FORTYTWO 
 i386



Anyone have an idea what's going on or seeing this as well, and how to 
fix it?

___
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: Performance of a USB ZIL for ZFS

2011-06-26 Thread Robert Simmons
On 25 Jun 2011, at 19:17, Joshua Isom  wrote:
> I was wondering if anyone had tried using a decent USB flash drive for
> the ZIL.  I know it'd be hard finding one fast enough, but some from
> patriot seem like they might be suitable for home use.  Part of the
> idea is to just minimize hard drive thrashing and the wear and tear
> associated with it.  If it helps prevent the drives from going bad,
> and doesn't hurt performance too bad all the better.  But if it's
> going to hurt performance too much or not help prevent thrashing
> there isn't a point.

You question is a good one, but I think the reason for your question may be 
off.  If you want the ZIL in a separate location it is to cut down on latency 
rather than "thrashing".  See:
http://www.solarisinternals.com/wiki/index.php/ZFS_Evil_Tuning_Guide#Disabling_the_ZIL_.28Don.27t.29

If your concern really really is "thrashing" please consider the cost of flash 
memory vs a hard drive.  Replacing a bad hard drive is cheaper.  After a 
cursory glance at newegg, you can see the price per MB for:
HDD $0.09
USB flash $0.64
SSD $1.875
___
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: Performance of a USB ZIL for ZFS

2011-06-26 Thread Dan Nelson
In the last episode (Jun 26), Joshua Isom said:
> On 6/25/2011 9:32 PM, Damien Fleuriot wrote:
> > On 25 Jun 2011, at 19:17, Joshua Isom  wrote:
> >> I was wondering if anyone had tried using a decent USB flash drive for
> >> the ZIL.  I know it'd be hard finding one fast enough, but some from
> >> patriot seem like they might be suitable for home use.  Part of the
> >> idea is to just minimize hard drive thrashing and the wear and tear
> >> associated with it.  If it helps prevent the drives from going bad, and
> >> doesn't hurt performance too bad all the better.  But if it's going to
> >> hurt performance too much or not help prevent thrashing there isn't a
> >> point.
> >
> > I stopped reading at the title.
> > The answer is no.
> >
> > Grab a SSD for $80-120ish.
> 
> Perhaps it would have helped to read the email.  Part of the concern is
> making sure the drives don't fail and not just throughput.
> 
> Given that Kingston sells an SATA SSD for $40 that only gets writes at
> 30mb/s write, and some USB drives might get up to 20mb/s.  If I get two
> drives and put them on different controllers, mirrored, I might get
> acceptable performance.  I may still loose performance, but if my drives
> last a year longer, I can probably accept it.  I'm ok with loosing some
> performance, but I just don't want it dragging down the system.  And if it
> won't help the drives last longer there's no point.

A seaparate ZIL isn't meant to extend the lifetime of the hard drives; it's
meant to accelerate the speed of sync writes.  Those are pretty infrequent
themselves, unless you're an NFS server.  You'll see a couple syncs per
commit on a database server, but compared to the amount of regular reads and
writes on your average system, you'll save under 1% of the writes by adding
a fast ZIL.  And remember, the ZIL is just a write log.  Everything that
gets written to it will get flushed to disk when zfs writes the next
transaction group.

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