zfs rollback

Status
Not open for further replies.

somboku

Cadet
Joined
Aug 25, 2014
Messages
9
hi guys,

the following setup:
i've created a zfs volume and and a zvol with 10GB in it.
give it as an extent to iscsi.

connected on an other machine that provides this for its own
virtual machines (proxmox).

now, if i do a snapshot on freenas its not possible to do a rollback
unless i turn the whole iSCSI service off what
is of course not the best way, as i have more extents and more clients
who uses iSCSI over freenas.

so my question is, ist there a way just to turn off that one extent temporarly
so that the iscsi daemon does not lock that device and a zfs rollback
can be done?

thanks
somboku
 
J

jkh

Guest
I don't understand the question. What do you mean by "rollback?" Too many moving parts with too few details here. Please list the precise set of steps you are trying to do. Thanks.
 

somboku

Cadet
Joined
Aug 25, 2014
Messages
9
hoi jkh,

thanks for your reply.

well, i want to do a rollback to a snapshot i've created on that zfs volume but it says that it cant do a rollback
because the device is busy.
i just can do a rollback if i stop the iscsi daemon
'couse of course the iscsi damon is "sitting" on that volume respectively it locks it somehow.
and i just want temp. not to share that volume via iscsi but i dont want to stop the iscsi daemon
because i have other volumes also and those are needed.

i hope now its a bit clearer.


S.
 
D

dlavigne

Guest
Try removing the target to extent mapping for that one zvol, perform the ZFS rollback, then put the target to extent mapping back.
 
Status
Not open for further replies.
Top