linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: Bryan Kadzban <bryan@kadzban.is-a-geek.net>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] Offline fsck (checking snapshots)
Date: Sun, 27 Apr 2008 19:37:26 -0400	[thread overview]
Message-ID: <48150E36.7090708@kadzban.is-a-geek.net> (raw)
In-Reply-To: <4814D88C.3050304@Media-Brokers.com>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160

Charles Marcus wrote:
> On 4/26/2008, Bryan Kadzban (bryan@kadzban.is-a-geek.net) wrote:
>> No particular reason, no. I just haven't used it in maybe 6 years,
>> so I don't remember much about it. I also assume that nobody
>> listening to the discussion on ext3-users uses it either (based on
>> the fact that nobody else asked for it). So it didn't get added.
>> :-)

Actually, now that I look again, there is a case in there for checking
reiserfs, but not for doing anything else (reading or writing the
last-checked date, for instance).

> I know, I've heard all of the horror stories... but my RAID card has
> a BBU on it, and my servers all have good UPS's on them

Some of the horror stories that I've heard are exactly the case that
you're protecting against with your batteries: Supposedly a sudden
removal of power causes some grief with certain journaling methods,
including the method that reiserfs uses.  (Or used to use; maybe it's
changed since then.)

Anyway...

>> I assume fsck.reiserfs is the right executable to use? [...] What 
>> args should be used to get it to check the snapshot FS, preferably 
>> making as few changes as possible?
> 
> Ouch... I wish I could help, I'd be happy to, but I'm just a lowly
> sys admin pretender, not a programmer... ;)

So I should go ask the reiserfs people then.  That's fine.  :-)

> Right now, I'm just trying to find the time to get an automated
> backup script running to pause some services (postfix+dovecot), take
> a snapshot of my /var, restart the services, run rsnapshot on the
> snapshot volume, then release the snapshot volume...

Feel free to use the LVM-specific bits of the script if you want (it is,
after all, GPLv2 or later).  It's just that most of the script focuses
on running fsck, not doing a backup, so it has a bunch of stuff that you
probably don't need.  But the LVM parts are the same no matter which
filesystem is on the logical volume.

Anyway, that's probably the check_fs function and anything that calls
it; you'd probably want to change perform_check to do your backup stuff,
though.  And you won't care about the $fstype stuff that's littered all
over the script, either, if you're just going to run rsnapshot.  (So you
don't need to run blkid either.)  But you can probably get rid of
try_delay_checks and try_force_check, along with on_ac_power.  And
should_still_check, and try_get_check_date.  (Plus the calls in to each
of these functions, of course.)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIFQ41S5vET1Wea5wRA96rAKDLUIo7evXELO9i/PDaz+0gG0N8QACfZ6f/
Ze+vrR9TsxnhD4cpkXom4Lg=
=5RRe
-----END PGP SIGNATURE-----

  reply	other threads:[~2008-04-27 23:37 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-24 22:39 [linux-lvm] Offline fsck (checking snapshots) Bryan Kadzban
2008-04-27  1:26 ` Charles Marcus
2008-04-27  2:17   ` Bryan Kadzban
2008-04-27 19:48     ` Charles Marcus
2008-04-27 23:37       ` Bryan Kadzban [this message]
2008-04-27 23:48         ` Dale
2008-05-10  1:07 ` David Coulson
2008-05-11  0:25   ` Bryan Kadzban

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=48150E36.7090708@kadzban.is-a-geek.net \
    --to=bryan@kadzban.is-a-geek.net \
    --cc=linux-lvm@redhat.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).