When I created the pool, I set it to mount to /mystorage

zpool create -m /mystorage mypool raidz /dev/ada0 dev/ada1 /dev/ada2

But now I want the pool to mount to /myspecialfolder.

Any ideas how it can be done? I've searched the net and look at zpool and zfs manpages and found nothing.


1 Answer 1

zfs set mountpoint=/myspecialfolder mypool
  • I didn't realize I can change the mount point while the pool in in use. I thought I needed to export it first and then change the mount point during import. Thank you!
    – mrjayviper
    Commented Sep 22, 2016 at 11:44
  • 4
    @mrjayviper If you use the normal commands (not special options like -F or similar) and stay away from destroy, you cannot do much harm on ZFS. If an operation is not possible, you would get resource busy, dataset in use or similar. Of course, this is only for the filesystem - your applications may react differently (should handle such events themselves).
    – user121391
    Commented Sep 23, 2016 at 8:44
  • 9
    zfs create -o mountpoint=/myspecialfolder mypool at create time Commented Oct 22, 2018 at 0:18

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .