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
    Sep 22, 2016 at 11:44
  • 3
    @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
    Sep 23, 2016 at 8:44
  • 6
    zfs create -o mountpoint=/myspecialfolder mypool at create time Oct 22, 2018 at 0:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.