xfs
[Top] [All Lists]

Re: Filesystem conversion

To: Timothy Ball <timball@xxxxxxx>, XFS Mailing List <linux-xfs@xxxxxxxxxxx>
Subject: Re: Filesystem conversion
From: Seth Mos <knuffie@xxxxxxxxx>
Date: Thu, 28 Jun 2001 18:49:01 +0200
In-reply-to: <20010628095344.D3920@gwyn.tux.org>
References: <4.3.2.7.2.20010628132843.02f35510@pop.xs4all.nl> <01062812533100.01258@citadel.oehansen.pp.se> <4.3.2.7.2.20010628132843.02f35510@pop.xs4all.nl>
Sender: owner-linux-xfs@xxxxxxxxxxx
At 09:53 28-6-2001 -0400, Timothy Ball wrote:
On Thu, Jun 28, 2001 at 01:34:00PM +0200, Seth Mos wrote:
> Boot single user
> dump.static -0 -a -f /mnt/hde/var.dump /var
> umount /var
> mkfs.xfs -l size=32768b -f /dev/sda7
> vi /etc/fstab (change fstype)
> mount /var
> cd /var
> restore.static -rf /mnt/hde/var.dump

I've written some shell scripts ment to be run as a single user that
already do this. They're available at www.tux.org/~timball/. It uses
spare space on another device and a loopback to do the dump and
restore...

course I'm using cp -dRp or some flags like that... what's the benifits
of using dump?

If it's large it will give you a progress counter in hours:minutes to completion. So you can see it as an indicator of how long I can keep interneting before I need to do something useful again.


It also keeps within the filesystem and it produces one or more file with an entire filesystem or you could even dump it on tape.
We have a Ultrium tape driver over here that can manage more then 10MB/s which means you can dump and restore pretty quick.
It also produces errors when something is going bonkers and should be noticed.
Tar could also do this, but dump/restore were written specially for this cause.


If you decide to edit the script make sure to use the dump.static version in case someone decides to backup their /usr partition on a single user booted system. I made this mistake once already.

Cheers

--
Seth
Every program has two purposes one for which
it was written and another for which it wasn't
I use the last kind.


<Prev in Thread] Current Thread [Next in Thread>