All my HOST systems are Ubuntu Server 64 12.04.3 LTS
3 are running kernel: 3.2.0-52-generic #78-Ubuntu SMP Fri Jul 26 16:21:44 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
1 (SMVMCLOUD) is running 3.5.0-39-generic #60~precise1-Ubuntu SMP Wed Aug 14 15:38:41 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
here is what I did on smvmcloud (my soon to be shared iscsi share)
sudo apt-get update;sudo apt-get upgrade
sudo apt-get update;sudo apt-get dist-upgrade
sudo reboot # to ensure i am on the latest kernel
sudo apt-get install open-iscsi iscsitarget iscsitarget-dkms
in the webmin panel for this server I refreshed the modules so I could see
iscsi client
iscsi target
I them configured each module to indicate the correct paths for binaries:
eg: client
/sbin/iscsiadm
/sbin/iscsi-iname
/etc/iscsi/ifaces
target
/usr/sbin/ietadm
i then ensured that he services were running by entering a shell and running
sudo service iscsitarget status
response was:
- iSCSI enterprise target is running
then:
sudo service iscsi-network-interface status
response:
iscsi-network-interface start/running
then: sudo service open-iscsi status
response:
- iscsid is running
- Current active iSCSI sessions:
iscsiadm: No active sessions.
next in my cloudmin master, i choose “system storage”> “iscsi servers”
my chosen server SMVMCLOUD was already listed so I opened it and saved it accepting the LVM group listed.
Next I went to my cloumin master again and chose HOST SYSTEMS -> KVM HOST SYSTEMS
I opened my cloudmin master SMVMHOST and set Create disk images in: to Devices on iSCSI server
, then chose SMVMCLOUD as my iScsi server, and hit save.
Next I created a new VM (empty system from ubuntu server install cd) on SMVMHOST (hoping to have its drive on the iSCSI server)
for KVM hosting system chose: SMVMHOST
for Location for disk image i chose: Host system default
2gm ram, 10gm disk, default network and hit create system
it copies the install CD to the HOST, then
when it got to the create harddisk stage:
Copying 638.66 MB CD image to system smvmhost …
… already in host cache
Creating virtual system with KVM …
… creation failed : iSCSI disk creation failed : iSCSI server is not running on smvmcloud
The next test was to use the new move hardisk feature and I grbbed a logical volume for a VM that was shutdown hosted on SMVMHOST and tried to move it using new feature Move Disk:
From inside the Edit Disk page
Move Disk to: Storage location: iSCSI Server smvmcloud and clicked “Move Now”
Moving disk for /dev/vda to storage iSCSI server smvmcloud …
… move failed : Failed to create new disk : iSCSI server is not running on smvmcloud
Next test: I entered webmin on SMVMCLOUD -> Hardware-> iSCSI Client->iSCSI connections
got:
No iSCSI connections are currently active.
Tried to connect to SMVMCLOUD and it said:
Failed to add iSCSI connection : No iSCSI targets were found on smvmcloud
Next I went to iSCSI Target and setup a target-> Add a new iSCSI target.
set target name to: target_test (iqn.2013-08.smvmcloud:target_test)
Device to share 1: Logical volume (chose one I had made for this 400GB formatted ext4)
chose block based and hit create
restarted iscsitarget from shell
back to iSCSI Client connections to connect to SMVMCLOUD
iSCSI server hostname or IP: smvmcloud
iSCSI server port: Default
iSCSI interface: Choose automatically
Connect to target: target_test on 192.168.80.236
Login to server: Use default authentication method
and got: Failed to add iSCSI connection : iscsiadm: no records found!
tried again using IP instead of hostname smvmcloud and it worked.
I can see the connection in the list and syslog shows:
Aug 27 15:31:28 smvmcloud kernel: [ 3641.858449] iSCSI Enterprise Target Software - version 1.4.20.3
Aug 27 15:31:28 smvmcloud kernel: [ 3641.858499] iscsi_trgt: Registered io type fileio
Aug 27 15:31:28 smvmcloud kernel: [ 3641.858502] iscsi_trgt: Registered io type blockio
Aug 27 15:31:28 smvmcloud kernel: [ 3641.858504] iscsi_trgt: Registered io type nullio
Aug 27 15:34:32 smvmcloud kernel: [ 3825.540333] scsi4 : iSCSI Initiator over TCP/IP
Aug 27 15:34:33 smvmcloud kernel: [ 3825.798288] scsi 4:0:0:1: Direct-Access IET VIRTUAL-DISK 0 PQ: 0 ANSI: 4
Aug 27 15:34:33 smvmcloud kernel: [ 3825.798709] sd 4:0:0:1: Attached scsi generic sg3 type 0
Aug 27 15:34:33 smvmcloud kernel: [ 3825.799147] sd 4:0:0:1: [sdc] 838860800 512-byte logical blocks: (429 GB/400 GiB)
Aug 27 15:34:33 smvmcloud kernel: [ 3825.799314] sd 4:0:0:1: [sdc] Write Protect is off
Aug 27 15:34:33 smvmcloud kernel: [ 3825.799319] sd 4:0:0:1: [sdc] Mode Sense: 77 00 00 08
Aug 27 15:34:33 smvmcloud kernel: [ 3825.799707] sd 4:0:0:1: [sdc] Write cache: disabled, read cache: disabled, doesn’t support DPO or FUA
Aug 27 15:34:33 smvmcloud kernel: [ 3825.801312] sdc: unknown partition table
Aug 27 15:34:33 smvmcloud kernel: [ 3825.801791] sd 4:0:0:1: [sdc] Attached SCSI disk
Aug 27 15:34:33 smvmcloud kernel: [ 3825.852648] iscsi_trgt: scsi_cmnd_start(1059) Unsupported 85
Aug 27 15:34:33 smvmcloud kernel: [ 3825.853050] iscsi_trgt: cmnd_skip_pdu(472) 74000000 1c 85 0
Aug 27 15:34:33 smvmcloud kernel: [ 3825.853790] iscsi_trgt: scsi_cmnd_start(1059) Unsupported 85
Aug 27 15:34:33 smvmcloud kernel: [ 3825.854184] iscsi_trgt: cmnd_skip_pdu(472) 75000000 1c 85 0
Aug 27 15:34:33 smvmcloud iscsid: connection2:0 is operational now
tried the move again:
Moving disk for /dev/vda to storage iSCSI server smvmcloud …
… move failed : Failed to create new disk : iSCSI server is not running on smvmcloud
So from what I can tell I have the client and server working but not the cloudmin components. Any help at this point would be super…
Franco