Export ZVOL from Truenas Scale

netspear.io

Dabbler
Joined
Feb 14, 2022
Messages
17
Hey, I'm trying to export a zvol from truenas scale to a project. but I'm having trouble doing so. I wanted to export it as a raw file. Does anyone know how?
 

sfatula

Guru
Joined
Jul 5, 2022
Messages
608
You can also use qemu-img if you want to convert it to another image type.
 

netspear.io

Dabbler
Joined
Feb 14, 2022
Messages
17
So I tried that and I keep getting this error:

dd: writing to 'VMDrive.raw': No space left on device

I have 128gb of Memory and 1.5tb of space. more than enough. but this is the error I keep getting.
 

sfatula

Guru
Joined
Jul 5, 2022
Messages
608
How big is the zvol and what format do you want the output in? Sample command (not tested) qemu-img -o qcow2 /dev/zvol/tank/somezvol somefile.qcow2, not sure what you are trying to get out of it.
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
What did you pick for /path/to/file.raw? Is there enough space in that exact location?
 

netspear.io

Dabbler
Joined
Feb 14, 2022
Messages
17
How big is the zvol and what format do you want the output in? Sample command (not tested) qemu-img -o qcow2 /dev/zvol/tank/somezvol somefile.qcow2, not sure what you are trying to get out of it.
The ZVOL is 120gb Volume, and i have one that's 256gb Volume.
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
What do you mean by "same folder"? if there is enough room, you don't get a "no space left on device" error. Plain and simple.
 
Top