Dear Stan,
I recommend staying away from LVM, particularly on a boot volume. Upgrade
can be hell.
Have you actually been able to boot a VM/VM off the iscsi volume yet?
Very cool.
Regards,
Flint
On Fri, 17 Oct 2008, Stanley Brinkerhoff wrote:
Date: Fri, 17 Oct 2008 13:31:28 -0400
From: Stanley Brinkerhoff <[EMAIL PROTECTED]>
Reply-To: Vermont Area Group of Unix Enthusiasts <[email protected]>
To: [email protected]
Subject: Re: Help with CENTOS iscsi / vmware esx-i
Just incase my Windows 2008 partitioning step had anything to do with it
working for me; I just removed the image, recreated it (now 10GB!),
restarted iscsi, rescanned the device in VMWare, and it formatted the entire
10GB "lun" and now it is available in my Storage view.
No funky errors yet.
Stan
On Fri, Oct 17, 2008 at 1:24 PM, Stanley Brinkerhoff <[EMAIL PROTECTED]>wrote:
Brad,
Thanks for prompting me to do this! I just completed bringing up a LUN
from my Ubuntu 8.04 LTS Server machine and its currently mounted on my ESXi
server. I cheated a little; as I don't have LVM or any extra partition
space available -- I just made a simple loopback file.
On Linux:
Installed iscsitarget ... (for anyone doing this.. there is a bug with
iscsi-target-source and Ubuntu .. I followed a bug response to actually
compile the module:
https://bugs.launchpad.net/ubuntu/+source/iscsitarget/+bug/208281/comments/2
)
dd if=/dev/zero of=/media/hd-image1 count=2000MB
mkfs.ext3 -c /media/hd-image1 << Probably not needed.. but I wanted to
mount it locally first.
[EMAIL PROTECTED]:/etc# cat ietd.conf | grep -v "#"
Target iqn.2008-10.corp.claramartin:cmcdata1.local.images.hd-image1
Lun 0 Path=/media/hd-image1
Started iscsi-target....
At this point, I am running Windows 2008 on my laptop -- I connected with
the Windows 2008 iscsi initiator. The partition showed up as uninitialized
in Computer Management, so I initialized it, and formatted it. I cancelled
the format about 2% through, and assumed everything was going to work (I saw
a 2GB disk available).
I went to ESXi, Config tab, Storage Adapters tab:
- Enabled iScsi
- Added dynamic host by IP
"vmhba37:1:0" shows up as a disk of 2.25 GB (lun id 0)
Clicked storage, clicked add storage, and added the disk (2.00 GB, 1.72GB
available after format, its now VMFS3).
I haven't actually booted a VMWare instance off the system yet, but so far
it looks reasonably good. I am still wondering why I just iscsi'd a 2GB
file off from a raid 5 set of 7200RPM ide drives from a dual quad zeon with
onboard 15krpm drives and a 2GB raid card.. but thats another story.
Stan
On Fri, Oct 17, 2008 at 11:16 AM, Portelance, Brad <
[EMAIL PROTECTED]> wrote:
Hi everyone, I'm a long time lurker to the list and would like to see if
anyone has ever come across an issue I'm having now.
I've created an iscsi SAN on a server running CENTOS 5.2 (Redhat based)
and the iscsi-target package (ietd) which is promoted as a free, enterprise
ready iscsi-target. On the other end VMWARE-ESX-i 3.5 with iscsi support.
When I first put this together, it worked just fine. I went and tried
OpenFiler for the iscsi SAN, but decided to go back to CENTOS.
The problem is now that when I get VMWARE to attach to the iscsi-target it
gives me an error that it can't create the file system. (Error SCSI: 4506:
Cannot find a path to device vmhba32:0:0 in a good state. Trying path
vmhba32:0:0).
The target shows up and VMWARE even tried to write a partition (Which I've
deleted in between tries), but fails while trying to format the disk. I can
see the new partition on the drive.
I've checked the configuration on both ends at least 20 times, googled for
answers, and even recompiled the ietd software and just can't seem to figure
it out. The ietd.conf file is very basic: "Lun 0 Path=/dev/sdb" (I've tried
Type Fileio, Blockio, IOMode=wb,etc).
Has anyone else ever seen this?
Any thoughts would be greatly appreciated.
Thanks!
Brad
Kindest Regards,
Paul Flint
(802) 479-2360
/************************************
Based upon email reliability concerns,
please send an acknowledgment in response to this note.
Paul Flint
Barre Open Systems Institute
17 Averill Street
Barre, VT
05641
http://www.bosivt.org
http://www.flint.com/home
skype: flintinfotech
Work: (202) 537-0480
Fax: (703) 852-7089
Consilium
gratuitum .~.
valet /V\
quanti /( )\
numerantur ^^-^^