Re: Next ZFSv28 patchset ready for testing.

2011-02-25 Thread Bruce Cran
On Wed, 2011-02-23 at 23:28 +0100, Olivier Smedts wrote:

 I'm successfuly using the following on latest 9-CURRENT :
 http://people.freebsd.org/~mm/patches/zfs/v28/head-zfsv28-20110219-nopython.patch.xz

sys/cddl/compat/opensolaris/sys/sysmacros.h will fail to patch on the
latest -CURRENT but that's because the changes have already been added.

-- 
Bruce Cran

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


Re: Next ZFSv28 patchset ready for testing.

2011-02-25 Thread Olivier Smedts
2011/2/25 Bruce Cran br...@cran.org.uk:
 On Wed, 2011-02-23 at 23:28 +0100, Olivier Smedts wrote:

 I'm successfuly using the following on latest 9-CURRENT :
 http://people.freebsd.org/~mm/patches/zfs/v28/head-zfsv28-20110219-nopython.patch.xz

 sys/cddl/compat/opensolaris/sys/sysmacros.h will fail to patch on the
 latest -CURRENT but that's because the changes have already been added.

Added ? The patch fails because the svn tag is not expanded, but what
the patch does is remove the file. You can do so after patching if it
failed.

-- 
Olivier Smedts                                                 _
                                        ASCII ribbon campaign ( )
e-mail: oliv...@gid0.org        - against HTML email  vCards  X
www: http://www.gid0.org    - against proprietary attachments / \

  Il y a seulement 10 sortes de gens dans le monde :
  ceux qui comprennent le binaire,
  et ceux qui ne le comprennent pas.
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: Next ZFSv28 patchset ready for testing.

2011-02-25 Thread Bruce Cran
On Fri, Feb 25, 2011 at 10:59:04AM +0100, Olivier Smedts wrote:
 
 Added ? The patch fails because the svn tag is not expanded, but what
 the patch does is remove the file. You can do so after patching if it
 failed.

It looks like there are two patches to sysmacros.h - the first adds SIGNOF and
highbit and the second then removes the file.

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


Re: Next ZFSv28 patchset ready for testing.

2011-02-25 Thread Olivier Smedts
2011/2/25 Bruce Cran br...@cran.org.uk:
 On Fri, Feb 25, 2011 at 10:59:04AM +0100, Olivier Smedts wrote:

 Added ? The patch fails because the svn tag is not expanded, but what
 the patch does is remove the file. You can do so after patching if it
 failed.

 It looks like there are two patches to sysmacros.h - the first adds SIGNOF and
 highbit and the second then removes the file.

Not the same sysmacros.h, the one patched is
sys/cddl/contrib/opensolaris/uts/common/sys/sysmacros.h, the other one
you referenced (sys/cddl/compat/opensolaris/sys/sysmacros.h) is
removed by the patch.

BTW, even for the first one, I have no problem applying the patch
cleanly on 9-CURRENT, svn revision 219027.

-- 
Olivier Smedts                                                 _
                                        ASCII ribbon campaign ( )
e-mail: oliv...@gid0.org        - against HTML email  vCards  X
www: http://www.gid0.org    - against proprietary attachments / \

  Il y a seulement 10 sortes de gens dans le monde :
  ceux qui comprennent le binaire,
  et ceux qui ne le comprennent pas.
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: Next ZFSv28 patchset ready for testing.

2011-02-25 Thread Bruce Cran
On Fri, 2011-02-25 at 13:08 +0100, Olivier Smedts wrote:

 Not the same sysmacros.h, the one patched is
 sys/cddl/contrib/opensolaris/uts/common/sys/sysmacros.h, the other one
 you referenced (sys/cddl/compat/opensolaris/sys/sysmacros.h) is
 removed by the patch.

So it is - apologies for the noise.

-- 
Bruce Cran

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


Re: Next ZFSv28 patchset ready for testing.

2011-02-23 Thread Jason Garrett
On Mon, Feb 7, 2011 at 08:01, Anonymous swel...@gmail.com wrote:

 Anonymous swel...@gmail.com writes:

  Pawel Jakub Dawidek p...@freebsd.org writes:
 
  The new patchset is ready for testing:
 
   http://people.freebsd.org/~pjd/patches/zfs_20101212.patch.bz2
 
 
  `-e' option in zdb(8) now looks under /dev/dsk by default
 
$ zdb -ec blah
 
Configuration for import:
vdev_children: 1
version: 6
vdev_tree:
children[0]:
phys_path: '/dev/gptid/A-B-C-D-E'
path: '/dev/dsk/gptid/A-B-C-D-E'
zdb: can't open 'blah': No such file or directory
Exit 1

 How about below diff then?

 %%
 --- cddl/contrib/opensolaris/lib/libzfs/common/libzfs_import.c~
 +++ cddl/contrib/opensolaris/lib/libzfs/common/libzfs_import.c
 @@ -1129,7 +1129,11 @@ zpool_find_import_impl(libzfs_handle_t *
char *end, **dir = iarg-path;
size_t pathleft;
nvlist_t *ret = NULL;
 +#ifdef sun
static char *default_dir = /dev/dsk;
 +#else
 +   static char *default_dir = /dev;
 +#endif
pool_list_t pools = { 0 };
pool_entry_t *pe, *penext;
vdev_entry_t *ve, *venext;
 %%

 
$ zdb -p /dev -ec blah
 
Traversing all blocks to verify metadata checksums and verify nothing
 leaked ...
Assertion failed: (mp-initialized == B_TRUE), file
 /usr/src/cddl/lib/libzpool/../../../cddl/contrib/opensolaris/lib/libzpool/common/kernel.c,
 line 130.
Exit 134

 I can't reproduce anymore, at least as of ch188544.


Has there been any recent developments with these patches (eg. Will they
apply and build on latest checkouts?) ?

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

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


Re: Next ZFSv28 patchset ready for testing.

2011-02-23 Thread Olivier Smedts
2011/2/23 Jason Garrett kinged...@gmail.com:
 On Mon, Feb 7, 2011 at 08:01, Anonymous swel...@gmail.com wrote:

 Anonymous swel...@gmail.com writes:

  Pawel Jakub Dawidek p...@freebsd.org writes:
 
  The new patchset is ready for testing:
 
       http://people.freebsd.org/~pjd/patches/zfs_20101212.patch.bz2
 
 
  `-e' option in zdb(8) now looks under /dev/dsk by default
 
    $ zdb -ec blah
 
    Configuration for import:
            vdev_children: 1
            version: 6
            vdev_tree:
                children[0]:
                    phys_path: '/dev/gptid/A-B-C-D-E'
                    path: '/dev/dsk/gptid/A-B-C-D-E'
    zdb: can't open 'blah': No such file or directory
    Exit 1

 How about below diff then?

 %%
 --- cddl/contrib/opensolaris/lib/libzfs/common/libzfs_import.c~
 +++ cddl/contrib/opensolaris/lib/libzfs/common/libzfs_import.c
 @@ -1129,7 +1129,11 @@ zpool_find_import_impl(libzfs_handle_t *
        char *end, **dir = iarg-path;
        size_t pathleft;
        nvlist_t *ret = NULL;
 +#ifdef sun
        static char *default_dir = /dev/dsk;
 +#else
 +       static char *default_dir = /dev;
 +#endif
        pool_list_t pools = { 0 };
        pool_entry_t *pe, *penext;
        vdev_entry_t *ve, *venext;
 %%

 
    $ zdb -p /dev -ec blah
 
    Traversing all blocks to verify metadata checksums and verify nothing
 leaked ...
    Assertion failed: (mp-initialized == B_TRUE), file
 /usr/src/cddl/lib/libzpool/../../../cddl/contrib/opensolaris/lib/libzpool/common/kernel.c,
 line 130.
    Exit 134

 I can't reproduce anymore, at least as of ch188544.


 Has there been any recent developments with these patches (eg. Will they
 apply and build on latest checkouts?) ?

I'm successfuly using the following on latest 9-CURRENT :
http://people.freebsd.org/~mm/patches/zfs/v28/head-zfsv28-20110219-nopython.patch.xz

If you want patches for 8-STABLE, look at the directory contents.

Cheers

-- 
Olivier Smedts                                                 _
                                        ASCII ribbon campaign ( )
e-mail: oliv...@gid0.org        - against HTML email  vCards  X
www: http://www.gid0.org    - against proprietary attachments / \

  Il y a seulement 10 sortes de gens dans le monde :
  ceux qui comprennent le binaire,
  et ceux qui ne le comprennent pas.
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: Next ZFSv28 patchset ready for testing.

2011-02-07 Thread Anonymous
Anonymous swel...@gmail.com writes:

 Pawel Jakub Dawidek p...@freebsd.org writes:

 The new patchset is ready for testing:

  http://people.freebsd.org/~pjd/patches/zfs_20101212.patch.bz2


 `-e' option in zdb(8) now looks under /dev/dsk by default

   $ zdb -ec blah

   Configuration for import:
   vdev_children: 1
   version: 6
   vdev_tree:
   children[0]:
   phys_path: '/dev/gptid/A-B-C-D-E'
   path: '/dev/dsk/gptid/A-B-C-D-E'
   zdb: can't open 'blah': No such file or directory
   Exit 1

How about below diff then?

%%
--- cddl/contrib/opensolaris/lib/libzfs/common/libzfs_import.c~
+++ cddl/contrib/opensolaris/lib/libzfs/common/libzfs_import.c
@@ -1129,7 +1129,11 @@ zpool_find_import_impl(libzfs_handle_t *
char *end, **dir = iarg-path;
size_t pathleft;
nvlist_t *ret = NULL;
+#ifdef sun
static char *default_dir = /dev/dsk;
+#else
+   static char *default_dir = /dev;
+#endif
pool_list_t pools = { 0 };
pool_entry_t *pe, *penext;
vdev_entry_t *ve, *venext;
%%


   $ zdb -p /dev -ec blah

   Traversing all blocks to verify metadata checksums and verify nothing 
 leaked ...
   Assertion failed: (mp-initialized == B_TRUE), file 
 /usr/src/cddl/lib/libzpool/../../../cddl/contrib/opensolaris/lib/libzpool/common/kernel.c,
  line 130.
   Exit 134

I can't reproduce anymore, at least as of ch188544.
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: Next ZFSv28 patchset ready for testing.

2011-01-04 Thread Pawel Jakub Dawidek
On Wed, Dec 15, 2010 at 10:15:40AM +0200, Andrei Kolu wrote:
 2010/12/14 Pawel Jakub Dawidek p...@freebsd.org
 
  On Mon, Dec 13, 2010 at 10:45:56PM +0100, Pawel Jakub Dawidek wrote:
   Hi.
  
   The new patchset is ready for testing:
  
         http://people.freebsd.org/~pjd/patches/zfs_20101212.patch.bz2
 
  You can also download the whole source tree already patched from here:
 
         http://people.freebsd.org/~pjd/zfs_20101212.tbz
 
 
 # uname -a
 FreeBSD freebsd9.raidon.eu 9.0-CURRENT FreeBSD 9.0-CURRENT #0: Tue Dec
 14 14:37:01 EET 2010
 r...@freebsd9.raidon.eu:/usr/obj/usr/src/sys/GENERIC  amd64
 
 Create files filled with zeroes:
 # mkfile 512m disk1 disk2 disk3 disk4
 # zpool create andmed raidz /home/antik/disk{1,2,3,4}
 # zpool status andmed
   pool: andmed
  state: ONLINE
  scan: none requested
 config:
 
 NAME   STATE READ WRITE CKSUM
 andmed ONLINE   0 0 0
   raidz1-0 ONLINE   0 0 0
 /home/antik/disk1  ONLINE   0 0 0
 /home/antik/disk2  ONLINE   0 0 0
 /home/antik/disk3  ONLINE   0 0 0
 /home/antik/disk4  ONLINE   0 0 0
 
 errors: No known data errors
 
 Now let's try to scrub:
 # zpool scrub andmed
 
 Fatal trap 12: page fault while in kernel mode
 cpuid = 1; apic id = 01
 fault virtual address = 0x1fb8007b
 fault code = supervisor read data, page not present
 instruction pointer = 0x20:0x812967d2
 stack pointer = 0x20:0xff80ee605548
 frame pointer = 0x28:0xff80ee605730
 code segment = base 0x0, limit 0xf, type 0x1b
  = DPL 0, pres1, long 1, def32 0, gran 1
 processor eflags = interrupt enabled, resume, IOPL = 0
 current process = 2081 (initial thread)
 [ thread pid 2081 tid 100121 ]
 Stopped at  vdev_file_open+0x92:  testb  $0x20,0x7b(%rax)

Could you verify if this patch fixes the problem for you?

http://people.freebsd.org/~pjd/patches/vdev_file.c.2.patch

-- 
Pawel Jakub Dawidek   http://www.wheelsystems.com
p...@freebsd.org   http://www.FreeBSD.org
FreeBSD committer Am I Evil? Yes, I Am!


pgplp1JmNuuvJ.pgp
Description: PGP signature


Re: Next ZFSv28 patchset ready for testing.

2010-12-19 Thread Pawel Jakub Dawidek
On Fri, Dec 17, 2010 at 12:54:36AM +0300, Rechistov Grigory (Речистов Григорий) 
wrote:
 I started to check the new ZFS version inside a VirtualBox machine. So far  
 it works for me without crashes, but I got some observations worth  
 mentioning. Here are the steps I made:
 
 1. Installed 8.1-RELEASE (from minimal install  CD)
 2. Csup'ped sources to CURRENT (as of 14/12/2010) [note that I haven't  
 used SVN repository]
 3. Applied the patch in question.
 4. Created a zpool raidz of two disks of old  version 15. Also some usual  
 tuning of ZFS in loader.conf was done as I am running 32 bit version with  
 low amount of memory.  zfs_enable=YES in rc.conf was added too.
 4.1 Moved /usr/ports to ZFS to have some files on it.
 5. Make buildworld, buildkernel, installkernel, installworld - all the  
 canonical steps from the Handbook.
 6. After reboot to final 9.0-CURRENT world I got a dmesg with some trace  
 stack related to ZFS and also a rc.d script message about unrecognized  
 command 'volinit' (see the text of it in attachment).

This one is because mergemaster(8) skips files with the same $FreeBSD$
value, so you need to copy /usr/src/etc/rc.d/zvol to /etc/rc.d/ by hand.

 7. Nevertheless the system booted. Files
 8. `zpool upgrade -a` worked all right and reported that now I have ZFS  
 version 28
 
 Overall I am pleasantly surprised how streamlined the whole process was.

That's good to hear, thanks.

-- 
Pawel Jakub Dawidek   http://www.wheelsystems.com
p...@freebsd.org   http://www.FreeBSD.org
FreeBSD committer Am I Evil? Yes, I Am!


pgp5O7SANNIX6.pgp
Description: PGP signature


Re: Next ZFSv28 patchset ready for testing.

2010-12-19 Thread Anonymous
Pawel Jakub Dawidek p...@freebsd.org writes:

 The new patchset is ready for testing:

   http://people.freebsd.org/~pjd/patches/zfs_20101212.patch.bz2


`-e' option in zdb(8) now looks under /dev/dsk by default

  $ zdb -ec blah

  Configuration for import:
  vdev_children: 1
  version: 6
  vdev_tree:
  children[0]:
  phys_path: '/dev/gptid/A-B-C-D-E'
  path: '/dev/dsk/gptid/A-B-C-D-E'
  zdb: can't open 'blah': No such file or directory
  Exit 1

  $ zdb -p /dev -ec blah

  Traversing all blocks to verify metadata checksums and verify nothing leaked 
...
  Assertion failed: (mp-initialized == B_TRUE), file 
/usr/src/cddl/lib/libzpool/../../../cddl/contrib/opensolaris/lib/libzpool/common/kernel.c,
 line 130.
  Exit 134
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: Next ZFSv28 patchset ready for testing.

2010-12-17 Thread Речистов Григ орий
On Fri, 17 Dec 2010 01:29:14 +0300, Olivier Smedts oliv...@gid0.org  
wrote:



2010/12/16 Rechistov Grigory (Речистов Григорий) ggg_m...@inbox.ru:
I started to check the new ZFS version inside a VirtualBox machine. So  
far

it works for me without crashes, but I got some observations worth
mentioning. Here are the steps I made:

1. Installed 8.1-RELEASE (from minimal install  CD)
2. Csup'ped sources to CURRENT (as of 14/12/2010) [note that I haven't  
used

SVN repository]
3. Applied the patch in question.
4. Created a zpool raidz of two disks of old  version 15. Also some  
usual
tuning of ZFS in loader.conf was done as I am running 32 bit version  
with

low amount of memory.  zfs_enable=YES in rc.conf was added too.
4.1 Moved /usr/ports to ZFS to have some files on it.
5. Make buildworld, buildkernel, installkernel, installworld - all the
canonical steps from the Handbook.
6. After reboot to final 9.0-CURRENT world I got a dmesg with some trace
stack related to ZFS and also a rc.d script message about unrecognized
command 'volinit' (see the text of it in attachment).


Did you run mergemaster correctly ?



Yes, `mergemaster -p` - `make installworld` - `mergemaster` sequence was  
performed according to the Handbook.

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


Re: Next ZFSv28 patchset ready for testing.

2010-12-17 Thread Речистов Григорий
I got more stacktraces in course of compilation of bash, see the updated  
dmesg.


By the way, could someone suggest what types of stability tests I might  
perform? I.e. examples of disk- and FS-intensive workloads.


On Fri, 17 Dec 2010 00:54:36 +0300, Rechistov Grigory (Речистов Григорий)  
ggg_m...@inbox.ru wrote:


I started to check the new ZFS version inside a VirtualBox machine. So  
far it works for me without crashes, but I got some observations worth  
mentioning. Here are the steps I made:


1. Installed 8.1-RELEASE (from minimal install  CD)
2. Csup'ped sources to CURRENT (as of 14/12/2010) [note that I haven't  
used SVN repository]

3. Applied the patch in question.
4. Created a zpool raidz of two disks of old  version 15. Also some  
usual tuning of ZFS in loader.conf was done as I am running 32 bit  
version with low amount of memory.  zfs_enable=YES in rc.conf was  
added too.

4.1 Moved /usr/ports to ZFS to have some files on it.
5. Make buildworld, buildkernel, installkernel, installworld - all the  
canonical steps from the Handbook.
6. After reboot to final 9.0-CURRENT world I got a dmesg with some trace  
stack related to ZFS and also a rc.d script message about unrecognized  
command 'volinit' (see the text of it in attachment).

7. Nevertheless the system booted. Files
8. `zpool upgrade -a` worked all right and reported that now I have ZFS  
version 28


Overall I am pleasantly surprised how streamlined the whole process was.

I am going to perform more tourturing of this VM later as well.

Thanks for your work!Copyright (c) 1992-2010 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 9.0-CURRENT #1: Thu Dec 16 02:53:13 MSK 2010
r...@bsdtest.localnet:/usr/obj/usr/src/sys/GENERIC i386
WARNING: WITNESS option enabled, expect reduced performance.
CPU: Intel(R) Core(TM)2 Duo CPU T7500  @ 2.20GHz (2171.85-MHz 686-class CPU)
  Origin = GenuineIntel  Id = 0x6fb  Family = 6  Model = f  Stepping = 11
  
Features=0x783fbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE,SSE2
  Features2=0x209SSE3,MON,SSSE3
  AMD Features=0x20100800SYSCALL,NX,LM
  AMD Features2=0x1LAHF
  TSC: P-state invariant
real memory  = 671023104 (639 MB)
avail memory = 637427712 (607 MB)
pnpbios: Bad PnP BIOS data checksum
kbd1 at kbdmux0
acpi0: VBOX VBOXXSDT on motherboard
acpi0: Power Button (fixed)
acpi0: Sleep Button (fixed)
Timecounter ACPI-safe frequency 3579545 Hz quality 850
acpi_timer0: 32-bit timer at 3.579545MHz port 0x4008-0x400b on acpi0
pcib0: ACPI Host-PCI bridge port 0xcf8-0xcff on acpi0
pci0: ACPI PCI bus on pcib0
isab0: PCI-ISA bridge at device 1.0 on pci0
isa0: ISA bus on isab0
atapci0: Intel PIIX4 UDMA33 controller port 
0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xd000-0xd00f at device 1.1 on pci0
ata0: ATA channel 0 on atapci0
ata1: ATA channel 1 on atapci0
vgapci0: VGA-compatible display mem 0xe000-0xe0ff irq 11 at device 
2.0 on pci0
em0: Intel(R) PRO/1000 Legacy Network Connection 1.0.3 port 0xd010-0xd017 mem 
0xf000-0xf001 irq 10 at device 3.0 on pci0
em0: Ethernet address: 08:00:27:05:9b:9f
pci0: base peripheral at device 4.0 (no driver attached)
pci0: multimedia, audio at device 5.0 (no driver attached)
ohci0: OHCI (generic) USB controller mem 0xf0804000-0xf0804fff irq 11 at 
device 6.0 on pci0
usbus0: OHCI (generic) USB controller on ohci0
pci0: bridge at device 7.0 (no driver attached)
ehci0: Intel 82801FB (ICH6) USB 2.0 controller mem 0xf0805000-0xf0805fff irq 
10 at device 11.0 on pci0
usbus1: EHCI version 1.0
usbus1: Intel 82801FB (ICH6) USB 2.0 controller on ehci0
mpt0: LSILogic 1030 Ultra4 Adapter port 0xd300-0xd3ff mem 
0xf082-0xf083,0xf084-0xf085 irq 9 at device 20.0 on pci0
mpt0: MPI Version=1.2.0.0
battery0: ACPI Control Method Battery on acpi0
acpi_acad0: AC Adapter on acpi0
atkbdc0: Keyboard controller (i8042) port 0x60,0x64 irq 1 on acpi0
atkbd0: AT Keyboard irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
psm0: PS/2 Mouse irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: model IntelliMouse Explorer, device ID 4
attimer0: AT timer port 0x40-0x43,0x50-0x53 on acpi0
Timecounter i8254 frequency 1193182 Hz quality 0
Event timer i8254 frequency 1193182 Hz quality 100
pmtimer0 on isa0
orm0: ISA Option ROMs at iomem 0xc-0xc8fff,0xe2000-0xe2fff pnpid ORM 
on isa0
sc0: System console at flags 0x100 on isa0
sc0: VGA 16 virtual consoles, flags=0x300
vga0: Generic ISA VGA at port 0x3c0-0x3df iomem 0xa-0xb on isa0
atrtc0: AT realtime clock at port 0x70 irq 8 on isa0
Event timer RTC frequency 32768 Hz quality 0
ppc0: parallel port not found.
Timecounter TSC frequency 2171848610 Hz quality 800
Timecounters tick every 10.000 msec
usbus0: 12Mbps Full Speed USB v1.0
usbus1: 480Mbps High Speed USB v2.0
ad0: 16384MB VBOX HARDDISK 

Re: Next ZFSv28 patchset ready for testing.

2010-12-17 Thread Ivan Voras

On 17/12/2010 08:56, Rechistov Grigory (Речистов Григорий) wrote:

By the way, could someone suggest what types of stability tests I might
perform? I.e. examples of disk- and FS-intensive workloads.


Run blogbench and bonnie++ at the same time, possibly with tarring and 
untarring /usr/ports.


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


Re: Next ZFSv28 patchset ready for testing.

2010-12-17 Thread Olivier Smedts
2010/12/13 Pawel Jakub Dawidek p...@freebsd.org:
 Please test, test, test. Chances are this is the last patchset before
 v28 going to HEAD (finally). Especially test new changes, like boot
 support and sendfile(2) support. Also be sure to verify if you can
 import for existing ZFS pools (v13-v15) when running v28 or boot from
 your existing pools.

When booting my v15 mirrored pool with only one disk available, I've
got some zfs debug messages in the console (but everything works fine)
:
Dec 18 00:31:55 q kernel: Trying to mount root from zfs:tank/freebsd []...
Dec 18 00:31:55 q kernel: log_sysevent: type 19 is not implemented
Dec 18 00:31:55 q kernel: log_sysevent: type 19 is not implemented


-- 
Olivier Smedts                                                 _
                                        ASCII ribbon campaign ( )
e-mail: oliv...@gid0.org        - against HTML email  vCards  X
www: http://www.gid0.org    - against proprietary attachments / \

  Il y a seulement 10 sortes de gens dans le monde :
  ceux qui comprennent le binaire,
  et ceux qui ne le comprennent pas.
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: Next ZFSv28 patchset ready for testing.

2010-12-17 Thread Doug Barton

On 12/15/2010 23:19, Pawel Jakub Dawidek wrote:

On Wed, Dec 15, 2010 at 10:15:00PM -0500, ben wilber wrote:

On Mon, Dec 13, 2010 at 10:45:56PM +0100, Pawel Jakub Dawidek wrote:

Hi.

The new patchset is ready for testing:


Running fine for 24 hours now under load with a ~50 disk v15 (not
upgraded) pool from -CURRENT.  Thanks!

Only strange thing is the rc script complains:

/etc/rc: DEBUG: run_rc_command: doit: zvol_start
unrecognized command 'volinit'
usage: zfs command args ...


Did you run mergemaster(8) after the upgrade? The patch includes change
to etc/rc.d/zvol to remove 'zfs volinit'/'zfs volfini' which are no
longer available.


By default mergemaster will only notice the change if the $FreeBSD id 
changes, which it generally would not for a patch. The -s option will 
deal with this, but it may be less work to just cp the file.



Doug

--

Nothin' ever doesn't change, but nothin' changes much.
-- OK Go

Breadth of IT experience, and depth of knowledge in the DNS.
Yours for the right price.  :)  http://SupersetSolutions.com/

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


Re: Next ZFSv28 patchset ready for testing.

2010-12-16 Thread Alexander V. Ribchansky
First of all, thank pjd@, mm@ and others who made zfs go ahead in 
FreeBSD! You are absolutely monsters!


Now one question, what I do wrong, that I can't use /boot/zfsboot to 
boot MBR+zfs-only FreeBSD?
More info. If I use /boot/zfsboot form recent STABLE (from snapshot CD 
or built myself) to boot up this


monstro# gpart show ad6
=   63  625142385  ad6  MBR  (298G)
 63  1048722571  ntfs  [active]  (50G)
  104872320  5202701282  freebsd  (248G)

monstro# gpart show ad6s2
=0  520270128  ad6s2  BSD  (248G)
  0  516075824  1  freebsd-zfs  (246G)
  5160758244194304  2  freebsd-swap  (2.0G)

I install /boot/zfsboot as

dd if=/boot/zfsboot of=/dev/ad6s2 count=1
dd if=/boot/zfsboot of=/dev/ad6s2a skip=1 seek=1024

when I reboot, system stuck in - or \ or / or finaly | prompt.

when I install /boot/zfsboot from recent 9-CURRENT snapshot CD all 
boots-up perfectly.
More over, fresh built /boot/zfsboot from v28 pachset either from 8-S or 
9-C patches stuck as I describe above.


What I miss? Can somebody send me known to work copy of /boot/zfsboot 
from v28 patchset?


Thanks!

--
WBR,
Alexander V. Ribchansky
AVR39-RIPE

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


Re: Next ZFSv28 patchset ready for testing.

2010-12-16 Thread Olivier Smedts
2010/12/13 Pawel Jakub Dawidek p...@freebsd.org:
 Please test, test, test. Chances are this is the last patchset before
 v28 going to HEAD (finally). Especially test new changes, like boot
 support and sendfile(2) support. Also be sure to verify if you can
 import for existing ZFS pools (v13-v15) when running v28 or boot from
 your existing pools.

Boot support ok with gptzfsboot and zfsloader on a mirrored v15 root
pool and a single disk v15 root pool.

# zfs diff tank/d...@20101204 tank/d...@20101208
Cannot stat /data/.zfs/shares/: unable to generate diffs
# ls /data/.zfs/
snapshot/

This pool was created in -STABLE more than a year ago, I think it was
zpool version 13. I upgraded it to version 15, upgraded the
filesystems, but there are no shares directories in the .zfs folder
of the filesystems in this pool.

Another pool created few days ago directly in version 15 :
# ls /temp/.zfs/
shares/   snapshot/

I never used shares in any of my pools/filesystems. Should the
.zfs/shares directories be created automatically ?

Thanks

-- 
Olivier Smedts                                                 _
                                        ASCII ribbon campaign ( )
e-mail: oliv...@gid0.org        - against HTML email  vCards  X
www: http://www.gid0.org    - against proprietary attachments / \

  Il y a seulement 10 sortes de gens dans le monde :
  ceux qui comprennent le binaire,
  et ceux qui ne le comprennent pas.
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: Next ZFSv28 patchset ready for testing.

2010-12-16 Thread Olivier Smedts
2010/12/13 Pawel Jakub Dawidek p...@freebsd.org:
 Please test, test, test. Chances are this is the last patchset before
 v28 going to HEAD (finally). Especially test new changes, like boot
 support and sendfile(2) support. Also be sure to verify if you can
 import for existing ZFS pools (v13-v15) when running v28 or boot from
 your existing pools.

Boot support ok with gptzfsboot and zfsloader on a mirrored v15 root
pool and a single disk v15 root pool.

# zfs diff tank/d...@20101204 tank/d...@20101208
Cannot stat /data/.zfs/shares/: unable to generate diffs
# ls /data/.zfs/
snapshot/

This pool was created in -STABLE more than a year ago, I think it was
zpool version 13. I upgraded it to version 15, upgraded the
filesystems, but there are no shares directories in the .zfs folder
of the filesystems in this pool.

Another pool created few days ago directly in version 15 :
# ls /temp/.zfs/
shares/   snapshot/

I never used shares in any of my pools/filesystems. Should the
.zfs/shares directories be created automatically ?

Thanks

-- 
Olivier Smedts                                                 _
                                        ASCII ribbon campaign ( )
e-mail: oliv...@gid0.org        - against HTML email  vCards  X
www: http://www.gid0.org    - against proprietary attachments / \

  Il y a seulement 10 sortes de gens dans le monde :
  ceux qui comprennent le binaire,
  et ceux qui ne le comprennent pas.
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Next ZFSv28 patchset ready for testing.

2010-12-16 Thread Речистов Григорий
I started to check the new ZFS version inside a VirtualBox machine. So far  
it works for me without crashes, but I got some observations worth  
mentioning. Here are the steps I made:


1. Installed 8.1-RELEASE (from minimal install  CD)
2. Csup'ped sources to CURRENT (as of 14/12/2010) [note that I haven't  
used SVN repository]

3. Applied the patch in question.
4. Created a zpool raidz of two disks of old  version 15. Also some usual  
tuning of ZFS in loader.conf was done as I am running 32 bit version with  
low amount of memory.  zfs_enable=YES in rc.conf was added too.

4.1 Moved /usr/ports to ZFS to have some files on it.
5. Make buildworld, buildkernel, installkernel, installworld - all the  
canonical steps from the Handbook.
6. After reboot to final 9.0-CURRENT world I got a dmesg with some trace  
stack related to ZFS and also a rc.d script message about unrecognized  
command 'volinit' (see the text of it in attachment).

7. Nevertheless the system booted. Files
8. `zpool upgrade -a` worked all right and reported that now I have ZFS  
version 28


Overall I am pleasantly surprised how streamlined the whole process was.

I am going to perform more tourturing of this VM later as well.

Thanks for your work!Copyright (c) 1992-2010 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 9.0-CURRENT #1: Thu Dec 16 02:53:13 MSK 2010
r...@bsdtest.localnet:/usr/obj/usr/src/sys/GENERIC i386
WARNING: WITNESS option enabled, expect reduced performance.
CPU: Intel(R) Core(TM)2 Duo CPU T7500  @ 2.20GHz (2171.85-MHz 686-class CPU)
  Origin = GenuineIntel  Id = 0x6fb  Family = 6  Model = f  Stepping = 11
  
Features=0x783fbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE,SSE2
  Features2=0x209SSE3,MON,SSSE3
  AMD Features=0x20100800SYSCALL,NX,LM
  AMD Features2=0x1LAHF
  TSC: P-state invariant
real memory  = 671023104 (639 MB)
avail memory = 637427712 (607 MB)
pnpbios: Bad PnP BIOS data checksum
kbd1 at kbdmux0
acpi0: VBOX VBOXXSDT on motherboard
acpi0: Power Button (fixed)
acpi0: Sleep Button (fixed)
Timecounter ACPI-safe frequency 3579545 Hz quality 850
acpi_timer0: 32-bit timer at 3.579545MHz port 0x4008-0x400b on acpi0
pcib0: ACPI Host-PCI bridge port 0xcf8-0xcff on acpi0
pci0: ACPI PCI bus on pcib0
isab0: PCI-ISA bridge at device 1.0 on pci0
isa0: ISA bus on isab0
atapci0: Intel PIIX4 UDMA33 controller port 
0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xd000-0xd00f at device 1.1 on pci0
ata0: ATA channel 0 on atapci0
ata1: ATA channel 1 on atapci0
vgapci0: VGA-compatible display mem 0xe000-0xe0ff irq 11 at device 
2.0 on pci0
em0: Intel(R) PRO/1000 Legacy Network Connection 1.0.3 port 0xd010-0xd017 mem 
0xf000-0xf001 irq 10 at device 3.0 on pci0
em0: Ethernet address: 08:00:27:05:9b:9f
pci0: base peripheral at device 4.0 (no driver attached)
pci0: multimedia, audio at device 5.0 (no driver attached)
ohci0: OHCI (generic) USB controller mem 0xf0804000-0xf0804fff irq 11 at 
device 6.0 on pci0
usbus0: OHCI (generic) USB controller on ohci0
pci0: bridge at device 7.0 (no driver attached)
ehci0: Intel 82801FB (ICH6) USB 2.0 controller mem 0xf0805000-0xf0805fff irq 
10 at device 11.0 on pci0
usbus1: EHCI version 1.0
usbus1: Intel 82801FB (ICH6) USB 2.0 controller on ehci0
mpt0: LSILogic 1030 Ultra4 Adapter port 0xd300-0xd3ff mem 
0xf082-0xf083,0xf084-0xf085 irq 9 at device 20.0 on pci0
mpt0: MPI Version=1.2.0.0
battery0: ACPI Control Method Battery on acpi0
acpi_acad0: AC Adapter on acpi0
atkbdc0: Keyboard controller (i8042) port 0x60,0x64 irq 1 on acpi0
atkbd0: AT Keyboard irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
psm0: PS/2 Mouse irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: model IntelliMouse Explorer, device ID 4
attimer0: AT timer port 0x40-0x43,0x50-0x53 on acpi0
Timecounter i8254 frequency 1193182 Hz quality 0
Event timer i8254 frequency 1193182 Hz quality 100
pmtimer0 on isa0
orm0: ISA Option ROMs at iomem 0xc-0xc8fff,0xe2000-0xe2fff pnpid ORM 
on isa0
sc0: System console at flags 0x100 on isa0
sc0: VGA 16 virtual consoles, flags=0x300
vga0: Generic ISA VGA at port 0x3c0-0x3df iomem 0xa-0xb on isa0
atrtc0: AT realtime clock at port 0x70 irq 8 on isa0
Event timer RTC frequency 32768 Hz quality 0
ppc0: parallel port not found.
Timecounter TSC frequency 2171848610 Hz quality 800
Timecounters tick every 10.000 msec
usbus0: 12Mbps Full Speed USB v1.0
usbus1: 480Mbps High Speed USB v2.0
ad0: 16384MB VBOX HARDDISK 1.0 at ata0-master UDMA33 
ugen0.1: Apple at usbus0
uhub0: Apple OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1 on usbus0
ugen1.1: Intel at usbus1
uhub1: Intel EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1 on usbus1
uhub0: 8 ports with 8 removable, self powered
uhub1: 8 ports with 8 removable, self powered
da0 at mpt0 

Re: Next ZFSv28 patchset ready for testing.

2010-12-16 Thread Olivier Smedts
2010/12/16 Rechistov Grigory (Речистов Григорий) ggg_m...@inbox.ru:
 I started to check the new ZFS version inside a VirtualBox machine. So far
 it works for me without crashes, but I got some observations worth
 mentioning. Here are the steps I made:

 1. Installed 8.1-RELEASE (from minimal install  CD)
 2. Csup'ped sources to CURRENT (as of 14/12/2010) [note that I haven't used
 SVN repository]
 3. Applied the patch in question.
 4. Created a zpool raidz of two disks of old  version 15. Also some usual
 tuning of ZFS in loader.conf was done as I am running 32 bit version with
 low amount of memory.  zfs_enable=YES in rc.conf was added too.
 4.1 Moved /usr/ports to ZFS to have some files on it.
 5. Make buildworld, buildkernel, installkernel, installworld - all the
 canonical steps from the Handbook.
 6. After reboot to final 9.0-CURRENT world I got a dmesg with some trace
 stack related to ZFS and also a rc.d script message about unrecognized
 command 'volinit' (see the text of it in attachment).

Did you run mergemaster correctly ?

 7. Nevertheless the system booted. Files
 8. `zpool upgrade -a` worked all right and reported that now I have ZFS
 version 28

 Overall I am pleasantly surprised how streamlined the whole process was.

 I am going to perform more tourturing of this VM later as well.

 Thanks for your work!
 ___
 freebsd-current@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-current
 To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org




-- 
Olivier Smedts                                                 _
                                        ASCII ribbon campaign ( )
e-mail: oliv...@gid0.org        - against HTML email  vCards  X
www: http://www.gid0.org    - against proprietary attachments / \

  Il y a seulement 10 sortes de gens dans le monde :
  ceux qui comprennent le binaire,
  et ceux qui ne le comprennent pas.
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: Next ZFSv28 patchset ready for testing.

2010-12-15 Thread Anonymous
Pawel Jakub Dawidek p...@freebsd.org writes:

 Hi.

 The new patchset is ready for testing:

   http://people.freebsd.org/~pjd/patches/zfs_20101212.patch.bz2

 When applying the patch be sure to use correct options for patch(1)!:

   # cd /usr/src
   # fetch http://people.freebsd.org/~pjd/patches/zfs_20101212.patch.bz2
   # bzip2 -d zfs_20101212.patch.bz2
   # patch -E -p0  zfs_20101212.patch

  $ zfs allow
  Traceback (most recent call last):
  File /usr/lib/zfs/pyzfs.py, line 35, in module
  import zfs.util
  File /usr/local/lib/python2.7/site-packages/zfs/util.py, line 31, in 
module
  import solaris.misc
  ImportError: No module named solaris.misc
  Exit 1

Am I missing smth? Looks like lib/pysolaris wasn't ported from onnv-gate.
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: Next ZFSv28 patchset ready for testing.

2010-12-15 Thread Anonymous
Anonymous swel...@gmail.com writes:

   $ zfs allow
   Traceback (most recent call last):
   File /usr/lib/zfs/pyzfs.py, line 35, in module
   import zfs.util
   File /usr/local/lib/python2.7/site-packages/zfs/util.py, line 31, in 
 module
   import solaris.misc
   ImportError: No module named solaris.misc
   Exit 1

 Am I missing smth? Looks like lib/pysolaris wasn't ported from onnv-gate.

Doh, it's likely my install is broken, I think it worked before with
previous ZFSv28 patch.
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


RE: Next ZFSv28 patchset ready for testing.

2010-12-15 Thread Chris Forgeron
I've installed and complied it on 9-Current 2010.12.12, looks to be running 
fine.

I've imported a v15 6 disk raidz that was created under 8.1-Stable, and so far 
it's passing all tests.

I'll be doing some serious Send/Receive testing in the next few days, so I'll 
see if I can break it. 

I'll also be upgrading the v15 fs to v28 and testing it further, as well as 
creating a fresh v28 pool, so I'll let you know how it goes. 


-Original Message-
From: owner-freebsd-curr...@freebsd.org 
[mailto:owner-freebsd-curr...@freebsd.org] On Behalf Of Pawel Jakub Dawidek
Sent: December-14-10 11:44 AM
To: Olivier Smedts
Cc: freebsd...@freebsd.org; freebsd-current@freebsd.org; Steven Hartland; 
m...@freebsd.org
Subject: Re: Next ZFSv28 patchset ready for testing.

On Tue, Dec 14, 2010 at 03:20:05PM +0100, Olivier Smedts wrote:
  make installworld
 
 That's what I wanted to do, and why I rebooted single-user on the new 
 kernel. But isn't the v13-v15 userland supposed to work with the v28 
 kernel ?

Yes, it is suppose to work. Exactly to be able to follow FreeBSD common upgrade 
path. Martin was working on this (CCed).

-- 
Pawel Jakub Dawidek   http://www.wheelsystems.com
p...@freebsd.org   http://www.FreeBSD.org
FreeBSD committer Am I Evil? Yes, I Am!
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: Next ZFSv28 patchset ready for testing.

2010-12-15 Thread ben wilber
On Mon, Dec 13, 2010 at 10:45:56PM +0100, Pawel Jakub Dawidek wrote:
 Hi.
 
 The new patchset is ready for testing:

Running fine for 24 hours now under load with a ~50 disk v15 (not
upgraded) pool from -CURRENT.  Thanks!

Only strange thing is the rc script complains:

/etc/rc: DEBUG: run_rc_command: doit: zvol_start 
unrecognized command 'volinit'
usage: zfs command args ...

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


Re: Next ZFSv28 patchset ready for testing.

2010-12-15 Thread Pawel Jakub Dawidek
On Wed, Dec 15, 2010 at 10:15:00PM -0500, ben wilber wrote:
 On Mon, Dec 13, 2010 at 10:45:56PM +0100, Pawel Jakub Dawidek wrote:
  Hi.
  
  The new patchset is ready for testing:
 
 Running fine for 24 hours now under load with a ~50 disk v15 (not
 upgraded) pool from -CURRENT.  Thanks!
 
 Only strange thing is the rc script complains:
 
 /etc/rc: DEBUG: run_rc_command: doit: zvol_start 
 unrecognized command 'volinit'
 usage: zfs command args ...

Did you run mergemaster(8) after the upgrade? The patch includes change
to etc/rc.d/zvol to remove 'zfs volinit'/'zfs volfini' which are no
longer available.

-- 
Pawel Jakub Dawidek   http://www.wheelsystems.com
p...@freebsd.org   http://www.FreeBSD.org
FreeBSD committer Am I Evil? Yes, I Am!


pgp7c4gzudIbP.pgp
Description: PGP signature


Re: Next ZFSv28 patchset ready for testing.

2010-12-14 Thread Olivier Smedts
2010/12/13 Pawel Jakub Dawidek p...@freebsd.org:
 Hi.

 The new patchset is ready for testing:

        http://people.freebsd.org/~pjd/patches/zfs_20101212.patch.bz2

 When applying the patch be sure to use correct options for patch(1)!:

        # cd /usr/src
        # fetch http://people.freebsd.org/~pjd/patches/zfs_20101212.patch.bz2
        # bzip2 -d zfs_20101212.patch.bz2
        # patch -E -p0  zfs_20101212.patch

 The patch is against FreeBSD HEAD as of 2010-12-12.

Is it Christmas already ? Thanks ! :)


 Some of the changes since the last patchset (zfs_20100831.patch):

 - Boot support for ZFS v28 (only RAIDZ3 is not yet supported).
 - Various fixes for the existing ZFS boot code.
 - Support for sendfile(2) (by avg@).
 - Userland-kernel compatibility with v13-v15 (by mm@).

I tried it on my 8-STABLE box (root zpool v15 on 2 mirrored vdevs with
an usb l2 cache). I checked-out CURRENT sources with svn, applied the
patch (it applied cleanly). Did not modify kernel config (no
debugging) or make.conf. buildworld, buildkernel, installkernel
INSTKERNNAME=CURRENT and rebooted in single-user mode with
kernel=CURRENT. No problem so far, the kernel displayed the good
freebsd/zpool/zfs version numbers, and it booted correctly in
single-user mode. But I had problems with userland v15 :
# mount
tank/freebsd on / (zfs, local, noatime, read-only)
devfs on /dev (devfs, local)
# zpool status
Assertion failed: (nvlist_lookup_uint64_array(nvroot,
ZPOOL_CONFIG_STATS, (uint64_t **)vs, vsc) == 0), file
/usr/src/cddl/lib/libzfs/../../../cddl/contrib/opensolaris/lib/libzfs/common/libzfs_status.c,
line 181.
pid 20 (zpool), uid 0: exited on signal 6
Abort trap

Am I missing something ?

 - ACL fixes (by trasz@).
 - Various bug fixes.

 Please test, test, test. Chances are this is the last patchset before
 v28 going to HEAD (finally). Especially test new changes, like boot
 support and sendfile(2) support. Also be sure to verify if you can
 import for existing ZFS pools (v13-v15) when running v28 or boot from
 your existing pools.

 Enjoy!

 PS. Martin (mm@) will be providing patch against 8-STABLE soon.

 --
 Pawel Jakub Dawidek                       http://www.wheelsystems.com
 p...@freebsd.org                           http://www.FreeBSD.org
 FreeBSD committer                         Am I Evil? Yes, I Am!


Cheers

-- 
Olivier Smedts                                                 _
                                        ASCII ribbon campaign ( )
e-mail: oliv...@gid0.org        - against HTML email  vCards  X
www: http://www.gid0.org    - against proprietary attachments / \

  Il y a seulement 10 sortes de gens dans le monde :
  ceux qui comprennent le binaire,
  et ceux qui ne le comprennent pas.
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: Next ZFSv28 patchset ready for testing.

2010-12-14 Thread Steven Hartland
- Original Message - 
From: Olivier Smedts oliv...@gid0.org



I tried it on my 8-STABLE box (root zpool v15 on 2 mirrored vdevs with
an usb l2 cache). I checked-out CURRENT sources with svn, applied the
patch (it applied cleanly). Did not modify kernel config (no
debugging) or make.conf. buildworld, buildkernel, installkernel
INSTKERNNAME=CURRENT and rebooted in single-user mode with
kernel=CURRENT. No problem so far, the kernel displayed the good
freebsd/zpool/zfs version numbers, and it booted correctly in
single-user mode. But I had problems with userland v15 :
# mount
tank/freebsd on / (zfs, local, noatime, read-only)
devfs on /dev (devfs, local)
# zpool status
Assertion failed: (nvlist_lookup_uint64_array(nvroot,
ZPOOL_CONFIG_STATS, (uint64_t **)vs, vsc) == 0), file
/usr/src/cddl/lib/libzfs/../../../cddl/contrib/opensolaris/lib/libzfs/common/libzfs_status.c,
line 181.
pid 20 (zpool), uid 0: exited on signal 6
Abort trap

Am I missing something ?


build and install world?
cd /usr/src
make buildworld
make installworld

   Regards
   Steve


This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. 


In the event of misdirection, illegible or incomplete transmission please 
telephone +44 845 868 1337
or return the E.mail to postmas...@multiplay.co.uk.

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


Re: Next ZFSv28 patchset ready for testing.

2010-12-14 Thread Olivier Smedts
2010/12/14 Steven Hartland kill...@multiplay.co.uk:
 - Original Message - From: Olivier Smedts oliv...@gid0.org

 I tried it on my 8-STABLE box (root zpool v15 on 2 mirrored vdevs with
 an usb l2 cache). I checked-out CURRENT sources with svn, applied the
 patch (it applied cleanly). Did not modify kernel config (no
 debugging) or make.conf. buildworld, buildkernel, installkernel
 INSTKERNNAME=CURRENT and rebooted in single-user mode with
 kernel=CURRENT. No problem so far, the kernel displayed the good
 freebsd/zpool/zfs version numbers, and it booted correctly in
 single-user mode. But I had problems with userland v15 :
 # mount
 tank/freebsd on / (zfs, local, noatime, read-only)
 devfs on /dev (devfs, local)
 # zpool status
 Assertion failed: (nvlist_lookup_uint64_array(nvroot,
 ZPOOL_CONFIG_STATS, (uint64_t **)vs, vsc) == 0), file

 /usr/src/cddl/lib/libzfs/../../../cddl/contrib/opensolaris/lib/libzfs/common/libzfs_status.c,
 line 181.
 pid 20 (zpool), uid 0: exited on signal 6
 Abort trap

 Am I missing something ?

 build and install world?
 cd /usr/src
 make buildworld

Already done, before buildkernel as usual.

 make installworld

That's what I wanted to do, and why I rebooted single-user on the new
kernel. But isn't the v13-v15 userland supposed to work with the v28
kernel ?
 - Userland-kernel compatibility with v13-v15 (by mm@).



   Regards
   Steve

 
 This e.mail is private and confidential between Multiplay (UK) Ltd. and the
 person or entity to whom it is addressed. In the event of misdirection, the
 recipient is prohibited from using, copying, printing or otherwise
 disseminating it or any information contained in it.
 In the event of misdirection, illegible or incomplete transmission please
 telephone +44 845 868 1337
 or return the E.mail to postmas...@multiplay.co.uk.


-- 
Olivier Smedts                                                 _
                                        ASCII ribbon campaign ( )
e-mail: oliv...@gid0.org        - against HTML email  vCards  X
www: http://www.gid0.org    - against proprietary attachments / \

  Il y a seulement 10 sortes de gens dans le monde :
  ceux qui comprennent le binaire,
  et ceux qui ne le comprennent pas.
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: Next ZFSv28 patchset ready for testing.

2010-12-14 Thread Steven Hartland
- Original Message - 
From: Olivier Smedts oliv...@gid0.org



make installworld

That's what I wanted to do, and why I rebooted single-user on the new
kernel. But isn't the v13-v15 userland supposed to work with the v28
kernel ?


Not if you have just upgrade from 8-STABLE to Current.

   Regards
   Steve


This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. 


In the event of misdirection, illegible or incomplete transmission please 
telephone +44 845 868 1337
or return the E.mail to postmas...@multiplay.co.uk.

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


Re: Next ZFSv28 patchset ready for testing.

2010-12-14 Thread Pawel Jakub Dawidek
On Tue, Dec 14, 2010 at 03:20:05PM +0100, Olivier Smedts wrote:
  make installworld
 
 That's what I wanted to do, and why I rebooted single-user on the new
 kernel. But isn't the v13-v15 userland supposed to work with the v28
 kernel ?

Yes, it is suppose to work. Exactly to be able to follow FreeBSD common
upgrade path. Martin was working on this (CCed).

-- 
Pawel Jakub Dawidek   http://www.wheelsystems.com
p...@freebsd.org   http://www.FreeBSD.org
FreeBSD committer Am I Evil? Yes, I Am!


pgpCsgsK8Mp9u.pgp
Description: PGP signature


Re: Next ZFSv28 patchset ready for testing.

2010-12-14 Thread Olivier Smedts
2010/12/14 Pawel Jakub Dawidek p...@freebsd.org:
 On Tue, Dec 14, 2010 at 03:20:05PM +0100, Olivier Smedts wrote:
  make installworld

 That's what I wanted to do, and why I rebooted single-user on the new
 kernel. But isn't the v13-v15 userland supposed to work with the v28
 kernel ?

 Yes, it is suppose to work. Exactly to be able to follow FreeBSD common
 upgrade path. Martin was working on this (CCed).

Ok, glad to hear that.

FYI, with the patched 9-CURRENT kernel in single user mode and the
8-STABLE world, I could zfs list, zfs list -t snapshot, zfs mount
-a and zfs unmount -a ; those zfs commands worked properly. I only
had problems with the zpool command (see previous mails for the error
message). It was not necessary for the upgrade path, and I was able to
make installworld, but I first wanted to see if the pool reported
problems.

With the 9-CURRENT world, all is working properly since 2 hours.
Desktop/workstation use on an Intel 8-core (4 real with HTT), 4GB RAM,
ATI RadeonHD. KDE with compositing, firefox and thunderbird are
running fine. No ZFS debug messages except mount_snapshot. I left the
few 8-STABLE old libraries, and did not upgrade the pool or the
filesystems. Don't want to try that on a production desktop machine
until it's safer :)

Cheers

-- 
Olivier Smedts                                                 _
                                        ASCII ribbon campaign ( )
e-mail: oliv...@gid0.org        - against HTML email  vCards  X
www: http://www.gid0.org    - against proprietary attachments / \

  Il y a seulement 10 sortes de gens dans le monde :
  ceux qui comprennent le binaire,
  et ceux qui ne le comprennent pas.
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: Next ZFSv28 patchset ready for testing.

2010-12-14 Thread Martin Matuska
Thanks for the notice.

I have found the cause of this error (wrong constants), tested the code
in both directions again (v15-v28 and v28-v15) + fixed it in perforce.

Bugfix patch (apply after pjd's patch):
http://people.freebsd.org/~mm/patches/zfs/v28/head-zfs_ioctl_compat.c.patch

Dňa 14.12.2010 16:44, Pawel Jakub Dawidek  wrote / napísal(a):
 On Tue, Dec 14, 2010 at 03:20:05PM +0100, Olivier Smedts wrote:
 make installworld
 That's what I wanted to do, and why I rebooted single-user on the new
 kernel. But isn't the v13-v15 userland supposed to work with the v28
 kernel ?
 Yes, it is suppose to work. Exactly to be able to follow FreeBSD common
 upgrade path. Martin was working on this (CCed).

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


Next ZFSv28 patchset ready for testing.

2010-12-13 Thread Pawel Jakub Dawidek
Hi.

The new patchset is ready for testing:

http://people.freebsd.org/~pjd/patches/zfs_20101212.patch.bz2

When applying the patch be sure to use correct options for patch(1)!:

# cd /usr/src
# fetch http://people.freebsd.org/~pjd/patches/zfs_20101212.patch.bz2
# bzip2 -d zfs_20101212.patch.bz2
# patch -E -p0  zfs_20101212.patch

The patch is against FreeBSD HEAD as of 2010-12-12.

Some of the changes since the last patchset (zfs_20100831.patch):

- Boot support for ZFS v28 (only RAIDZ3 is not yet supported).
- Various fixes for the existing ZFS boot code.
- Support for sendfile(2) (by avg@).
- Userland-kernel compatibility with v13-v15 (by mm@).
- ACL fixes (by trasz@).
- Various bug fixes.

Please test, test, test. Chances are this is the last patchset before
v28 going to HEAD (finally). Especially test new changes, like boot
support and sendfile(2) support. Also be sure to verify if you can
import for existing ZFS pools (v13-v15) when running v28 or boot from
your existing pools.

Enjoy!

PS. Martin (mm@) will be providing patch against 8-STABLE soon.

-- 
Pawel Jakub Dawidek   http://www.wheelsystems.com
p...@freebsd.org   http://www.FreeBSD.org
FreeBSD committer Am I Evil? Yes, I Am!


pgptzjMdmsjno.pgp
Description: PGP signature


Re: Next ZFSv28 patchset ready for testing.

2010-12-13 Thread Pawel Jakub Dawidek
On Mon, Dec 13, 2010 at 10:45:56PM +0100, Pawel Jakub Dawidek wrote:
 Hi.
 
 The new patchset is ready for testing:
 
   http://people.freebsd.org/~pjd/patches/zfs_20101212.patch.bz2
 
 When applying the patch be sure to use correct options for patch(1)!:
 
   # cd /usr/src
   # fetch http://people.freebsd.org/~pjd/patches/zfs_20101212.patch.bz2
   # bzip2 -d zfs_20101212.patch.bz2
   # patch -E -p0  zfs_20101212.patch
[...]

If patch(1) reports reject of sys/cddl/compat/opensolaris/sys/sysmacros.h
file or you see the following error while compiling world:

/usr/src/cddl/usr.bin/ctfconvert/../../../cddl/contrib/opensolaris/tools/ctf/cvt/strtab.c:249:
 undefined reference to `MIN'
strtab.o(.text+0x28d): In function `strtab_insert':
/usr/src/cddl/usr.bin/ctfconvert/../../../cddl/contrib/opensolaris/tools/ctf/cvt/strtab.c:119:
 undefined reference to `MIN'
strtab.o(.text+0x3a1):/usr/src/cddl/usr.bin/ctfconvert/../../../cddl/contrib/opensolaris/tools/ctf/cvt/strtab.c:145:
 undefined reference to `MIN'
*** Error code 1

Simple remove sys/cddl/compat/opensolaris/sys/sysmacros.h file from the tree.

Unfortunately the patch can either works on source downloaded via cvsup or on
the source downloaded via subversion as those two have different $FreeBSD$ id
strings (at least in case of this file). The patch is generated based on
subversion source, so if you use cvsup, you most likely will see the reject and
the error.

-- 
Pawel Jakub Dawidek   http://www.wheelsystems.com
p...@freebsd.org   http://www.FreeBSD.org
FreeBSD committer Am I Evil? Yes, I Am!


pgp46myIfopSX.pgp
Description: PGP signature


Re: Next ZFSv28 patchset ready for testing.

2010-12-13 Thread Pawel Jakub Dawidek
On Mon, Dec 13, 2010 at 10:45:56PM +0100, Pawel Jakub Dawidek wrote:
 Hi.
 
 The new patchset is ready for testing:
 
   http://people.freebsd.org/~pjd/patches/zfs_20101212.patch.bz2

You can also download the whole source tree already patched from here:

http://people.freebsd.org/~pjd/zfs_20101212.tbz

-- 
Pawel Jakub Dawidek   http://www.wheelsystems.com
p...@freebsd.org   http://www.FreeBSD.org
FreeBSD committer Am I Evil? Yes, I Am!


pgpJ41aQDwAYd.pgp
Description: PGP signature


Re: Next ZFSv28 patchset ready for testing.

2010-12-13 Thread Pawel Jakub Dawidek
On Mon, Dec 13, 2010 at 11:00:31PM -, Steven Hartland wrote:
 What's the expected behaviour for the sendfile changes as
 sendfile is one of the problems we have here with the
 double memory allocation required for it under ZFS compared
 to UFS. Does this patch address that?

No. The patch doesn't address that. It only adds support for
sendfile(2), as it was commented out in the previous patchset.

 Inspecting the patch the following segment looks odd:-
 --- sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c.orig
 +++ sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c
 ...
while (n  0) {
nbytes = MIN(n, zfs_read_chunk_size -
P2PHASE(uio-uio_loffset, zfs_read_chunk_size));
 
 +#ifdef __FreeBSD__
 +   if (uio-uio_segflg == UIO_NOCOPY)
 +   error = mappedread_sf(vp, nbytes, uio);
 +   else
 +#endif /* __FreeBSD__ */
if (vn_has_cached_data(vp))
error = mappedread(vp, nbytes, uio);
else
 
 Is there an extra else in there which will break things or should
 the __FreeBSD__ mappedread_sf block replace the standard mappedread
 call or is the indentation just a bit weird?

The code is correct. It is just hard to split 'else' and 'if' with a
'#endif' and keep the indentation pretty. Depends on the conditions we
use one of the three methods to read the data.

-- 
Pawel Jakub Dawidek   http://www.wheelsystems.com
p...@freebsd.org   http://www.FreeBSD.org
FreeBSD committer Am I Evil? Yes, I Am!


pgpSKGrAP0AYX.pgp
Description: PGP signature