WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] iscsi initiator on PV DomU problem

To: Longina Przybyszewska <longina@xxxxxxxxxxxx>
Subject: Re: [Xen-users] iscsi initiator on PV DomU problem
From: "Fajar A. Nugraha" <fajar@xxxxxxxxx>
Date: Mon, 9 Mar 2009 20:30:07 +0700
Cc: Xen mailinglist <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Mon, 09 Mar 2009 06:30:48 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <alpine.DEB.2.00.0903091310540.26396@xxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <alpine.DEB.2.00.0903091310540.26396@xxxxxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
On Mon, Mar 9, 2009 at 7:56 PM, Longina Przybyszewska
<longina@xxxxxxxxxxxx> wrote:
> I have got 300gb iscsi target ( residence on SAN ) which should be directly
> bound to domU.
> (DomU: PV Ubuntu Hardy Linux 2.6.24-19-xen, Dom0: UbuntuHardy Linux
> 2.6-24-22-xen).

First of all, I believe you'd get better performance if the initiator
is on dom0 instead of domU.

>
> It comes up as 500gb block device!

> ========
> attempt to access beyond end of device
> sda: rw=0, want=976639545, limit=629147647
> ========

It means domU correctly recognize the block device as 629147647
sectors of 512-bytes long (300GB), but it was asked to get sector
number 976639545.

>
> cfdisk /dev/sda : "Fatal Error: Bad primary partition 0: Partition ends
> after end-of-disk"
>
> cfdisk /dev/sda1 : "Disk Driver /dev/sda1, size 500,0 Gb free space"
> Then I kan make primary  paritions assigned name /dev/sda1p1, /dev/sda1p2.
>

Probably because there's already a partition table on that block
device, and it's messed up (maybe because the block the device was
used previously, and then shrinked).

What does "cat /proc/partitions" and "fdisk -l /dev/sda" shows?

If it is indeed messed up partition table, you can use fdisk's extra
functionality to change the number of heads, sectors/tracks, or
cylinders.

If it's a blank target with MBR partition, zeroing the first 512-byte
of the disk (with dd or whatever) should erase existing partition
table and let fdisk work out reasonable parameters. If it's GPT
parition though things can get a little more complicated :)

Regards,

Fajar

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users