Re: SU+J Lost files after a power failure

2013-10-14 Thread David Demelier
On 14.10.2013 14:39, RW wrote:
 On Mon, 14 Oct 2013 05:02:22 -0400
 Michael Powell wrote:
 
 David Demelier wrote:

 Hello there,

 I'm writing because after a power failure I was unable to log in on
 my FreeBSD 9.2-RELEASE. The SU+J journal were executed correctly
 but some files disappeared, including /etc/pwd.db. Thus I was
 unable to log in.

 I've been able to regenerate the password database with a live cd
 but I'm afraid that more files had disappeared somewhere else...

 I think this is a serious issue, the journal should not truncate
 files, so something should have gone wrong somewhere..
 
 The journalling in  SU+J has nothing to do with data integrity.
 
 When the system isn't shut-down cleanly, soft-updates are supposed to
 leave the filesystem in a self-consistent state, except that it may
 lose track of some freed disk space. The journal allows that space to
 be recovered without the lengthy background fsck that used to cripple
 performance.
 
 If you are having problems with data integrity you might try gjournal or
 zfs instead.

Why? SU+J is enabled by default. Isn't the purpose of a journaled file
system to ensure that any bad shutdown will protect data?

On GNU/Linux, on Windows you will not require anything else to recover
your data.

I don't want to tweak the filesystem or use something different that the
default, as it is the default it's the *warranty* that it is the correct
way to protect data for new FreeBSD user's installations IMHO.

 If you look back at the lists before these were added
 there was a lot of suspicion about soft-updates and background checks.
 Some of the problems were explained by some (mostly desktop) drives
 incorrecty reporting what has been commited to disk - I don't know
 whether this is still the case.
 
 
 This error about the replay of the journal(s) failing is somewhat 
 disconcerting. 
 
 I think this is probably a good thing. With background checks you would
 (if you were looking) occasionally see unexpected soft-update
 inconsistency during the background check, which would lead to a
 foreground check on the next boot.
 
 
 
 ___
 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: SU+J Lost files after a power failure

2013-10-14 Thread David Demelier
On 14.10.2013 20:08, RW wrote:
 On Mon, 14 Oct 2013 18:34:36 +0200
 David Demelier wrote:
 
 On 14.10.2013 14:39, RW wrote:
 
 If you are having problems with data integrity you might try
 gjournal or zfs instead.

 Why? SU+J is enabled by default. Isn't the purpose of a journaled file
 system to ensure that any bad shutdown will protect data?
 
 SU+J isn't a journalled filesytem, it's a filesystem with soft-updates
 that journals information about free space so it can be recovered
 without having to go through the whole filesystem.
 

Okay, but why the fsck didn't run by itself to detect that the journal
didn't replayed correctly (if I understanding well) to correct the issues?

___
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: SU+J Lost files after a power failure

2013-10-14 Thread David Demelier
On 14.10.2013 18:47, Adam Vande More wrote:
 There is no *warranty* as explicitly stated in
 http://www.freebsd.org/copyright/freebsd-license.html
 

Aha, please don't play on words ;-). I think you understood I was
speaking about the filesystem state
not a lawyer issue.
___
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: SU+J Lost files after a power failure

2013-10-14 Thread David Demelier
On 14.10.2013 20:43, Adam Vande More wrote:
 On Mon, Oct 14, 2013 at 1:33 PM, CeDeROM cede...@tlen.pl
 mailto:cede...@tlen.pl wrote:
 
 Thank you for explaining :-) So it looks that it would be sensible to
 force filesystem check every n-th mount..? 
 
 
 Please explain the logic in which this helps anything.
  
 
 Or to do a filesystem check
 after crash..?
 
 
 Already standard behavior as implicitly seen in this thread.
  
 
 Are there any flags like that to mark filesystem
 unclean and to force fsck after n-th mount? 
 
 
 No and any fs that requires such a system is broken by design.
  
 
 That would assume
 disabling journal and soft updates journaling I guess..?
 
 What would be the best option for best data integrity in case of
 crash?
 
 
 mount -o sync or use ZFS. Both require hardware that correctly report
 success to fsync.

I personnally love ZFS and use it massively on my server, but for a
desktop I think this is a real overkill. Also I don't have so much RAM
to waste for that. I think UFS is enough, however as a modern operating
system I don't expect any data corruption by default using SU+J.

The filesystem domain is not a thing I really know deeply, so thanks for
all you explanation.

PS: the power failure is not the only way that does not shutdown cleanly
the system. There are kernel panics, crash and such of course. Those
which appears sometimes too.

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


SU+J Lost files after a power failure

2013-10-13 Thread David Demelier
Hello there,

I'm writing because after a power failure I was unable to log in on my
FreeBSD 9.2-RELEASE. The SU+J journal were executed correctly but some
files disappeared, including /etc/pwd.db. Thus I was unable to log in.

I've been able to regenerate the password database with a live cd but
I'm afraid that more files had disappeared somewhere else...

I think this is a serious issue, the journal should not truncate files,
so something should have gone wrong somewhere..

Any ideas? Should I open a PR?

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


Re: SU+J Lost files after a power failure

2013-10-13 Thread David Demelier
On 13.10.2013 12:16, CeDeROM wrote:
 On 13 Oct 2013 11:30, David Demelier demelier.da...@gmail.com
 mailto:demelier.da...@gmail.com wrote:
 Hello there,
 I'm writing because after a power failure I was unable to log in on my
 FreeBSD 9.2-RELEASE. The SU+J journal were executed correctly but some
 files disappeared, including /etc/pwd.db. Thus I was unable to log in.
 I've been able to regenerate the password database with a live cd but
 I'm afraid that more files had disappeared somewhere else...
 I think this is a serious issue, the journal should not truncate files,
 so something should have gone wrong somewhere..
 Any ideas? Should I open a PR
 
 I had similar issues somewhere around 9.0 - although journal check was
 fine running fsck revealed filesystem inconsistency. I have reported
 this on the list, but it seemed unnoticed..? For me this is serious
 issue as well, if you make PR I will give +1 :-)
 
 --
 CeDeROM, SQ7MHZ, http://www.tomek.cedro.info
 

Yes, I've also ran fsck in single user mode after and lot of incorrect
things were corrected, I wait a bit for answers (if any) before sending
a PR.

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


Adoble Flash troubles on 9.2-RELEASE

2013-10-12 Thread David Demelier
Hi,

The current linux-f10-flashplugin-11.2r202.310 version has some troubles
on my machine (with Firefox).

Sometimes, when a flash component is displayed and you scroll a bit the
window the flash break and goes grey, you're forced to reload the page.

I'm using the Intel new KMS driver if that matters, note that it never
happened on my 9.1-RELEASE.

Is anyone having a similar issue?

Regards,

David.
___
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: Adoble Flash troubles on 9.2-RELEASE

2013-10-12 Thread David Demelier
On 12.10.2013 11:02, Ralf Mardorf wrote:
 If you really need to visit sites that need Adobe Flash, you perhaps
 should use the google-chrome browser. For some websites with flash
 content, we don't need flash anymore, just modern HTML5 capable web
 browsers. For *nix there never will be a current version for flashplayer
 again.
 

Yes I know that adobe flash player for *nix is gone but I'm guessing why
it worked well so much before..

I don't like much chrome but I'll give a try to see.

Thanks for the hint!

 ___
 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: problem with stoping process

2013-09-28 Thread David Demelier
On 15.12.2011 20:00, Коньков Евгений wrote:
 I am trying to stop process
 /usr/local/etc/rc.d/radiusd top
 Stopping radiusd.
 Waiting for PIDS: 27618
 
 top
 27618 freeradius2  20  -20   333M   295M STOP0   4:42  0.00% radiusd
 
 ps aux
 freeradius 27618   0.0  7.4 341144 302528  ??  TLs Fri05AM   685:27.16 
 /usr/local/sbin/radiusd
 
 nothing is happen
 
 Why process do not stop?
 

Does it stops when you kill it by hand with kill -15 27618?

David.
___
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

Unban my second address from the mailing list

2013-09-22 Thread David Demelier
Hi,

A long time ago, my domain malikania.fr has been banned because of lot
bounces, now the server is working and running.

I sometime send some PR directly from my server using this domain, thus
I would like to be unbanned (the mail wasn't sent and postfix was saying
that my domain is forbidden...).

Can you unban my domain please? If I don't post to the good
mailing-list, just le me know.

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


Re: rctl within jail

2013-09-22 Thread David Demelier
On 22.09.2013 15:45, Fbsd8 wrote:
 David Demelier wrote:
 Hello there,

 I wanted to use rctl within a jail to add more fine grained setting for
 some users, and default ones to. But it does not seem to work. Is it
 supported? Do we need to add a special flag to the jail creation?

 # rctl -a loginclass:default:maxproc:deny=30
 rctl: rctl_add_rule: Operation not permitted

 Regards,

 David
 
 The rctl command is brand new. It does not have a group of users yet, so
 that is why you have not received any replies to your post.
 
 As far as I know you can not issue the rctl command from within the
 running jail.
 
 The rctl command is issued on the HOST only.
 
 You can apply rules to an entire jail if you want to, for example; to
 limit the amount of memory a jail can use:
 
 # rctl -a jail:jailname:memoryuse:deny=1G
 
 (where jailname is the name of your jail). This would make sure the
 jail can't use more than (approximately) 1 gigabyte of memory.
 
 To enable rctl on the host, you need to compile a custom kernel that
 contains the following 2 parameters;
 options RACCT
 options RCTL
 

Yes, I will also post a PR for this because no manpage is saying that
you requires this on your kernel.

I will provide a new manpage and a bit more documentation.

 I think your rctl command would look like this when issued from the host
 rctl -a jail:jailname:loginclass:default:maxproc:deny=30
 

What I really want, is to avoid users to spawn too much processes (aka
fork bombs). But if I apply to the jail directly, it also apply to the
services jails, which is a bit not wanted.

Regards,
David
___
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: Unban my second address from the mailing list

2013-09-22 Thread David Demelier
On 22.09.2013 22:02, Julian H. Stacey wrote:
 David Demelier wrote:
 Hi,

 A long time ago, my domain malikania.fr has been banned because of lot
 bounces, now the server is working and running.

 I sometime send some PR directly from my server using this domain, thus
 I would like to be unbanned (the mail wasn't sent and postfix was saying
 that my domain is forbidden...).

 Can you unban my domain please? If I don't post to the good
 mailing-list, just le me know.
 
 No, it's not correct to mail the list for this.
 For list specific issues:
   Most lists on Internet use conventions of
   owner-LISTNAME@
   or  LISTNAME-owner@
   (often admins alias one to the other so both work), 
   so if you get a bounce, mail the other)
 
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
   also lists:
   moderators at freebsd.org
 
 But in this case as it's a domain issue, mail
   postmas...@freebsd.org
 
 Cheers,
 Julian
 

Okay thanks, I'll forward the original message !

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


rctl within jail

2013-09-16 Thread David Demelier
Hello there,

I wanted to use rctl within a jail to add more fine grained setting for
some users, and default ones to. But it does not seem to work. Is it
supported? Do we need to add a special flag to the jail creation?

# rctl -a loginclass:default:maxproc:deny=30
rctl: rctl_add_rule: Operation not permitted

Regards,

David
___
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: What's happening to my asciidoc?

2013-09-08 Thread David Demelier
On 06.09.2013 22:52, Warren Block wrote:
 On Fri, 6 Sep 2013, David Demelier wrote:
 
 2013/9/6 Warren Block wbl...@wonkity.com:

 asciidoc \
   -a data-uri \
   -a icons \
   -a iconsdir=/usr/local/etc/asciidoc/images/icons \
   -d article \
   -a stylesheet=~/docs/stylesheets/wb-html.css \
   -a toc \
   -a revdate=2013-09-05 \
   -a year=2013 \
   -a max-width=80em \
   pxe.txt

 That stylesheet is just my changes to the default, which change the link
 visited color from pink to red and add rounded corners to listing
 blocks.

 Did you touch the asciidoc configuration ? For me it seems to work
 *only* if I use html5 backend, otherwise it produces this:
 http://www.demelierdavid.fr/article.html.
 
 Not that I recall, and pkg-info -g asciidoc-8.6.8_1 does not show anything.

I've found the problem but can't fix it. The xhtml11.conf is the copy of
wordpress.conf.

I've sent a PR: ports/181869

Note that this only happen when I use pkgng + poudriere.

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


Re: What's happening to my asciidoc?

2013-09-06 Thread David Demelier
2013/9/6 Warren Block wbl...@wonkity.com:
 On Thu, 5 Sep 2013, Warren Block wrote:

 On Thu, 5 Sep 2013, David Demelier wrote:

 Hi,

 I've been using asciidoc for a while, I've updating it to
 asciidoc-8.6.8_1. But now I can't generate any correct documentation.
 It does not even add :toc: field.

 For instance the following example should generate a HTML with its
 popular blue theme :

 Test
 ===
 :Author: David
 :toc:

 = Title

 Some data

 == Title 2

 Some data

 For me, it produces a very light HTML file with no table of content
 and everything is black, I also notice that it does not append any CSS
 code.

 Does anyone already have this issue?


 It's working for me, I used it last night.


 Here is the command I use (generated from a Makefile), broken into separate
 lines:

 asciidoc \
   -a data-uri \
   -a icons \
   -a iconsdir=/usr/local/etc/asciidoc/images/icons \
   -d article \
   -a stylesheet=~/docs/stylesheets/wb-html.css \
   -a toc \
   -a revdate=2013-09-05 \
   -a year=2013 \
   -a max-width=80em \
   pxe.txt

 That stylesheet is just my changes to the default, which change the link
 visited color from pink to red and add rounded corners to listing blocks.

Did you touch the asciidoc configuration ? For me it seems to work
*only* if I use html5 backend, otherwise it produces this:
http://www.demelierdavid.fr/article.html.

Cheers,

-- 
Demelier David
___
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


What's happening to my asciidoc?

2013-09-05 Thread David Demelier
Hi,

I've been using asciidoc for a while, I've updating it to
asciidoc-8.6.8_1. But now I can't generate any correct documentation.
It does not even add :toc: field.

For instance the following example should generate a HTML with its
popular blue theme :

Test
===
:Author: David
:toc:

= Title

Some data

== Title 2

Some data

For me, it produces a very light HTML file with no table of content
and everything is black, I also notice that it does not append any CSS
code.

Does anyone already have this issue?

Cheers,

-- 
Demelier David
___
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: The logo at boot (Nakatomi Socrates BSD 9.2)

2013-09-05 Thread David Demelier
On 05.09.2013 14:59, Patrick Dung wrote:
 
 
 
  
 On Wed, 4 Sep 2013, Lowell Gilbert wrote: Patrick Dung patrick_dkt at 
 yahoo.com.hk writes: Do you know what is this logo means, or the story 
 behind it? I thought the BSD daemon (logo) has been around for many years 
 in the past. It's a movie reference (Die Hard). The Beastie logo is 
 still there, in the /boot directory, if you want it.  Or the standard orb, 
 by setting it in /boot/loader.conf: 
 loader_logo=orb 
 
 Thanks for the info.
 ___
 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
 

Yes it's a joke for 9.2 RELEASE, some (including me) explained our
disappointment about this but we must keep it for other users for
surprise :)
___
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: Updating texlive-base with portupgrade fails (sort of)

2013-08-25 Thread David Demelier
2013/8/25 Carmel carmel...@hotmail.com:
 Using portupgrade-devel-20130718,3 installed from the ports system,
 attempting to update texlive-base always ends like this:

 ---  Build of print/texlive-base ended at: Sun, 25 Aug 2013 15:25:25 -0400 
 (consumed 00:11:57)
 ---  Updating dependency info
 ---  Modifying /var/db/pkg/texlive-full-20120701/+CONTENTS
 ---  Upgrade of print/texlive-base ended at: Sun, 25 Aug 2013 15:25:28 -0400 
 (consumed 00:12:00)
 ---  Session ended at: Sun, 25 Aug 2013 15:25:28 -0400 (consumed 00:12:19)
 /usr/local/lib/ruby/site_ruby/1.9/pkgtools/pkgtools.rb:828: stack level too 
 deep (SystemStackError)

 I have attempted to reboot the system and then start the update
 process; however it doesn't make any difference. Even though it appears
 as if the port has been updated, when I run pkgdb -aFv, I am greeted
 with this:

 [...]
 Checking texlive-base-20120701_7
 Checking texlive-full-20120701
 Stale dependency: texlive-full-20120701 - texlive-base-20120701_8 
 (print/texlive-base):
 Disclose depends for texlive-full-20120701
 ---  Modifying /var/db/pkg/texlive-full-20120701/+CONTENTS
 Fixed. (- texlive-base-20120701_7)
 [...]

 This is the only package that portupgrade seems to be chocking on. I
 used portupgrade to initially install the complete texlive package,
 so I am not sure why it is suddenly have problems.

 --
 Carmel
 carmel...@hotmail.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

I don't understand why people try to reboot to fix problems, if it
does not work now it will probably not after a reboot :-). Anyway, the
problem seems to be located in portupgrade.

I would encourage you to switch to ports-mgmt/portmaster as
portupgrade is being less popular and less supported now.

Cheers,

-- 
Demelier David
___
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: VirtualBox: reproductible panic

2013-08-20 Thread David Demelier
On 20.08.2013 11:21, Patrick Lamaiziere wrote:
 Le Fri, 09 Aug 2013 23:06:01 +0200,
 David Demelier demelier.da...@gmail.com a écrit :
 
 Hello,

 I can reproduce a panic by just starting a virtual machine with
 VirtualBox 4.2.16_2.

 Unfortunately, as the kmod driver is not built with debug symbols I
 could not provide much information.
 
 Debug symbols are in option in the port (make config)
 It's hard to say without a bt.
 
 Regards
 

Yes, I finally made DEBUG symbols enabled, there is the panic backtrace:

Unread portion of the kernel message buffer:


Fatal trap 9: general protection fault while in kernel mode
cpuid = 1; apic id = 01
instruction pointer = 0x20:0x80b7ddb5
stack pointer   = 0x28:0xff80e7d64540
frame pointer   = 0x28:0xff80e7d64550
code segment= base 0x0, limit 0xf, type 0x1b
= DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags= interrupt enabled, resume, IOPL = 0
current process = 25056 (VirtualBox)
trap number = 9
panic: general protection fault
cpuid = 1
KDB: stack backtrace:
#0 0x80948376 at kdb_backtrace+0x66
#1 0x8090dece at panic+0x1ce
#2 0x80cf2c20 at trap_fatal+0x290
#3 0x80cf3431 at trap+0x241
#4 0x80cdc863 at calltrap+0x8
#5 0x80b7ee97 at vm_map_lookup_entry+0xb7
#6 0x80b82790 at vm_map_lookup+0x50
#7 0x80b78a6e at vm_fault_hold+0x15e
#8 0x80b7b0c3 at vm_fault+0x73
#9 0x80cf2e9f at trap_pfault+0x12f
#10 0x80cf36e4 at trap+0x4f4
#11 0x80cdc863 at calltrap+0x8
Uptime: 1h9m58s
Dumping 459 out of 3043 MB:..4%..11%..21%..32%..42%..53%..63%..74%..81%..91%

Reading symbols from /boot/kernel/if_lagg.ko...Reading symbols from
/boot/kernel/if_lagg.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/if_lagg.ko
Reading symbols from /boot/kernel/if_msk.ko...Reading symbols from
/boot/kernel/if_msk.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/if_msk.ko
Reading symbols from /boot/kernel/acpi_video.ko...Reading symbols from
/boot/kernel/acpi_video.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/acpi_video.ko
Reading symbols from /boot/modules/vboxdrv.ko...Reading symbols from
/boot/modules/vboxdrv.ko.symbols...done.
done.
Loaded symbols for /boot/modules/vboxdrv.ko
Reading symbols from /boot/kernel/fdescfs.ko...Reading symbols from
/boot/kernel/fdescfs.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/fdescfs.ko
Reading symbols from /boot/kernel/ng_ubt.ko...Reading symbols from
/boot/kernel/ng_ubt.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/ng_ubt.ko
Reading symbols from /boot/kernel/ng_hci.ko...Reading symbols from
/boot/kernel/ng_hci.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/ng_hci.ko
Reading symbols from /boot/kernel/ng_bluetooth.ko...Reading symbols from
/boot/kernel/ng_bluetooth.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/ng_bluetooth.ko
Reading symbols from /boot/kernel/netgraph.ko...Reading symbols from
/boot/kernel/netgraph.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/netgraph.ko
Reading symbols from /boot/kernel/ng_l2cap.ko...Reading symbols from
/boot/kernel/ng_l2cap.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/ng_l2cap.ko
Reading symbols from /boot/kernel/ng_btsocket.ko...Reading symbols from
/boot/kernel/ng_btsocket.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/ng_btsocket.ko
Reading symbols from /boot/kernel/ng_socket.ko...Reading symbols from
/boot/kernel/ng_socket.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/ng_socket.ko
Reading symbols from /boot/kernel/pf.ko...Reading symbols from
/boot/kernel/pf.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/pf.ko
Reading symbols from /boot/kernel/linux.ko...Reading symbols from
/boot/kernel/linux.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/linux.ko
Reading symbols from /boot/kernel/vkbd.ko...Reading symbols from
/boot/kernel/vkbd.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/vkbd.ko
Reading symbols from /usr/local/modules/fuse.ko...done.
Loaded symbols for /usr/local/modules/fuse.ko
Reading symbols from /boot/kernel/radeon.ko...Reading symbols from
/boot/kernel/radeon.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/radeon.ko
Reading symbols from /boot/kernel/drm.ko...Reading symbols from
/boot/kernel/drm.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/drm.ko
#0  doadump (textdump=value optimized out) at pcpu.h:234
234 pcpu.h: No such file or directory.
in pcpu.h
#0  doadump (textdump=value optimized out) at pcpu.h:234
No locals.
#1  0x8090d9a6 in kern_reboot (howto=260) at
/usr/src/sys/kern/kern_shutdown.c:449
_ep = (struct eventhandler_entry *) 0x0
_el = (struct eventhandler_list *) 0xfe0004914000
first_buf_printf = 1
#2  0x8090dea7 in panic (fmt=0x1 Address 0x1 out of bounds) at
/usr/src/sys/kern

Re: sysvipc only for one jail

2013-08-14 Thread David Demelier

On 12.08.2013 19:46, Trond Endrestøl wrote:

On Mon, 12 Aug 2013 14:09+0200, Trond Endrestøl wrote:


On Mon, 12 Aug 2013 13:57+0200, David Demelier wrote:


2013/8/12 Trond Endrestøl trond.endres...@fagskolen.gjovik.no:

On Mon, 12 Aug 2013 12:40+0200, David Demelier wrote:


2013/8/11 Maciej Suszko mac...@suszko.eu:

Maciej Suszko mac...@suszko.eu wrote:
[...]


You can specify different params for each jail using _parameters, for
example:

jail_jailname_params=allow.chflags=1 allow.sysvipc=1


Sorry, my mistake - it should be jail_jailname_parameters= of course.
--
regards, Maciej Suszko.


Thanks for your message,

However, I could not find this setting in the manual of rc.conf(5)
neither in /etc/rc.d/jail :(. It does not seems to be applied.


Have a look at jail(8) and the last lines of /etc/default/rc.conf.


I see,

I've added what Maciej Suszko told me but the sysctls in the jail is
not set as it should be :

security.jail.param.allow.sysvipc: 0
security.jail.param.allow.chflags: 0

And thus, it's not enabled as postgresql tells:

creating template1 database in /usr/local/pgsql/data/base/1 ... FATAL:
  could not create shared memory segment: Function not implemented


I'll look into this by creating a new jail for PostgreSQL 9.2 when I
get home.


My host is running 9.2-PRERELEASE, r254150, in VirtualBox 4.2.16.
The jails are running world, also at r254150.

I added the following to the host's /etc/rc.conf:

jail_enable=YES
jail_list=postgresql

jail_postgresql_rootdir=/jails/postgresql
jail_postgresql_hostname=postgresql.bsd.net
jail_postgresql_interface=vtnet0
jail_postgresql_fib=0
jail_postgresql_ip=10.0.2.103,2001:db8::103
jail_postgresql_exec_start=/bin/sh /etc/rc
jail_postgresql_exec_stop=/bin/sh /etc/rc.shutdown
jail_postgresql_devfs_enable=YES
jail_postgresql_parameters=enforce_statfs=1 allow.chflags=1 allow.sysvipc=1 
allow.mount=1 allow.mount.zfs=1

I added the following to the host's /etc/jail.conf:

postgresql {
   path = /jails/postgresql;
   enforce_statfs = 1;
   allow.chflags;
   allow.sysvipc;
   allow.mount;
   allow.mount.zfs;
   mount.devfs;
   host.hostname = postgresql.bsd.net;
   ip4.addr = 10.0.2.103;
   ip6.addr = 2001:db8::103;
   interface = vtnet0;
   exec.start = /bin/sh /etc/rc;
   exec.stop = /bin/sh /etc/rc.shutdown;
}

PostgreSQL 9.2.4 had no problems running initdb nor running postgres
inside the jail:

root@freebsd-jails:/ # jexec 4 csh
root@postgresql:/ # /usr/local/etc/rc.d/postgresql status
pg_ctl: server is running (PID: 46623)
/usr/local/bin/postgres -D /usr/local/pgsql/data
root@postgresql:/ #

If you start the jail manually using jail(8), then /etc/jail.conf
comes into play, whereas the lines in /etc/rc.conf is used during
automatic startup of the jails when the host is rebooted. The whole
arrangement seems unnecessary redundant, and I truly wish this can be
merged sooner rather than later.



___
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've updated to 9.2-RC1 and the _parameters did the trick, thanks!

Cheers,
___
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: sysvipc only for one jail

2013-08-12 Thread David Demelier
2013/8/11 Maciej Suszko mac...@suszko.eu:
 Maciej Suszko mac...@suszko.eu wrote:
 [...]

 You can specify different params for each jail using _parameters, for
 example:

 jail_jailname_params=allow.chflags=1 allow.sysvipc=1

 Sorry, my mistake - it should be jail_jailname_parameters= of course.
 --
 regards, Maciej Suszko.

Thanks for your message,

However, I could not find this setting in the manual of rc.conf(5)
neither in /etc/rc.d/jail :(. It does not seems to be applied.

Cheers,

-- 
Demelier David
___
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: sysvipc only for one jail

2013-08-12 Thread David Demelier
2013/8/12 Trond Endrestøl trond.endres...@fagskolen.gjovik.no:
 On Mon, 12 Aug 2013 12:40+0200, David Demelier wrote:

 2013/8/11 Maciej Suszko mac...@suszko.eu:
  Maciej Suszko mac...@suszko.eu wrote:
  [...]
 
  You can specify different params for each jail using _parameters, for
  example:
 
  jail_jailname_params=allow.chflags=1 allow.sysvipc=1
 
  Sorry, my mistake - it should be jail_jailname_parameters= of course.
  --
  regards, Maciej Suszko.

 Thanks for your message,

 However, I could not find this setting in the manual of rc.conf(5)
 neither in /etc/rc.d/jail :(. It does not seems to be applied.

 Have a look at jail(8) and the last lines of /etc/default/rc.conf.

 --
 +---++
 | Vennlig hilsen,   | Best regards,  |
 | Trond Endrestøl,  | Trond Endrestøl,   |
 | IT-ansvarlig, | System administrator,  |
 | Fagskolen Innlandet,  | Gjøvik Technical College, Norway,  |
 | tlf. mob.   952 62 567,   | Cellular...: +47 952 62 567,   |
 | sentralbord 61 14 54 00.  | Switchboard: +47 61 14 54 00.  |
 +---++

I see,

I've added what Maciej Suszko told me but the sysctls in the jail is
not set as it should be :

security.jail.param.allow.sysvipc: 0
security.jail.param.allow.chflags: 0

And thus, it's not enabled as postgresql tells:

creating template1 database in /usr/local/pgsql/data/base/1 ... FATAL:
 could not create shared memory segment: Function not implemented

Cheers,

-- 
Demelier David
___
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

sysvipc only for one jail

2013-08-11 Thread David Demelier
Hi,

I would like to enable sysvipc only for one jail (defined in
/etc/rc.conf). It's possible with jail.conf but this is not supported
with jails listed in /etc/rc.conf.

Is it possible without using the global jail_sysvipc_allow ?

Cheers,

-- 
Demelier David
___
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: Terrible disk performance with LSI / FreeBSD 9.2-RC1

2013-08-10 Thread J David
To follow up on this issue, at one point the stats were down to this:

extended device statistics
device r/s   w/skr/skw/s qlen svc_t  %b
da00.0   0.0 0.0 0.00   0.0   0
da10.0   0.0 0.0 0.00   0.0   0
da2  127.9   0.0   202.3 0.01  47.5 100
da3  125.9   0.0   189.3 0.01  43.1  97
da4  127.9   0.0   189.8 0.01  45.8 100
da5  128.9   0.0   206.3 0.00  42.5  99
da6  127.9   0.0   202.3 0.01  46.2  98
da70.0 249.7 0.0   334.2   10  39.5 100

At some point, I figured out that 125 random iops is pretty much the
limit for 7200 RPM SATA drives.  So mostly what we're looking at here
is the resilver of a raidz2 is the pathological worst case.  Lesson
learned; raidz2 is just really not viable without some kind of sort on
the resilver operations.  Wish I understood ZFS well enough to do
something about that, but research suggests the problem is
non-trivial. :(

There also seems to be a separate ZFS issue related to having a very
large number of snapshots (e.g. hourly for several months on a couple
of filesystems).  Some combination of the OS updates we've been doing
trying to get this machine to 9.2-RC1 and deleting a ton of snapshots.
 It would be nice to know which it was; I guess we'll find out in a
few months.

So it seems like the combination of these two issues is mostly what
is/was plaguing us.

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


Question about usbhid.h and dev/usb/usbhid.h

2013-08-09 Thread David Demelier
Hi,

I'm currently writing a USB driver for the SFML framework. I'm reading
the code of SDL and seen the usage of usbhid.

However, /usr/include/usbhid.h and /usr/include/dev/usb/usbhid.h are
different. But they have both some common functions and the same data
definition.

For instance, enum and structures are identical, but the second one
has much more #define about hid usages.

Why are these files so much different and still having some identical
definitions? Isn't better to add full definitions and data to the
second one and just add a #include dev/usb/usbhid.h in
/usr/include/usbhid.h?

Regards,

-- 
Demelier David
___
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


VirtualBox: reproductible panic

2013-08-09 Thread David Demelier
Hello,

I can reproduce a panic by just starting a virtual machine with VirtualBox 
4.2.16_2.

Unfortunately, as the kmod driver is not built with debug symbols I could not 
provide much information.

Is this problem already reported?

Fatal trap 9: general protection fault while in kernel mode
cpuid = 1; apic id = 01
instruction pointer = 0x20:0x806f8e8f
stack pointer   = 0x28:0xff80e7ce0a10
frame pointer   = 0x28:0x817364000
code segment= base 0x0, limit 0xf, type 0x1b
= DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags= interrupt enabled, resume, IOPL = 0
current process = 1854 (VirtualBox)
trap number = 9
panic: general protection fault
cpuid = 1
KDB: stack backtrace:
Uptime: 3m9s
Dumping 302 out of 3054 MB:..6%..11%..22%..32%..43%..53%..64%..74%..85%..96%

Reading symbols from /boot/modules/vboxdrv.ko...done.
Loaded symbols for /boot/modules/vboxdrv.ko
Reading symbols from /usr/local/modules/fuse.ko...done.
Loaded symbols for /usr/local/modules/fuse.ko
#0  doadump (textdump=value optimized out) at pcpu.h:234
234 pcpu.h: No such file or directory.
in pcpu.h
(kgdb) bt
#0  doadump (textdump=value optimized out) at pcpu.h:234
#1  0x in ?? ()

Regards.

-- 
David Demelier
___
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: Terrible disk performance with LSI / FreeBSD 9.2-RC1

2013-08-07 Thread J David
On Wed, Aug 7, 2013 at 3:15 PM, James Gosnell jamesgosn...@gmail.com wrote:
 Maybe one of your drives is bad, so it's constantly doing error correction?

Not according to SMART; all the drives report no problems.  Also, all
the drives seem to perform in lock-step for both reading and writing.
E.g. when one drive in an array is failing, all the drives may be
pulling the same # of reads, but the failing drive will often report
100% busy and/or multi-second svc_t's and the others will sit at 4%
with 20msec svc_t's or similar.  In this case, it's acting like the
disks are all hugely overloaded.   Except without even the high
svc_t's I typically associate with overworking an array.

The speeds do fluctuate.  Last night it was down to 64k/sec reads per
drive (about 15 reads/sec) and still reporting 90% busy on all drives.

It feels like some sort of issue with the
bus/controller/kernel/driver/ZFS that is affecting all the drives
equally.

Also, even ls takes forever (10-30 seconds for ls -lh /) but when it
eventually does finish, time ls -lh / reports:

0.02 real 0.00 user 0.00 sys

Really not sure what to make of that. An attempt to do ps axlww |
fgrep ls while the ls was running failed, because the ps hangs just
as long as the ls.  So it's like the system is just repeatedly putting
anything that touches the disks on hold, even if all the data being
requested is clearly in cache.  (Even apparently loading the binary
for /bin/ls or doing ls -lh / twice in a row.)

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


Terrible disk performance with LSI / FreeBSD 9.2-RC1

2013-08-06 Thread J David
We have a machine running 9.2-RC1 that's getting terrible disk I/O
performance.  Its performance has always been pretty bad, but it
didn't really become clear how bad until we did a zpool replace on one
of the drives and realized it was going to take 3 weeks to rebuild a
1TB drive.

The hardware specs are:
- 2 x Xeon L5420
- 32 GiB RAM
- LSI Logic SAS 1068E
- 2 x 32GB SSD's
- 6 x 1TB Western Digital RE3 7200RPM SATA

The LSI controller has the most recent firmware I'm aware of
(6.36.00.00 / 1.33.00.00 dated 2011.08.24), is in IT mode, and appears
to be working fine:

mpt0 Adapter:
   Board Name: USASLP-L8i
   Board Assembly: USASLP-L8i
Chip Name: C1068E
Chip Revision: B3
  RAID Levels: none

mpt0 Configuration: 0 volumes, 8 drives
drive da0 (30G) ONLINE FTM32GL25H 10 SATA
drive da1 (29G) ONLINE SSDSA2SH032G1GN 8860 SATA
drive da2 (931G) ONLINE WDC WD1002FBYS-0 0C05 SATA
drive da3 (931G) ONLINE WDC WD1002FBYS-0 0C05 SATA
drive da4 (931G) ONLINE WDC WD1002FBYS-0 0C05 SATA
drive da5 (931G) ONLINE WDC WD1002FBYS-0 0C05 SATA
drive da6 (931G) ONLINE WDC WD1002FBYS-0 0C05 SATA
drive da7 (931G) ONLINE WDC WD1002FBYS-0 0C05 SATA

The eight drives are configured as ZIL, L2ARC on SSD and a six drive
raidz2 on the spinning disks.

We did a ZFS replace on the last drive in the line, and the resilver
is proceeding at less than 800k/sec.

extended device statistics
device r/s   w/skr/skw/s qlen svc_t  %b
da00.0   0.0 0.0 0.10   0.9   0
da10.0   8.2 0.019.90   0.1   0
da2  125.6  23.0   768.240.54  33.0  88
da3  126.6  23.1   769.041.34  32.3  89
da4  126.0  24.0   768.542.74  32.1  88
da5  125.9  22.0   768.240.14  31.6  87
da6  124.0  22.0   766.639.95  31.4  84
da70.0 136.9 0.0   801.30   0.6   4

The system has plenty of free RAM, is 99.7% idle, has nothing else
going on, and runs like a one-legged dog.

There are no error messages or any sign of a problem anywhere, other
than the really terrible performance.  (When not rebuilding, it does
light NFS duty.  That performance is similarly bad, but has never
really mattered.)

Similar systems running Solaris put out 10x these numbers claiming 30%
busy instead of 90% busy.

Does anyone have any suggestions for how I could troubleshoot this
further?  At this point, I'm kind of at a loss as to where to go from
here.  My goal is to try to phase out the Solaris machines, but this
is kind of a roadblock.

Thanks for any advice!
___
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


Update /usr/src with subversion

2013-08-05 Thread David Noel
Does anyone know how a workaround for having to rm -rf /usr/src every
time the source URL changes? I'm updating from 8.3 to 8.4 with
subversion and got a message along the lines of Error: /usr/src/
contains files from a different URL. -David
___
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 /usr/src with subversion

2013-08-05 Thread David Noel
Ok great, thanks Matthew. I tried a different search query and
actually found a similar question on the forums:
http://forums.freebsd.org/showthread.php?t=35014

Your solution looks a bit cleaner than the one proposed there: rm -r
/usr/src/.svn, and then check out the new branch.

I'll check out the man for svn switch.

Thanks again,

-David

On 8/5/13, Matthew Seaman matt...@freebsd.org wrote:
 On 05/08/2013 09:00, David Noel wrote:
 Does anyone know how a workaround for having to rm -rf /usr/src every
 time the source URL changes? I'm updating from 8.3 to 8.4 with
 subversion and got a message along the lines of Error: /usr/src/
 contains files from a different URL. -David

 You need 'svn switch' -- so, if you've got some other branch checked
 out, and you want to have 8.4-RELEASE instead, then it's something like:

# svn switch ^/base/releng/8.4

 This will speedily change your checked out tree with minimal network IO.

 You can also use 'svn switch --relocate' to change which svn servers you
 have the tree checked out from or the protocol (svn://, https:// etc)
 used.  See the output of 'svn help switch' for details.

   Cheers,

   Matthew

 ___
 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: Update /usr/src with subversion

2013-08-05 Thread David Noel
Thanks, guys!

On 8/5/13, Matthew Seaman matt...@freebsd.org wrote:
 On 05/08/2013 14:22, Warren Block wrote:
 Your solution looks a bit cleaner than the one proposed there: rm -r
 /usr/src/.svn, and then check out the new branch.

 I'll check out the man for svn switch.

 The new form is just 'svn relocate':
 http://forums.freebsd.org/showpost.php?p=224243postcount=5

 Just to be clear:

   'svn relocate' is the new form for 'svn switch --relocate', used to
change the servers or the protocol (or both) used to access the
repository.

   'svn switch' (without the --relocate argument) is still valid and is
used to switch between branches within the repo.

 It's just 'svn switch --relocate' which is deprecated.

   Cheers,

   Matthew

___
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 /usr/src with subversion

2013-08-05 Thread David Noel
On 8/5/13, David Noel david.i.n...@gmail.com wrote:
 Thanks, guys!

 On 8/5/13, Matthew Seaman matt...@freebsd.org wrote:
 On 05/08/2013 14:22, Warren Block wrote:
 Your solution looks a bit cleaner than the one proposed there: rm -r
 /usr/src/.svn, and then check out the new branch.

 I'll check out the man for svn switch.

 The new form is just 'svn relocate':
 http://forums.freebsd.org/showpost.php?p=224243postcount=5

 Just to be clear:

   'svn relocate' is the new form for 'svn switch --relocate', used to
change the servers or the protocol (or both) used to access the
repository.

   'svn switch' (without the --relocate argument) is still valid and is
used to switch between branches within the repo.

 It's just 'svn switch --relocate' which is deprecated.

Ooops. Top-posted. I always forget. Does anyone know how to change the
default reply behavior of gmail? Last I searched the only way to do
it was with a greasemonkey script...
___
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: Delete a directory, crash the system

2013-07-28 Thread David Noel
Ok folks, thanks again for all the help. Using the feedback I
submitted a PR (#180894) --
http://www.freebsd.org/cgi/query-pr.cgi?pr=180894. I also submitted a
follow-up to it with Frank's code and notes. What next? I don't really
know what happens from here, but I'm guessing/hoping that someone's
monitoring the PR system and will move this forward.

Crossing my fingers, though if anyone knows any better methods of
getting PR's addressed I'm all ears.

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


Delete a directory, crash the system

2013-07-27 Thread David Noel
I had a strange experience on my laptop yesterday. I was deleting a
directory and the system crashed. It spat out a message along the
lines of ufs_dirrem bad link count 2 on parent. I thought it was so
strange I repeated the process several times, and each time it
crashed. Is this behavior EXPECTED? I can't for the life of me think
of a time or operating system I've run where I've ever had a system
crash on me from doing something as basic as deleting a file. Anyway I
couldn't boot into single user for some reason so I booted from a USB
image, ran fsck, and then everything was fine.
___
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: Delete a directory, crash the system

2013-07-27 Thread David Noel
Yes

On 7/27/13, Fernando Apesteguía fernando.apesteg...@gmail.com wrote:
 El 27/07/2013 13:49, David Noel david.i.n...@gmail.com escribió:

 I had a strange experience on my laptop yesterday. I was deleting a
 directory and the system crashed. It spat out a message along the
 lines of ufs_dirrem bad link count 2 on parent. I thought it was so
 strange I repeated the process several times, and each time it
 crashed. Is this behavior EXPECTED? I can't for the life of me think
 of a time or operating system I've run where I've ever had a system
 crash on me from doing something as basic as deleting a file. Anyway I
 couldn't boot into single user for some reason so I booted from a USB
 image, ran fsck, and then everything was fine.

 Was it a kernel crash? Did you get a core?

 ___
 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: Delete a directory, crash the system

2013-07-27 Thread David Noel
 Post the stack trace of the core and maybe someone can help you.

panic: ufs_dirrem: Bad link count 2 on parent
cpuid = 0
KDB: stack backtrace:
#0 0x808680fe at kdb_backtrace+0x5e
#1 0x80832cb7 at panic+0x187
#2 0x80a700e3 at ufs_rmdir+0x1c3
#3 0x80b7d484 at VOP_RMDIR_APV+0x34
#4 0x808ca32a at kern_rmdirat+0x21a
#5 0x80b17cf0 at amd64_syscall+0x450
#6 0x80b03427 at Xfast_syscall+0xf7
___
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: Delete a directory, crash the system

2013-07-27 Thread David Noel
 I'm taking a guess here - the effective link count when it came to
 removing the parent directory was only two and it should have been three
 or more. This gets sanity checked this before proceeding, and panics if
 it is not. Why an effective link count of three? We're talking about the
 parent of the directory you're trying to zap, right? There's the link to
 the directory from its parent, and the '.' link and the .. link from
 the directory you're trying to remove. There may be more if it contains
 other directories, but there can't be less.

 Anyway - if you only had a link count of just two effective links at the
 start of the delete process it suggests that the link count was messed
 up - either a link never existed or its count was wrong. Should the
 kernel panic? Well it's a situation that can never happen - it could
 simply remove the directory and pretend everything was okay but  guess
 it was decided it was likely to be a symptom of impending disaster.
 Other anomalies return an error.

 In over ten years with FreeBSD systems I can't say I've ever seen this
 cannot happen situation arise. I'd guess you had an interrupted (by
 power failure) inode operation at some time which caused the corruption.
 removing a directory is a PITA as it can lead to a race - a context swap
 could create a file it it mid-way through the process.

 Regards, Frank.

Interesting. Thanks for the analysis. I'm not a systems guy (Java,
mostly), so I don't really have the context to make much sense of kgdb
output. What you're saying though makes sense and sounds about right
-- it's a laptop and I've inadvertently run the battery down to
nothing a few times in the past. All the same, it was a very strange
experience. I would not have expected a kernel panic from a simple rm
-rf!
___
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: Delete a directory, crash the system

2013-07-27 Thread David Noel
 You may want to look into running fsck(8) and its myriad of options

fsck did the trick

 Also make sure you have soft updates enabled on your filesystem and
 preferably journaled soft updates

..pretty sure I do but I'll double check, 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: Delete a directory, crash the system

2013-07-27 Thread David Noel
 So the system panics in ufs_rmdir(). Maybe the filesystem is
 corrupt? Have you tried to fsck(8) it manually?

fsck worked, though I had to boot from a USB image because I couldn't
get into single user.. for some odd reason.

 Even if the filesystem is corrupt, ufs_rmdir() shouldn't
 panic(), IMHO, but fail gracefully. Hmmm...

Yeah, I was pretty surprised. I think I tried it like 3 times to be
sure... and yeah, each time... kaboom! Who'd have thought. Do I just
post this to the mailing list and hope some benevolent developer
stumbles upon it and takes it upon him/herself to fix this, or where
do I find the FreeBSD Suggestion Box? I guess I should file a Problem
Report and see what happens from there.
___
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: Delete a directory, crash the system

2013-07-27 Thread David Noel
 I was going to raise an issue when the discussion had died down to a
 concensus. I also don't think it's reasonable for the kernel to bomb
 when it encounters corruption on a disk.

 If you want to patch it yourself, edit sys/ufs/ufs/ufs_vnops.c at around
 line 2791 change:

  if (dp-i_effnlink  3)
  panic(ufs_dirrem: Bad link count %d on parent,
  dp-i_effnlink);

 To

  if (dp-i_effnlink  3) {
  error = EINVAL;
  goto out;
  }

 The ufs_link() call has a similar issue.

 I can't see why my mod will break anything, but there's always
 unintended consequences. By returning invalid argument, any code above
 it should already be handling that condition although the user will be
 scratching their head wondering what's wrong with it. Returning ENOENT
 or EACCES or ENOTDIR may be better (No such directory, Access denied
 or Not a valid directory).

 The trouble is that it's tricky to test properly without finding a good
 way to corrupt the link count :-)

 Regards, Frank.

Cool. Thanks for the patch!
___
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


supported cdrom not found by 8.4 setup

2013-07-26 Thread david coder

i'm trying to install 8.4 on a thinkpad x230, which uses a usb cdrom.
according to the hardward docs, 8.4 supports teac cd-210pu.  that is what i
am using.  the box boots up fine from the installation cd.  but when it comes
to choosing an installation medium, the system doesn't find the device.
idea, anyone?

thx.

david coder
___
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 website is not up to date

2013-07-24 Thread David Demelier
Hi,

There is a problem between :

http://www.freebsd.org/where.html

and

http://www.freebsd.org/fr/where.html

On the second one, 9.1-RELEASE is available for ia64 while it's not
for the english version.

Sorry if this is not the best lists for that question.

Regards,

-- 
Demelier David
___
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: [Bulk] FreeBSD upgrade woes (8.3 - 8.4)

2013-07-19 Thread David Noel
 Perhaps make buildkernel was compiled with -j 1, it's known to create a
 buggy kernel. Check your make configuration. Adding a -B, like make -B -j N
 buildkernel may work and is fast if -j is set to number or processors, but
 it's safer do a make -j 1 buildkernel, same for buildworld.

I replaced the kernel with the one on the 8.4 memstick and it booted
just fine. I then built and installed a kernel without using the j
flag to test Eduardo's theory. It booted without problem. Maybe
there's something to this -j 1 causing buggy kernels rumor.

-David
___
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: [Bulk] FreeBSD upgrade woes (8.3 - 8.4)

2013-07-19 Thread David Noel
 It's possible.  But again, I've been using -j 1 for years on a variety
 of processors, mostly Intel, without problems.  That's with buildworld
 and kernel (which is buildkernel plus installkernel), but not with
 installworld.

 Are you using clang instead of gcc?  That could be very different.

These are Intel's too.

I'm using the default compiler for 8.4. I believe that's gcc?
___
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: OT: rsync on Mac OSX

2013-07-14 Thread David Brodbeck
On Fri, Jul 12, 2013 at 11:25 AM, Chris Maness ch...@chrismaness.comwrote:

 Thank you for the detailed description of what resource forks are.  One
 more clue in this mystery is that appending .mov extension to it fixes the
 problem.


That makes some sense, since without the resource fork some MacOS software
would have trouble identifying the type of the file.  The extension
provides that information in another way.
___
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 upgrade woes (8.3 - 8.4)

2013-07-11 Thread David Noel
I have 4 servers I'm upgrading from 8.3 to 8.4. Two of them went
without a hitch, two of them blew up in my face. The only difference
between the two is the ones that worked have a 2-disk ZFS mirror and
the ones that didn't have a 4-disk ZFS striped mirror configuration
(RAID10). They both use the GPT.

After installworld  installkernel they made it through boot, but
right before the login prompt I'm getting a panic and stack dump. The
backtrace looks something like this (roughly):

0 kdb_backtrace
1 panic
2 trap_fatal
3 trap_pfault
4 trap
5 calltrap
6 vdev_mirror_child_select
7 vdev_mirror_io_start
8 zio_vdev_io_start
9 zio_execute
10 arc_read
11 dbuf_read
12 dbuf_findbp
13 dbuf_hold_impl
14 dbuf_hold
15 dnode_hold_impl
16 dmu_buf_hold
17 zap_lockdir

Does anyone have any idea what went wrong?

Does anyone have any suggestions on how to get past this?

Many thanks,

-David
___
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: [Bulk] FreeBSD upgrade woes (8.3 - 8.4)

2013-07-11 Thread David Noel
On 7/11/13, Alexandre axel...@ymail.com wrote:
 On Thu, Jul 11, 2013 at 11:04 AM, David Noel david.i.n...@gmail.com
 wrote:

 I have 4 servers I'm upgrading from 8.3 to 8.4. Two of them went
 without a hitch, two of them blew up in my face. The only difference
 between the two is the ones that worked have a 2-disk ZFS mirror and
 the ones that didn't have a 4-disk ZFS striped mirror configuration
 (RAID10). They both use the GPT.

 After installworld  installkernel they made it through boot, but
 right before the login prompt I'm getting a panic and stack dump. The
 backtrace looks something like this (roughly):

 0 kdb_backtrace
 1 panic
 2 trap_fatal
 3 trap_pfault
 4 trap
 5 calltrap
 6 vdev_mirror_child_select
 7 vdev_mirror_io_start
 8 zio_vdev_io_start
 9 zio_execute
 10 arc_read
 11 dbuf_read
 12 dbuf_findbp
 13 dbuf_hold_impl
 14 dbuf_hold
 15 dnode_hold_impl
 16 dmu_buf_hold
 17 zap_lockdir

 Does anyone have any idea what went wrong?

 Does anyone have any suggestions on how to get past this?

 Many thanks,

 -David

 Hi David,

 You wrote you execute the commands make installworld  make
 installkernel but the first command is wrong. You must execute first make
 buildworld.
 All the steps are explained in /usr/src/Makefile

 Regards,
 Alexandre


I didn't include the make buildworld or make buildkernel for the sake
of brevity but yes, I executed them prior to installworld and
installkernel.
___
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: [Bulk] FreeBSD upgrade woes (8.3 - 8.4)

2013-07-11 Thread David Noel
Ah. That very well might be it. I did call buildkernel with j  1.

I'll boot an 8.4 memstick and replace the kernel.

Thanks,

-David

On 7/11/13, Eduardo Morras emorr...@yahoo.es wrote:
 On Thu, 11 Jul 2013 04:40:38 -0500
 David Noel david.i.n...@gmail.com wrote:

 I didn't include the make buildworld or make buildkernel for the sake
 of brevity but yes, I executed them prior to installworld and
 installkernel.

 Perhaps make buildkernel was compiled with -j 1, it's known to create a
 buggy kernel. Check your make configuration. Adding a -B, like make -B -j N
 buildkernel may work and is fast if -j is set to number or processors, but
 it's safer do a make -j 1 buildkernel, same for buildworld.

 HTH

 ---   ---
 Eduardo Morras emorr...@yahoo.es

___
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: [Bulk] FreeBSD upgrade woes (8.3 - 8.4)

2013-07-11 Thread David Noel
On 7/11/13, Mark Felder f...@feld.me wrote:
 On Thu, 11 Jul 2013 05:00:39 -0500, Eduardo Morras emorr...@yahoo.es
 wrote:

 Perhaps make buildkernel was compiled with -j 1, it's known to create a

 buggy kernel.

 This is not true to my knowledge. If buildkernel produced bad kernels with

 -j1 we'd not allow you to do that without jumping through hoops.


If this is the case replacing the kernel should have no effect. But
what then? Any thoughts?
___
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


C++11 not working anymore with clang 3.2

2013-07-06 Thread David Demelier
Hello there,

I've installed the c++ (libc++ library) like this :

make -C /usr/src/lib/libcxxrt all install
make CXX=clang -C /usr/src/lib/libc++ all install

Then, I was able to compile with clang++ using -std=c++11 -stdlib=libc++.

And now, after the clang-3.2 update I can't build anymore, I get this error:

/usr/local/bin/ld: CMakeFiles/irccd.dir/Irccd.cpp.o: undefined reference to 
symbol '__cxa_free_exception@@CXXABI_1.3'
/usr/local/bin/ld: note: '__cxa_free_exception@@CXXABI_1.3' is defined in DSO 
//lib/libcxxrt.so.1 so try adding it to the linker command line
//lib/libcxxrt.so.1: could not read symbols: Invalid operation
clang: error: linker command failed with exit code 1 (use -v to see 
invocation)
*** [irccd/irccd] Error code 1

I've also tried recompiling libc++ and libcxxrt with the last clang++ but it 
didn't help.

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


Re: change an image or convert it to metapost

2013-07-05 Thread David Topham
Check this out for some possibilities of converting image back to Metapost:

http://matagalatlante.org/nobre/hyt/mpost.html
___
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


[PKGNG] i386-wine-1.6.r4

2013-07-01 Thread David Naylor
Hi,

Pkgng packages are available for i386-wine-1.6.r4 [1] at local-distfiles [2].  
Currently packages are available for FreeBSD 8 and 9 [3].  For previous 
version of i386-wine replace 'latest' with the version number.  

To install the port try one of the following options:

Method 1 (Quick and easy)
=
If wine already installed:
# pkg delete i386-wine
For FreeBSD 8 (as root):
# pkg add http://alturl.com/ih93t
For FreeBSD 9 (as root):
# pkg add http://alturl.com/opzyj

Method 2 (Multi-repo mode: secure, preferred)
=
To setup the repo and do initial port install (as root):
# mkdir -p /usr/local/etc/pkg/repos
# fetch -o /usr/local/etc/pkg/repos \ 
http://people.freebsd.org/~dbn/repos/wine.conf
# fetch -o /usr/local/etc/pkg/repos \ 
http://people.freebsd.org/~dbn/repos/wine.cert
# pkg update
# pkg install -r wine i386-wine

Please consider editing /usr/local/etc/pkg/repos/wine.conf to use one of the 
many available mirrors[2]. To install an older version of wine change the 
suffix latest to a version listed on the wiki[1].

To update already installed port (as root)
# pkg upgrade -r wine


Regards

David

[1] See the wiki for more details: http://wiki.FreeBSD.org/i386-Wine
[2] See your local FreeBSD mirror under ports/local-distfiles/dbn/i386-wine-
devel/${ABI}/latest where ABI=freebsd:X:x86:64 for X in {8, 9}.  For a list of 
mirrors please see 
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/mirrors-ftp.html
[3] Packages are built from FreeBSD 8.3 and 9.1 respectively.  

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


Re: Hello

2013-06-26 Thread David Demelier
2013/6/26 Mike Jeays mike.je...@rogers.com:
 On Wed, 26 Jun 2013 08:56:59 +1000
 julius juliuscmontes...@gmail.com wrote:

 Which BSD for a user desktop ??!.
 I all ready have Linux mint but I like to try again, in the past I have
 use it but no luck in dual booting system with windows and I have try to
 follow youtube BSD users that gave instructions on the BSD and no luck.
 Everybody that I watch in youtube for instruction it hasn't work even
 loading the BSD on is own hasn't work.So which BSD for a user desktop??!
 Thank you
 --
 Best Wishes Julius
 ___
 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

 PC-BSD is a good place to start; it makes installation easy.

 I prefer running Windows in a VM under VirtualBox to dual-booting. Switching
 between the two is much faster, and you can make the host file system visible
 to the guest with Samba.

The only drawback of this is performance. Or you have a very powerful
machine :-)

--
Demelier David
___
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


Fwd: [PKGNG] i386-wine-1.6.r2

2013-06-18 Thread David Naylor
Hi,

Pkgng packages are available for i386-wine-1.6.r2 [1] at local-distfiles [2].  
Currently packages are available for FreeBSD 8 and 9 [3][4].  For previous 
version of i386-wine replace 'latest' with the version number.  

To install the port try one of the following options:

 - Method 1 (Quick and easy)
For FreeBSD 8 (as root)
# pkg add http://alturl.com/ih93t
For FreeBSD 9 (as root)
# pkg add http://alturl.com/opzyj

 - Method 2 (Repo)
This method will only be fully supported with pkgng v1.1.  

Regards

David

P.S. I'll be available on Saturday to address any issues / questions.  

[1] See the wiki for more details: http://wiki.FreeBSD.org/i386-Wine (WIP)
[2] See your local FreeBSD mirror under ports/local-distfiles/dbn/i386-wine-
devel/${ABI}/latest where ABI=freebsd:X:x86:64 for X in {8, 9}.  
[3] Packages are built from FreeBSD 8.3 and 9.1 respectively.  
[4] Packaging for FreeBSD 10 will be resumed in due course.  

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


With fresh 9.1 install, bash completion no longer expands $HOME

2013-06-10 Thread David P. Caldwell
On my 9.0-based machines, if I typed $HOME[tab] when typing a command
in bash, the $HOME would be overwritten by the actual path to my home
directory (the value of $HOME) and tab completion would work as
expected.

After a fresh 9.1 install, this does not work as well.

$HOME is still detected by completion, but it is not expanded after
pressing tab (this does not matter to me), but also an extra space is
inserted after tab.

For example, if I have a directory named src under my home directory,
and my working directory is an unrelated directory, and I type cd
$HOME/sr[tab]:

Under 9.0:
cd /home/dcaldwell/src/[cursor]

Under 9.1:
cd $HOME/src [cursor]

So under 9.1 I lose the slash and see a space instead, essentially,
which renders this not very useful.

If I use ~ rather than $HOME, it works correctly under both. Obviously
I could probably learn to type ~ rather than $HOME but it would be a
hard habit to break after years. :)

For bash (and for most software) I am using binary packages from the
-release distribution, so my 9.0 machines have 4.1.11 and my 9.1
machines have 4.2.37.

I don't know enough about all the moving parts to know where to start
tracking this down, so can someone point me in the right direction?
(Unless there's an known problem or change I'm missing.) I can't
figure out where completion is configured in bash outside the
/usr/local/etc/bash_completion.d/ directory, which incidentally on my
9.1 setup contains:

$ ls /usr/local/etc/bash_completion.d/
dbus-bash-completion.sh*gdbus-bash-completion.sh*
gsettings-bash-completion.sh*

Thanks,

-- David Caldwell
http://www.davidpcaldwell.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


mini express cards supported by freebsd

2013-06-06 Thread david coder

i need a mini express wifi card for a thinkpad laptop.  does anybody know of
one that is supported by freebsd?  the aironet card i have is too fat.

thx,

david coder
___
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


chromium freezes 8.3 system

2013-06-03 Thread david coder

chromium often freezes my 8.4-stable, necessitating a powercycle.  is this a
configuration issue?  here's what i get w/make showconfig:

=== The following configuration options are available for
chromium-27.0.1453.81:
  CLANG=on: Build Chromium with Clang instead of GCC 4.6+
  CODECS=on: Compile and enable patented codecs like H.264
  DEBUG=off: Install debug symbols
  GCONF=on: GConf configuration backend support
  PULSEAUDIO=off: PulseAudio sound server support

thx for any help you can give me.

david coder


___
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


chromium freezes system 8.3

2013-06-03 Thread david coder

chromium often freezes my 8.3 os, necessitating a powercycle.  is this a
configuration issue?  here's what i get w/make showconfig:

=== The following configuration options are available for
chromium-27.0.1453.81:
 CLANG=on: Build Chromium with Clang instead of GCC 4.6+
 CODECS=on: Compile and enable patented codecs like H.264
 DEBUG=off: Install debug symbols
 GCONF=on: GConf configuration backend support
 PULSEAUDIO=off: PulseAudio sound server support

thx for any help you can give me.

david coder

___
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: chromium freezes 8.3 system

2013-06-03 Thread david coder

correction:  subject line should have read 8.4-stable system.  here's the output
of uname -a:

FreeBSD anon 8.4-STABLE FreeBSD 8.4-STABLE #0: Mon Jun  3 03:15:35 UTC
2013 root@anon:/usr/obj/usr/src/sys/anon  i386

+++ david coder [03/06/13 23:29 -0400]:

chromium often freezes my 8.4-stable, necessitating a powercycle.  is this a
configuration issue?  here's what i get w/make showconfig:

=== The following configuration options are available for
chromium-27.0.1453.81:
  CLANG=on: Build Chromium with Clang instead of GCC 4.6+
  CODECS=on: Compile and enable patented codecs like H.264
  DEBUG=off: Install debug symbols
  GCONF=on: GConf configuration backend support
  PULSEAUDIO=off: PulseAudio sound server support

thx for any help you can give me.

david coder


___
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: Unkillable processes

2013-05-22 Thread David Demelier
2013/5/19 Joshua Isom jri...@gmail.com:
 On 5/19/2013 3:00 PM, David Demelier wrote:

 Hello there,

 I've had a process on state pfault and it was just unkillable, kill
 -9 had no effects and because the script was doing an infinite loop
 the machine was slower and slower so the only way to fix that was a
 reboot.

 Why kill -9 has still no effects on some bad processes?

 Regards,

 --
 Demelier David


 A process can be unkillable if it's holding a lock, like reading from disk.
 Eventually, the lock will release and it should die.  You can use limits to
 change how much CPU and memory a process can use.  My guess is what happened
 is it started using a lot of memory, but you ran out and have a lot of swap.
 It was trying to run while using your hard drive instead of ram.  With
 limits, you should be able to prevent it from using swap which could help,
 and cap the amount of ram and cpu.

Hello, thank you for that precise explanation, I will add limits into
the new rctl.conf, however I don't know how many amount of ram I
should allow, in fact I have absolutely no idea how much of ram an
usual program eats, is 50Mo enough for user applications ?

Regards,

--
Demelier David
___
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


Task bar missed when creating PC-BSD release 9.1 64 bit VM in VMware Workstation Version 98.02 build-1031769

2013-05-20 Thread Chou, David J
Hi,

I  am trying to create a virtual machine of PC-BSD release 9.1 64 bit in VMware 
Workstation Version 98.02 build-1031769 based on PCBSD9.1-x64-DVD.iso 
downloaded from ftp://mirrors.isc.org/pub/pcbsd/9.1/amd64/PCBSD9.1-x64-DVD.iso 
in Windows 7 64 bits system. The screen resolution is 1280x1024,  if I chose 
Yes  in Confirm Resolution window to keep the autodetec, then after the 
whole creation process finished, and login in as a created user, the task 
doesn't appear in the bottom below the desktop.  If I powered off the VM, and 
changed the Display setting to Specificy monitor settings with Maximum 
resolution set to 1024 x 768 by Virtual Machine Settings in Workstation, 
and repower on the VM, then the task bar appears on the bottom below desktop.

What is the issue?  Did I miss anything during the VM creation?

Thanks.

David






, and setup network configuration and installed Firefox 20.0 by AppCafe, and 
configured the network setting in Preference-Advanced of Firefox, and I could  
access Internet.

Now I need to build my own customized kernel, but there is no src subdirectory 
in /usr, so here is my question:
1.Is there any way to install kernel source when I create the  
virtual machine from PCBSD9.1-x64-DVD.iso ?
2.Any BKM to get the kernel source after the Virtual Machine 
already created as my case now?

Thanks!

Regards,
David

___
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


Unkillable processes

2013-05-19 Thread David Demelier
Hello there,

I've had a process on state pfault and it was just unkillable, kill
-9 had no effects and because the script was doing an infinite loop
the machine was slower and slower so the only way to fix that was a
reboot.

Why kill -9 has still no effects on some bad processes?

Regards,

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


How to get kernel source code of free-BSD release 9.1

2013-05-19 Thread Chou, David J
Hi,

I  have created a virtual machine of PC-BSD release 9.1 64 bit in VMware Player 
Version 5.0.0 build-812388 based on PCBSD9.1-x64-DVD.iso downloaded from 
ftp://mirrors.isc.org/pub/pcbsd/9.1/amd64/PCBSD9.1-x64-DVD.iso , and setup 
network configuration and installed Firefox 20.0 by AppCafe, and configured the 
network setting in Preference-Advanced of Firefox, and I could  access 
Internet.

Now I need to build my own customized kernel, but there is no src subdirectory 
in /usr, so here is my question:

  1.  Is there any way to install kernel source when I create the  virtual 
machine from PCBSD9.1-x64-DVD.iso ?
  2.  Any BKM to get the kernel source after the Virtual Machine already 
created as my case now?

Thanks!

Regards,
David

___
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


[PKGNG] i386-wine-1.5.30

2013-05-16 Thread David Naylor
Hi,

Pkgng packages are available for i386-wine-1.5.30 [1] at local-distfiles [2].  
Currently packages are available for FreeBSD 8 and 9 [3][4].  For previous 
version of i386-wine replace 'latest' with the version number.  

To install the port try one of the following options:

 - Method 1 (Quick and easy)
For FreeBSD 8 (as root)
# pkg add http://alturl.com/4smzi
For FreeBSD 9 (as root)
# pkg add http://alturl.com/tn8mv

 - Method 2 (Repo)
This method will only be fully supported with pkgng v1.1.  
1) Set `PKG_MULTIREPOS' to `YES' in ${LOCALBASE}/etc/pkg.conf
2) Add repo `wine-devel' with URL [2] to ${LOCALBASE}/etc/pkg.conf
3) Install (as root):
# pkg install -r wine-devel i386-wine
or upgrade (as root):
# pkg upgrade -r wine-devel

Regards

David

P.S. I'll be available on Saturday to address any issues / questions.  

[1] See the wiki for more details: http://wiki.FreeBSD.org/i386-Wine (WIP)
[2] See your local FreeBSD mirror under ports/local-distfiles/dbn/i386-wine-
devel/${ABI}/latest where ABI=freebsd:X:x86:64 for X in {8, 9}.  
[3] Packages are built from FreeBSD 8.3 and 9.1 respectively.  
[4] Packaging for FreeBSD 10 will be resumed in due course.  


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


Re: /etc/jail.conf for automatically started jails listed in /etc/rc.conf

2013-05-14 Thread David Demelier
2013/5/14 Joe fb...@a1poweruser.com:
 David Demelier wrote:

 Le lundi 13 mai 2013 16:32:01 Joe a écrit :

 David Demelier wrote:

 Hello dear,

 Does jail.conf(5) does not work for jails listed in the rc.conf ?

 I've added in /etc/jail.conf:

 foo {

 hostname=Foo;
 path=/jails/foo;
 allow.sysvipc=1;

 }

 And in /etc/rc.conf only foo in the jail_list parameter, but when I try
 to
 start the jail it still complain about missing hostname.

 Regards,

 There are 2 methods for configuring jails.

 The legacy method which you put the jail config statements in the hosts
 /etc/rc.conf file and start and stop control is done by the hosts
 /etc/rc.d/jail script at boot time.

 The jail(8) method which has it's own jail config statements in the
 hosts /etc/jail.conf file and uses the jail(8) program for starting and
 stopping. You can create a jail.conf file for each jail(8) and start it
 using  jail -c -f /etc/jailname.jail.conf and stop by issuing
 jail -f /etc/jailname.jail.conf -r jailname

 You can not mix the 2 methods.


 My real problem is that I wanted to add allow.sysvipc only for *one* jail
 and I can't find a real solution by jail_* flags in /etc/rc.conf

 There is jail_allow_sysvipc but it enable it for all jails.




 The jail(8) method does have a allow_sysvipc on a per jail basis. To use it
 you have to use the jail(8) method. The 9.1-RELEASE legacy method is a work
 in process to incorporate the jail(8) parameters into the rc.conf config
 statements.

 About the allow_sysvipc parameter, this breaks the security the jail is
 designed to provide and should NOT be used on any jails having public
 internet access.

 What are you trying to do that you think you need to use the allow_sysvipc
 parameter?


PostgreSQL, usually I install it on the host instead of jails, but I
needed a second instance on a different port for a public access..

Regards,

--
Demelier David
___
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: /etc/jail.conf for automatically started jails listed in /etc/rc.conf

2013-05-14 Thread David Demelier
2013/5/14 Joe fb...@a1poweruser.com:
 David Demelier wrote:

 2013/5/14 Joe fb...@a1poweruser.com:

 David Demelier wrote:

 Le lundi 13 mai 2013 16:32:01 Joe a écrit :

 David Demelier wrote:

 Hello dear,

 Does jail.conf(5) does not work for jails listed in the rc.conf ?

 I've added in /etc/jail.conf:

 foo {

 hostname=Foo;
 path=/jails/foo;
 allow.sysvipc=1;

 }

 And in /etc/rc.conf only foo in the jail_list parameter, but when I
 try
 to
 start the jail it still complain about missing hostname.

 Regards,

 There are 2 methods for configuring jails.

 The legacy method which you put the jail config statements in the hosts
 /etc/rc.conf file and start and stop control is done by the hosts
 /etc/rc.d/jail script at boot time.

 The jail(8) method which has it's own jail config statements in the
 hosts /etc/jail.conf file and uses the jail(8) program for starting and
 stopping. You can create a jail.conf file for each jail(8) and start it
 using  jail -c -f /etc/jailname.jail.conf and stop by issuing
 jail -f /etc/jailname.jail.conf -r jailname

 You can not mix the 2 methods.


 My real problem is that I wanted to add allow.sysvipc only for *one*
 jail
 and I can't find a real solution by jail_* flags in /etc/rc.conf

 There is jail_allow_sysvipc but it enable it for all jails.



 The jail(8) method does have a allow_sysvipc on a per jail basis. To use
 it
 you have to use the jail(8) method. The 9.1-RELEASE legacy method is a
 work
 in process to incorporate the jail(8) parameters into the rc.conf config
 statements.

 About the allow_sysvipc parameter, this breaks the security the jail is
 designed to provide and should NOT be used on any jails having public
 internet access.

 What are you trying to do that you think you need to use the
 allow_sysvipc
 parameter?


 PostgreSQL, usually I install it on the host instead of jails, but I
 needed a second instance on a different port for a public access..

 Regards,

 --
 Demelier David


 That all sounds logical and is what jails are designed to do.
 Why would running PostgreSQL in a jail need sysvipc?
 Have you tried it? Did you get some PostgreSQL error?


Yes, unfortunately this is a very very old issue that has been
reported so much often..

--
Demelier David
___
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

/etc/jail.conf for automatically started jails listed in /etc/rc.conf

2013-05-13 Thread David Demelier
Hello dear,

Does jail.conf(5) does not work for jails listed in the rc.conf ?

I've added in /etc/jail.conf:

foo {
hostname=Foo;
path=/jails/foo;
allow.sysvipc=1;
}

And in /etc/rc.conf only foo in the jail_list parameter, but when I try to 
start the jail it still complain about missing hostname.

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


Re: /etc/jail.conf for automatically started jails listed in /etc/rc.conf

2013-05-13 Thread David Demelier
Le lundi 13 mai 2013 16:32:01 Joe a écrit :
 David Demelier wrote:
  Hello dear,
  
  Does jail.conf(5) does not work for jails listed in the rc.conf ?
  
  I've added in /etc/jail.conf:
  
  foo {
  
  hostname=Foo;
  path=/jails/foo;
  allow.sysvipc=1;
  
  }
  
  And in /etc/rc.conf only foo in the jail_list parameter, but when I try to
  start the jail it still complain about missing hostname.
  
  Regards,
 
 There are 2 methods for configuring jails.
 
 The legacy method which you put the jail config statements in the hosts
 /etc/rc.conf file and start and stop control is done by the hosts
 /etc/rc.d/jail script at boot time.
 
 The jail(8) method which has it's own jail config statements in the
 hosts /etc/jail.conf file and uses the jail(8) program for starting and
 stopping. You can create a jail.conf file for each jail(8) and start it
 using  jail -c -f /etc/jailname.jail.conf and stop by issuing
 jail -f /etc/jailname.jail.conf -r jailname
 
 You can not mix the 2 methods.

My real problem is that I wanted to add allow.sysvipc only for *one* jail and 
I can't find a real solution by jail_* flags in /etc/rc.conf

There is jail_allow_sysvipc but it enable it for all jails.
___
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


running iscontrol at boot time

2013-05-13 Thread David Newman
How to configure FreeBSD so that an iSCSI initiator will mount a
filesystem on an iSCSI target at boot time?

The /boot/loader.conf file has 'iscsi_initiator_load=YES' but
iscontrol does not run at boot time.

I believe iscontrol needs to run after the kernel module is loaded but
before a filesystem in /etc/fstab is mounted.

This works fine manually, but a reboot fails because the FreeBSD box
doesn't run iscontrol at boot time, and thus can't mount the filesystem
on the iSCSI target.

Pardon me if this has been asked before, as it seems like a standard
problem, but I couldn't find anything in recent freebsd-scsi  archives
or in the man pages. I asked on freebsd-scsi about 10 days ago, but
never got a response.

The initiator runs a generic FreeBSD 8.3-RELEASE/amd64 kernel.

Thanks!

dn

___
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 on MBR does not boot at all

2013-05-12 Thread demelier . david
Le dimanche 5 mai 2013 22:20:43 Giorgos Keramidas a écrit :
 On Mon, 29 Apr 2013 13:29:18 +0200, David Demelier 
demelier.da...@gmail.com wrote:
  2013/4/18 David Demelier demelier.da...@gmail.com:
  Hello,
  I would like to use ZFS over MBR for multiboot purposes. I've followed
  that guide https://wiki.freebsd.org/RootOnZFS/ZFSBootPartition but it
  does not boot at all. The loader does not show up after choosing
  FreeBSD in the boot0 loader.
  
  The _ prompt appears but nothing starts. I've found many people over
  the web having the same problem but unfortunately no one found a
  solution.
  
  I think the offensive commands are ones with dd and zfsboot.
  Regards,
  
  So someone told me on IRC that the main problem was that I've put my
  partition swap as first partition in the FreeBSD slice and zfsboot
  *requires* that the zfs partition is the first.
  
  Can someone with right access to the wiki page may add a notice about
  this issue on https://wiki.freebsd.org/RootOnZFS/ZFSBootPartition
  please?
 
 Hi David,
 
 Thanks for following up with what the real problem was.  I updated the
 Wiki to include this:
 
 Note that partition order is important. It seems that zfsboot
 requires the freebsd-zfs partition to be the first, so make sure you
 add if first, before your swap partition.

Thank you :)

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


Firefox is so slow

2013-04-29 Thread David Demelier
Hi,

I used to love firefox in the early days, when I started using Linux
around 2003-2004. It was so fast. Now it's just amazing how long does
it take to start.

On my machine : intel i3 540, 2G of RAM and FreeBSD 9.1 it takes
around 12 secondes to start. Is it so long for you too?

What kind of bloat has been added so it's so big to start..

Regards,

--
Demelier David
___
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 on MBR does not boot at all

2013-04-29 Thread David Demelier
2013/4/18 David Demelier demelier.da...@gmail.com:
 Hello,

 I would like to use ZFS over MBR for multiboot purposes. I've followed
 that guide https://wiki.freebsd.org/RootOnZFS/ZFSBootPartition but it
 does not boot at all. The loader does not show up after choosing
 FreeBSD in the boot0 loader.

 The _ prompt appears but nothing starts. I've found many people over
 the web having the same problem but unfortunately no one found a
 solution.

 I think the offensive commands are ones with dd and zfsboot.

 Regards,


So someone told me on IRC that the main problem was that I've put my
partition swap as first partition in the FreeBSD slice and zfsboot
*requires* that the zfs partition is the first.

Can someone with right access to the wiki page may add a notice about
this issue on https://wiki.freebsd.org/RootOnZFS/ZFSBootPartition
please?

Regards,

--
Demelier David
___
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: Firefox is so slow

2013-04-29 Thread David Demelier
2013/4/29 Roland Smith rsm...@xs4all.nl:
 On Mon, Apr 29, 2013 at 11:18:57AM +0200, David Demelier wrote:
 Hi,

 I used to love firefox in the early days, when I started using Linux
 around 2003-2004. It was so fast. Now it's just amazing how long does
 it take to start.

 On my machine : intel i3 540, 2G of RAM and FreeBSD 9.1 it takes
 around 12 secondes to start. Is it so long for you too?

 Around 2 seconds on an intel core2 quad, 4G RAM, FreeBSD 9.1 amd64.

 What kind of bloat has been added so it's so big to start..

 When building firefox from source, I only set the GIO and
 OPTIMIZED_CFLAGS options to ON. All other options were set to OFF.

 You could try using Profile Guided Optimizations, but it will make the
 build a lot slower.

 Do you have plugins (not add-ons) like java or flash installed? Try
 disabling those.


I had DBUS and LOGGING enabled, I also have flash installed, I will
try like you with OPTIMIZED_CFLAGS and without other options to see if
it helps,

Thanks for the hint

--
Demelier David
___
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


ZFS on MBR does not boot at all

2013-04-18 Thread David Demelier
Hello,

I would like to use ZFS over MBR for multiboot purposes. I've followed
that guide https://wiki.freebsd.org/RootOnZFS/ZFSBootPartition but it
does not boot at all. The loader does not show up after choosing
FreeBSD in the boot0 loader.

The _ prompt appears but nothing starts. I've found many people over
the web having the same problem but unfortunately no one found a
solution.

I think the offensive commands are ones with dd and zfsboot.

Regards,

--
Demelier David
___
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


System hangs but ping when remounting read-only

2013-04-18 Thread David Demelier
Hello folks,

I have a machine that runs on a compact flash so I try to mount read-only as 
much as possible, but when I need to do some maintainance I remount read-write 
with

mount -u -w /

It works, but when I try to remount read only the prompt never get back using 

mount -u -r /

and the ssh does not respond anymore. I have also a serial cable and it is not 
accessible anymore. However pings are still working so I can't debug anything 
at all..

This problem appears on a 9.1-RELEASE i386 with /var and /tmp mounted as md 
devices.

Regards,

-- 
David Demelier
___
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


Strange console behavior - hangs every few minutes until a key is pressed

2013-04-17 Thread David Noel
I'm experiencing something odd from a few new servers I've been
setting up today. I'll do something at the console that takes some
amount of time and produces lots of output such as fetching the ports
tree, svn updating /usr/src/, or building world, and the console will
hang. The console ceases to produce any additional output until a key
is pressed. It doesn't seem to be the case that program execution is
affected, the source tree continues to checkout, for example, but the
console is 'frozen' and produces no additional output. Has anyone run
into this before? Any thoughts as to what's going wrong or how to fix
this? I'm running 8.2 and am in the process of updating to 8.3
(buildworld is running at the moment on several of them at the moment,
with these hiccups every few minutes.. it's very odd).
___
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: 9-STABLE doesn't boot: can't load 'kernel'

2013-04-16 Thread J David
loader.conf was empty and there's no 4k gnops, geli, anything like that.
 This is a 100% normal install.

Although, since you mentioned 4k blocks, I did leave a gap between ada0p1
and ada0p2 to start the root partition on a 4k boundary.  (It's an SSD that
will almost never be written to once installed, so that might be a bit
silly, but it's a habit already.)

I decided to try this again without the gap, and that seems to have worked.
 I made it through install and partitioning and OS updating to 9-STABLE and
installing new boot blocks and it seems to have worked.  I even got it to
work with a ZFS root.

Here's the partition table I ended up with:

=   34  234441581  ada0  GPT  (111G)
 34990 1  freebsd-boot  (495k)
   1024  226051072 2  freebsd-zfs  (107G)
  2260520968389519 3  freebsd-swap  (4.0G)

I'm not sure why this would make a difference, but either it does or doing
it cleared out whatever else was wrong.  This box will be stress tested and
rebooted quite a bit in the next few days, so I will report back if it
comes unglued. :)

Thanks for the suggestion!
___
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 mounting failed with error 2

2013-04-16 Thread David Demelier
2013/4/16 Beeblebrox zap...@berentweb.com:
 one thing I'm not sure about is that some people create a dataset root but
 that actually mounts at / (and not /root) and some just create others mount
 points directly on the zpool

 You can do this either way. A ZFS dataset is created at the same time and
 with the same name as the zpool. You can use the zpool-named-dataset as root
 without any problem. As I recall, the separate root dataset was a
 work-around for some old problem, so it is not necessary any longer. That
 said, you can place and name the zfs root dataset anywhere you want, as long
 as you have the 'vfs.root.mountfrom=' path set correctly. In your example,
 it is set correctly.

 Now as to why you cannot boot - from my experience, the problem is your last
 command:
 '# zpool export tank' will leave the pool in an exported state, and when the
 system tries to boot, it will not be able to locate the zpool because the
 pool is in exportland. The solution is different. After you are finished
 with all your settings you should
 # zfs umount -a (unmount all tank  child datasets in /mnt)
 # zfs set mountpoint=/ tank
 # reboot

Thank you so much, you made my day :-) For me I thought that export
was a kind of unmounting so I should have never found if you didn't
helped me on that case :p.


 At step 2, dataset tank should not try to re-mount its self and remain
 un-mounted. The older versions of ZFS did not behave this way and would
 immediately mount the zpool on root. If this happens, you have to hard-reset
 and such because the system will freeze up. If all goes well, before reboot
 you can also check (zfs get all tank) and make sure that canmount=on is set
 for tank.

 The best zfs guide is FreeBSD's own docs: https://wiki.freebsd.org/RootOnZFS



--
Demelier David
___
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 mounting failed with error 2

2013-04-15 Thread David Demelier
I've successfully made booting one virtual machine, I tried again and
it failed again. There's one thing I'm not sure about is that some
people create a dataset root but that actually mounts at / (and not
/root) and some just create others mount points directly on the zpool

I've tested the second one so I did the following :

zpool create -o altroot=/mnt tank /dev/gpt/disk0
zfs create tank/usr
...

And then I've done all the other and I'm still unable to boot, this is
the exact list (and order) I've used :

gpart create -s GPT ada0
gpart add -t freebsd-boot -s 64k -l boot0 ada0
gpart add -t freebsd-swap -s 4G -l swap0 ada0
gpart add -t freebsd-zfs -l disk0 ada0

gpart bootcode -b /boot/pmbr ada0
gpart bootcode -p /boot/gptzfsboot -i 1 ada0

zpool create -o altroot=/mnt tank /dev/gpt/zfs0
zpool set bootfs=tank tank
zfs set checksum=fletcher4 tank

zfs create -o setuid=offtank/home
zfs create -o setuid=offtank/tmp

# /usr
zfs createtank/usr
zfs createtank/usr/local
zfs create -o setuid=off -o compression=lzjbtank/usr/src
zfs create -o setuid=off -o compression=lzjbtank/usr/ports

# /var
zfs createtank/var
zfs create -o setuid=off -o compression=lzjb -o exec=offtank/var/crash
zfs create -o setuid=off -o compression=lzjb -o exec=offtank/var/log
zfs create -o setuid=off -o exec=offtank/var/run
zfs create -o setuid=offtank/var/tmp

chmod 1777 /mnt/tmp /mnt/var/tmp

### TYPE EXIT TO INSTALL THE SETS
### THEN CHOOSE LIVECD

echo /dev/label/swap0 none swap sw 0 0 /mnt/etc/fstab
echo zfs_enable=YES /mnt/etc/rc.conf
echo zfs_load=YES /mnt/boot/loader.conf
echo vfs.root.mountfrom=zfs:tank /mnt/boot/loader.conf

# zpool.cache (unable to boot without)
zpool export tank
zpool import -o cachefile=/tmp/zpool.cache -o altroot=/mnt tank
cp /tmp/zpool.cache /mnt/boot/zfs
zpool export tank

# Finished
shutdown -r now

Regards,

--
Demelier David
___
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


9-STABLE doesn't boot: can't load 'kernel'

2013-04-15 Thread J David
After installing 9.1-RELEASE amd64 on a system, it boots up fine.  If I
then build and install a new 9-STABLE kernel  world, reboots die in the
loader with:

can't load 'kernel'

This is a pretty straightforward system, one drive, not large (128GB SSD).
 GPT partitioned, gptboot boot code.  One UFS root partition to boot from,
a swap partition and, the rest for ZFS.

(At first I tried to do this system with root-on-ZFS but that also failed,
adding unable to load zpool by guid or similar before the can't load
'kernel' message.)

Once this happens, the disk is unbootable.  I can start from the install CD
and access the disk just fine, but even if I move kernel.old back to
kernel, it doesn't boot anymore.  Likewise, it doesn't matter if I
overwrite the boot code with gptboot  pmbr from the install CD or the new
ones from /boot after installworld.

The disk looks like:

# gpart show
= 34 234441581 ada0 GPT (111G)
34 222 1 freebsd-boot (111k)
256 1792 - free - (896k)
2048 8388608 2 freebsd-ufs (4.0G)
8390656 8388608 3 freebsd-swap (4.0G)
16779264 217662351 4 freebsd-zfs (103G)

In the loader:
BTX loader 1.00  BTX version is 1.02
Consoles: internal video/keyboard
BIOS drive C: is disk0
BIOS 621kB/2067924kB available memory

FreeBSD/x86 bootstrap loader, Revision 1.1
(root@builder, Mon Apr 15 09:14:38 UTC 2013)

can't load 'kernel'

Type '?' for a list of commands, 'help' for more detailed help.
OK show
[…]
currdev=disk0p2:
[…]
loaddev=disk0p2:
[…]
OK lsdev
cd devices:
disk devices:
   disk0: BIOS drive C:
pxe devices:
OK ls
open '/' failed: no such file or directory
OK help
Verbose help not available, use '?' to list commands

So it's getting the boot device right (disk0p2 / ada0p2), but can't see it
at all.

Does anyone know what might be wrong?

Thanks for any advice!
___
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: C++ headers

2013-04-14 Thread David Demelier
Le dimanche 14 avril 2013 13:26:17 Shane Ambler a écrit :
 On 13/04/2013 21:45, Jason Lenthe wrote:
  Is it possible to get C++11 support on FreeBSD? Currently the 9.1-RELEASE
  has some compiler C++11 capable but the /usr/include/c++ headers lacks
  some c++11 features (and missing headers).
  
  Is there any port of c++11 available?
  
  There sure is.  Just get the latest version of gcc or clang from the
  ports collection.
 
 The new C++11 libs are planned to be part of 10.0 base install
 
 You can build 9.1 with the new libs by adding WITH_LIBCPLUSPLUS=yes to
 your src.conf before building world. Which needs to be built with clang.
 
 For more info see https://wiki.freebsd.org/NewC++Stack

Thanks you very much, anyway I always use clang. It's definitely the best 
compiler :).

Regards,

-- 
David Demelier
___
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


C++ headers

2013-04-13 Thread David Demelier
Hello folks,

Is it possible to get C++11 support on FreeBSD? Currently the 9.1-RELEASE has 
some compiler C++11 capable but the /usr/include/c++ headers lacks some c++11 
features (and missing headers).

Is there any port of c++11 available?

Regards,

-- 
David Demelier
___
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


ZFS mounting failed with error 2

2013-04-10 Thread David Demelier
Hello

I have tried to create a GPT partition scheme on my machine. I've
created some dataset like that :

tank/usr
tank/usr/ports
tank/usr/src
tank/var/
tank/var/log

(Please note that is a test on a virtual machine before applying to a
real machine).

I've tried to generate the zpool.cache like that:

zpool import -o cachefile=/tmp/zpool.cache -o altroot=/mnt -f
cp /tmp/zpool.cache /mnt/boot/zfs/

And then tried to set mount point to legacy and bootfs with :

zfs set bootfs=tank tank
zfs set mountpoint=legacy tank

The following commands made a lot of warnings :

zfs set mountpoint=/usr tank/usr
zfs set mountpoint=/var tank/var
...

After, the import on the livecd shell generated the error :

cannot mount '/mnt/var': failed to create mountpoint.

I must say that it is very hard to make a ZFS working machine, there
are a lot of pages on the Wiki and most of them are a little bit
outdated..

--
Demelier David
___
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 mounting failed with error 2

2013-04-10 Thread David Demelier
2013/4/10 Trond Endrestøl trond.endres...@fagskolen.gjovik.no:
 On Wed, 10 Apr 2013 10:16+0200, David Demelier wrote:

 Hello

 I have tried to create a GPT partition scheme on my machine. I've
 created some dataset like that :

 tank/usr
 tank/usr/ports
 tank/usr/src
 tank/var/
 tank/var/log

 (Please note that is a test on a virtual machine before applying to a
 real machine).

 I've tried to generate the zpool.cache like that:

 zpool import -o cachefile=/tmp/zpool.cache -o altroot=/mnt -f
 cp /tmp/zpool.cache /mnt/boot/zfs/

 And then tried to set mount point to legacy and bootfs with :

 zfs set bootfs=tank tank
 zfs set mountpoint=legacy tank

 The following commands made a lot of warnings :

 zfs set mountpoint=/usr tank/usr
 zfs set mountpoint=/var tank/var
 ...

 After, the import on the livecd shell generated the error :

 cannot mount '/mnt/var': failed to create mountpoint.

 I must say that it is very hard to make a ZFS working machine, there
 are a lot of pages on the Wiki and most of them are a little bit
 outdated..

 Try to use /tmp/mnt as a temporary altroot. /tmp should be writeable.
 Not sure about / within the livecd env.


But the FreeBSD installer says to mount over /mnt before exiting the shell.

 When you set mountpoints using the above commands, the filesystems are
 actually being mounted at their specified mountpoint.


Yes that was a probable issue, I will unmount everything before trying
a new install.

 Unless the filesystems contain some actual files, more to the point,
 critical files, i.e. libraries and executables, then you are out of
 luck.

 My own blog entry is a bit (out)dated, but maybe it's worth a look:

 http://ximalas.info/2011/10/17/zfs-root-fs-on-freebsd-9-0/


Now I currently have 504 Gateway Timeout going to your website, I will
try at home maybe my corporate firewall is blocking this.

Regards,

--
Demelier David
___
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

EOL

2013-03-29 Thread David Thurber
I have 5 XP machines on my node that are used to crunch data 24/7. So, 
I'm looking for an OS platform that has a 10 year EOL to replace XP/3.


What I got from your website appears to be a year or two at most on 
freebsd 8.3, and we really don't want to repeat the travails of the 
transition from 98SE to XP/3 after this one because the research team 
will be mostly mid 80's early 90s by then.  It's a lot of data fetched 
over the web so we need security updates to keep the OS secure with 
minimal interaction.

___
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: OT: The future of USENET?

2013-03-29 Thread David Brodbeck
On Wed, Mar 27, 2013 at 10:59 PM, Steve O'Hara-Smith st...@sohara.orgwrote:

 There are several free public USENET text servers (no binary
 groups), granted it's nothing like the days when every ISP ran one but
 there are still several about (eternal-september.com is one of the
 biggest). There are also a few low cost paid servers (individual.netstands
 out here). There is also a thriving business in paid for USENET binary
 service.


Even back in the day I used to use public servers, because the ISP-run ones
generally had poor uptime and a poor selection of groups.

These days I tend not to read USENET groups because of the high amount of
spam traffic, and the fact that the remaining posters tend to be interested
mostly in continuing their own long-running flame wars while chasing off
newbies.  Maybe I just value my time more highly these days. ;)
___
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: snd_hda and front headphones jack

2013-03-25 Thread David Demelier
Try something like :

In /boot/device.hints

hint.hdaa.4.nid31.config=as=1 seq=0 # or seq=1 if does not work
hint.hdaa.4.nid25.config=as=1 seq=15

Also don't forget to add hw.snd.default_unit=4 in your /etc/sysctl.conf

Regards,


2013/3/12 Mark Felder f...@feld.me:
 Hi guys,

 I seem to be having problems getting my front headphones jack to work. I've
 read the snd_hda man page and perhaps I'm doing this wrong, but here's my
 setup:


 dev.hdaa.4.%desc: Conexant CX20641 Audio Function Group
 dev.hdaa.0.nid5_original: 0x18560010 as=1 seq=0 device=Digital-out conn=Jack
 ctype=Digital loc=0x18 color=Unknown misc=0
 dev.hdaa.1.nid5_original: 0x18560010 as=1 seq=0 device=Digital-out conn=Jack
 ctype=Digital loc=0x18 color=Unknown misc=0
 dev.hdaa.2.nid5_original: 0x18560010 as=1 seq=0 device=Digital-out conn=Jack
 ctype=Digital loc=0x18 color=Unknown misc=0
 dev.hdaa.3.nid5_original: 0x18560010 as=1 seq=0 device=Digital-out conn=Jack
 ctype=Digital loc=0x18 color=Unknown misc=0
 dev.hdaa.4.nid24_original: 0x40f001f0 as=15 seq=0 device=Other conn=None
 ctype=Unknown loc=0x00 color=Unknown misc=1
 dev.hdaa.4.nid25_original: 0x02214040 as=4 seq=0 device=Headphones conn=Jack
 ctype=1/8 loc=Front color=Green misc=0
 dev.hdaa.4.nid26_original: 0x02a19020 as=2 seq=0 device=Mic conn=Jack
 ctype=1/8 loc=Front color=Pink misc=0
 dev.hdaa.4.nid27_original: 0x01a1903e as=3 seq=14 device=Mic conn=Jack
 ctype=1/8 loc=Rear color=Pink misc=0
 dev.hdaa.4.nid28_original: 0x01014010 as=1 seq=0 device=Line-out conn=Jack
 ctype=1/8 loc=Rear color=Green misc=0
 dev.hdaa.4.nid29_original: 0x01813030 as=3 seq=0 device=Line-in conn=Jack
 ctype=1/8 loc=Rear color=Blue misc=0
 dev.hdaa.4.nid30_original: 0x40f001f0 as=15 seq=0 device=Other conn=None
 ctype=Unknown loc=0x00 color=Unknown misc=1
 dev.hdaa.4.nid31_original: 0x9217011f as=1 seq=15 device=Speaker conn=Fixed
 ctype=Analog loc=0x12 color=Unknown misc=1
 dev.hdaa.4.nid32_original: 0x40f001f0 as=15 seq=0 device=Other conn=None
 ctype=Unknown loc=0x00 color=Unknown misc=1
 dev.hdaa.4.nid33_original: 0x40f001f0 as=15 seq=0 device=Other conn=None
 ctype=Unknown loc=0x00 color=Unknown misc=1
 dev.hdaa.4.nid38_original: 0x40f001ff as=15 seq=15 device=Other conn=None
 ctype=Unknown loc=0x00 color=Unknown misc=1


 If I am looking at this right I believe I need to set nid25 to as=1 which
 matches the nid31 Speaker and probably also set seq=15. However, this
 doesn't seem to be working. Am I overlooking something obvious?


 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



-- 
Demelier David
___
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: stupid portmaster question

2013-03-25 Thread David Demelier
Just use -x switch

portmaster -ad -x libreoffice

2013/3/25 Aryeh Friedman aryeh.fried...@gmail.com:
 How do I tell portmaster -ad to ignore certain ports because they are
 broken such as editors/libreoffice is currently marked as (I am sure this
 will change soon)
 ___
 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



-- 
Demelier David
___
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 deinstall within /usr/ports/lang - need to recover default language installs

2013-03-19 Thread David Demelier
lang/ contains all languages and so on ruby, lua, python, perl.. Of course
you removed perl since you typed make deinstall in that parent port tree.

You can type make install in /usr/ports/lang/perl5.14 to install it again.
You don't need to reinstall FreeBSD, you're not on Windows here, you can
repair everything :)

Note: there is no perl installed by default, it's in the ports for few
years now.

Regards,



2013/3/19 Rob Navarro robnav...@gmail.com

 Hi Chaps,

 I typed make deinstall within the /usr/ports/lang directory of a
 FreeBSD 9.0 and mistakenly lost Perl, Python, Ruby and a whole host of
 default compiled languages.

 How can I get back to the default FreeBSD default installed language
 state (with Perl installed etc)?

 Crossing my fingers that I need not re-install the OS...

 Kind regards,

 Rob

 ___
 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




-- 
Demelier David
___
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: svn new pkg system

2013-03-14 Thread David Brodbeck
On Sat, Mar 9, 2013 at 3:57 PM, Giorgos Keramidas
keram...@ceid.upatras.grwrote:

 Having svn-X.0 in the source tree, imported at great expense of time and
 effort, will provide exactly _zero_ benefits if the underlying format of
 the repository changes (like subversion likes doing really often).


I agree with your other points, but I think it's worth noting that this
particular one isn't actually a concern when it comes to retrieving source
code.  The subversion *client* doesn't have to care about the server's
repository format.  All SVN 1.x clients work with all SVN 1.x servers; you
just may miss out on some advanced features or optimizations if there's a
mismatch, since it'll settle on the lowest common denominator.

The *working copy* format does change between client versions, but that's
easily resolved by checking out a fresh WC.
___
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


Disable liberation fonts

2013-03-13 Thread David Demelier
Hello,

I've installed editors/libreoffice, but that port requires liberation
fonts. I have nothing against that but when liberations font is
installed the fonts looks so ugly in firefox and sometime when I click
links, all the text in the page get bold for a second, it's just annoying.

I'm not used to fontconfig sadly, I just want to disable every
liberation fonts but not deinstall it (to use it if needed in libreoffice).

Regards,
David.
___
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: backups using rsync

2013-03-06 Thread David Brodbeck
On Mon, Mar 4, 2013 at 1:37 PM, CyberLeo Kitsana cyber...@cyberleo.netwrote:

 You can use dump(8) to dump a SU-journaled filesystem; you just cannot
 create a snapshot. This implies that dump(8) will be run against the
 live and possibly changing filesystem, which can lead to issues with the
 consistency of the contents of files thus dumped; but not necessarily
 with the consistency of the dump itself. Any tool that backs up a live
 filesystem, such as rsync or tar, will have these issues.


Note that this is mainly a problem for things like databases, where the
contents of multiple files, or different portions of the same file, have to
be in sync.  For example, take your typical MySQL database table.  You have
the actual data, in a .MYD file, and the indexes, in a .MYI file.  If your
rsync backup hits while a table is being updated, it might get the .MYD
file before an update, and the .MYI file after, leaving the table and index
inconsistent.  Or it might catch the .MYD file *partway* through an update,
giving a file that's internally inconsistent.  This is likely to give very
unexpected results if you load the backup back into the database.

Note that even if you take a filesystem snapshot, if you don't halt
database updates while you take it, you can still end up with inconsistent
files.  Snapshots are mostly useful for limiting the downtime in these
kinds of scenarios -- instead of taking the DB offline for the whole backup
window, you just down it long enough to take the snapshot.

In the absence of snapshots, the easiest way is to use whatever backup
tools the database offers to make sure a consistent copy exists to be
backed up.  For example, before you run the backup, run mysqlhotcopy or
mysqldump to write-lock the database, make consistent backup copies of all
the files, then unlock it.  That way, even if the backup of the active
database is inconsistent, the copies that were backed up along with it are
guaranteed to be consistent.

Anything database-like can have this problem; another common example is a
Subversion FSFS repository.  Backing it up without running svnadmin
hotcopy first is asking for corrupt commits when you do a restore.
___
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: rm -R

2013-03-02 Thread David Tilbrook
Wjy are we syill having this conversation?
The problem (and its solution) have been
raised for at least 39 years.

To specify a file, directory, device, whatever,
whose leaf name begins with a `-', name it using
a leading `./' as in:

  whatever ./-S

That will work for all programs, even those that
do not support -- to terminate flags.

Furthermore it will support glob patterns.

Now was that so difficult?

-- dt
___
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: Soekris or .. ?

2013-03-01 Thread David Demelier
2013/3/1 Arthur Chance free...@qeng-ho.org

 On 03/01/13 10:56, Frank Reppin wrote:

 On 01.03.13 11:49, Julien Cigar wrote:
 [...]

 I'm looking for a small Soekris-like (http://soekris.com/) box which
 support FreeBSD, any experience or brand to advise .. ?

 I once had FreeBSD (7-CURRENT days) running
 on ALIX boards [ https://shop.tronico.net/ ]
 for quite a while (mini server).
 No problems at all.


 I'll second that. I've had an Alix board running pfSense as my
 router/firewall for several years now with zero problems and any downtime
 was due to upgrading the system or power cuts.

 The manufacturer's web site is at http://www.pcengines.ch/alix.htm


I also have an alix at home running yet (Alix 2d2). It's a great one and I
made an uptime of 500 days with FreeBSD 8.1 the last year :-).

It does not consumes a lot of power ressources neither. However I advise
only network gateway / firewall / wifi access uses point because of the
small RAM available.

It works out of the box with FreeBSD, only ACPI need to be disabled (for a
date issue only).

Cheers,

-- 
Demelier David
___
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: Root on zfs (stable9) - how to make it bootable

2013-02-22 Thread David Demelier
There are a lot of example in gpart(8) man page. You should use it

I think you should do something like

gpart bootcode -b /boot/pmbr ada0
gpart bootcode -p /boot/gptzfsboot -i 1 ada0

(The second assume that you have a freebsd-boot as first index in ada0)

Cheers,



2013/2/22 uki uka...@gmail.com

 Hi,

 I want to install freebsd9 (stable) on zfs root, unfortunately my bios
 is unable to recognize GPT discs.
 I'm using MBR disc, with BSD slice (on mbr index 4) containing
 freebsd-zfs filesystem.

 I've no idea how to make it bootable, I've tried using:

   zpool export sys
   dd if=/boot/zfsboot of=/dev/ada0s4 count=1
   dd if=/boot/zfsboot of=/dev/ada0s4a skip=1 seek=1024
   zpool import sys


 When I select F4 (slice with zfs) whilst booting the computer just turns
 off.
 How do I make it boot? Do I need freebsd-boot slice?

 I have set bootfs property on pool, and added vfs.root.mountfrom to
 loader.conf.


 Cheers,
 Łukasz Gruner
 ___
 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




-- 
Demelier David
___
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: Root on zfs (stable9) - how to make it bootable

2013-02-22 Thread David Demelier
Sorry didn't read that you have a MBR slice instead of GPT

then you should take a look at that one
https://wiki.freebsd.org/RootOnZFS/ZFSBootPartition


2013/2/22 David Demelier demelier.da...@gmail.com

 There are a lot of example in gpart(8) man page. You should use it

 I think you should do something like

 gpart bootcode -b /boot/pmbr ada0
 gpart bootcode -p /boot/gptzfsboot -i 1 ada0

 (The second assume that you have a freebsd-boot as first index in ada0)

 Cheers,



 2013/2/22 uki uka...@gmail.com

 Hi,

 I want to install freebsd9 (stable) on zfs root, unfortunately my bios
 is unable to recognize GPT discs.
 I'm using MBR disc, with BSD slice (on mbr index 4) containing
 freebsd-zfs filesystem.

 I've no idea how to make it bootable, I've tried using:

   zpool export sys
   dd if=/boot/zfsboot of=/dev/ada0s4 count=1
   dd if=/boot/zfsboot of=/dev/ada0s4a skip=1 seek=1024
   zpool import sys


 When I select F4 (slice with zfs) whilst booting the computer just turns
 off.
 How do I make it boot? Do I need freebsd-boot slice?

 I have set bootfs property on pool, and added vfs.root.mountfrom to
 loader.conf.


 Cheers,
 Łukasz Gruner
 ___
 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




 --
 Demelier David




-- 
Demelier David
___
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: cdrecord: Please report.

2013-02-21 Thread David Demelier
2013/2/21 Shane Ambler free...@shaneware.biz

 On 21/02/2013 10:22, Ronald F. Guilmette wrote:

  Now that I've ``upgraded'' from 8.3-RELEASE to 9.1-RELEASE it appears
 that good old burncd no longer works, apparently because the CD/DVD
 drive is now exclusively handled as an ATAPICAM device.


 There are a few problem reports for cdrecord already - it sounds like
 the issue is from package installed versions of cdrtools, the solution
 seems to be compile from ports instead of installing from a pre-built
 package.

 I can say I have compiled from ports and don't have an issue burning
 dvd's - I have just upgraded to 9.1 from 9.0. I was going to say I have
 atapicam enabled but it appears that it isn't able to load on my system.
 Apparently ATA_CAM is a default part of 9.x and atapicam isn't needed,
 even though the module is still compiled.


I've never understood the difference between ATA_CAM and atapicam, what are
the difference between them?


  So, um, WTF?  To whom am supposed to report this failure?


 While you can email the port maintainer it is generally best to report
 through the freebsd website. Under support you can start with Bug
 reports to search if someone else has already reported it, then either
 Submit Followup (bottom of page) to an existing report with more
 information or Submit Bug-report if you need to create a new report.


-- 
Demelier David
___
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: nvidia bugs freebsd-gfx-b...@nvidia.com

2013-02-20 Thread David Demelier
No they also ignored me, my Xorg got stuck at 100% with an error like mi
overflowing or similar and they never answered me.



2013/2/20 paranormal paranor...@isgroup.com.ua

 Half a hear ago, I sent a bug report to freebsd-gfx-b...@nvidia.com
 (using
 x11/nvidia-driver/work/NVIDIA-FreeBSD-.../obj/nvidia-bug-report.sh), and
 had no answer nor bug fix.

 Now with 310.32 driver, I have new bug, and probably it would be a waste
 of time to communicate with nvidia.

 Does nvidia ignore only me?

 ___
 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




-- 
Demelier David
___
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: pkg_add problems after upgrading to 9.1-RELEASE and a fix

2013-02-20 Thread David Demelier
The problem is the November compromise, search for that in the mailing
list. There are still no packages available for 9.1-RELEASE.

Cheers


2013/2/15 Eduardo Morras emorr...@yahoo.es


 Hi all, yesterday i updated my server to 9.1-RELEASE from 8.3. After that,
 while recompiling the ports and packages i get a lot off errors trying to
 get 9.1-RELESASE packages and all recompiled from ports.

 The problem is that there's no 9.1-RELEASE directory in 
 ftp.freebsd.orgserver. I solved it after changing the path to fetch from 
 9-STABLE instead.
 A better fix i think it's to add that directory or make a ln to stable.

 The url where add the fault directory is:

 ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/

 the fault directoy is :

 ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-9.1-release/

 An example of the error is:

 root@camibar:/usr/ports/www # pkg_add -r zen-cart
 Error: Unable to get
 ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-9.1-release/Latest/zen-cart.tbz:
 File unavailable (e.g., file not found, no access)
 pkg_add: unable to fetch '
 ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-9.1-release/Latest/zen-cart.tbz'
 by URL

 I made the recompilation of ports with portmaster as noted in 'man
 portmaster' with this options (from memory, it's not a cp)

 #portmaster -P -R -D `cat /root/installed_ports_list`

 Thanks In Advance

 ---   ---
 Eduardo Morras emorr...@yahoo.es
 ___
 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




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


building libtorrent error: 'u_int16_t' does not name a type

2013-02-19 Thread David Collins
Hi,

I'm trying to build libtorrent/rtorrent using gcc 4.8. The reason I'm
using gcc 4.8 rather than the version in base is because there is
apparently a bug in gcc 4.2 - http://libtorrent.rakshasa.no/ticket/926 

I installed gcc 4.8 based on these instructions
http://www.freebsd.org/doc/en/articles/custom-gcc/article.html,
replacing 44 for 48 where neccessary. While building I get the
errors below.

Have I missed something while installing gcc 4.8? Or does anyone have an ideas
about how to fix this?

Thanks
David


build.jail:/usr/ports/net-p2p/libtorrent make build
===  Building for libtorrent-0.13.2_1
make  all-recursive
Making all in src
Making all in torrent
Making all in data
Making all in download
Making all in peer
Making all in utils
/bin/sh /usr/local/bin/libtool --tag=CXX--mode=compile g++48 
-DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -O2 -pipe 
-fno-strict-aliasing -DNDEBUG -fvisibility=hidden -D_THREAD_SAFE -pthread 
-I/usr/include -I/usr/local/include/sigc++-2.0 
-I/usr/local/lib/sigc++-2.0/include -MT option_strings.lo -MD -MP -MF 
.deps/option_strings.Tpo -c -o option_strings.lo option_strings.cc
libtool: compile:  g++48 -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. 
-I../../.. -O2 -pipe -fno-strict-aliasing -DNDEBUG -fvisibility=hidden 
-D_THREAD_SAFE -pthread -I/usr/include -I/usr/local/include/sigc++-2.0 
-I/usr/local/lib/sigc++-2.0/include -MT option_strings.lo -MD -MP -MF 
.deps/option_strings.Tpo -c option_strings.cc  -fPIC -DPIC -o 
.libs/option_strings.o
In file included from ./../../torrent/connection_manager.h:45:0,
 from option_strings.cc:43:
/usr/include/netinet/in_systm.h:49:9: error: 'u_int16_t' does not name a type
 typedef u_int16_t n_short;  /* short as received from the net */
 ^
/usr/include/netinet/in_systm.h:50:9: error: 'u_int32_t' does not name a type
 typedef u_int32_t n_long;  /* long as received from the net */
 ^
/usr/include/netinet/in_systm.h:52:9: error: 'u_int32_t' does not name a type
 typedef u_int32_t n_time;  /* ms since 00:00 GMT, byte rev */
 ^
In file included from ./../../torrent/connection_manager.h:46:0,
 from option_strings.cc:43:
/usr/include/netinet/ip.h:51:2: error: 'u_int' does not name a type
  u_int ip_hl:4,  /* header length */
  ^
/usr/include/netinet/ip.h:58:2: error: 'u_char' does not name a type
  u_char ip_tos;   /* type of service */
  ^
/usr/include/netinet/ip.h:59:2: error: 'u_short' does not name a type
  u_short ip_len;   /* total length */
  ^
/usr/include/netinet/ip.h:60:2: error: 'u_short' does not name a type
  u_short ip_id;   /* identification */
  ^
/usr/include/netinet/ip.h:61:2: error: 'u_short' does not name a type
  u_short ip_off;   /* fragment offset field */
  ^
/usr/include/netinet/ip.h:66:2: error: 'u_char' does not name a type
  u_char ip_ttl;   /* time to live */
  ^
/usr/include/netinet/ip.h:67:2: error: 'u_char' does not name a type
  u_char ip_p;   /* protocol */
  ^
/usr/include/netinet/ip.h:68:2: error: 'u_short' does not name a type
  u_short ip_sum;   /* checksum */
  ^
/usr/include/netinet/ip.h:166:2: error: 'u_char' does not name a type
  u_char ipt_code;  /* IPOPT_TS */
  ^
/usr/include/netinet/ip.h:167:2: error: 'u_char' does not name a type
  u_char ipt_len;  /* size of structure (variable) */
  ^
/usr/include/netinet/ip.h:168:2: error: 'u_char' does not name a type
  u_char ipt_ptr;  /* index of current entry */
  ^
/usr/include/netinet/ip.h:170:2: error: 'u_int' does not name a type
  u_int ipt_flg:4,  /* flags, see below */
  ^
/usr/include/netinet/ip.h:217:2: error: 'u_char' does not name a type
  u_char  ippseudo_pad; /* pad, must be zero */
  ^
/usr/include/netinet/ip.h:218:2: error: 'u_char' does not name a type
  u_char  ippseudo_p; /* protocol */
  ^
/usr/include/netinet/ip.h:219:2: error: 'u_short' does not name a type
  u_short  ippseudo_len; /* protocol length */
  ^
*** Error code 1

Stop in 
/.write/usr-local/build/usr/ports/net-p2p/libtorrent/work/libtorrent-0.13.2/src/torrent/utils.
*** Error code 1

Stop in 
/.write/usr-local/build/usr/ports/net-p2p/libtorrent/work/libtorrent-0.13.2/src/torrent.
*** Error code 1

Stop in 
/.write/usr-local/build/usr/ports/net-p2p/libtorrent/work/libtorrent-0.13.2/src.
*** Error code 1

Stop in 
/.write/usr-local/build/usr/ports/net-p2p/libtorrent/work/libtorrent-0.13.2.
*** Error code 1

Stop in 
/.write/usr-local/build/usr/ports/net-p2p/libtorrent/work/libtorrent-0.13.2.
*** Error code 1

Stop in /usr/ports/net-p2p/libtorrent.
*** Error code 1

Stop in /usr/ports/net-p2p/libtorrent.


build.jail:/usr/ports/net-p2p/libtorrent gcc -v
Using built-in specs.
Target: i386-undermydesk-freebsd
Configured with: FreeBSD/i386 system compiler
Thread model: posix
gcc version 4.2.1 20070831 patched [FreeBSD]

build.jail:/usr/ports/net-p2p/libtorrent g++ -v
Using built-in specs.
Target: i386-undermydesk-freebsd
Configured with: FreeBSD/i386 system compiler
Thread model: posix

  1   2   3   4   5   6   7   8   9   10   >