linux-admin.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Expanding an LVM
@ 2008-08-19  8:11 Dermot Paikkos
  2008-08-19 10:26 ` urgrue
  0 siblings, 1 reply; 4+ messages in thread
From: Dermot Paikkos @ 2008-08-19  8:11 UTC (permalink / raw)
  To: linux-admin

Hi,

I think I may have made a error in the method I have used to create 
more space on one of my servers.

Here's what I've done.

1) Backed up the LVM volume (phew)
2) Added some disks to the storage array (HP MSA 20)
3) Used the HW Array configurator to do and on-line extend of the  
Raid Array.

It was at this point I realised that I hadn't un-mounted the volume 
in question. 

The other thing I am trying to figure out is, how I am going to 
extend a Physical Volume? I think the procedure should have been to 
add a completely new array and use pvcreate, vgextend, lvextend and  
extended the filesystem (ext3).

Can anyone confirm if the procedure above is the correct? 

Right now I am considering deleting the RAID container completely and 
re-creating and restoring rather than waste any more time but before 
I do I'd like to hear it if sounds like the procedure is bound to 
fail. 

At the moment I think the best I can hope for is that the volume will 
be fine but the extra disk-space will never be seen?

Any thoughts?
Tia,
Dp.


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

* Re: Expanding an LVM
  2008-08-19  8:11 Expanding an LVM Dermot Paikkos
@ 2008-08-19 10:26 ` urgrue
  2008-08-19 10:46   ` Dermot Paikkos
  0 siblings, 1 reply; 4+ messages in thread
From: urgrue @ 2008-08-19 10:26 UTC (permalink / raw)
  To: dermot; +Cc: linux-admin

Dermot Paikkos wrote:
> Hi,
> 
> I think I may have made a error in the method I have used to create 
> more space on one of my servers.
> 
> Here's what I've done.
> 
> 1) Backed up the LVM volume (phew)
> 2) Added some disks to the storage array (HP MSA 20)
> 3) Used the HW Array configurator to do and on-line extend of the  
> Raid Array.
> 
> It was at this point I realised that I hadn't un-mounted the volume 
> in question. 
> 
> The other thing I am trying to figure out is, how I am going to 
> extend a Physical Volume? I think the procedure should have been to 
> add a completely new array and use pvcreate, vgextend, lvextend and  
> extended the filesystem (ext3).
> 
> Can anyone confirm if the procedure above is the correct? 

Correct. You dont expand the PV, you make a new partition with fdisk in
the new space and then create a pv on it, add it to the vg with
vgextend, and the lvextend and then ext2online/resize2fs/whatever to
expand the fs.

> Right now I am considering deleting the RAID container completely and 
> re-creating and restoring rather than waste any more time but before 
> I do I'd like to hear it if sounds like the procedure is bound to 
> fail. 
> 
> At the moment I think the best I can hope for is that the volume will 
> be fine but the extra disk-space will never be seen?
> 

if you dont see the new space in fdisk, you might have to reboot, or do
echo "- - -" > /sys/class/scsi_host/hostXXX/scan.

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

* RE: Expanding an LVM
  2008-08-19 10:26 ` urgrue
@ 2008-08-19 10:46   ` Dermot Paikkos
  2008-08-19 11:51     ` urgrue
  0 siblings, 1 reply; 4+ messages in thread
From: Dermot Paikkos @ 2008-08-19 10:46 UTC (permalink / raw)
  To: urgrue; +Cc: linux-admin

Hi,

> -----Original Message-----
> From: urgrue [mailto:urgrue@bulbous.org]
> Sent: 19 August 2008 11:27
> 
> Correct. You dont expand the PV, you make a new partition with fdisk 
in
> the new space and then create a pv on it, add it to the vg with
> vgextend, and the lvextend and then ext2online/resize2fs/whatever to
> expand the fs.

> > Right now I am considering deleting the RAID container completely 
and
> > re-creating and restoring rather than waste any more time but before
> > I do I'd like to hear it if sounds like the procedure is bound to
> > fail.
> >
> > At the moment I think the best I can hope for is that the volume 
will
> > be fine but the extra disk-space will never be seen?
> >
> 
> if you dont see the new space in fdisk, you might have to reboot, or 
do
> echo "- - -" > /sys/class/scsi_host/hostXXX/scan.

Do you mean the new space on the expanded RAID logical drive or a 
completely new RAID container?

Thanx,
Dp.



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

* Re: Expanding an LVM
  2008-08-19 10:46   ` Dermot Paikkos
@ 2008-08-19 11:51     ` urgrue
  0 siblings, 0 replies; 4+ messages in thread
From: urgrue @ 2008-08-19 11:51 UTC (permalink / raw)
  To: Dermot Paikkos; +Cc: linux-admin

Dermot Paikkos wrote:
> Hi,
> 
>> -----Original Message-----
>> From: urgrue [mailto:urgrue@bulbous.org]
>> Sent: 19 August 2008 11:27
>>
>> Correct. You dont expand the PV, you make a new partition with fdisk 
> in
>> the new space and then create a pv on it, add it to the vg with
>> vgextend, and the lvextend and then ext2online/resize2fs/whatever to
>> expand the fs.
> 
>>> Right now I am considering deleting the RAID container completely 
> and
>>> re-creating and restoring rather than waste any more time but before
>>> I do I'd like to hear it if sounds like the procedure is bound to
>>> fail.
>>>
>>> At the moment I think the best I can hope for is that the volume 
> will
>>> be fine but the extra disk-space will never be seen?
>>>
>> if you dont see the new space in fdisk, you might have to reboot, or 
> do
>> echo "- - -" > /sys/class/scsi_host/hostXXX/scan.
> 
> Do you mean the new space on the expanded RAID logical drive or a 
> completely new RAID container?
> 

I mean the new space on the existing RAID drive. If you used the RAID
tools to expand the existing array onto the same logical drive as
before, then from linux's point of view the underlying disk just "got
bigger", and it may require a reboot or the scsi scan i mentioned to get
linux to notice.
If you made a new logical drive, then it will appear as a new disk (in
linux). This too will require either a reboot or the scsi scan.
Either way, you then have to use fdisk to make a partition on the new
space and then pvcreate etc.


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

end of thread, other threads:[~2008-08-19 11:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-19  8:11 Expanding an LVM Dermot Paikkos
2008-08-19 10:26 ` urgrue
2008-08-19 10:46   ` Dermot Paikkos
2008-08-19 11:51     ` urgrue

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