On Sun, 20 Jul 2008 08:02:05 PDT
uluen <uluen at hotmail.com> wrote:

> I'm trying to move the home directories from "/export/home" to zfs 
> "tank/home".
> What is the best way to accomplish this?
> 
> I tried creating "tank/home" and mount it "/export/home" but that didn't work 
> since it's already mounted "rpool/export/home".

> I think (hope) I'm missing something obvious here :)

Like it already being mounted on zfs?  Mounted on rpool/export/home
means it's mounted on a zfs file system. So if the goal is to get it
onto zfs, that's already done.

If you want to rename it, but are happy with it in the rpool pool,
then you can just use zfs rename - but it has to be renamed to
rpool/something, you can't "rename" it into a different pool.

If you want to actually move the contents of the home directories to
new pool, then use zfs send to dump it and zfs receive to restore it
on a new one.

> Is "zfs create tank/home/user", "chown user userfolder", "chgrp group 
> userfolder" needed to add users?

Of course, after you've moved the directories, you'll need to either
use usermod -d to let the system know that those directories are now
in a new location, or unmount/destroy the old rpool/export/home and
mount the new one one /export/home.

      <mike
-- 
Mike Meyer <mwm at mired.org>           http://www.mired.org/consulting.html
Independent Network/Unix/Perforce consultant, email for more information.

O< ascii ribbon campaign - stop html mail - www.asciiribbon.org

Reply via email to