             execute_on
                 host    : opts.host
                 timeout : 30
-                command : "sudo zfs set mountpoint=none #{filesystem(opts.project_id)}&&sudo zfs umount #{filesystem(opts.project_id)}"
+                command : "sudo zfs set mountpoint=none #{filesystem(opts.project_id)}&&sudo zfs umount #{mountpoint(opts.project_id)}"
                 cb      : (err, output) ->
                     if err
                         if err.indexOf('not currently mounted') != -1    # non-fatal: to be expected (due to using both mountpoint setting and umount)

                    cb(err)
        (cb) ->
            f = (project_id, cb) ->
                winston.debug("migrate_all -- #{project_id}")
                exports.migrate
                    project_id : project_id
                    cb         : (err) ->

                host                    : new_host
                min_snapshot_interval_s : 0
                wait_for_replicate      : true
                force                   : true
                cb                      : cb
        (cb) ->
            dbg("close project")
