Re: ZFS MFC heads up

2009-05-26 Thread Dmitry Morozovsky
Kip,

On Thu, 21 May 2009, Kip Macy wrote:

KM> Looks like a (corrupted) space management bug. I'll take a closer look
KM> this weekend to see if it can be recovered from.

Any news on our subject?  I would be happy to provide additional info/resources 
to pinpoint and fix the problem.

Thank you!


-- 
Sincerely,
D.Marck [DM5020, MCK-RIPE, DM3-RIPN]
[ FreeBSD committer: ma...@freebsd.org ]

*** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- ma...@rinet.ru ***

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


Re: gjournal locks up

2009-05-26 Thread David N
Haven't been able to make it lock up today.

I'll recompile the kernel on both machines with
options KDB
options DDB

and let it run with the workload and see if it locks up again.

I'm sorry about the noise.

Regards
David N
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


error building zfsboot

2009-05-26 Thread Goran Lowkrantz
On a system cvsuped Tue May 26 08:30 CEST 2009 and only 
LOADER_ZFS_SUPPORT=yes in the make.conf, I get the following error:


===> sys/boot/i386/zfsboot (all)
objcopy -S -O binary zfsldr.out zfsboot1
cp /dev/null zfsboot.ldr
cc -Os -g  -fno-guess-branch-probability  -fomit-frame-pointer 
-fno-unit-at-a-time  -mno-align-long-strings  -mrtd  -mno-mmx -mno-3dnow 
-mno-sse -mno-sse2 -mno-sse3  -DB
OOT2  -DFLAGS=0x80  -DSIOPRT=0x3f8  -DSIOFMT=0x3  -DSIOSPD=9600 
-I/usr/src/sys/boot/i386/zfsboot/../../zfs 
-I/usr/src/sys/boot/i386/zfsboot/../../../cddl/boot/zfs  -I/u
sr/src/sys/boot/i386/zfsboot/../btx/lib -I. 
-I/usr/src/sys/boot/i386/zfsboot/../boot2  -Wall -Waggregate-return 
-Wbad-function-cast -Wcast-align  -Wmissing-declarations
-Wmissing-prototypes -Wnested-externs  -Wpointer-arith -Wshadow 
-Wstrict-prototypes -Wwrite-strings  -Winline --param 
max-inline-insns-single=100 -ffreestanding -mpreferr
ed-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -m32 
-march=i386  -S -o zfsboot.s.tmp /usr/src/sys/boot/i386/zfsboot/zfsboot.c

In file included from /usr/src/sys/boot/i386/zfsboot/zfsboot.c:276:
/usr/src/sys/boot/i386/zfsboot/../../zfs/zfsimpl.c: In function 
'vdev_init_from_nvlist':
/usr/src/sys/boot/i386/zfsboot/../../zfs/zfsimpl.c:474: warning: assignment 
discards qualifiers from pointer target type
/usr/src/sys/boot/i386/zfsboot/../../zfs/zfsimpl.c:476: warning: assignment 
discards qualifiers from pointer target type

sed -e '/align/d' -e '/nop/d' < zfsboot.s.tmp > zfsboot.s
rm -f zfsboot.s.tmp
as  --32 -o zfsboot.o zfsboot.s
cc -Os -g  -fno-guess-branch-probability  -fomit-frame-pointer 
-fno-unit-at-a-time  -mno-align-long-strings  -mrtd  -mno-mmx -mno-3dnow 
-mno-sse -mno-sse2 -mno-sse3  -DB
OOT2  -DFLAGS=0x80  -DSIOPRT=0x3f8  -DSIOFMT=0x3  -DSIOSPD=9600 
-I/usr/src/sys/boot/i386/zfsboot/../../zfs 
-I/usr/src/sys/boot/i386/zfsboot/../../../cddl/boot/zfs  -I/u
sr/src/sys/boot/i386/zfsboot/../btx/lib -I. 
-I/usr/src/sys/boot/i386/zfsboot/../boot2  -Wall -Waggregate-return 
-Wbad-function-cast -Wcast-align  -Wmissing-declarations
-Wmissing-prototypes -Wnested-externs  -Wpointer-arith -Wshadow 
-Wstrict-prototypes -Wwrite-strings  -Winline --param 
max-inline-insns-single=100 -ffreestanding -mpreferr
ed-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -m32 
-march=i386  -c /usr/src/sys/boot/i386/zfsboot/../boot2/sio.S
ld -static -N --gc-sections -nostdlib -m elf_i386_fbsd -Ttext 0x2000 -o 
zfsboot.out /usr/obj/usr/src/sys/boot/i386/zfsboot/../btx/lib/crt0.o 
zfsboot.o sio.o /usr/obj/usr/

src/tmp/usr/lib/libstand.a
objcopy -S -O binary zfsboot.out zfsboot.bin
btxld -v -E 0x2000 -f bin -b 
/usr/obj/usr/src/sys/boot/i386/zfsboot/../btx/btx/btx -l zfsboot.ldr  -o 
zfsboot.ld -P 1 zfsboot.bin

btxld: zfsboot.ldr: Invalid argument
*** Error code 2

Stop in /usr/src/sys/boot/i386/zfsboot.
*** Error code 1

Looking in the directory, zfsboot.ldr is empty:

# cd /usr/obj/usr/src/sys/boot/i386/zfsboot/
# ls
.depend sio.o   zfsboot.h   zfsboot.o   zfsboot.s   
zfsldr.o
machine zfsboot.bin zfsboot.ldr zfsboot.out zfsboot1
zfsldr.out
# btxld -v -E 0x2000 -f bin -b 
/usr/obj/usr/src/sys/boot/i386/zfsboot/../btx/btx/btx -l zfsboot.ldr -o 
zfsboot.ld -P 1 zfsboot.bin

btxld: zfsboot.ldr: Invalid argument
# file zfsboot.ldr
zfsboot.ldr: empty

Any pointers?

Cheers, Göran

... the future isMobile

 Goran Lowkrantz 
 System Architect, isMobile AB
 Sandviksgatan 81, PO Box 58, S-971 03 Luleå, Sweden
 Mobile: +46(0)70-587 87 82
http://www.ismobile.com ...
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: error building zfsboot

2009-05-26 Thread Dimitry Andric
On 2009-05-26 10:20, Goran Lowkrantz wrote:
> On a system cvsuped Tue May 26 08:30 CEST 2009 and only 
> LOADER_ZFS_SUPPORT=yes in the make.conf, I get the following error:
...
> btxld: zfsboot.ldr: Invalid argument
...
> Looking in the directory, zfsboot.ldr is empty:

Your CVSup mirror may be out of date, this was fixed as of r192697.

Since you are using CVS and not Subversion, make sure you have
usr.sbin/btxld/btxld.c revision 1.10.2.1.
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: ZFS boot on zfs mirror

2009-05-26 Thread Mickael MAILLOT
Hi,

i prefere use zfsboot boot sector, an example is better than a long talk:

$ zpool create tank mirror ad4 ad6
$ zpool export tank
$ dd if=/boot/zfsboot of=/dev/ad4 bs=512 count=1
$ dd if=/boot/zfsboot of=/dev/ad6 bs=512 count=1
$ dd if=/boot/zfsboot of=/dev/ad4 bs=512 skeep=1  seek=1024
$ dd if=/boot/zfsboot of=/dev/ad6 bs=512 skeep=1  seek=1024
$ zpool import tank
$ zpool set bootfs=tank tank
$ zfs set mountpoint=legacy tank

add vfs.root.mountfrom="zfs:tank" to your loader.conf
now you can boot on ad4 or ad6

Source:
http://www.waishi.jp/~yosimoto/diary/?date=20080909

2009/5/25 Philipp Wuensche :
> Lorenzo Perone wrote:
>>
>> Hello to all,
>>
>> Having licked blood now, and read the news from Kip Macy about
>>
>>> -  zfs boot for all types now works
>>
>>
>> I was wondering if anyone has some updated tutorial on how to achieve a
>> zfs-only bootable FreeBSD with a mirrored zpool.
>
> My own howto and script to do the stuff automated:
> http://outpost.h3q.com/patches/manageBE/create-FreeBSD-ZFS-bootfs.txt
>
> But beware, it is meant to use with
> http://anonsvn.h3q.com/projects/freebsd-patches/wiki/manageBE
> afterwards. But the steps are the same.
>
>> Searching around I found this tutorial on how to set up a ZFS bootable
>> system, which is mostly straightforward:
>>
>> http://blogs.freebsdish.org/lulf/2008/12/16/setting-up-a-zfs-only-system/
>>
>> However it leaves a few questions open... How am I supposed to make a
>> zfs mirror out of it? Suppose I have ad4 and ad6, should I repeat the
>> exact same gpart-steps for both ad4 and ad6, and then make a zpool
>> create data mirror ad4p3 ad6p3?
>
> Exactly.
>
>> How about swap? I suppose it will be on
>> one of the disks?
>
> I keep swap in a seperate partition. You could either use two swap
> partition, each on one disk or use gmirror to mirror a single swap
> partition to be safe from disk crash.
>
>> And what if I start with one disk and add the second
>> one later with zpool attach?
>
> This will work. Just do the same gpart commands on the second disk and
> use zpool attach.
>
> greetings,
> philipp
>
> ___
> freebsd-stable@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-stable
> To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"
>
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: ZFS boot on zfs mirror

2009-05-26 Thread Dmitry Morozovsky
On Tue, 26 May 2009, Mickael MAILLOT wrote:

MM> Hi,
MM> 
MM> i prefere use zfsboot boot sector, an example is better than a long talk:
MM> 
MM> $ zpool create tank mirror ad4 ad6
MM> $ zpool export tank
MM> $ dd if=/boot/zfsboot of=/dev/ad4 bs=512 count=1
MM> $ dd if=/boot/zfsboot of=/dev/ad6 bs=512 count=1
MM> $ dd if=/boot/zfsboot of=/dev/ad4 bs=512 skeep=1  seek=1024
MM> $ dd if=/boot/zfsboot of=/dev/ad6 bs=512 skeep=1  seek=1024

s/skeep/skip/ ? ;-)

MM> $ zpool import tank
MM> $ zpool set bootfs=tank tank
MM> $ zfs set mountpoint=legacy tank
MM> 
MM> add vfs.root.mountfrom="zfs:tank" to your loader.conf
MM> now you can boot on ad4 or ad6
MM> 
MM> Source:
MM> http://www.waishi.jp/~yosimoto/diary/?date=20080909

[snip]

-- 
Sincerely,
D.Marck [DM5020, MCK-RIPE, DM3-RIPN]
[ FreeBSD committer: ma...@freebsd.org ]

*** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- ma...@rinet.ru ***

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


Re: error building zfsboot

2009-05-26 Thread Mickael MAILLOT
hi,

Simply update btxld first:
cd /usr/src/usr.sbin/btxld && make install clean
then you can buildworld

2009/5/26 Dimitry Andric :
> On 2009-05-26 10:20, Goran Lowkrantz wrote:
>> On a system cvsuped Tue May 26 08:30 CEST 2009 and only
>> LOADER_ZFS_SUPPORT=yes in the make.conf, I get the following error:
> ...
>> btxld: zfsboot.ldr: Invalid argument
> ...
>> Looking in the directory, zfsboot.ldr is empty:
>
> Your CVSup mirror may be out of date, this was fixed as of r192697.
>
> Since you are using CVS and not Subversion, make sure you have
> usr.sbin/btxld/btxld.c revision 1.10.2.1.
> ___
> freebsd-stable@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-stable
> To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"
>
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


NFS on ZFS

2009-05-26 Thread Takahashi Yoshihiro
Today's stable has a problem creating a new file via NFS on ZFS.

On the NFS server, there is no problem.

% cd /ZFS
% mktemp hoge
hoge
% ls -l hoge
-rw---  1 nyan  nyan  0  5 26 19:09 hoge


But it's a problem on the NFS client.

# mount server:/ZFS /ZFS
% cd /ZFS
% mktemp hoge
mktemp: mkstemp failed on hoge: Input/output error
% ls -l hoge
--  1 nyan  wheel  0  5 26 19:09 hoge

The file has a wrong permission.

This problem is only on stable, current has no problem.

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


Re: error building zfsboot

2009-05-26 Thread Goran Lowkrantz
--On May 26, 2009 11:28:17 +0200 Mickael MAILLOT 
 wrote:



hi,

Simply update btxld first:
cd /usr/src/usr.sbin/btxld && make install clean
then you can buildworld



Thanks, that worked.


2009/5/26 Dimitry Andric :

On 2009-05-26 10:20, Goran Lowkrantz wrote:

On a system cvsuped Tue May 26 08:30 CEST 2009 and only
LOADER_ZFS_SUPPORT=yes in the make.conf, I get the following error:

...

btxld: zfsboot.ldr: Invalid argument

...

Looking in the directory, zfsboot.ldr is empty:


Your CVSup mirror may be out of date, this was fixed as of r192697.

Since you are using CVS and not Subversion, make sure you have
usr.sbin/btxld/btxld.c revision 1.10.2.1.
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"





... the future isMobile

 Goran Lowkrantz 
 System Architect, isMobile AB
 Sandviksgatan 81, PO Box 58, S-971 03 Luleå, Sweden
 Mobile: +46(0)70-587 87 82
http://www.ismobile.com ...
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: ZFS boot on zfs mirror

2009-05-26 Thread Lorenzo Perone

Hi All,

Thanx for all the feedback!

Philipp: Your idea is really fine, with manageBE :)
Would surely be nice for a test/development machine,
I'll think about using it... (sounds a bit like
FreeBSD goin' the Nexenta way...)

Mickael: Your example looks much more like what I was
looking  for (and thank god UNIX still is mostly
ASCII so I can follow the link You posted).

But, just as a side question: how much of a risk of
creating an [ugly] race condition is it actually,
to use swap on a zvol?

Yet another question would be, how much is performance
impacted by the zfs overhead (ok, leaving aside that
a swapping system needs ram - wherever the swap is located...)?
But hey, snapshotting swap - isn't THAT funky? ;)

Thanx to all for the feedback, it's great to
be a FreeBSD user all the time!

I'll be trying to set this up ASAP.

Regards,

Lorenzo

On 26.05.2009, at 11:26, Mickael MAILLOT wrote:


Hi,

i prefere use zfsboot boot sector, an example is better than a long  
talk:


$ zpool create tank mirror ad4 ad6
$ zpool export tank
$ dd if=/boot/zfsboot of=/dev/ad4 bs=512 count=1
$ dd if=/boot/zfsboot of=/dev/ad6 bs=512 count=1
$ dd if=/boot/zfsboot of=/dev/ad4 bs=512 skeep=1  seek=1024
$ dd if=/boot/zfsboot of=/dev/ad6 bs=512 skeep=1  seek=1024
$ zpool import tank
$ zpool set bootfs=tank tank
$ zfs set mountpoint=legacy tank

add vfs.root.mountfrom="zfs:tank" to your loader.conf
now you can boot on ad4 or ad6

Source:
http://www.waishi.jp/~yosimoto/diary/?date=20080909

2009/5/25 Philipp Wuensche :

Lorenzo Perone wrote:


Hello to all,

Having licked blood now, and read the news from Kip Macy about


-  zfs boot for all types now works



I was wondering if anyone has some updated tutorial on how to  
achieve a

zfs-only bootable FreeBSD with a mirrored zpool.


My own howto and script to do the stuff automated:
http://outpost.h3q.com/patches/manageBE/create-FreeBSD-ZFS-bootfs.txt

But beware, it is meant to use with
http://anonsvn.h3q.com/projects/freebsd-patches/wiki/manageBE
afterwards. But the steps are the same.

Searching around I found this tutorial on how to set up a ZFS  
bootable

system, which is mostly straightforward:

http://blogs.freebsdish.org/lulf/2008/12/16/setting-up-a-zfs-only-system/

However it leaves a few questions open... How am I supposed to  
make a
zfs mirror out of it? Suppose I have ad4 and ad6, should I repeat  
the

exact same gpart-steps for both ad4 and ad6, and then make a zpool
create data mirror ad4p3 ad6p3?


Exactly.


How about swap? I suppose it will be on
one of the disks?


I keep swap in a seperate partition. You could either use two swap
partition, each on one disk or use gmirror to mirror a single swap
partition to be safe from disk crash.


And what if I start with one disk and add the second
one later with zpool attach?


This will work. Just do the same gpart commands on the second disk  
and

use zpool attach.

greetings,
philipp

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



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


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


WITHOUT_ZFS makes build world and kernel error

2009-05-26 Thread Wu, Yue
Hi, list,

I have a FreeBSD 7-stable box, which has been cvsed up yesterday, even with my
src.conf which has the line of WITHOUT_ZFS=yes, FreeBSD always wants to
install libzfs relative stuffs when installing kernel and world, so error
comes, I have to comment out this line to make the installing stage goes
correctly. Is it a bug?

-- 
Hi,
Wu, Yue
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


loader not working with GPT and LOADER_ZFS_SUPPORT

2009-05-26 Thread Philipp Wuensche
Hi,

I tried booting from a disk with GPT scheme, with a /boot/loader build
with LOADER_ZFS_SUPPORT="yes" in make.conf. I get the following error:

panic: free: guard1 fail @ 0x2fd4a6ac from
/usr/src/sys/boot/i386/libi386/biosdisk.c:1053

Its a FreeBSD 7-STABLE after the ZFS import.

Booting with /boot/loader copied from a 8-CURRENT system works.

greetings,
Philipp

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


Re: loader not working with GPT and LOADER_ZFS_SUPPORT

2009-05-26 Thread Artis Caune
2009/5/26 Philipp Wuensche :
> Hi,
>
> I tried booting from a disk with GPT scheme, with a /boot/loader build
> with LOADER_ZFS_SUPPORT="yes" in make.conf. I get the following error:
>
> panic: free: guard1 fail @ 0x2fd4a6ac from
> /usr/src/sys/boot/i386/libi386/biosdisk.c:1053

Same problem for me. I also tried with MBR scheme, same problem.




-- 
Artis Caune

Everything should be made as simple as possible, but not simpler.
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: make buildkernel KERNCONF=GENERIC fails

2009-05-26 Thread Glen Barber
Hi, Christian

On Tue, May 26, 2009 at 10:35 AM, Christian Walther  wrote:
> 2009/5/26 Christian Walther :
>> Hi,
>>
>> I wanted to update my system to FreeBSD 7.2, so after updating my
>> sources I started a make buildkernel. After a while, it fails with the
>> following message:
>>
>> /usr/src/sys/i386/i386/intr_machdep.c: In function 'intr_register_source':
>> /usr/src/sys/i386/i386/intr_machdep.c:136: warning: passing argument 4
>> of 'intr_event_create' makes pointer from integer without a cast
>> /usr/src/sys/i386/i386/intr_machdep.c:136: warning: passing argument 7
>> of 'intr_event_create' from incompatible pointer type
>> /usr/src/sys/i386/i386/intr_machdep.c:136: warning: passing argument 8
>> of 'intr_event_create' from incompatible pointer type
>> /usr/src/sys/i386/i386/intr_machdep.c: In function 'intr_execute_handlers':
>> /usr/src/sys/i386/i386/intr_machdep.c:261: warning: implicit
>> declaration of function 'intr_event_handle'
>> /usr/src/sys/i386/i386/intr_machdep.c:261: warning: nested extern
>> declaration of 'intr_event_handle'
>> *** Error code 1
>>
>> Stop in /usr/obj/usr/src/sys/GENERIC.
>> *** Error code 1
>>
>> Stop in /usr/src.
>> *** Error code 1
>>
>> Stop in /usr/src.
>>
>
> Oh yes, but I shouldn't hit the send button before finishing the mail. ;-)
> Anyway there isn't much information left to share, I found nothing in
> UPDATING. Trying to build with a clean source tree instead.
>
> Has anybody an idea of what's happening here?
>

Out of curiosity, how long ago did you update your sources?

Also, did you change the GENERIC kernel config? (If so, please include
that.)  I haven't seen a tinderbox email about -STABLE failing since
the 24th, which was a different problem than what you are seeing,
anyway.

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


Re: make buildkernel KERNCONF=GENERIC fails

2009-05-26 Thread Christian Walther
2009/5/26 Christian Walther :
> Hi,
>
> I wanted to update my system to FreeBSD 7.2, so after updating my
> sources I started a make buildkernel. After a while, it fails with the
> following message:
>
> /usr/src/sys/i386/i386/intr_machdep.c: In function 'intr_register_source':
> /usr/src/sys/i386/i386/intr_machdep.c:136: warning: passing argument 4
> of 'intr_event_create' makes pointer from integer without a cast
> /usr/src/sys/i386/i386/intr_machdep.c:136: warning: passing argument 7
> of 'intr_event_create' from incompatible pointer type
> /usr/src/sys/i386/i386/intr_machdep.c:136: warning: passing argument 8
> of 'intr_event_create' from incompatible pointer type
> /usr/src/sys/i386/i386/intr_machdep.c: In function 'intr_execute_handlers':
> /usr/src/sys/i386/i386/intr_machdep.c:261: warning: implicit
> declaration of function 'intr_event_handle'
> /usr/src/sys/i386/i386/intr_machdep.c:261: warning: nested extern
> declaration of 'intr_event_handle'
> *** Error code 1
>
> Stop in /usr/obj/usr/src/sys/GENERIC.
> *** Error code 1
>
> Stop in /usr/src.
> *** Error code 1
>
> Stop in /usr/src.
>

Oh yes, but I shouldn't hit the send button before finishing the mail. ;-)
Anyway there isn't much information left to share, I found nothing in
UPDATING. Trying to build with a clean source tree instead.

Has anybody an idea of what's happening here?

Sorry for the noise
Christian Walther
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: ZFS boot on zfs mirror

2009-05-26 Thread George Hartzell
Dmitry Morozovsky writes:
 > On Tue, 26 May 2009, Mickael MAILLOT wrote:
 > 
 > MM> Hi,
 > MM> 
 > MM> i prefere use zfsboot boot sector, an example is better than a long talk:
 > MM> 
 > MM> $ zpool create tank mirror ad4 ad6
 > MM> $ zpool export tank
 > MM> $ dd if=/boot/zfsboot of=/dev/ad4 bs=512 count=1
 > MM> $ dd if=/boot/zfsboot of=/dev/ad6 bs=512 count=1
 > MM> $ dd if=/boot/zfsboot of=/dev/ad4 bs=512 skeep=1  seek=1024
 > MM> $ dd if=/boot/zfsboot of=/dev/ad6 bs=512 skeep=1  seek=1024
 > 
 > s/skeep/skip/ ? ;-)

What is the reason for copying zfsboot one bit at a time, as opposed
to 

  dd if=/boot/zfsboot of=/dev/ad4 bs=512 count=2

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


Re: ZFS boot on zfs mirror

2009-05-26 Thread Andriy Gapon
on 26/05/2009 19:21 George Hartzell said the following:
> Dmitry Morozovsky writes:
>  > On Tue, 26 May 2009, Mickael MAILLOT wrote:
>  > 
>  > MM> Hi,
>  > MM> 
>  > MM> i prefere use zfsboot boot sector, an example is better than a long 
> talk:
>  > MM> 
>  > MM> $ zpool create tank mirror ad4 ad6
>  > MM> $ zpool export tank
>  > MM> $ dd if=/boot/zfsboot of=/dev/ad4 bs=512 count=1
>  > MM> $ dd if=/boot/zfsboot of=/dev/ad6 bs=512 count=1
>  > MM> $ dd if=/boot/zfsboot of=/dev/ad4 bs=512 skeep=1  seek=1024
>  > MM> $ dd if=/boot/zfsboot of=/dev/ad6 bs=512 skeep=1  seek=1024
>  > 
>  > s/skeep/skip/ ? ;-)
> 
> What is the reason for copying zfsboot one bit at a time, as opposed
> to 
> 
>   dd if=/boot/zfsboot of=/dev/ad4 bs=512 count=2

seek=1024 for the second part? and no 'count=1' for it? :-)

[Just guessing] Apparently the first block of zfsboot is some form of MBR and 
the
rest is zfs-specific code that goes to magical sector 1024.

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


make buildkernel KERNCONF=GENERIC fails

2009-05-26 Thread Christian Walther
Hi,

I wanted to update my system to FreeBSD 7.2, so after updating my
sources I started a make buildkernel. After a while, it fails with the
following message:

/usr/src/sys/i386/i386/intr_machdep.c: In function 'intr_register_source':
/usr/src/sys/i386/i386/intr_machdep.c:136: warning: passing argument 4
of 'intr_event_create' makes pointer from integer without a cast
/usr/src/sys/i386/i386/intr_machdep.c:136: warning: passing argument 7
of 'intr_event_create' from incompatible pointer type
/usr/src/sys/i386/i386/intr_machdep.c:136: warning: passing argument 8
of 'intr_event_create' from incompatible pointer type
/usr/src/sys/i386/i386/intr_machdep.c: In function 'intr_execute_handlers':
/usr/src/sys/i386/i386/intr_machdep.c:261: warning: implicit
declaration of function 'intr_event_handle'
/usr/src/sys/i386/i386/intr_machdep.c:261: warning: nested extern
declaration of 'intr_event_handle'
*** Error code 1

Stop in /usr/obj/usr/src/sys/GENERIC.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: loader not working with GPT and LOADER_ZFS_SUPPORT

2009-05-26 Thread George Hartzell
Artis Caune writes:
 > 2009/5/26 Philipp Wuensche :
 > > Hi,
 > >
 > > I tried booting from a disk with GPT scheme, with a /boot/loader build
 > > with LOADER_ZFS_SUPPORT="yes" in make.conf. I get the following error:
 > >
 > > panic: free: guard1 fail @ 0x2fd4a6ac from
 > > /usr/src/sys/boot/i386/libi386/biosdisk.c:1053
 > 
 > Same problem for me. I also tried with MBR scheme, same problem.

I had a similar problem (different @ 0x address) with -STABLE over
the weekend.  I just wanted to boot an old fashioned system, MBR and
no ZFS.  I ended up building a loader with

  LOADER_ZFS_SUPPORT="NO"
  LOADER_NO_GPT_SUPPORT="YES"

and it worked.

g.

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


Re: ZFS boot on zfs mirror

2009-05-26 Thread George Hartzell
Andriy Gapon writes:
 > on 26/05/2009 19:21 George Hartzell said the following:
 > > Dmitry Morozovsky writes:
 > >  > On Tue, 26 May 2009, Mickael MAILLOT wrote:
 > >  > 
 > >  > MM> Hi,
 > >  > MM> 
 > >  > MM> i prefere use zfsboot boot sector, an example is better than a long 
 > > talk:
 > >  > MM> 
 > >  > MM> $ zpool create tank mirror ad4 ad6
 > >  > MM> $ zpool export tank
 > >  > MM> $ dd if=/boot/zfsboot of=/dev/ad4 bs=512 count=1
 > >  > MM> $ dd if=/boot/zfsboot of=/dev/ad6 bs=512 count=1
 > >  > MM> $ dd if=/boot/zfsboot of=/dev/ad4 bs=512 skeep=1  seek=1024
 > >  > MM> $ dd if=/boot/zfsboot of=/dev/ad6 bs=512 skeep=1  seek=1024
 > >  > 
 > >  > s/skeep/skip/ ? ;-)
 > > 
 > > What is the reason for copying zfsboot one bit at a time, as opposed
 > > to 
 > > 
 > >   dd if=/boot/zfsboot of=/dev/ad4 bs=512 count=2
 > 
 > seek=1024 for the second part? and no 'count=1' for it? :-)
 > 
 > [Just guessing] Apparently the first block of zfsboot is some form of MBR 
 > and the
 > rest is zfs-specific code that goes to magical sector 1024.

Ok, I managed to read the argument to seek as "one block", apparently
my coffee hasn't hit yet.

I'm still confused about the two parts of zfsboot and what's magical
about seeking to 1024.

g.

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


Re: ZFS boot on zfs mirror

2009-05-26 Thread Andriy Gapon
on 26/05/2009 19:42 George Hartzell said the following:
> I'm still confused about the two parts of zfsboot and what's magical
> about seeking to 1024.

Can't help with answer to this, but cc-ing the one who can (I think).
I am interested too :-)

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


Re: ZFS MFC heads down

2009-05-26 Thread Henri Hennebert

Kip Macy wrote:

I haven't looked at the panic yet, but adding a USB quirk (no
SYNCHRONIZE_CACHE) would certainly reduce the noise in your logs.


Thanks for this hint.

I patch usbdevs and umass.c. No more noise but more interesting, now I
can complete install on my usb key without deadlock or crash.

Henri


-Kip

On Mon, May 25, 2009 at 4:16 AM, Henri Hennebert  wrote:

Kip Macy wrote:

On Wed, May 20, 2009 at 2:59 PM, Kip Macy  wrote:

I will be MFC'ing the newer ZFS support some time this afternoon. Both
world and kernel will need to be re-built. Existing pools will
continue to work without upgrade.


If you choose to upgrade a pool to take advantage of new features you
will no longer be able to use it with sources prior to today. 'zfs
send/recv' is not expected to inter-operate between different pool
versions.


The MFC went in r192498. Please let me know if you have any problems.


I get a panic:

panic: solaris assert: 0 == dmu_read(os, lr->lr_foid, off, dlen, buf), file:
/usr/src/sys/modules/zfs/../../cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c,
line: 991

during `make -s DESTDIR=/kingston installworld`

kingston is a pool on a USB stick with GPT partitions

more info at : http://verbier.restart.be/xfer/core.txt.60

Thanks for your work

Henri


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








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


Re: ZFS boot on zfs mirror

2009-05-26 Thread Doug Rabson

On Tue, 26 May 2009 19:57:03 +0300, Andriy Gapon  wrote:
> on 26/05/2009 19:42 George Hartzell said the following:
>> I'm still confused about the two parts of zfsboot and what's magical
>> about seeking to 1024.
> 
> Can't help with answer to this, but cc-ing the one who can (I think).
> I am interested too :-)

This is due to the primitive DOS boot sequence. Basically the BIOS loads
the first sector of the partition and executes it. For zfsboot, that is the
first 512 bytes of /boot/zfsboot. The next stage of the bootstrap is tucked
away in a convenient hole in the ZFS on-disk formwat which is located just
after the ZFS metadata - this is the seek=1024 part. The first 512 byte
part is a tiny assembler program that loads the rest into memory and
executes it. The second part is large enough and smart enough to understand
the ZFS filesystem format directly and it loads /boot/loader directly from
the filesystem and transfers control to that. The third stage
(/boot/loader) is what puts up the boot menu and loads the kernel etc.

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


jdk15/jdk16 build problems on amd64, 7.2-RELEASE

2009-05-26 Thread Todd Wasson
I've recently been unable to get jdk15 and jdk16 to build, with some  
very cryptic errors (if any, really) being reported.  I've pasted a  
build log for jdk16 here, since it's about 9100 lines long: http://paste2.org/p/224897


This seems to be the relevant portion:
cd bsd_amd64_compiler2/product && gmake -w
gmake[4]: Entering directory `/usr/ports/java/jdk16/work/control/build/ 
bsd-amd64/hotspot/outputdir/bsd_amd64_compiler2/product'

Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
gmake[4]: *** [../generated/MakeDeps.class] Killed: 9
gmake[4]: *** Deleting file `../generated/MakeDeps.class'
gmake[4]: Leaving directory `/usr/ports/java/jdk16/work/control/build/ 
bsd-amd64/hotspot/outputdir/bsd_amd64_compiler2/product'

gmake[3]: *** [product] Error 2
gmake[3]: Leaving directory `/usr/ports/java/jdk16/work/control/build/ 
bsd-amd64/hotspot/outputdir'

gmake[2]: *** [generic_build2] Error 2
gmake[2]: Leaving directory `/usr/ports/java/jdk16/work/hotspot/make'
gmake[1]: *** [product] Error 2
gmake[1]: Leaving directory `/usr/ports/java/jdk16/work/hotspot/make'
gmake: *** [hotspot-build] Error 2
*** Error code 2

Stop in /usr/ports/java/jdk16.
*** Error code 1

Stop in /usr/ports/java/jdk16.


I don't see anything about this in the PRs or google, so any help  
would be appreciated.  I'm not sure how to do the -Xlint thing it  
suggests, so I haven't tried that yet, but I can do so if someone  
tells me what I need to tweak to pull it off.


Thanks!


Todd


PS- I've written to ports-bugs about this as well, so please bear with  
me if this is the wrong forum; I just like my chances of getting a  
response here better.

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


Re: jdk15/jdk16 build problems on amd64, 7.2-RELEASE

2009-05-26 Thread Dan Nelson
In the last episode (May 26), Todd Wasson said:
> I've recently been unable to get jdk15 and jdk16 to build, with some  
> very cryptic errors (if any, really) being reported.  I've pasted a  
> build log for jdk16 here, since it's about 9100 lines long: 
> http://paste2.org/p/224897
> 
> This seems to be the relevant portion:
> cd bsd_amd64_compiler2/product && gmake -w
> gmake[4]: Entering directory `/usr/ports/java/jdk16/work/control/build/ 
> bsd-amd64/hotspot/outputdir/bsd_amd64_compiler2/product'
> Note: Some input files use unchecked or unsafe operations.
> Note: Recompile with -Xlint:unchecked for details.
> gmake[4]: *** [../generated/MakeDeps.class] Killed: 9

Something sent a KILL signal to your process.  Maybe you ran out of memory
and the kernel killed the largest process it saw?

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


Re: make buildkernel KERNCONF=GENERIC fails

2009-05-26 Thread Christian Walther
Hi Glen,
Hi List,

2009/5/26 Glen Barber :
> Hi, Christian
>
> On Tue, May 26, 2009 at 10:35 AM, Christian Walther  
> wrote:
>> 2009/5/26 Christian Walther :
>>> Hi,
>>>
>>> I wanted to update my system to FreeBSD 7.2, so after updating my
>>> sources I started a make buildkernel. After a while, it fails with the
>>> following message:
>>>
>>> /usr/src/sys/i386/i386/intr_machdep.c: In function 'intr_register_source':
>>> /usr/src/sys/i386/i386/intr_machdep.c:136: warning: passing argument 4
>>> of 'intr_event_create' makes pointer from integer without a cast
>>> /usr/src/sys/i386/i386/intr_machdep.c:136: warning: passing argument 7
>>> of 'intr_event_create' from incompatible pointer type
>>> /usr/src/sys/i386/i386/intr_machdep.c:136: warning: passing argument 8
>>> of 'intr_event_create' from incompatible pointer type
>>> /usr/src/sys/i386/i386/intr_machdep.c: In function 'intr_execute_handlers':
>>> /usr/src/sys/i386/i386/intr_machdep.c:261: warning: implicit
>>> declaration of function 'intr_event_handle'
>>> /usr/src/sys/i386/i386/intr_machdep.c:261: warning: nested extern
>>> declaration of 'intr_event_handle'
>>> *** Error code 1
>>>
>>> Stop in /usr/obj/usr/src/sys/GENERIC.
>>> *** Error code 1
>>>
>>> Stop in /usr/src.
>>> *** Error code 1
>>>
>>> Stop in /usr/src.
>>>
>>
>> Oh yes, but I shouldn't hit the send button before finishing the mail. ;-)
>> Anyway there isn't much information left to share, I found nothing in
>> UPDATING. Trying to build with a clean source tree instead.
>>
>> Has anybody an idea of what's happening here?
>>
> Out of curiosity, how long ago did you update your sources?
>
I updated sources right before I did the make buildkernel.

> Also, did you change the GENERIC kernel config? (If so, please include
> that.)  I haven't seen a tinderbox email about -STABLE failing since
> the 24th, which was a different problem than what you are seeing,
> anyway.

No, I create my own kernel configuration by copying GENERIC.

Well, for some strange reason the same happened again: I did

# mv /usr/src /usr/src.old
# csup /root/stable-supfile
# cd /usr/src
# make buildkernel KERNCONF=GENERIC

and it fails with exactly the same the error:

cc -c -O -pipe -march=pentium4m -std=c99 -g -Wall -Wredundant-decls
-Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes
-Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointer-sign
-fformat-extensions -nostdinc  -I. -I/usr/src/sys
-I/usr/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS
-include opt_global.h -fno-common -finline-limit=8000 --param
inline-unit-growth=100 --param large-function-growth=1000
-mno-align-long-strings -mpreferred-stack-boundary=2  -mno-mmx
-mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -Werror
/usr/src/sys/i386/i386/intr_machdep.c
cc1: warnings being treated as errors
/usr/src/sys/i386/i386/intr_machdep.c: In function 'intr_register_source':
/usr/src/sys/i386/i386/intr_machdep.c:136: warning: passing argument 4
of 'intr_event_create' makes pointer from integer without a cast
/usr/src/sys/i386/i386/intr_machdep.c:136: warning: passing argument 7
of 'intr_event_create' from incompatible pointer type
/usr/src/sys/i386/i386/intr_machdep.c:136: warning: passing argument 8
of 'intr_event_create' from incompatible pointer type
/usr/src/sys/i386/i386/intr_machdep.c: In function 'intr_execute_handlers':
/usr/src/sys/i386/i386/intr_machdep.c:261: warning: implicit
declaration of function 'intr_event_handle'
/usr/src/sys/i386/i386/intr_machdep.c:261: warning: nested extern
declaration of 'intr_event_handle'
*** Error code 1

Stop in /usr/obj/usr/src/sys/GENERIC.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.


Maybe it's a problem with *default host=cvsup.de.FreeBSD.org
I changed my stable-supfile to use cvsup.freebsd.org instead, and I'm
updating right now. Either there has just been an update commited, or
the servers aren't in sync, because I see many Edits, Checkouts and
even Deletions.

I keep you posted.

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


Re: jdk15/jdk16 build problems on amd64, 7.2-RELEASE

2009-05-26 Thread Todd Wasson
Hmm...  Well, this machine has 6GB of memory.  I just killed firefox and other 
processes requiring significant memory and tried again, watching top.  It didn't 
drop below 2GB inactive memory, and the 4GB of swap wasn't touched, so I kind of 
doubt that's the problem.  For kicks, I'll try rebooting the machine and 
building again, just in case something funny is going on.



Todd



Dan Nelson wrote:

In the last episode (May 26), Todd Wasson said:
I've recently been unable to get jdk15 and jdk16 to build, with some  
very cryptic errors (if any, really) being reported.  I've pasted a  
build log for jdk16 here, since it's about 9100 lines long: http://paste2.org/p/224897


This seems to be the relevant portion:
cd bsd_amd64_compiler2/product && gmake -w
gmake[4]: Entering directory `/usr/ports/java/jdk16/work/control/build/ 
bsd-amd64/hotspot/outputdir/bsd_amd64_compiler2/product'

Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
gmake[4]: *** [../generated/MakeDeps.class] Killed: 9


Something sent a KILL signal to your process.  Maybe you ran out of memory
and the kernel killed the largest process it saw?


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


Re: make buildkernel KERNCONF=GENERIC fails

2009-05-26 Thread Glen Barber
Christian,

On Tue, May 26, 2009 at 2:42 PM, Christian Walther  wrote:
>
> No, I create my own kernel configuration by copying GENERIC.
>
> Well, for some strange reason the same happened again: I did
>
> # mv /usr/src /usr/src.old
> # csup /root/stable-supfile
> # cd /usr/src
> # make buildkernel KERNCONF=GENERIC
>
> and it fails with exactly the same the error:
>

[snip]

>
> Maybe it's a problem with *default host=cvsup.de.FreeBSD.org
> I changed my stable-supfile to use cvsup.freebsd.org instead, and I'm
> updating right now. Either there has just been an update commited, or
> the servers aren't in sync, because I see many Edits, Checkouts and
> even Deletions.
>

I'm actually curious what happens with:

  'make buildworld'

without KERNCONF=GENERIC (which is implied anyway, if not stated explicitly).



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


Re: NFS on ZFS

2009-05-26 Thread Mike Andrews

Takahashi Yoshihiro wrote:

Today's stable has a problem creating a new file via NFS on ZFS.

On the NFS server, there is no problem.

% cd /ZFS
% mktemp hoge
hoge
% ls -l hoge
-rw---  1 nyan  nyan  0  5 26 19:09 hoge


But it's a problem on the NFS client.

# mount server:/ZFS /ZFS
% cd /ZFS
% mktemp hoge
mktemp: mkstemp failed on hoge: Input/output error
% ls -l hoge
--  1 nyan  wheel  0  5 26 19:09 hoge

The file has a wrong permission.

This problem is only on stable, current has no problem.


I'm seeing this too.  It seems so far to be limited to mkstemp() -- just 
copying files normally works.  For example /usr/bin/install -S fails, 
without -S works, if the target is an NFS+ZFS volume.



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


A very big Thank You for the inclusion of ZFS

2009-05-26 Thread Freddie Cash
I just wanted to send out a very big THANK YOU to all those who have
had a hand in bringing ZFS to FreeBSD.  You've done a wonderful job.

With the release of FreeBSD 7.2, things have improved to the point
where I can't crash our storage servers anymore (and I've tried all
the things that would crash 7.0 and 7.1).  Bravo!

What impressed me even more, though, was just how performant a
multiple raidz2 pool could be.  During a normal backup run (rsync of
105 servers each night), we graph sustained reads of 80 MBytes/sec and
writes of 50 MBytes/sec (via snmpd).  Nothing too spectacular, but
still quite nice.  Didn't realise just how much of a bottleneck the
remote network connections are, though.

Doing a local iozone benchmark, using a command-line someone posted
online as known to crash ZFS on FreeBSD 7.0, I was able to get just
under 350 MBytes/sec sustained write throughput (as shown by snmpd)
with over 15 MBytes/sec per drive (as shown by gstat).  Fiddling with
the iozone options, I was able to push that to over 400 MBytes/sec
sustained write with just shy of 20 MBytes/sec per drive.  And CPU
utilisation never went above 40% per core.  System never crashed,
hung, locked up, of even seemed slow while connected via SSH.

While those numbers may not seem all that high to some people, for us,
those are amazing!!  :)  (We've never used SCSI, or RAID0, or RAID10,
or FibreChannel, or any of the other fancy storage stuff that gives
uber-high stats.)  This gives us hope for just how many remote sites
we'll be able to backup to these storage servers (ie still lots of
headroom on the storage side, just need to boost the network side of
things).

For the curious, the hardware is:
  Tyan h2000M motherboard
  2x dual-core AMD Opteron 2220 CPUs at 2.8 GHz
  8 GB ECC DDR2-667 SDRAM
  3Ware 9650SE-12ML PCIe RAID controller
  3Ware 9550SXU-12ML PCI-X RAID controller (64-bit/133 MHz slot)
  24x 500 GB WD SATA2 harddrives (12 per controller, configured as
Single Drives)
  4-port Intel Pro/1000MT PCIe NIC

The software is:
  64-bit FreeBSD 7.2-RELEASE
  no kmem tuning
  ZFS ARC limited to 1 GB via /boot/loader.conf
  test filesystem has no compression and no atime set

Pool configuration:
  3 raidz2 vdevs of 8 drives each (1 vdev uses 4-drives from each RAID
controller, the other 2 vdevs use 8 drives from 1 controller)

iozone commands:
  iozone -M -e -+u -T -t 128 -S 4096 -L 64 -r 4k -s 40g -i 0 -i 1 -i 2
-i 8 -+p 70 -C  (350 MBytes/sec writes)
  iozone -M -e -+u -T -t 128 -r 128k -s 4g -i 0 -i 1 -i 2 -i 8 -+p 70
-C  (400 MBytes/sec write)

-- 
Freddie Cash
fjwc...@gmail.com
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


cvsup.de.FreeBSD.org out of sync? (was: "make buildkernel KERNCONF=GENERIC fails")

2009-05-26 Thread Christian Walther
2009/5/26 Rick C. Petty :
> On Tue, May 26, 2009 at 08:42:52PM +0200, Christian Walther wrote:
>>
>> Well, for some strange reason the same happened again: I did
>>
>> # mv /usr/src /usr/src.old
>> # csup /root/stable-supfile
>> # cd /usr/src
>> # make buildkernel KERNCONF=GENERIC
>
> You should always do a "buildworld" before doing a "buildkernel", as the
> toolchain which builds the kernel might have changed.  Also
> "KERNCONF=GENERIC" is implied.
>
Thanks, I will do a buildworld before a buildkernel next time.
I issue KERNCONF= in this case, because I specified it in
/etc/make.conf for my own kernel configuration.

Okay, so I changed my stable-supfile:
#*default host=cvsup.de.FreeBSD.org
*default host=cvsup.FreeBSD.org

did another csup, and tried a buildkernel again. I'm happy to say that
it finished successfully. From my point of view it appears that
cvsup.de.freebsd.org is out of sync.
buildworld is running and I will do another buildkernel with my own
kernel configuration afterwards.

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


Re: cvsup.de.FreeBSD.org out of sync? (was: "make buildkernel KERNCONF=GENERIC fails")

2009-05-26 Thread Ruben van Staveren


On 26 May 2009, at 22:38, Christian Walther wrote:


it finished successfully. From my point of view it appears that
cvsup.de.freebsd.org is out of sync.


cvsup.de.freebsd.org is definitely out of sync. I had build errors  
which only went away after switching to a different cvsup server


Regards,
Ruben

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


Re: cvsup.de.FreeBSD.org out of sync? (was: "make buildkernel KERNCONF=GENERIC fails")

2009-05-26 Thread Per olof Ljungmark

Ruben van Staveren wrote:


On 26 May 2009, at 22:38, Christian Walther wrote:


it finished successfully. From my point of view it appears that
cvsup.de.freebsd.org is out of sync.


cvsup.de.freebsd.org is definitely out of sync. I had build errors which 
only went away after switching to a different cvsup server


Same here, a week ago.

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


Re: cvsup.de.FreeBSD.org out of sync? (was: "make buildkernel KERNCONF=GENERIC fails")

2009-05-26 Thread Lorenzo Perone

On 27.05.2009, at 00:08, Per olof Ljungmark wrote:


Ruben van Staveren wrote:

On 26 May 2009, at 22:38, Christian Walther wrote:

it finished successfully. From my point of view it appears that
cvsup.de.freebsd.org is out of sync.
cvsup.de.freebsd.org is definitely out of sync. I had build errors  
which only went away after switching to a different cvsup server


Same here, a week ago.


same here too... a few mins and hours ago.
with cvsup5.de.freebsd.org as well...

regards,

Lorenzo


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


Re: gjournal locks up

2009-05-26 Thread David N
I managed to get the server to lock up again.

It responds to ping

Top was still running
last pid: 42052;  load averages:  0.00,  0.16,  0.19
  up 0+15:27:29  09:32:08
135 processes: 1 running, 93 sleeping, 41 waiting
CPU:  0.0% user,  0.0% nice,  0.4% system,  0.0% interrupt, 99.6% idle
Mem: 217M Active, 33M Inact, 168M Wired, 1976K Cache, 53M Buf
Swap: 1024M Total, 122M Used, 902M Free, 11% Inuse

PID USERNAME  THR PRI NICE   SIZERES STATETIME   WCPU COMMAND
1784 root1  -40 67596K  4764K ufs  0:08  0.00% perl5.8.9
29580110  1  200   138M 0K lockf0:07  0.00% 
27701110  1  440   136M 0K select   0:06  0.00% 
 3122 admin2  -40 13344K  1528K ufs  0:04  0.00% transmission-daemon
 2226 root1  440 25408K 0K WAIT 0:03  0.00% 
  728 root1  440 10484K   612K select   0:02  0.00% ntpd
 1793110  1  440   132M 0K WAIT 0:01  0.00% 
38907 root1   80 34136K 0K wait 0:01  0.00% 
 3276 root1  440 10700K   744K select   0:01  0.00% sendmail
 2236 root1  440 26496K 0K WAIT 0:01  0.00% 
 1855 root1  -40  5808K   332K ufs  0:01  0.00% master
38067 root1   80 13008K  1660K nanslp   0:00  0.00% gstat
 3934 admin1  440 25440K 0K select   0:00  0.00% 
40440 admin3  440   136M 0K ucond0:00  0.00% 
 2231 root1  440 28620K 0K select   0:00  0.00% 
 1868125  1   40  5808K 0K WAIT 0:00  0.00% 
 2026 root1  440 19696K 0K WAIT 0:00  0.00% 
41354 root1  440  8116K  1660K RUN  0:00  0.00% top
34965 root1   80  9016K 0K wait 0:00  0.00% 
 1729 root1  440  5692K 0K WAIT 0:00  0.00% 

This happened when it was install/initilising a MySQL DB in a Zimbra
test install

I really have no clue on ddb, I've broken into the debugger on the
console. What should i be looking for?

Regards
David N
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: jdk15/jdk16 build problems on amd64, 7.2-RELEASE

2009-05-26 Thread Todd Wasson
Unsurprisingly, rebooting made no difference.  Dang.  It is somewhat surprising 
that it's getting SIGKILLed and not SIGTERMed though; at least I presume that's 
what the "9" means...



Todd


Dan Nelson wrote:

In the last episode (May 26), Todd Wasson said:
I've recently been unable to get jdk15 and jdk16 to build, with some  
very cryptic errors (if any, really) being reported.  I've pasted a  
build log for jdk16 here, since it's about 9100 lines long: http://paste2.org/p/224897


This seems to be the relevant portion:
cd bsd_amd64_compiler2/product && gmake -w
gmake[4]: Entering directory `/usr/ports/java/jdk16/work/control/build/ 
bsd-amd64/hotspot/outputdir/bsd_amd64_compiler2/product'

Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
gmake[4]: *** [../generated/MakeDeps.class] Killed: 9


Something sent a KILL signal to your process.  Maybe you ran out of memory
and the kernel killed the largest process it saw?


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


FreeBSD 7.0-RELEASE-p12 and php5-gd

2009-05-26 Thread freebsd
I've been trying to build /usr/ports/graphics/php5-gd

I just finished:

 

cd /usr/src

make buildworld

make buildkernel KERNCONF=BOX201

make installkernel KERNCONF=BOX201

shutdown -r now

 

boot in single user mode (i.e. using boot -s from the loader prompt). Then
ran:

 

 adjkerntz -i

mount -a -t ufs

mergemaster -p

cd /usr/src

make installworld

mergemaster

reboot

 

Everything built smoothly. I just can't build the php5-gd port now. Has
anyone else had this problem?

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


Re: FreeBSD 7.0-RELEASE-p12 and php5-gd

2009-05-26 Thread Glen Barber
On Tue, May 26, 2009 at 7:09 PM,   wrote:
> I've been trying to build /usr/ports/graphics/php5-gd

[snip]

>
> Everything built smoothly. I just can't build the php5-gd port now. Has
> anyone else had this problem?
>

What is the error?

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