Bug 216556
Summary: | Virtual disk size wraps around at 2 TB mark | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 5 | Reporter: | Daniel Berrangé <berrange> | ||||||||
Component: | kernel-xen | Assignee: | Rik van Riel <riel> | ||||||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | |||||||||
Severity: | high | Docs Contact: | |||||||||
Priority: | high | ||||||||||
Version: | 5.0 | CC: | xen-maint | ||||||||
Target Milestone: | --- | ||||||||||
Target Release: | --- | ||||||||||
Hardware: | i686 | ||||||||||
OS: | Linux | ||||||||||
Whiteboard: | |||||||||||
Fixed In Version: | 5.0.0 | Doc Type: | Bug Fix | ||||||||
Doc Text: | Story Points: | --- | |||||||||
Clone Of: | Environment: | ||||||||||
Last Closed: | 2007-01-26 20:45:38 UTC | Type: | --- | ||||||||
Regression: | --- | Mount Type: | --- | ||||||||
Documentation: | --- | CRM: | |||||||||
Verified Versions: | Category: | --- | |||||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||||
Embargoed: | |||||||||||
Bug Depends On: | 216555 | ||||||||||
Bug Blocks: | 217580 | ||||||||||
Attachments: |
|
Description
Daniel Berrangé
2006-11-21 01:34:58 UTC
Created attachment 141715 [details]
Script to create huge block devices with device mapper trickery
The attached script is useful for reproducing the problems.
First create a data file to store the actual data, say 10 GB in size
* dd if=/dev/null of=/xen/scratch.img bs=1 count=0 seek=10GB
Setup as loop device
* losetup /dev/loop0 /xen/scratch.img
Now, create a huge (5 TB) device backed by this small file
* sparse_create xenhuge /dev/loop0 $(echo 2000*1000*1000*5 | bc)
Then, add
'phy:/dev/mapper/xenhuge,xvdb,w'
to the disk section of an existing guest.
Finally boot the guest & compare /proc/partitions for this device in the Dom0 &
DomU.
This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux major release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux Major release. This request is not yet committed for inclusion. Patch added in xen-unstable http://xenbits.xensource.com/xen-unstable.hg?cs=0c0ef61de06b I have tested the patch listed in comment #3 and confirmed it fixes operation of file: and phy: backed disks > 2 TB in size. It does not, however, fix tap:aio: backed disks. Created attachment 141846 [details]
Patch to fix large blktap disks
This additional patch fixes blktap based disks which are > 2TB
Please post for ACKs QE ack for RHEL5. Created attachment 142572 [details]
Patch to fix blkback driver handling of > 2tb disk
The equivalent userspace blktap patches are tracked in a separate bug 217580 in 2.6.18-1.2817.el5 2.6.18-7.el5 included in 20070125.0. |