iSCSI target modules proxmox 1.4b2

Hello,

I'd like to install the openscsi on 1.4b2,

The initiatior is:

# apt-get install open-iscsi

which is already installed by default.

i need to install

Code:
aptitude install iscsitarget iscsitarget-modules-`uname -r
but there seem to be no iscsitarget modules available.
Is it possible to install these modules on the pve kernel?
Or can this be done in another way?

Do you really want to run an iscsi target on the PVE node? This is not recommended at all.

Anyways, the latest kernel already includes the IET and SCST target modules. We also compile debian packages for the SCST target tools.

So for IET install:

# apt-get install iscsitarget

And for SCST install (supports tape pass-through):

# apt-get install iscsi-scst scstadmin

NOTE: SCST was uploaded today to the pvetest repository. You also need the latest kernel uploaded today.
 
Last edited:
The reason of using it this way would be that the fileserver is a hugh and fast machine, and it would be a shame not to use the processing power...

What I'd love to do is:

(Is this necesary?
remove the /dev/pve/data lv group
create a new empty /dev/pve/data group)

Share this group using iSCSI, and build an LVM on top of it.
Use this LVM as a VM storage.
(and because it is iSCSI, live migration on the nodes is possible)

One more question: Is it possible to use the existing pve/data lvgroup as base for the iSCSI mount without loosing any data on it?



Kindly regards

Ellen
 
I dont understand why you want to remove anything. Simply add the iSCSI storage as additional storage and then create an VG on it.
 
I understand...
but what if the /dev/pve/data allready contains images?

ie

Code:
proxmox1:/# lvscan 
  ACTIVE            '/dev/pve/swap' [4.00 GB] inherit
  ACTIVE            '/dev/pve/root' [96.00 GB] inherit
  ACTIVE            '/dev/pve/data' [1.10 TB] inherit

proxmox1:/var/lib/vz# ls -alh
total 52K
drwxr-xr-x 10 root root 4.0K Jun 23 15:50 .
drwxr-xr-x 32 root root 4.0K Oct  8 14:28 ..
drwxr-xr-x  2 root root 4.0K May 12 09:25 dump
drwxr-xr-x  6 root root 4.0K Oct  6 13:21 images
drwxr-xr-x  2 root root 4.0K Oct  8 13:17 lock
drwx------  2 root root  16K Jun 16 14:14 lost+found
drwxr-xr-x  3 root root 4.0K Oct  6 14:03 private
drwxr-xr-x  3 root root 4.0K Oct  6 14:03 root
drwxr-xr-x  5 root root 4.0K Jun 16 14:15 template
drwxr-xr-x  2 root root 4.0K Oct  6 14:03 vztmp
Kindly regards

Ellen
 
I understand...
but what if the /dev/pve/data allready contains images?

First convert them to raw format with qemu-img. Then copy then to a lvm volume. You can use vzdump backup/restore to do it as already reported in this forum.
 
Anyways, the latest kernel already includes the IET and SCST target modules. We also compile debian packages for the SCST target tools.

So for IET install:

# apt-get install iscsitarget

And for SCST install (supports tape pass-through):

# apt-get install iscsi-scst scstadmin

NOTE: SCST was uploaded today to the pvetest repository. You also need the latest kernel uploaded today.


IET is really unstable and I would discourage using it.

SCST is fine as a iSCSI target, although its setup is slightly complicated.

There is also tgt (http://stgt.berlios.de), but the Debian's package is really antique, and you should use an upstream version (tgt-0.9.9, or newer, if such is released).
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!