[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-users] XEN, FreeBSD domU, 3TB hard drive seen as 746GB


  • To: xen-users@xxxxxxxxxxxxx
  • From: Stefano Rossi <ste@xxxxxxxxxxxxxxx>
  • Date: Thu, 4 Apr 2013 14:32:11 +0200
  • Delivery-date: Thu, 04 Apr 2013 12:42:50 +0000
  • List-id: Xen user discussion <xen-users.lists.xen.org>

Hello,

I am running Debian stable as dom0 and FreeBSD 9.0 as domU. The machine does 
not have VT-x, so it's running in paravirtualization.

This is the virtual machine configuration file:
        name = "freebsd" 
        kernel = "/boot/kfreebsd-9.0-2-xen.gz" 
        extra = "vfs.root.mountfrom=ufs:/dev/ad0p2" 
        memory = 128
        vif=[ 'bridge=xenbr0' ]
        disk = [
                "file:/var/xen/freebsd.img,hda,w",
                "phy:/dev/sdb,sda,r"
        ]

I'm trying to "attach" an internal 3TB drive (/dev/sdb), but FreeBSD recognizes 
it as 764436MB. This is what appears during the boot (FreeBSD shows it for 
every hard drive, but in this case it reports the wrong size):
        xbd1: 764436MB <Virtual Block Device> at device/vbd/2048 on 
xenbusb_front0
        xbd1: attaching as da0

It then complains that the GPT is corrupt, probably because it's only seeing 
part of the drive:
        GEOM: da0: corrupt or invalid GPT detected.
        GEOM: da0: GPT rejected -- may not be recoverable.

Do you have any idea about how to fix it?
Thanks.


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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.