Attach Zvol with existing data (not blank) to iSCSI

NatK

Cadet
Joined
Aug 22, 2022
Messages
4
Hi
I am a newbie here. I have a question to ask everyone. Is it possible to create an iSCSI share by using the Zvol (with data on it)?

I am able to create iSCSI with a blank Zvol. It works without any issues. XCP-NG server can read/write into it. But when I tried to add iSCSI with ZVOL that has existing data, the device won't show in iSCSI wizard screen. My Zvol contains VM data that I created with Trunas SCALE VM that I would like to migrate to the XCP-NG server.

Thank you in advance.
Nat
 

NatK

Cadet
Joined
Aug 22, 2022
Messages
4
I still can't figure out how to do it.

However, I ended up backing up VM's Zvol (in Truenas VM) with Clonezilla into an image that can migrate to XCP-NG server.
In XCP-NG server, I attached a blank Zvol from Truenas with iSCSI and then restore the image onto it. In the end, the VM ran without any issues.
 
Top