Hi list, I''m having troubles to get an iscsi initiator working on a domU. As dom0 and domU I use a Centos 5 with the 2.6.18-53.1.14.el5 xen-kernel. As iscsi initiator i use the iscsi-initiator-utils of the Centos5 repo. The problem is, that when I log in to my iscsi target on the domU it is recognized as /dev/sda1. Now sda1 is also my root partition on the domU. And when I mount it I''ve mounted the root partition and not the iscsi device. Has anyone had this problem yet? Is there a solution to make it recognized as e.g. /dev/sdb ? Any help and tips would be appreciated. Kind regards Lino _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Mon, Jun 30, 2008 at 5:46 AM, Lino Moragon <lino.moragon@highspeed.li> wrote:> Hi list, > > I''m having troubles to get an iscsi initiator working on a domU. > As dom0 and domU I use a Centos 5 with the 2.6.18-53.1.14.el5 xen-kernel. > As iscsi initiator i use the iscsi-initiator-utils of the Centos5 repo. > The problem is, that when I log in to my iscsi target on the domU it is > recognized as /dev/sda1. > Now sda1 is also my root partition on the domU. And when I mount it I''ve > mounted the root partition and not the iscsi device. > > Has anyone had this problem yet? Is there a solution to make it recognized > as e.g. /dev/sdb ? > > Any help and tips would be appreciated. >You should be able to setup a udev rule that will recognize the drives and correctly set them up. take a look here: http://www.performancemagic.com/iscsi-xen-howto/iSCSI.html Cheers, Todd _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Todd Deshane wrote:> > > On Mon, Jun 30, 2008 at 5:46 AM, Lino Moragon > <lino.moragon@highspeed.li <mailto:lino.moragon@highspeed.li>> wrote: > > Hi list, > > I''m having troubles to get an iscsi initiator working on a domU. > As dom0 and domU I use a Centos 5 with the 2.6.18-53.1.14.el5 > xen-kernel. > As iscsi initiator i use the iscsi-initiator-utils of the Centos5 > repo. > The problem is, that when I log in to my iscsi target on the domU > it is recognized as /dev/sda1. > Now sda1 is also my root partition on the domU. And when I mount > it I''ve mounted the root partition and not the iscsi device. > > Has anyone had this problem yet? Is there a solution to make it > recognized as e.g. /dev/sdb ? > > Any help and tips would be appreciated. > > > You should be able to setup a udev rule that will recognize the drives > and correctly set them up. > > take a look here: > http://www.performancemagic.com/iscsi-xen-howto/iSCSI.htmlHi, Thanks for your response. I just tried it that way. Only problem is, that it creates a link that links to the same /dev/sda1. So if I mount the new /dev/iscsi_11 device it will mount again the root filesystem. Are there other possible options? Or isn''t it at all possible? Thanks for some hints. Regards, Lino _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Tue, Jul 1, 2008 at 2:36 AM, Lino Moragon <lino.moragon@highspeed.li> wrote:> Todd Deshane wrote: > > >> >> On Mon, Jun 30, 2008 at 5:46 AM, Lino Moragon <lino.moragon@highspeed.li<mailto: >> lino.moragon@highspeed.li>> wrote: >> >> Hi list, >> >> I''m having troubles to get an iscsi initiator working on a domU. >> As dom0 and domU I use a Centos 5 with the 2.6.18-53.1.14.el5 >> xen-kernel. >> As iscsi initiator i use the iscsi-initiator-utils of the Centos5 >> repo. >> The problem is, that when I log in to my iscsi target on the domU >> it is recognized as /dev/sda1. >> Now sda1 is also my root partition on the domU. And when I mount >> it I''ve mounted the root partition and not the iscsi device. >> >> Has anyone had this problem yet? Is there a solution to make it >> recognized as e.g. /dev/sdb ? >> >> Any help and tips would be appreciated. >> >> >> You should be able to setup a udev rule that will recognize the drives and >> correctly set them up. >> >> take a look here: >> http://www.performancemagic.com/iscsi-xen-howto/iSCSI.html >> > Hi, > > Thanks for your response. I just tried it that way. > Only problem is, that it creates a link that links to the same /dev/sda1. > So if I mount the new /dev/iscsi_11 device it will mount again the root > filesystem. > Are there other possible options? Or isn''t it at all possible? >Take a look at: /dev/disk/by-uuid/> > Thanks for some hints. > > Regards, Lino > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Todd Deshane wrote:> > > On Tue, Jul 1, 2008 at 2:36 AM, Lino Moragon > <lino.moragon@highspeed.li <mailto:lino.moragon@highspeed.li>> wrote: > > Todd Deshane wrote: > > > > On Mon, Jun 30, 2008 at 5:46 AM, Lino Moragon > <lino.moragon@highspeed.li <mailto:lino.moragon@highspeed.li> > <mailto:lino.moragon@highspeed.li > <mailto:lino.moragon@highspeed.li>>> wrote: > > Hi list, > > I''m having troubles to get an iscsi initiator working on a > domU. > As dom0 and domU I use a Centos 5 with the 2.6.18-53.1.14.el5 > xen-kernel. > As iscsi initiator i use the iscsi-initiator-utils of the > Centos5 > repo. > The problem is, that when I log in to my iscsi target on > the domU > it is recognized as /dev/sda1. > Now sda1 is also my root partition on the domU. And when I > mount > it I''ve mounted the root partition and not the iscsi device. > > Has anyone had this problem yet? Is there a solution to make it > recognized as e.g. /dev/sdb ? > > Any help and tips would be appreciated. > > > You should be able to setup a udev rule that will recognize > the drives and correctly set them up. > > take a look here: > http://www.performancemagic.com/iscsi-xen-howto/iSCSI.html > > Hi, > > Thanks for your response. I just tried it that way. > Only problem is, that it creates a link that links to the same > /dev/sda1. > So if I mount the new /dev/iscsi_11 device it will mount again the > root filesystem. > Are there other possible options? Or isn''t it at all possible? > > > Take a look at: > /dev/disk/by-uuid/If I look at by-uuid i only get my "real" scsi device: lrwxrwxrwx 1 root root 10 Jul 2 08:49 efd01d87-9b04-4d65-976c-cea045f51137 -> ../../sda1 Also for the by-id: lrwxrwxrwx 1 root root 10 Jul 2 08:49 efd01d87-9b04-4d65-976c-cea045f51137 -> ../../sda1 And for the path there is my iscsi entry: lrwxrwxrwx 1 root root 10 Jul 2 08:50 ip-172.16.10.70:3260-iscsi-iqn.1994-05.com.redhat:storage.mysql-part1 -> ../../sda1 But it is also linked to sda1 ... Problem is that udev doesn''t seem to create a "new" block device like sdb... Any ideas? Thanks, Lino> > > > Thanks for some hints. > > Regards, Lino > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com <mailto:Xen-users@lists.xensource.com> > http://lists.xensource.com/xen-users > > > ------------------------------------------------------------------------ > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Wed, Jul 2, 2008 at 3:59 AM, Lino Moragon <lino.moragon@highspeed.li> wrote:> Todd Deshane wrote: > > >> >> On Tue, Jul 1, 2008 at 2:36 AM, Lino Moragon <lino.moragon@highspeed.li<mailto: >> lino.moragon@highspeed.li>> wrote: >> >> Todd Deshane wrote: >> >> >> >> On Mon, Jun 30, 2008 at 5:46 AM, Lino Moragon >> <lino.moragon@highspeed.li <mailto:lino.moragon@highspeed.li> >> <mailto:lino.moragon@highspeed.li >> <mailto:lino.moragon@highspeed.li>>> wrote: >> >> Hi list, >> >> I''m having troubles to get an iscsi initiator working on a >> domU. >> As dom0 and domU I use a Centos 5 with the 2.6.18-53.1.14.el5 >> xen-kernel. >> As iscsi initiator i use the iscsi-initiator-utils of the >> Centos5 >> repo. >> The problem is, that when I log in to my iscsi target on >> the domU >> it is recognized as /dev/sda1. >> Now sda1 is also my root partition on the domU. And when I >> mount >> it I''ve mounted the root partition and not the iscsi device. >> >> Has anyone had this problem yet? Is there a solution to make it >> recognized as e.g. /dev/sdb ? >> >> Any help and tips would be appreciated. >> >> >> You should be able to setup a udev rule that will recognize >> the drives and correctly set them up. >> >> take a look here: >> http://www.performancemagic.com/iscsi-xen-howto/iSCSI.html >> >> Hi, >> >> Thanks for your response. I just tried it that way. >> Only problem is, that it creates a link that links to the same >> /dev/sda1. >> So if I mount the new /dev/iscsi_11 device it will mount again the >> root filesystem. >> Are there other possible options? Or isn''t it at all possible? >> >> >> Take a look at: >> /dev/disk/by-uuid/ >> > If I look at by-uuid i only get my "real" scsi device: > lrwxrwxrwx 1 root root 10 Jul 2 08:49 efd01d87-9b04-4d65-976c-cea045f51137 > -> ../../sda1 > > Also for the by-id: > lrwxrwxrwx 1 root root 10 Jul 2 08:49 efd01d87-9b04-4d65-976c-cea045f51137 > -> ../../sda1 > > And for the path there is my iscsi entry: > lrwxrwxrwx 1 root root 10 Jul 2 08:50 > ip-172.16.10.70:3260-iscsi-iqn.1994-05.com.redhat:storage.mysql-part1 -> > ../../sda1 > > But it is also linked to sda1 ... Problem is that udev doesn''t seem to > create a "new" block device like sdb... > > Any ideas? >Just to be clear, this is on the domU right? The iSCSI device *should* show up as a new scsi device like you want (i.e sdb etc.). If it is not that seems like a bug in the domU kernel. Try exporting the iSCSI device to another computer or guest with a different kernel. This kind of thing should work, I haven''t used it regularly for a couple years, but it worked pretty well then, so it should work even better now. Cheers, Todd Deshane http://todddeshane.net check out our book: runningxen.com _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
I don''t have any experience in this department at all, but what if you make your main disk hda or xvda (don''t even know where and/or how xvda should work) instead of sda? If there is some bug forcing your iscsi to connect to sda, that may allow it to work. The real question is how much additional configuration it would take to get this working after that and whether or not it''s worth the effort for a shot in the dark. Dustin -----Original Message----- From: xen-users-bounces@lists.xensource.com [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of Lino Moragon Sent: Wednesday, July 02, 2008 04:00 To: xen-users@lists.xensource.com Subject: Re: [Xen-users] Problem iscsi on domU Todd Deshane wrote:> > > On Tue, Jul 1, 2008 at 2:36 AM, Lino Moragon > <lino.moragon@highspeed.li <mailto:lino.moragon@highspeed.li>> wrote: > > Todd Deshane wrote: > > > > On Mon, Jun 30, 2008 at 5:46 AM, Lino Moragon > <lino.moragon@highspeed.li <mailto:lino.moragon@highspeed.li> > <mailto:lino.moragon@highspeed.li > <mailto:lino.moragon@highspeed.li>>> wrote: > > Hi list, > > I''m having troubles to get an iscsi initiator working on a > domU. > As dom0 and domU I use a Centos 5 with the 2.6.18-53.1.14.el5 > xen-kernel. > As iscsi initiator i use the iscsi-initiator-utils of the > Centos5 > repo. > The problem is, that when I log in to my iscsi target on > the domU > it is recognized as /dev/sda1. > Now sda1 is also my root partition on the domU. And when I > mount > it I''ve mounted the root partition and not the iscsi device. > > Has anyone had this problem yet? Is there a solution to make it > recognized as e.g. /dev/sdb ? > > Any help and tips would be appreciated. > > > You should be able to setup a udev rule that will recognize > the drives and correctly set them up. > > take a look here: > http://www.performancemagic.com/iscsi-xen-howto/iSCSI.html > > Hi, > > Thanks for your response. I just tried it that way. > Only problem is, that it creates a link that links to the same > /dev/sda1. > So if I mount the new /dev/iscsi_11 device it will mount again the > root filesystem. > Are there other possible options? Or isn''t it at all possible? > > > Take a look at: > /dev/disk/by-uuid/If I look at by-uuid i only get my "real" scsi device: lrwxrwxrwx 1 root root 10 Jul 2 08:49 efd01d87-9b04-4d65-976c-cea045f51137 -> ../../sda1 Also for the by-id: lrwxrwxrwx 1 root root 10 Jul 2 08:49 efd01d87-9b04-4d65-976c-cea045f51137 -> ../../sda1 And for the path there is my iscsi entry: lrwxrwxrwx 1 root root 10 Jul 2 08:50 ip-172.16.10.70:3260-iscsi-iqn.1994-05.com.redhat:storage.mysql-part1 -> ../../sda1 But it is also linked to sda1 ... Problem is that udev doesn''t seem to create a "new" block device like sdb... Any ideas? Thanks, Lino> > > > Thanks for some hints. > > Regards, Lino > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com <mailto:Xen-users@lists.xensource.com> > http://lists.xensource.com/xen-users > > > ------------------------------------------------------------------------ > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Thu, Jul 3, 2008 at 8:30 AM, Dustin Henning <Dustin.Henning@prd-inc.com> wrote:> I don''t have any experience in this department at all, but what if > you make your main disk hda or xvda (don''t even know where and/or how xvda > should work) instead of sda? If there is some bug forcing your iscsi to > connect to sda, that may allow it to work. The real question is how much > additional configuration it would take to get this working after that and > whether or not it''s worth the effort for a shot in the dark. > Dustin >That reminds me, there was some development in making a iscsi: disk type (similar to tap:aio, phy:), maybe looking for the status of that work may help?> > > >> -----Original Message----- > From: xen-users-bounces@lists.xensource.com > [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of Lino Moragon > Sent: Wednesday, July 02, 2008 04:00 > To: xen-users@lists.xensource.com > Subject: Re: [Xen-users] Problem iscsi on domU > > Todd Deshane wrote: > > > > > > On Tue, Jul 1, 2008 at 2:36 AM, Lino Moragon > > <lino.moragon@highspeed.li <mailto:lino.moragon@highspeed.li>> wrote: > > > > Todd Deshane wrote: > > > > > > > > On Mon, Jun 30, 2008 at 5:46 AM, Lino Moragon > > <lino.moragon@highspeed.li <mailto:lino.moragon@highspeed.li> > > <mailto:lino.moragon@highspeed.li > > <mailto:lino.moragon@highspeed.li>>> wrote: > > > > Hi list, > > > > I''m having troubles to get an iscsi initiator working on a > > domU. > > As dom0 and domU I use a Centos 5 with the 2.6.18-53.1.14.el5 > > xen-kernel. > > As iscsi initiator i use the iscsi-initiator-utils of the > > Centos5 > > repo. > > The problem is, that when I log in to my iscsi target on > > the domU > > it is recognized as /dev/sda1. > > Now sda1 is also my root partition on the domU. And when I > > mount > > it I''ve mounted the root partition and not the iscsi device. > > > > Has anyone had this problem yet? Is there a solution to make > it > > recognized as e.g. /dev/sdb ? > > > > Any help and tips would be appreciated. > > > > > > You should be able to setup a udev rule that will recognize > > the drives and correctly set them up. > > > > take a look here: > > http://www.performancemagic.com/iscsi-xen-howto/iSCSI.html > > > > Hi, > > > > Thanks for your response. I just tried it that way. > > Only problem is, that it creates a link that links to the same > > /dev/sda1. > > So if I mount the new /dev/iscsi_11 device it will mount again the > > root filesystem. > > Are there other possible options? Or isn''t it at all possible? > > > > > > Take a look at: > > /dev/disk/by-uuid/ > If I look at by-uuid i only get my "real" scsi device: > lrwxrwxrwx 1 root root 10 Jul 2 08:49 > efd01d87-9b04-4d65-976c-cea045f51137 -> ../../sda1 > > Also for the by-id: > lrwxrwxrwx 1 root root 10 Jul 2 08:49 > efd01d87-9b04-4d65-976c-cea045f51137 -> ../../sda1 > > And for the path there is my iscsi entry: > lrwxrwxrwx 1 root root 10 Jul 2 08:50 > ip-172.16.10.70:3260-iscsi-iqn.1994-05.com.redhat:storage.mysql-part1 -> > ../../sda1 > > But it is also linked to sda1 ... Problem is that udev doesn''t seem to > create a "new" block device like sdb... > > Any ideas? > > Thanks, Lino > > > > > > > > > Thanks for some hints. > > > > Regards, Lino > > > > > > _______________________________________________ > > Xen-users mailing list > > Xen-users@lists.xensource.com <mailto:Xen-users@lists.xensource.com> > > http://lists.xensource.com/xen-users > > > > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > Xen-users mailing list > > Xen-users@lists.xensource.com > > http://lists.xensource.com/xen-users > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users > > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >-- Todd Deshane http://todddeshane.net check out our book: http://runningxen.com _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Todd Deshane schreef:> > > On Thu, Jul 3, 2008 at 8:30 AM, Dustin Henning > <Dustin.Henning@prd-inc.com <mailto:Dustin.Henning@prd-inc.com>> wrote: > > I don''t have any experience in this department at all, but > what if > you make your main disk hda or xvda (don''t even know where and/or > how xvda > should work) instead of sda? If there is some bug forcing your iscsi to > connect to sda, that may allow it to work. The real question is how > much > additional configuration it would take to get this working after > that and > whether or not it''s worth the effort for a shot in the dark. > Dustin > > > That reminds me, there was some development in making a iscsi: disk type > (similar > to tap:aio, phy:), maybe looking for the status of that work may help?http://kinkrsoftware.nl/contrib/xen/block-iscsi Have fun. Stefan _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Stefan de Konink wrote:> Todd Deshane schreef: >> >> >> On Thu, Jul 3, 2008 at 8:30 AM, Dustin Henning >> <Dustin.Henning@prd-inc.com <mailto:Dustin.Henning@prd-inc.com>> wrote: >> >> I don''t have any experience in this department at all, but >> what if >> you make your main disk hda or xvda (don''t even know where and/or >> how xvda >> should work) instead of sda? If there is some bug forcing your >> iscsi to >> connect to sda, that may allow it to work. The real question is how >> much >> additional configuration it would take to get this working after >> that and >> whether or not it''s worth the effort for a shot in the dark. >> Dustin >> >> >> That reminds me, there was some development in making a iscsi: disk >> type (similar >> to tap:aio, phy:), maybe looking for the status of that work may help? > > http://kinkrsoftware.nl/contrib/xen/block-iscsi > > Have fun. > > > Stefan >Thanks for your answers! I''ll try it out as soon as possible. I''ll let you know if I suceed. Lino> _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users