Migrating a file system with minimal downtime
- From: "Daniel Eriksson" <daniel_k_eriksson@xxxxxxxxx>
- Date: Tue, 30 Oct 2007 15:05:48 +0100
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@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"
- Follow-Ups:
- Re: Migrating a file system with minimal downtime
- From: Doug Clements
- Re: Migrating a file system with minimal downtime
- Prev by Date: Re: Dangers of using a non-base shell
- Next by Date: Re: Undelivered Mail Returned to Sender
- Previous by thread: tar Ignoring out-of-order file What Does that Mean?
- Next by thread: Re: Migrating a file system with minimal downtime
- Index(es):