Re: Migrating a file system with minimal downtime

2007-10-30 Thread Doug Clements
On 10/30/07, Daniel Eriksson <[EMAIL PROTECTED]> wrote:
>
>
> I want to migrate a file system containing multiple jails from a small
> drive to a large (RAID-1) array. I want to do this with minimal
> downtime.
>

I did a migration like this, but instead of dump, I used rdist. Take an
initial snapshot (live) with rdist, then when you're ready to do the final
copy, the offline rdist will run much more quickly, resulting in less
downtime. Replace rdist with rsync if you like.

--Doug
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Migrating a file system with minimal downtime

2007-10-30 Thread Daniel Eriksson

I want to migrate a file system containing multiple jails from a small
drive to a large (RAID-1) array. I want to do this with minimal
downtime.

Simply shutting down the jails and using dump/restore to move the file
system takes too long, but what if I do it in several steps like this:

1. "dump -0 -L -f - /usr/jails | restore -rf -" to dump the live file
system at level 0
2. shut down the jails
3. unmount the original file system
4. "dump -1 -f - /usr/jails | restore -rf -" to dump any changes since
the first dump
5. remount the new file system in the proper location
6. restart the jails

This should work, right? Or am I missing something? (One of the jails is
a mysql server, the rest are www servers.)


/Daniel Eriksson
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"