QCOW2イメージをiSCSI LUNに書きますか?

QCOW2イメージをiSCSI LUNに書きますか?

QCOW2イメージをiSCSI LUNターゲットに書き込もうとしましたが、成功しませんでした。に基づいてこれリンクを介してこれを行う必要がありますが(iSCSI LUNをディスクにマウントしなくても可能でなければなりません)、私が何をしたいのかを単純に実行できないかどうかを返すエラーのため、明確ではありません。またはURLにある場合は文法エラーがあります。

オペレーティングシステムはDebian(Proxmox)です。

この出力に従ってLUNを表示する必要があります。

root@delta-vm:~# pvesm list TrueNAS
Volid                                                Format  Type             Size VMID
TrueNAS:0.0.0.scsi-36589cfc000000f18d78a50cff1dec18b raw     images    48318386176
root@delta-vm:~# ls /dev/disk/by-path/
ip-10.0.50.1:3260-iscsi-iqn.2005-10.org.freenas.ctl:delta-proxmox-target-lun-0  pci-0000:00:1f.2-ata-5.0-part1  pci-0000:00:1f.2-ata-5-part2
ip-10.0.60.1:3260-iscsi-iqn.2005-10.org.freenas.ctl:delta-proxmox-target-lun-0  pci-0000:00:1f.2-ata-5.0-part2  pci-0000:00:1f.2-ata-5-part3
pci-0000:00:1f.2-ata-5                                                          pci-0000:00:1f.2-ata-5.0-part3  pci-0000:00:1f.2-ata-6
pci-0000:00:1f.2-ata-5.0 

しかし、これを試してみるとエラーメッセージが表示され、混乱します。

root@delta-vm:~# qemu-img convert -O raw /var/lib/vz/template/iso/Rocky-9-GenericCloud-Base.latest.x86_64.qcow2.img iscsi://10.0.50.1:3260/iscs-iqn.2005-10.org.freenas.ct
l/delta-proxmox-target-lun-0
qemu-img: iscsi://10.0.50.1:3260/iscsi-iqn.2005-10.org.freenas.ctl/delta-proxmox-target-lun-0: error while converting raw: Protocol driver 'iscsi' does not support image creation, and opening the image failed: Failed to parse URL : iscsi://10.0.50.1:3260/iscsi-iqn.2005-10.org.freenas.ctl/delta-proxmox-target-lun-0

上記のURLの一部の置換を試しましたが、何も機能しないようです。たとえば、iscsi-URLから文字列を削除しても役に立ちません(iSCSIグローバル設定は役に立ちますiqn.2005-10.org.freenas.ctl)。

root@delta-vm:~# qemu-img convert -O raw /var/lib/vz/template/iso/Rocky-9-GenericCloud-Base.latest.x86_64.qcow2.img iscsi://10.0.50.1:3260/iqn.2005-10.org.freenas.ctl/del
ta-proxmox-target-lun-0
qemu-img: iscsi://10.0.50.1:3260/iqn.2005-10.org.freenas.ctl/delta-proxmox-target-lun-0: error while converting raw: Protocol driver 'iscsi' does not support image creation, and opening the image failed: Failed to parse URL : iscsi://10.0.50.1:3260/iqn.2005-10.org.freenas.ctl/delta-proxmox-target-lun-0

何が間違っているのか手がかりはありますか? iSCSIポータルが認証されていないため、上記のURLにユーザー/パスワードの組み合わせを提供していません。

完全な開示のために(そしてこれが私の質問とは無関係であることを認めます)、これらのスイングの究極の目標は、qemuのディスク(リムーバブルストレージなど)をローカルストレージからiSCSI LUNに再配置できることを確認することです。しかし、何らかの理由でProxmoxではこれが正しく実装されていないため、景色の良い道を選ぶ必要がありました。つまり、これを考えると…

root@delta-vm:~# qm config 105
agent: 1
...
onboot: 1
scsi0: samsung:vm-105-disk-0,discard=on,iothread=1,replicate=0,size=12G,ssd=1
scsihw: virtio-scsi-single
....

scsi0...このデバイスをiSCSI LUNに交換したいと思います。私から集める、現在のディスクイメージをLUNに具体化するコードが存在せず、エラー(storage migration failed: can't allocate space in iscsi storage)が発生するため、これは不可能です。

編集:いくつかの進捗状況 - 指定サイズこのディレクティブのパラメータはエラーを変更します。 URLに問題があるようです。

root@delta-vm:~# qemu-img convert -O raw /var/lib/vz/template/iso/Rocky-9-GenericCloud-Base.latest.x86_64.qcow2.img iscsi://10.0.50.1:3260/iscsi-iqn.2005-10.org.freenas.ctl/delta-proxmox-target-lun-0 10G
qemu-img: Could not open 'iscsi://10.0.50.1:3260/iscsi-iqn.2005-10.org.freenas.ctl/delta-proxmox-target-lun-0': Failed to parse URL : iscsi://10.0.50.1:3260/iscsi-iqn.2005-10.org.freenas.ctl/delta-proxmox-target-lun-0

ベストアンサー1

おすすめ記事