Hi,
After working all day on this matter and resorting to the forum for getting a solution, I made progress during writing this forum post. I guess it's still valuable for people searching for solutions to the problems I had . That's why I moved the remaining relevant paragraphs to the top and hid the original posting behind a spoiler element.
What I still don't get is ZFS over iSCSI. At which stage do I provide the filesystem?
My setup: My backupserver1 has an encrypted lvm. I use about 40 GiByte for the operating system, so there are plenty of TiByte unused in the volume group. I created a logical volume which I used as a physical volume for another volume group iscsi-targets. In this VG I created a logical volume that serves as a target for this specific Proxmox VE server to use as a backup.
Do I have to put the ZFS filesystem on the logical volume on the iSCSI server or on the iSCSI client?
Thanks in advance!
After working all day on this matter and resorting to the forum for getting a solution, I made progress during writing this forum post. I guess it's still valuable for people searching for solutions to the problems I had . That's why I moved the remaining relevant paragraphs to the top and hid the original posting behind a spoiler element.
What I still don't get is ZFS over iSCSI. At which stage do I provide the filesystem?
My setup: My backupserver1 has an encrypted lvm. I use about 40 GiByte for the operating system, so there are plenty of TiByte unused in the volume group. I created a logical volume which I used as a physical volume for another volume group iscsi-targets. In this VG I created a logical volume that serves as a target for this specific Proxmox VE server to use as a backup.
Do I have to put the ZFS filesystem on the logical volume on the iSCSI server or on the iSCSI client?
Thanks in advance!
I feel a bit stupid at the moment. I want to add a backup storage to PVE. After some research I decided on iSCSI or ZFS over iSCSI but I first wanted to get iSCSI working. And that's the crux.
I think I successfully configured the target; at least,
But it doesn't connect, and I guess it's all about these lines in the portal's journal:
But in
I remembered there was a ":01" between the username and the password in the default name. Removing this yielded a better result, the message with the unsupported SCSI Opcode 0xa3 disappeared.
But I still get these every 10 seconds:
I think I successfully configured the target; at least,
iscsiadm -m discovery -t st -p <ip>
and pvesm scan iscsi <ip>
show my target.But it doesn't connect, and I guess it's all about these lines in the portal's journal:
Of course, the iscsi initiator name is not what I configured on the iscsi target. But I didn't find anything in PVE's web UI regarding this parameter nor did I find anything in pvesm. I changed the entry inAug 25 14:32:03 backupserver1 kernel: rx_data returned 0, expecting 48.
Aug 25 14:32:03 backupserver1 kernel: iSCSI Login negotiation failed.
Aug 25 14:32:03 backupserver1 kernel: rx_data returned 0, expecting 48.
Aug 25 14:32:03 backupserver1 kernel: iSCSI Login negotiation failed.
Aug 25 14:32:03 backupserver1 kernel: iSCSI Initiator Node: iqn.1993-08.org.debian:01:7cff9a66f22 is not authorized to access iSCSI target portal group: 1.
Aug 25 14:32:03 backupserver1 kernel: iSCSI Login negotiation failed.
/etc/iscsi/initiatorname.iscsi
but restarting with systemctl restart open-iscsi.service
does not work. Actually, it exits with code 21 which the man page describes asISCSI_ERR_NO_OBJS_FOUND - no records/targets/sessions/portals found to execute operation on.
But in
/etc/iscsi/nodes
I can find my node definition I setup using the web UI. The existence of /etc/iscsi/iscsid.conf
made me suspicious if there was another service running, and that was indeed the case: iscsid.service
. Restarting this resulted in the portal's journal showing:Aug 25 14:44:13 backupserver1 kernel: rx_data returned 0, expecting 48.
Aug 25 14:44:13 backupserver1 kernel: iSCSI Login negotiation failed.
Aug 25 14:44:13 backupserver1 kernel: rx_data returned 0, expecting 48.
Aug 25 14:44:13 backupserver1 kernel: iSCSI Login negotiation failed.
Aug 25 14:44:13 backupserver1 kernel: iSCSI/iqn.2011-01.com.<example>.<servername>:<password>: Unsupported SCSI Opcode 0xa3, sending CHECK_CONDITION.
I remembered there was a ":01" between the username and the password in the default name. Removing this yielded a better result, the message with the unsupported SCSI Opcode 0xa3 disappeared.
But I still get these every 10 seconds:
Also, I now have another device on my PVE, pvesm status reports my iSCSI target as active. Why do I still get error messages? https://forum.proxmox.com/threads/iscsi-login-negotiation-failed.41187/ seems to describe my problem. Is there no better way? Testing a nmap -p 3260 <ip> also shows the host up and running and the port open. Or please check health using a valid login that does not spam the syslog.Aug 25 14:52:23 backupserver1 kernel: rx_data returned 0, expecting 48.
Aug 25 14:52:23 backupserver1 kernel: iSCSI Login negotiation failed.