Before hot-eject: how do I tell FreeNAS I'm done with the disk?

seanm

Guru
Joined
Jun 11, 2018
Messages
570
I'm looking to use a single large disk as an offsite backup. I'll bring it into the office periodically, hot-insert it (yes my hardware supports that), use 'zfs send' to update it, then... I'm unclear what to do before physically hot-ejecting it. I know I need to tell the system to stop using the disk, but I'm unsure what verb FreeNAS and/or ZFS nomenclature uses. Do I want 'zfs offline', 'zfs unmount', or 'zfs export'? Can I do it from the GUI?

Thanks.
 
Joined
Jul 3, 2015
Messages
926
'Detach Volume' from the GUI but *DONT* 'Mark the disks as new' otherwise that will wipe the data.
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504

seanm

Guru
Joined
Jun 11, 2018
Messages
570
Thanks both.

Interestingly, after pressing "Export/Disconnect", the confirmation box uses the word "detach" (probably leftover from 9.x).

So is the actual ZFS operation a 'zpool export'?
 

seanm

Guru
Joined
Jun 11, 2018
Messages
570
Thx. Another question, why does the confirmation box say: "Back up any critical data before exporting/disconnecting a pool." Why would ejecting a disk warrant backing up first?
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
Why would ejecting a disk warrant backing up first?
I couldn't really say. Wild guesses include (1) the warning includes the possibility that you've checked the box to destroy data, and/or (2) the data certainly won't be available on the system once the pool's exported.
 
Top