All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Ceuleers <jan.ceuleers@computer.org>
To: linux-raid@vger.kernel.org
Subject: Re: Converting system to raid
Date: Sat, 11 Apr 2009 09:48:13 +0200	[thread overview]
Message-ID: <49E04B3D.3010308@computer.org> (raw)
In-Reply-To: <Pine.LNX.4.61.0904110035420.6312@soloth.lewis.org>

Jon Lewis wrote:
> Can you cite an example of a file that can't be copied on a "running 
> system?"

All files that are open for writing at the time of the copy risk being 
copied incompletely. Use lsof to find them (but that's a snapshot).

> Sure, there are issues if the system is really up and running multi-user 
> with log files that will be copied partially and probably end up 
> terminated with extra nulls, database files may have issues (i.e. mysql 
> if you don't flush and lock the tables, copied tables will be corrupt 
> but are usually trivially repairable), but I've never heard of files not 
> being at all readable.

I submit that these issues, even if you regard them as trivially 
repairable, are best avoided altogether by making the copy while the 
filesystem is not in use. And "trivially repairable" presupposes that 
you know that there is something to be repaired in the first place, and 
then that you know how to do it. Some of these issues may not manifest 
themselves until some time after you've begun using the flawed clone, at 
which time you may have forgotten all about this, may no longer have 
access to the original data etc.

To the OP: if you want to limit downtime resulting from the fact that 
the clone has to be made while the filesystem is not in use, you can use 
rsync to make your copy while the filesystem is still in use (but this 
copy will be incomplete/flawed etc), and then use rsync again after 
you've booted from a CD or whatever. The second rsync run will be much 
faster because it will only copy the files that have changed since the 
first run, including those that were open at the time of the first run.

Cheers, Jan

  reply	other threads:[~2009-04-11  7:48 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-09 23:44 Converting system to raid Timothy D. Lenz
2009-04-10  9:10 ` KwangErn Liew
2009-04-10  9:55   ` CoolCold
2009-04-10 19:43     ` Timothy D. Lenz
2009-04-10 19:53   ` Robin Hill
2009-04-10 20:45     ` Timothy D. Lenz
2009-04-10 20:59       ` Robin Hill
2009-04-10 21:26         ` Timothy D. Lenz
2009-04-10 21:51           ` Robin Hill
2009-04-11  5:29             ` Timothy D. Lenz
2009-04-11 14:29               ` CoolCold
2009-04-11 18:47                 ` Timothy D. Lenz
2009-04-12  0:53                   ` Timothy D. Lenz
2009-04-12 11:11                     ` Robin Hill
2009-04-12 19:55                       ` Timothy D. Lenz
2009-04-14  9:30                         ` Robin Hill
2009-04-17  0:47                           ` Timothy D. Lenz
2009-04-17  7:49                             ` Robin Hill
2009-04-11 14:36               ` Robin Hill
2009-04-11 15:04                 ` jim owens
2009-04-11 15:44                   ` Jeff Garzik
2009-04-11 17:40                     ` jim owens
2009-04-12 11:11                       ` Jeff Garzik
2009-04-12 16:43                         ` jim owens
2009-04-12 17:18                           ` Jeff Garzik
2009-04-10 13:22 ` Robin Hill
2009-04-10 19:22   ` Timothy D. Lenz
2009-04-10 19:50     ` Robin Hill
2009-04-11  4:40       ` Jon Lewis
2009-04-11  7:48         ` Jan Ceuleers [this message]
2009-04-11  8:50         ` Goswin von Brederlow

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=49E04B3D.3010308@computer.org \
    --to=jan.ceuleers@computer.org \
    --cc=linux-raid@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.