Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Comstar iSCSI read error
2013-02-12, 02:58
Post: #1
Comstar iSCSI read error
Hello,

I'm trying to set up a diskless server for multiple linux distributions. My back end storage is nexentastor which uses the comstar iscsi target along with zfs (from my understanding it's basically just like opensolaris 11).

Basically, I made a 200GB zvol which I exported via iscsi and loaded centos on via the advanced storage feature in the centos installer. I also tried a gentoo install without success.

My head node is linux which runs dhcp/tftp and serves the undionly.ipxe file. I can load up this file but I try to boot into the iscsi target via direct ethernet connection and I get:

iPXE> sanboot iscsi:10.0.0.3::::<iscsi target>
Registered SAN device 0x80
Booting from SAN device 0x80
Read Error

Huh

I also tried sanhook and then the --drive 0x80 along with
various other permutations.

I've also tried importing the comstar iscsi target into the linux machine with iscsiadm and then just exporting the device via tgtadm. That too I get this error.

Has anyone encountered this or have any insight as to the issue at hand? I don't get a nice error with a url. If it helps, I'm using virutalbox as my client at the moment and I can import the iscsi disc with virtualbox as a local disc and then boot up (if I do the solaris comstar -> linux tgtadm setup).

Thanks in advance for any assistance.
Find all posts by this user
Quote this message in a reply
2013-02-12, 08:30
Post: #2
RE: Comstar iSCSI read error
You might have a problem with the ACLs on that volume. Look carefully at the outputs of the various itadm and stfmadm commands. I believe the initiator-iqn of ipxe is not getting access to the volume. I like to use the Windows iSCSI Initiator to help me figure out if I can connect or not. Once you've got things working with that one I just ensure the other initiator IQNs are given the same access as the windows one.

You might also be interested in my https://github.com/robinsmidsrod/comstar-soho-helper scripts which makes it easy to create volumes in a typical home setup (where you control the entire network). The scripts should also give you a better understanding of how the different parts of COMSTAR interact with each other. It took me quite some time to figure it all out.

I use Nexenta Core Platform (NCP) 3.0, so it's old and no longer maintained, I believe. NexentaStor is slightly different in the administrative realm, but hopefully close enough. I've been planning to move to OpenIndiana for some time, but I never find time.
Visit this user's website Find all posts by this user
Quote this message in a reply
2013-02-12, 08:34
Post: #3
RE: Comstar iSCSI read error
I might also be barking up the wrong tree here, maybe your zvol is read-only. I believe some sbdadm or stfmadm command should give you the scsi options for the device (write-back caching, read-only/read-write status etc.). Check the man page.
Visit this user's website Find all posts by this user
Quote this message in a reply
2013-02-13, 02:46 (This post was last modified: 2013-02-13 02:47 by plindbe2.)
Post: #4
RE: Comstar iSCSI read error
Thanks for the help! I managed to figure this out today. The issue was with using the emulated "PCnet-FAST III (Am79C973)" card in virtualbox. I switched it over to "Paravirtualized Network (virtio-net)" and all was well. Ipxe is working like a champ.
Find all posts by this user
Quote this message in a reply
2013-02-13, 08:25
Post: #5
RE: Comstar iSCSI read error
Great to hear!

Do stick around and help others if you can and know how. Sharing is caring. Smile
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)