ZFS: Unmount or take a filesystem offline

Home -> UNIX -> Solaris -> System administration

5859 views

From the computer of: qmchenry (338 recipes)
Created: Jun 03, 2006


Add a comment

Add to:
Add to stumbleuponAdd to del.icio.usDigg itAdd to FURL

The mount and unmount commands are not used with ZFS filesystems. The filesystem concept has changed with ZFS in which we are likely to see many more filesystems created per host. A ZFS pool can be taken offline using the zpool command and a ZFS filesystem can be unmounted using the zfs command as described in this recipe.

Given a ZFS pool techrx, the command to take it offline is:

zpool offline techrx


Using the command in this manner takes the techrx pool offline permanently (i.e., will remain offline following a reboot) until it is manually brought online.

To take the same pool offline temporarily (so that it will be online automatically at the next reboot), add the -t option:

zpool offline -t techrx


Individual filesystems within a pool can be umounted with the zfs command. To unmount the /techrx/home/qmchenry filesystem, use this command:

zfs unmount techrx/home/qmchenry


All other filesystems in the techrx pool are left unchanged.

Subscribe to the Tech-Recipes Newsletter

You can get tips like this delivered in your email every week!

Enter your Email

We will never, ever sell your email address or spam you.





Related recipes:

  Solaris: unmounting a filesystem with umount
  Solaris: fuser to find users or processes making filesystem umount fail
  Disable a CPU in Solaris using psradm
  ZFS: Grow or add more disk space to pool or filesystem
  Solaris: Mount filesystem with UFS logging enabled
  Automatically answer yes to all fsck questions
  ZFS: Set or change the mount point of a filesystem
  Check filesystem integrity
  ZFS: Destroy or remove one or more filesystems
  ZFS: Create a writable clone of a filesystem

 

Sponsored links

 

Login

Nickname

Password

Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.