Linux LVM users
 help / color / mirror / Atom feed
From: Peter Larsen <plarsen@CIBER.com>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] LVs corrupted after pvresize
Date: Fri, 17 Oct 2008 01:23:50 -0400	[thread overview]
Message-ID: <1224221030.7772.17.camel@localhost.localdomain> (raw)
In-Reply-To: <48F80EFB.30404@knebb.de>

On Fri, 2008-10-17 at 06:05 +0200, Christian Völker wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Yohoo!
> 
> |> I resized one of these RAID arrays for additional 250GB. After this was
> | Resizing a RAID-5 array is often not what you think, and doing so often
> | scrambles the data, depending on what RAID implementation you are using.
> I'm using a hardware RAID 3ware 9500S Controller. And this guy offers
> migration from RAID10 (4disks) to RAID5 (4disks, but with larger capacity).
> And I already did this task several times on these types of controllers.

That wasn't really the issue raised. Extending raids by adding new disks
doesn't do a balanced increase. In other words, you don't get a very
well functioning raid. Doing true raid migration is not straight
forward. So unless you fully restructure all data, you aren't getting
the performance you should be getting.

> | In any case, LVM was not your problem.
> This answer is too simple to be true.

Not really. Your approach was very poor.

> After the resize the partition and the PV were recognized correctly! 

Because at that time, the PVs were intact.

> So
> I'm pretty sure the migration was ok.

Again, you misunderstood Stuart's comment. He didn't say your RAID
migration didn't work. He said it wasn't optimal.

> But after the deletion of the partion, recreation and pvcreate

That's the error. There's a pvresize for a reason. You also need to use
the same UUID. Removing the PV makes your vg inconsistent and you've
basically @#$@# up LVM.

> everything went wrong. So for me it is obvious, LVM had an issue. But
> which one?

No - your use of LVM was wrong. Not LVM itself. 

--- 
Regards
    Peter Larsen

"Right now I'm having amnesia and deja vu at the same time."
		-- Steven Wright

  reply	other threads:[~2008-10-20 14:33 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-16 21:09 [linux-lvm] LVs corrupted after pvresize Christian Völker
2008-10-16 22:31 ` Stuart D. Gathman
2008-10-17  4:05   ` Christian Völker
2008-10-17  5:23     ` Peter Larsen [this message]
2008-10-20 15:41       ` Stuart D. Gathman
2008-10-20 18:50         ` Peter Larsen
2008-10-21 11:13           ` Morten Torstensen
2008-10-21 14:07             ` Larry Dickson
2008-10-21 14:44               ` Stuart D. Gathman

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=1224221030.7772.17.camel@localhost.localdomain \
    --to=plarsen@ciber.com \
    --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