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: "Fajar A. Nugraha" <fajar@xxxxxxxxx>
Subject: Re: [Xen-users] iscsi initiator on PV DomU problem
From: Longina Przybyszewska <longina@xxxxxxxxxxxx>
Date: Mon, 9 Mar 2009 16:38:23 +0100 (CET)
Cc: Xen mailinglist <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Mon, 09 Mar 2009 08:35:51 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <7207d96f0903090630w228adabm116e63a3634e2cf3@xxxxxxxxxxxxxx>
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> <7207d96f0903090630w228adabm116e63a3634e2cf3@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Alpine 2.00 (DEB 1167 2008-08-23)
On Mon, 9 Mar 2009, Fajar A. Nugraha wrote:

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 seems that management could be easier if there are multiple iscsi targets.

My iscsi targets get their own PVM and they access it through bonding interface with vlan and transparent bridge on top of it - IP address is set first for PVM.


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).

This is probably what happened - how could be this avoided?


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


cat /proc/partitions:

8       0       314573823 sda
8       1       488319741 sda1

fdisk -l /dev/sda:

Disk /dev/sda: 322.1 Gb 322123595264 bytes
255 heads, 63 sectors/track, 39162 cylinders
Units = cylinders of 16085 * 512 = 8225280 bytes
Disk identifier: 0x00000001

Device   Boot   Start   End     Blocks          Id      System
/dev/sda1        1      60783   488319741       83      Linux


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.

Is it that one - "use it if you know what are you doing ?" :)
How can I find out about the target's type -

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 :)

How kan I find it out ?

cheers
Longina


Regards,

Fajar

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


--
--
Longina Przybyszewska, system programmer
IT@Naturvidenskab

IMADA, Department of Mathematics and Computer Science

University of Southern Denmark, Odense
Campusvej 55,DK-5230 Odense M, Denmark

tel: +45 6550 2359 - http://www.imada.sdu.dk
email: longina@xxxxxxxxxxxx
--
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users