Given that I use tap:aio for several servers, I usually create sda1 as base disk, sda2 as swap, and sdb1 as additional filesystem. I setup an iSCSI server this week as I need a high volume storage for one of my VM''s (about 800gb). When I setup the iSCSI initiator to point to the iSCSI drive its detected just fine giving. The problem is that it tries to setup the disk as sda since I don''t have a physical sda (as the VM''s are already mounted with the direct paritions that I want. I''m not sure if this is a xen problem or an iSCSI problem. I suspect that it''s probably more of an iSCSI problem but someone must have run into this before. major minor #blocks name 8 1 8388608 sda1 8 2 524288 sda2 8 17 33554432 sdb1 8 0 134217728 sda <-- iSCSI Test mount 8 1 134215011 sda1 <-- partition created on that mount from another machine Any ideas? _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Fajar A. Nugraha
2009-Feb-18 17:05 UTC
Re: [Xen-users] partitions + iscsi = mass confusion
On Wed, Feb 18, 2009 at 11:55 PM, Gary W. Smith <gary@primeexalia.com> wrote:> just fine giving. The problem is that it tries to setup the disk as sda > since I don''t have a physical sda (as the VM''s are already mounted with the > direct paritions that I want.That''s probably one of the reasons why Redhat decided to promote the use of xvda for domU''s disks instead of hda or sda :) Try changing your domU config and fstab to use xvda1, xvda2, etc. PS: Personally I use hda :P Regards, Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Fajar, Makes sense. I used to use xvd[x] syntax but when I switched to FC8 as my host some time ago it didn''t work so I ended up with sd[x]. I''ve updated it a few times so I''m sure it probably works now. Problem is that I have this on a countless number of VM''s (plus templates). If that''s what it takes, I guess I will need to do it. I was just hoping there was a simpler way to get around this (like creating a reserved /dev/sda that does nothing or something so that hotplug would skip it. Actually, is there a way to block specific ones in hotplug? I remember some time ago (probably years now) there was discussion somewhere about setting specific hotplug entries for usb mounts. I didn''t follow it to see if there was ever a resolution. ps: sorry for top post ... OWA ________________________________ From: xen-users-bounces@lists.xensource.com on behalf of Fajar A. Nugraha Sent: Wed 2/18/2009 9:05 AM To: Gary W. Smith Cc: xen-users@lists.xensource.com Subject: Re: [Xen-users] partitions + iscsi = mass confusion On Wed, Feb 18, 2009 at 11:55 PM, Gary W. Smith <gary@primeexalia.com> wrote:> just fine giving. The problem is that it tries to setup the disk as sda > since I don''t have a physical sda (as the VM''s are already mounted with the > direct paritions that I want.That''s probably one of the reasons why Redhat decided to promote the use of xvda for domU''s disks instead of hda or sda :) Try changing your domU config and fstab to use xvda1, xvda2, etc. PS: Personally I use hda :P Regards, Fajar _______________________________________________ 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 2009-02-18 Gary W. Smith wrote:> Fajar, > > Makes sense. I used to use xvd[x] syntax but when I switched to FC8as> my host some time ago it didn''t work so I ended up with sd[x]. I''ve > updated it a few times so I''m sure it probably works now. > > Problem is that I have this on a countless number of VM''s (plus > templates). If that''s what it takes, I guess I will need to do it. > > I was just hoping there was a simpler way to get around this (like > creating a reserved /dev/sda that does nothing or something so that > hotplug would skip it. > > Actually, is there a way to block specific ones in hotplug? Iremember> some time ago (probably years now) there was discussion somewhereabout> setting specific hotplug entries for usb mounts. I didn''t follow itto> see if there was ever a resolution. > > ps: sorry for top post ... OWA > > ________________________________ > > From: xen-users-bounces@lists.xensource.com on behalf of Fajar A. > Nugraha Sent: Wed 2/18/2009 9:05 AM To: Gary W. Smith Cc: > xen-users@lists.xensource.com Subject: Re: [Xen-users] partitions + > iscsi = mass confusion > > > > On Wed, Feb 18, 2009 at 11:55 PM, Gary W. Smith <gary@primeexalia.com> > wrote: >> just fine giving. The problem is that it tries to setup the disk as >> sda since I don''t have a physical sda (as the VM''s are alreadymounted>> with the direct paritions that I want. > > That''s probably one of the reasons why Redhat decided to promote the > use of xvda for domU''s disks instead of hda or sda :) > > Try changing your domU config and fstab to use xvda1, xvda2, etc. > > PS: Personally I use hda :P > > Regards, > > Fajar >A workaround may be to write udev rules to give your iSCSI devices persistent alternate names. If you are connecting multiple targets then the device names would change if the order they connected changed. I have set my system up to create a /dev/iscsi/... device which I reference instead of the /dev/sd... one. James This message and the information contained herein is proprietary and confidential and subject to the Amdocs policy statement, you may review at http://www.amdocs.com/email_disclaimer.asp _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
James, Do you have a sample. I will only be using a limited number of iscsi targets which will be well defined for our organization. ________________________________ From: xen-users-bounces@lists.xensource.com on behalf of James Dingwall Sent: Wed 2/18/2009 9:30 AM To: Gary W. Smith; Fajar A. Nugraha; xen-users@lists.xensource.com Subject: RE: [Xen-users] partitions + iscsi = mass confusion On 2009-02-18 Gary W. Smith wrote:> Fajar, > > Makes sense. I used to use xvd[x] syntax but when I switched to FC8as> my host some time ago it didn''t work so I ended up with sd[x]. I''ve > updated it a few times so I''m sure it probably works now. > > Problem is that I have this on a countless number of VM''s (plus > templates). If that''s what it takes, I guess I will need to do it. > > I was just hoping there was a simpler way to get around this (like > creating a reserved /dev/sda that does nothing or something so that > hotplug would skip it. > > Actually, is there a way to block specific ones in hotplug? Iremember> some time ago (probably years now) there was discussion somewhereabout> setting specific hotplug entries for usb mounts. I didn''t follow itto> see if there was ever a resolution. > > ps: sorry for top post ... OWA > > ________________________________ > > From: xen-users-bounces@lists.xensource.com on behalf of Fajar A. > Nugraha Sent: Wed 2/18/2009 9:05 AM To: Gary W. Smith Cc: > xen-users@lists.xensource.com Subject: Re: [Xen-users] partitions + > iscsi = mass confusion > > > > On Wed, Feb 18, 2009 at 11:55 PM, Gary W. Smith <gary@primeexalia.com> > wrote: >> just fine giving. The problem is that it tries to setup the disk as >> sda since I don''t have a physical sda (as the VM''s are alreadymounted>> with the direct paritions that I want. > > That''s probably one of the reasons why Redhat decided to promote the > use of xvda for domU''s disks instead of hda or sda :) > > Try changing your domU config and fstab to use xvda1, xvda2, etc. > > PS: Personally I use hda :P > > Regards, > > Fajar >A workaround may be to write udev rules to give your iSCSI devices persistent alternate names. If you are connecting multiple targets then the device names would change if the order they connected changed. I have set my system up to create a /dev/iscsi/... device which I reference instead of the /dev/sd... one. James This message and the information contained herein is proprietary and confidential and subject to the Amdocs policy statement, you may review at http://www.amdocs.com/email_disclaimer.asp _______________________________________________ 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
> -----Original Message----- > From: Gary W. Smith [mailto:gary@primeexalia.com] > Sent: 18 February 2009 17:46 > To: James Dingwall; Fajar A. Nugraha; xen-users@lists.xensource.com > Subject: RE: [Xen-users] partitions + iscsi = mass confusion > > James, > > Do you have a sample. I will only be using a limited number of iscsi > targets which will be well defined for our organization.There are some contributions in the Gentoo iSCSI page covering this: http://en.gentoo-wiki.com/wiki/ISCSI There is a udev rules file which is invoked when an iSCSI target is connected and a shell script which generates the device name. In the example the device name is derived from the IQN of the target. James> > ________________________________ > > From: xen-users-bounces@lists.xensource.com on behalf of JamesDingwall> Sent: Wed 2/18/2009 9:30 AM > To: Gary W. Smith; Fajar A. Nugraha; xen-users@lists.xensource.com > Subject: RE: [Xen-users] partitions + iscsi = mass confusion > > > > > On 2009-02-18 Gary W. Smith wrote: > > Fajar, > > > > Makes sense. I used to use xvd[x] syntax but when I switched to FC8 > as > > my host some time ago it didn''t work so I ended up with sd[x]. I''ve > > updated it a few times so I''m sure it probably works now. > > > > Problem is that I have this on a countless number of VM''s (plus > > templates). If that''s what it takes, I guess I will need to do it. > > > > I was just hoping there was a simpler way to get around this (like > > creating a reserved /dev/sda that does nothing or something so that > > hotplug would skip it. > > > > Actually, is there a way to block specific ones in hotplug? I > remember > > some time ago (probably years now) there was discussion somewhere > about > > setting specific hotplug entries for usb mounts. I didn''t follow it > to > > see if there was ever a resolution. > > > > ps: sorry for top post ... OWA > > > > ________________________________ > > > > From: xen-users-bounces@lists.xensource.com on behalf of Fajar A. > > Nugraha Sent: Wed 2/18/2009 9:05 AM To: Gary W. Smith Cc: > > xen-users@lists.xensource.com Subject: Re: [Xen-users] partitions + > > iscsi = mass confusion > > > > > > > > On Wed, Feb 18, 2009 at 11:55 PM, Gary W. Smith > <gary@primeexalia.com> > > wrote: > >> just fine giving. The problem is that it tries to setup the diskas> >> sda since I don''t have a physical sda (as the VM''s are already > mounted > >> with the direct paritions that I want. > > > > That''s probably one of the reasons why Redhat decided to promote the > > use of xvda for domU''s disks instead of hda or sda :) > > > > Try changing your domU config and fstab to use xvda1, xvda2, etc. > > > > PS: Personally I use hda :P > > > > Regards, > > > > Fajar > > > > A workaround may be to write udev rules to give your iSCSI devices > persistent alternate names. If you are connecting multiple targets > then > the device names would change if the order they connected changed. I > have set my system up to create a /dev/iscsi/... device which I > reference instead of the /dev/sd... one. > > James > > > > This message and the information contained herein is proprietary and > confidential and subject to the Amdocs policy statement, > you may review at http://www.amdocs.com/email_disclaimer.asp > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >This message and the information contained herein is proprietary and confidential and subject to the Amdocs policy statement, you may review at http://www.amdocs.com/email_disclaimer.asp _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users