linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [slightly OT] expanding lvm volume group after growing raid5 array
@ 2007-04-19 11:35 Gavin McCullagh
  2007-04-19 15:21 ` FW: " Daniel Korstad
  0 siblings, 1 reply; 3+ messages in thread
From: Gavin McCullagh @ 2007-04-19 11:35 UTC (permalink / raw)
  To: linux-raid

Hi Folks,

I recently upgraded all four disks of a RAID5 array and then used "mdadm
--grow" to grow the raid array into the new bigger partitions available to
it and ran resize2fs.  Lovely.  

However, I've just tried this again on a similar machine and have grown the
array.  However, I've just noticed that the RAID5 array has an lvm volume
group on it with two logical volumes on that.  So now, I'd like to grow the
volume group so I can grow one of the logical volumes and grow the
filesystem therein.

I realise this is the raid group but has anyone come across how to do this?

Gavin


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

* FW: [slightly OT] expanding lvm volume group after growing raid5 array
@ 2007-04-19 15:21 ` Daniel Korstad
  2007-04-19 15:51   ` Gavin McCullagh
  0 siblings, 1 reply; 3+ messages in thread
From: Daniel Korstad @ 2007-04-19 15:21 UTC (permalink / raw)
  To: linux-raid

I have used lv with my past raid sets and it is very nice, adds some flexibility.  

I have also done a RAID5 reshape that was in an lv.  Unfortunately, at the time I had an older LVM version that did not support pvresize.  So I was stuck with a larger RAID set and my lv would not take advantage of it.

I think I needed LVM version 2.02.06 to solve that and get the pvresize feature. If you are running a relatively new disto that won't be an issue any more.  I think I had FC3 or 4.
 
To get the extra space over to your filesystem, there are a couple steps in between that you need to do with the LVs.

You need to pvresize the physical volume, than the volume group will have a larger capacity than resize/reallocate the new capacity to the logical volume, than you can resize your file system inside the logical volume.


----- Inline Message Follows -----
To: linux-raid@vger.kernel.org
From: Gavin McCullagh
Subject: [slightly OT] expanding lvm volume group after growing raid5 array


Hi Folks,

I recently upgraded all four disks of a RAID5 array and then used "mdadm
--grow" to grow the raid array into the new bigger partitions available to
it and ran resize2fs.  Lovely.  

However, I've just tried this again on a similar machine and have grown the
array.  However, I've just noticed that the RAID5 array has an lvm volume
group on it with two logical volumes on that.  So now, I'd like to grow the
volume group so I can grow one of the logical volumes and grow the
filesystem therein.

I realise this is the raid group but has anyone come across how to do this?

Gavin

-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: FW: [slightly OT] expanding lvm volume group after growing raid5 array
  2007-04-19 15:21 ` FW: " Daniel Korstad
@ 2007-04-19 15:51   ` Gavin McCullagh
  0 siblings, 0 replies; 3+ messages in thread
From: Gavin McCullagh @ 2007-04-19 15:51 UTC (permalink / raw)
  To: Daniel Korstad; +Cc: linux-raid

Hi,

On Thu, 19 Apr 2007, Daniel Korstad wrote:

> I have used lv with my past raid sets and it is very nice, adds some
> flexibility.  
> 
> I have also done a RAID5 reshape that was in an lv.  Unfortunately, at
> the time I had an older LVM version that did not support pvresize.  So I
> was stuck with a larger RAID set and my lv would not take advantage of
> it.

Thanks.  A guy in my local LUG pointed out that I had to do a pvresize
before I could do a vgresize.

I seem to be on my way now,

Gavin


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

end of thread, other threads:[~2007-04-19 15:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-19 11:35 [slightly OT] expanding lvm volume group after growing raid5 array Gavin McCullagh
2007-04-19 15:21 ` FW: " Daniel Korstad
2007-04-19 15:51   ` Gavin McCullagh

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