Re: ZFS boot inside on the second partition inside a slice

2011-06-22 Thread Henri Hennebert
On 06/21/2011 23:27, John Baldwin wrote: On Tuesday, June 21, 2011 4:13:20 pm Henri Hennebert wrote: On 06/21/2011 21:25, John Baldwin wrote: and I get: Read error: 04 Hmm, that is the error for an invalid sector. Try this patch. It reshuffles a few more things and adds code to dump the

Re: ZFS boot inside on the second partition inside a slice

2011-06-22 Thread John Baldwin
On Wednesday, June 22, 2011 7:34:05 am Henri Hennebert wrote: I get LBA: 8200 Read error: 04 Odd. Oh, I fubar'd and read the wrong thing for the sector. Also, we should leave the EDD packet on the stack so it doesn't get trashed by calling hex8, etc. Please try this: Index: zfsldr.S

Re: ZFS boot inside on the second partition inside a slice

2011-06-22 Thread Henri Hennebert
On 06/22/2011 16:19, Henri Hennebert wrote: On 06/22/2011 15:57, John Baldwin wrote: On Wednesday, June 22, 2011 7:34:05 am Henri Hennebert wrote: I get LBA: 8200 Read error: 04 Odd. Oh, I fubar'd and read the wrong thing for the sector. Also, we should leave the EDD packet on the stack

Re: ZFS boot inside on the second partition inside a slice

2011-06-22 Thread Henri Hennebert
On 06/22/2011 15:57, John Baldwin wrote: On Wednesday, June 22, 2011 7:34:05 am Henri Hennebert wrote: I get LBA: 8200 Read error: 04 Odd. Oh, I fubar'd and read the wrong thing for the sector. Also, we should leave the EDD packet on the stack so it doesn't get trashed by calling hex8,

Re: ZFS boot inside on the second partition inside a slice

2011-06-22 Thread Henri Hennebert
On 06/22/2011 16:23, Henri Hennebert wrote: On 06/22/2011 16:19, Henri Hennebert wrote: On 06/22/2011 15:57, John Baldwin wrote: On Wednesday, June 22, 2011 7:34:05 am Henri Hennebert wrote: I get LBA: 8200 Read error: 04 Odd. Oh, I fubar'd and read the wrong thing for the sector.

Re: ZFS boot inside on the second partition inside a slice

2011-06-22 Thread John Baldwin
On Wednesday, June 22, 2011 10:23:22 am Henri Hennebert wrote: On 06/22/2011 16:19, Henri Hennebert wrote: This time: LBA: 3c802308 Read error: 04 This morning I was reading the code (I'm in Belgium) and find that the previous LBA output was DAP+4 and so was the addr of the buffer.

Re: ZFS boot inside on the second partition inside a slice

2011-06-22 Thread Henri Hennebert
On 06/22/2011 17:58, John Baldwin wrote: Index: zfsldr.S === --- zfsldr.S(revision 223365) +++ zfsldr.S(working copy) @@ -16,7 +16,6 @@ */ /* Memory Locations */ - .set MEM_REL,0x700 #

Re: ZFS boot inside on the second partition inside a slice

2011-06-22 Thread John Baldwin
On Wednesday, June 22, 2011 12:48:43 pm Henri Hennebert wrote: No error message but a reboot... I add: loop main.6 # If not last, read another mov $msg_debug,%si call putstr mov $MEM_BTX,%si

Re: ZFS boot inside on the second partition inside a slice

2011-06-21 Thread Henri Hennebert
On 06/20/2011 15:51, John Baldwin wrote: On Saturday, June 18, 2011 5:04:07 am Henri Hennebert wrote: On 06/17/2011 19:37, John Baldwin wrote: On Friday, June 17, 2011 1:06:22 pm Henri Hennebert wrote: On 06/16/2011 19:35, John Baldwin wrote: On Thursday, June 16, 2011 8:45:41 am Zhihao Yuan

Re: ZFS boot inside on the second partition inside a slice

2011-06-21 Thread John Baldwin
On Tuesday, June 21, 2011 5:51:22 am Henri Hennebert wrote: On 06/20/2011 15:51, John Baldwin wrote: On Saturday, June 18, 2011 5:04:07 am Henri Hennebert wrote: On 06/17/2011 19:37, John Baldwin wrote: On Friday, June 17, 2011 1:06:22 pm Henri Hennebert wrote: On 06/16/2011 19:35, John

Re: ZFS boot inside on the second partition inside a slice

2011-06-21 Thread Henri Hennebert
On 06/21/2011 15:01, John Baldwin wrote: Index: zfsldr.S === --- zfsldr.S(revision 223339) +++ zfsldr.S(working copy) @@ -234,9 +234,12 @@ nread.1: xor %ecx,%ecx # Get callw read

Re: ZFS boot inside on the second partition inside a slice

2011-06-21 Thread John Baldwin
On Tuesday, June 21, 2011 10:50:14 am Henri Hennebert wrote: On 06/21/2011 15:01, John Baldwin wrote: Index: zfsldr.S === --- zfsldr.S(revision 223339) +++ zfsldr.S(working copy) @@ -234,9 +234,12 @@

Re: ZFS boot inside on the second partition inside a slice

2011-06-21 Thread Henri Hennebert
On 06/21/2011 17:55, John Baldwin wrote: On Tuesday, June 21, 2011 10:50:14 am Henri Hennebert wrote: On 06/21/2011 15:01, John Baldwin wrote: Index: zfsldr.S === --- zfsldr.S(revision 223339) +++ zfsldr.S(working copy) @@

Re: ZFS boot inside on the second partition inside a slice

2011-06-21 Thread John Baldwin
On Tuesday, June 21, 2011 12:15:58 pm Henri Hennebert wrote: On 06/21/2011 17:55, John Baldwin wrote: On Tuesday, June 21, 2011 10:50:14 am Henri Hennebert wrote: On 06/21/2011 15:01, John Baldwin wrote: Index: zfsldr.S ===

Re: ZFS boot inside on the second partition inside a slice

2011-06-21 Thread Henri Hennebert
On 06/21/2011 19:51, John Baldwin wrote: On Tuesday, June 21, 2011 12:15:58 pm Henri Hennebert wrote: On 06/21/2011 17:55, John Baldwin wrote: On Tuesday, June 21, 2011 10:50:14 am Henri Hennebert wrote: On 06/21/2011 15:01, John Baldwin wrote: Index: zfsldr.S

Re: ZFS boot inside on the second partition inside a slice

2011-06-21 Thread John Baldwin
On Tuesday, June 21, 2011 3:02:28 pm Henri Hennebert wrote: On 06/21/2011 19:51, John Baldwin wrote: On Tuesday, June 21, 2011 12:15:58 pm Henri Hennebert wrote: On 06/21/2011 17:55, John Baldwin wrote: On Tuesday, June 21, 2011 10:50:14 am Henri Hennebert wrote: On 06/21/2011 15:01, John

Re: ZFS boot inside on the second partition inside a slice

2011-06-21 Thread Henri Hennebert
On 06/21/2011 21:25, John Baldwin wrote: On Tuesday, June 21, 2011 3:02:28 pm Henri Hennebert wrote: On 06/21/2011 19:51, John Baldwin wrote: On Tuesday, June 21, 2011 12:15:58 pm Henri Hennebert wrote: On 06/21/2011 17:55, John Baldwin wrote: On Tuesday, June 21, 2011 10:50:14 am Henri

Re: ZFS boot inside on the second partition inside a slice

2011-06-21 Thread John Baldwin
On Tuesday, June 21, 2011 4:13:20 pm Henri Hennebert wrote: On 06/21/2011 21:25, John Baldwin wrote: and I get: Read error: 04 Hmm, that is the error for an invalid sector. Try this patch. It reshuffles a few more things and adds code to dump the low 32-bits of the LBA on an error: Index:

Re: ZFS boot inside on the second partition inside a slice

2011-06-20 Thread John Baldwin
On Saturday, June 18, 2011 5:04:07 am Henri Hennebert wrote: On 06/17/2011 19:37, John Baldwin wrote: On Friday, June 17, 2011 1:06:22 pm Henri Hennebert wrote: On 06/16/2011 19:35, John Baldwin wrote: On Thursday, June 16, 2011 8:45:41 am Zhihao Yuan wrote: Exactly. The MFCed ZFSv28 is

Re: ZFS boot inside on the second partition inside a slice

2011-06-20 Thread Zhihao Yuan
I finally redo everything with GPT-based solution. At the same time, I found a problem with zpool.cache and I fixed with: http://forums.freebsd.org/showthread.php?t=4185 zpool.cache will be changed after you exported the zpool... Anyway, now I'm OK with my freebsd-only box, again. On Fri, Jun 17,

Re: ZFS boot inside on the second partition inside a slice

2011-06-17 Thread Henri Hennebert
On 06/16/2011 19:35, John Baldwin wrote: On Thursday, June 16, 2011 8:45:41 am Zhihao Yuan wrote: Exactly. The MFCed ZFSv28 is different from any patch maintained by mm@. Maybe some untested changes involved. Can you try reverting this change: Author: jhb Date: Thu Apr 28 17:44:24 2011

Re: ZFS boot inside on the second partition inside a slice

2011-06-17 Thread John Baldwin
On Friday, June 17, 2011 1:06:22 pm Henri Hennebert wrote: On 06/16/2011 19:35, John Baldwin wrote: On Thursday, June 16, 2011 8:45:41 am Zhihao Yuan wrote: Exactly. The MFCed ZFSv28 is different from any patch maintained by mm@. Maybe some untested changes involved. Can you try

Re: ZFS boot inside on the second partition inside a slice

2011-06-17 Thread Zhihao Yuan
If this problem can not be solved, I probably have to redo everything to use GPT-based solution and lose my Windows. On Fri, Jun 17, 2011 at 12:37 PM, John Baldwin j...@freebsd.org wrote: On Friday, June 17, 2011 1:06:22 pm Henri Hennebert wrote: On 06/16/2011 19:35, John Baldwin

Re: ZFS boot inside on the second partition inside a slice

2011-06-16 Thread Henri Hennebert
On 06/16/2011 07:32, Zhihao Yuan wrote: I just redo everything, and changed the order of freebsd-zfs and freebsd-swap. The Read error still happens! Just a me too. Everything was working great with zfsboot from 8.2-RELEASE + a patch (http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/153552).

Re: ZFS boot inside on the second partition inside a slice

2011-06-16 Thread Zhihao Yuan
Exactly. The MFCed ZFSv28 is different from any patch maintained by mm@. Maybe some untested changes involved. On Thu, Jun 16, 2011 at 7:36 AM, Henri Hennebert h...@restart.be wrote: On 06/16/2011 07:32, Zhihao Yuan wrote: I just redo everything, and changed the order of freebsd-zfs and

Re: ZFS boot inside on the second partition inside a slice

2011-06-16 Thread John Baldwin
On Thursday, June 16, 2011 8:45:41 am Zhihao Yuan wrote: Exactly. The MFCed ZFSv28 is different from any patch maintained by mm@. Maybe some untested changes involved. Can you try reverting this change: Author: jhb Date: Thu Apr 28 17:44:24 2011 New Revision: 221177 URL:

Re: ZFS boot inside on the second partition inside a slice

2011-06-16 Thread Zhihao Yuan
I wish I can get a binary version... Because I have no working FreeBSD box now On Thu, Jun 16, 2011 at 12:35 PM, John Baldwin j...@freebsd.org wrote: On Thursday, June 16, 2011 8:45:41 am Zhihao Yuan wrote: Exactly. The MFCed ZFSv28 is different from any patch maintained by mm@. Maybe some

Re: ZFS boot inside on the second partition inside a slice

2011-06-16 Thread Henri Hennebert
On 06/16/2011 19:35, John Baldwin wrote: On Thursday, June 16, 2011 8:45:41 am Zhihao Yuan wrote: Exactly. The MFCed ZFSv28 is different from any patch maintained by mm@. Maybe some untested changes involved. Can you try reverting this change: Author: jhb Date: Thu Apr 28 17:44:24 2011 New

ZFS boot inside on the second partition inside a slice

2011-06-15 Thread Zhihao Yuan
Hi, I configured my disk layout according to http://wiki.freebsd.org/RootOnZFS/ZFSBootPartition But I swapped the order of the freebsd-zfs and freebsd-swap. The 4.0G freebsd-swap partition appears first inside the slice. After that, I write zfsboot on both ada0s2 and ada0s2b, but the boot0 gives

Re: ZFS boot inside on the second partition inside a slice

2011-06-15 Thread Xin LI
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 06/15/11 17:42, Zhihao Yuan wrote: Hi, I configured my disk layout according to http://wiki.freebsd.org/RootOnZFS/ZFSBootPartition But I swapped the order of the freebsd-zfs and freebsd-swap. The 4.0G freebsd-swap partition appears first

Re: ZFS boot inside on the second partition inside a slice

2011-06-15 Thread Zhihao Yuan
On Wed, Jun 15, 2011 at 7:58 PM, Xin LI delp...@delphij.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 06/15/11 17:42, Zhihao Yuan wrote: Hi, I configured my disk layout according to http://wiki.freebsd.org/RootOnZFS/ZFSBootPartition But I swapped the order of the

Re: ZFS boot inside on the second partition inside a slice

2011-06-15 Thread Zhihao Yuan
I just redo everything, and changed the order of freebsd-zfs and freebsd-swap. The Read error still happens! On Wed, Jun 15, 2011 at 8:07 PM, Zhihao Yuan lich...@gmail.com wrote: On Wed, Jun 15, 2011 at 7:58 PM, Xin LI delp...@delphij.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256