Mounting and unmounting external ZFS disks

Moderators: jhartley, MSR734, nola

Mounting and unmounting external ZFS disks

Post by si-ghan-bi » Mon Sep 17, 2012 12:28 pm

Hello,
it's not clear to me the correct way to detach an external ZFS drive, let's suppose it is alone in a zpool.
Should I "zfs unmount" and then turn it off, or should I just give the "eject" command with the Finder? I think the results are not the same: with "zfs unmount" I can give after that the "zfs mount" command, and if I use the eject from the Finder, I have to give the "zpool import" command.

I'm new to ZFS and I would like to be sure not to turn off a filesystem still in use.
si-ghan-bi Offline


 
Posts: 145
Joined: Sat Sep 15, 2012 5:55 am

Re: Mounting and unmounting external ZFS disks

Post by nola » Mon Sep 17, 2012 3:43 pm

In general you want to use 'eject' in Finder. If you want to do the same on the commandline use:

# zfs export <poolname>

-nola
nola Offline


 
Posts: 4
Joined: Wed Sep 12, 2012 9:42 am

Re: Mounting and unmounting external ZFS disks

Post by si-ghan-bi » Mon Sep 17, 2012 3:56 pm

Thanks
si-ghan-bi Offline


 
Posts: 145
Joined: Sat Sep 15, 2012 5:55 am

unmount or eject, followed by mount

Post by grahamperrin » Tue Sep 18, 2012 1:48 am

Unmount or eject, followed by mount of the same volume

Under investigation: with Mountain Lion, the kernel may panic when mount is attempted.

Workarounds include any of the following:

  • zpool export
  • zfs mount (mount, diskutil mount, and Disk Utility mount are avoided)
  • disconnect then reconnect the disk drive(s).
grahamperrin Offline

User avatar
 
Posts: 1596
Joined: Fri Sep 14, 2012 10:21 pm
Location: Brighton and Hove, United Kingdom

possible correction

Post by grahamperrin » Tue Sep 18, 2012 1:50 am

nola wrote:# zfs export <poolname>


Please, should that be zpool export …?
grahamperrin Offline

User avatar
 
Posts: 1596
Joined: Fri Sep 14, 2012 10:21 pm
Location: Brighton and Hove, United Kingdom

disk arbitration

Post by grahamperrin » Tue Sep 18, 2012 2:08 am

si-ghan-bi wrote:… I would like to be sure not to turn off a filesystem still in use.


From what I saw with previous versions, with normal use of ZEVO I think there's no risk of inadvertently upsetting things around files or file systems that are in use. Things such as Apple's diskarbitrationd behave as expected with ZEVO.

Beyond the norm: if you plan to use force within a command, proceed with caution.
grahamperrin Offline

User avatar
 
Posts: 1596
Joined: Fri Sep 14, 2012 10:21 pm
Location: Brighton and Hove, United Kingdom

Re: possible correction

Post by roddi » Tue Sep 18, 2012 4:32 am

grahamperrin wrote:
nola wrote:# zfs export <poolname>


Please, should that be zpool export …?


Yes, of course!
roddi Offline


 
Posts: 5
Joined: Mon Sep 17, 2012 3:08 am


Return to General Discussion

Who is online

Users browsing this forum: ilovezfs and 1 guest

cron