xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* Re: Xen and 4K Sectors (was blkback and bcache)
@ 2012-08-28 21:21 Jonathan Tripathy
  2012-08-29  7:00 ` James Harper
  2012-08-29  7:28 ` Killian De Volder
  0 siblings, 2 replies; 6+ messages in thread
From: Jonathan Tripathy @ 2012-08-28 21:21 UTC (permalink / raw)
  To: xen-devel@lists.xen.org, James Harper


[-- Attachment #1.1: Type: text/plain, Size: 971 bytes --]

On Mon, Aug 13, 2012 at 01:25:07PM +0000, James Harper wrote:
>/  >/
>/  > I think the problem is definitely related to the 4K sector issue./
>/  >/
>/  > qemu appears to always present 512 byte sectors, thus only booting from a/
>/  > 512 byte sector partition table. Once the PV drivers take over though it all/
>/  > falls down because PV drivers are passed a 4K sector size and nothing/
>/  > matches up anymore./
>/  >

/Hi James,

I'm curious as to how you came to the conclusion that qemu always presents 512 byte sectors?
When using bcache formatted to a 4k sector size, Windows Server 2008 just flat out refuses to install...
This is true regardless of whether I'm passing an LV directly to the DomU (phy), or whether I'm using tap::aio or file.

When formatting the bcache to 512 byte size, Windows tries to install. I say "tries" as then my system kernel
panics and reboots, but that's a bcache issue (I've posted the trace to the bcache list).

Thanks

//




[-- Attachment #1.2: Type: text/html, Size: 1607 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread
* Xen and 4K Sectors (was blkback and bcache)
@ 2012-08-13 13:16 James Harper
  2012-08-13 13:25 ` James Harper
  0 siblings, 1 reply; 6+ messages in thread
From: James Harper @ 2012-08-13 13:16 UTC (permalink / raw)
  To: xen-devel@lists.xen.org

I think the problem is definitely related to the 4K sector issue.

qemu appears to always present 512 byte sectors, thus only booting from a 512 byte sector partition table. Once the PV drivers take over though it all falls down because PV drivers are passed a 4K sector size and nothing matches up anymore.

What is the solution here? Do I just tell windows that we have a 512 byte sector and put up with the potential loss of performance?

Thanks

James

> -----Original Message-----
> From: xen-devel-bounces@lists.xen.org [mailto:xen-devel-
> bounces@lists.xen.org] On Behalf Of James Harper
> Sent: Monday, 13 August 2012 5:17 PM
> To: xen-devel@lists.xen.org
> Subject: [Xen-devel] blkback and bcache
> 
> I'm having trouble using blkback under gplpv when the disk is on top of a
> bcache device. My devices are layered as follows:
> 
> /dev/sd[ab]
> md0 (RAID1)
> bcache
> lvm
> 
> It seems that bcache presents a 4K sector size to Linux, which is then
> reflected by lvm and in turn blkback.
> 
> Obviously GPLPV isn't handling 4K sectors correctly... any suggestions as to
> what I might need to do to make this work properly? As a last resort I should
> be able to fake 512 byte sectors to Windows but would prefer that Windows
> knew it was dealing with a device with 4K sectors underneath.
> 
> Thanks
> 
> James
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-08-29  7:28 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-28 21:21 Xen and 4K Sectors (was blkback and bcache) Jonathan Tripathy
2012-08-29  7:00 ` James Harper
2012-08-29  7:28 ` Killian De Volder
  -- strict thread matches above, loose matches on Subject: below --
2012-08-13 13:16 James Harper
2012-08-13 13:25 ` James Harper
2012-08-13 18:43   ` Pasi Kärkkäinen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).