linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Daniel Johnson <ukfreebies@gmail.com>
To: Andreas Dilger <adilger@dilger.ca>
Cc: linux-ext4@vger.kernel.org
Subject: Re: Using latest e2fsprogs on various offline VM ext filesystems
Date: Sat, 18 Apr 2015 21:30:46 +0100	[thread overview]
Message-ID: <5532BEF6.5010801@gmail.com> (raw)
In-Reply-To: <A8589FB6-80B3-418C-9540-F9AA75FFCF72@dilger.ca>

Great, thanks Andreas for confirming that, and for the snapshot tip.
Dan

On 18/04/15 16:12, Andreas Dilger wrote:
> You can safely use newer e2fsprogs on older file systems. This should not
> affect compatibility with older kernels in any way, unless you explicitly
> enable features.
>
> Note that if you are using LVM/DM you could create a snapshot of the
> running device and run e2fsck on that. If no errors are found then you
> don't need to stop the VM at all. You can reset the last checked counter
> and mount count via tune2fs. Only if you find an error in the snapshot do
> you need to unmount the filesystem to fix it.
>
> Cheers, Andreas
>
>> On Apr 18, 2015, at 06:46, Daniel Johnson <dan.u.johns@gmail.com> wrote:
>>
>> Apologies if this "user" question has been asked before.
>>
>> Tomorrow I will be stopping a couple of dozen kvm virtual machines
>> running various Linux distros and running a forced e2fsck on all of
>> their ext filesystems. The distros are a mix of various flavours of
>> Ubuntu, Debian and Centos, so will include some fs created with older
>> kernels and E2fsprogs.
>>
>> The host is 64-bit Centos 6 running vanilla kernel 3.14.39. I figured
>> I'll build the latest E2fsprogs 1.42.12 for this rather than using the
>> Centos 6 e2fsprogs-1.41.12-21.el6.x86_64.
>>
>> My question is; should it be safe in theory to use the latest
>> E2fsprogs on a mix of ext filesystems in this way? I would have
>> thought so but don't want to rely on any assumptions :-)
>>
>> I'll be setting up device maps on the host server to get to the
>> filesystems on each VMs virtual disk, and doing read only checks. But
>> if anything needs a repair then I could potentially have a fs modified
>> on newer kernel & userspace that then has to boot inside a VM with a
>> distro with much older kernel and userspace such as Centos 5, which is
>> what I'm concerned about.
>>
>> Thanks,
>> Dan

      reply	other threads:[~2015-04-18 20:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-18 12:46 Using latest e2fsprogs on various offline VM ext filesystems Daniel Johnson
2015-04-18 15:12 ` Andreas Dilger
2015-04-18 20:30   ` Daniel Johnson [this message]

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=5532BEF6.5010801@gmail.com \
    --to=ukfreebies@gmail.com \
    --cc=adilger@dilger.ca \
    --cc=dan.u.johns@gmail.com \
    --cc=linux-ext4@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 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).