kraduk at gmail.com
Thu Jan 9 08:31:10 UTC 2014
if the disk is that old I would guess its pretty good odds, that the
machine is old too. If this is the case, you might want to considered
replacing the lot and going for a full upgrade of os as well, or maybe
virtualizing the os.
If you decide to go for a new disk alone, I would stay away from dd'ing the
disk as its slow and cumbersome, and will cause complications on a new
drive of bigger capacity, which is a given really. My preferred way of
restoring or duplicating a freebsd system, is to boot into a live
enviroment (latest full bsd install on a usb stick mostly). I then use
gpart to splice up the disk, and format the slices with newfs, and then
mount them up under /mnt in their correct structure, I then push the old os
to the new one over the network via rsync to an rsync server running on the
destination machine. This allows me to copy with out shutting down the
source disk. My rsync config is something similar to
path = /mnt
read only = false
I then use the following command to push the os over
rsync -aPHW --numeric-ids --exclude="/dev/**" --exclude="/proc/**" /
finally install the boot blocks
If the os is prior to freebsd 5.x make sure you newfs in UFS1 not UFS2
which is the default.
If you go for an os upgrade, just install the os, match the package list as
best you can, and port essential things from the /etc and /home trees, then
prepare for a lot of testing as lots of big version bumps will have
happened. If the site is a static one it should be fine though, but php etc
you will probably find a few issues.
Alternatively you could copy /usr/local and /var/db/pkg from the old
machine, and install the relevent compat libraries. Personally I would
avoid this though.
On 9 January 2014 07:29, Erich Dollansky <erichsfreebsdlist at alogt.com>wrote:
> On Thu, 9 Jan 2014 14:21:52 +0700
> Olivier Nicole <olivier.nicole at cs.ait.ac.th> wrote:
> > Steve,
> > >> Is it possible to take such a mirror copy of such a hard disk so
> > >> that i can replace it as a hot swap. I request all of your
> > >> expertise. How to do hot swap?please shed some light on it.
> > >
> > > Why not use a RAID1 mirror instead of a hot swap, then when
> > > it's needed you don't get downtime, you also get the benefit of
> > > better read performance, and of course it's guaranteed up to date.
> > Remember the old disk is dying. i would not advise building a raid
> > around a dying disk :)
> there is a little bit more than just one disk dying. Did he ever post
> the result of a smartctl -a?
> freebsd-questions at freebsd.org mailing list
> To unsubscribe, send any mail to "
> freebsd-questions-unsubscribe at freebsd.org"
More information about the freebsd-questions