linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* The effects of multiple layers of block drivers
@ 2008-01-10 22:58 Dennison Williams
  2008-01-11  1:45 ` Neil Brown
  2008-01-11  8:38 ` Nagilum
  0 siblings, 2 replies; 3+ messages in thread
From: Dennison Williams @ 2008-01-10 22:58 UTC (permalink / raw)
  To: linux-raid

Hello,

I am starting to dig into the Block subsystem to try and uncover the
reason for some data I lost recently.  My situation is that I have
multiple block drivers on top of each other and am wondering how the
effectss of a raid 5 rebuild would affect the block devices above it.

The layers are raid 5 -> lvm -> cryptoloop.  It seems that after the
raid 5 device was rebuilt by adding in a new disk, that the cryptoloop
doesn't have a valid ext3 partition on it.

As a raid device re-builds is there ant rearranging of sectors or
corresponding blocks that would effect another block device on top of it?

Sincerely,
Dennison Williams

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: The effects of multiple layers of block drivers
  2008-01-10 22:58 The effects of multiple layers of block drivers Dennison Williams
@ 2008-01-11  1:45 ` Neil Brown
  2008-01-11  8:38 ` Nagilum
  1 sibling, 0 replies; 3+ messages in thread
From: Neil Brown @ 2008-01-11  1:45 UTC (permalink / raw)
  To: Dennison Williams; +Cc: linux-raid

On Thursday January 10, evoltech@2inches.com wrote:
> Hello,
> 
> I am starting to dig into the Block subsystem to try and uncover the
> reason for some data I lost recently.  My situation is that I have
> multiple block drivers on top of each other and am wondering how the
> effectss of a raid 5 rebuild would affect the block devices above it.

It should "just work" - no surprises.  raid5 is just a block device
like any other.  When doing a rebuild it might be a bit slower, but
that is all.

> 
> The layers are raid 5 -> lvm -> cryptoloop.  It seems that after the
> raid 5 device was rebuilt by adding in a new disk, that the cryptoloop
> doesn't have a valid ext3 partition on it.

There was a difference of opinion between raid5 and dm-crypt which
could cause some corruption.
What kernel version are you using, and are you using dm-crypt or loop
(e..g losetup) with encryption?


> 
> As a raid device re-builds is there ant rearranging of sectors or
> corresponding blocks that would effect another block device on top of it?

No.

NeilBrown

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: The effects of multiple layers of block drivers
  2008-01-10 22:58 The effects of multiple layers of block drivers Dennison Williams
  2008-01-11  1:45 ` Neil Brown
@ 2008-01-11  8:38 ` Nagilum
  1 sibling, 0 replies; 3+ messages in thread
From: Nagilum @ 2008-01-11  8:38 UTC (permalink / raw)
  To: Dennison Williams; +Cc: linux-raid

[-- Attachment #1: Type: text/plain, Size: 2094 bytes --]

----- Message from evoltech@2inches.com ---------
     Date: Thu, 10 Jan 2008 14:58:49 -0800
     From: Dennison Williams <evoltech@2inches.com>
Reply-To: Dennison Williams <evoltech@2inches.com>
  Subject: The effects of multiple layers of block drivers
       To: linux-raid@vger.kernel.org


> Hello,
>
> I am starting to dig into the Block subsystem to try and uncover the
> reason for some data I lost recently.  My situation is that I have
> multiple block drivers on top of each other and am wondering how the
> effectss of a raid 5 rebuild would affect the block devices above it.
>
> The layers are raid 5 -> lvm -> cryptoloop.  It seems that after the
> raid 5 device was rebuilt by adding in a new disk, that the cryptoloop
> doesn't have a valid ext3 partition on it.
>
> As a raid device re-builds is there ant rearranging of sectors or
> corresponding blocks that would effect another block device on top of it?
>
> Sincerely,
> Dennison Williams

----- End message from evoltech@2inches.com -----

If you add a disk and do a reshape the layer on top of the raid5  
should only notice that the device is larger now. But yes, there is a  
rearranging of sectors going on. However this is transparent to layers  
on top.
Did you have a disk failure during the reshape? If yes you probably  
have been bitten by the same bug as me:  
(http://marc.info/?l=linux-raid&m=119910305111460&w=2).
Kind regards,

========================================================================
#    _  __          _ __     http://www.nagilum.org/ \n icq://69646724 #
#   / |/ /__ ____ _(_) /_ ____ _  nagilum@nagilum.org \n +491776461165 #
#  /    / _ `/ _ `/ / / // /  ' \  Amiga (68k/PPC): AOS/NetBSD/Linux   #
# /_/|_/\_,_/\_, /_/_/\_,_/_/_/_/   Mac (PPC): MacOS-X / NetBSD /Linux #
#           /___/     x86: FreeBSD/Linux/Solaris/Win2k  ARM9: EPOC EV6 #
========================================================================


----------------------------------------------------------------
cakebox.homeunix.net - all the machine one needs..


[-- Attachment #2: PGP Digital Signature --]
[-- Type: application/pgp-signature, Size: 187 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-01-11  8:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-10 22:58 The effects of multiple layers of block drivers Dennison Williams
2008-01-11  1:45 ` Neil Brown
2008-01-11  8:38 ` Nagilum

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).