ZFS Difficulty repurposing a zvol I was using with a Linux VM under bhyve in a real machine.

This particular issue touches networking, emulation, and storage, so I apologize if this would have been more appropriately posted under one of those forums.

Anyway, I've been running an Linux VM for some time under bhyve with a zvol as its persistent storage. I recently wanted to move that VM to another machine, but keep the zvol on the same server.

To accomplish this, I shared the zvol device over iSCSI and connected to it via a different Linux machine. While the Linux machine does see the zvol and its size correctly, it sees the whole thing as an unformatted disk when doing `fdisk -l`. Given that it was used with a Linux VM, I was expecting it to see the partition table with all of the partitions.

There isn't a "bhyve image format" like with VirtualBox. etc that I need to convert from, right? From what I understand, bhyve just passes whatever block device you give it directly to the OS, but I haven't been able to find any documentation that says that specifically.

Is there something else I'm missing here? I'm completely new to iSCSI.
 
Update on this: I was able to get everything working again by using parted in Linux to guess the partition table. Not sure how the table got messed up to begin with.
 
Back
Top