Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Oct 2007 15:05:48 +0100
From:      "Daniel Eriksson" <daniel_k_eriksson@telia.com>
To:        <freebsd-questions@freebsd.org>
Subject:   Migrating a file system with minimal downtime
Message-ID:  <4F9C9299A10AE74E89EA580D14AA10A61A1834@royal64.emp.zapto.org>

next in thread | raw e-mail | index | archive | help

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4F9C9299A10AE74E89EA580D14AA10A61A1834>