linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] Correct way to add disc to LVM
@ 2005-10-21 12:14 Craig Hagerman
  2005-10-21 12:37 ` Patrick Caulfield
  2005-10-21 15:19 ` Heinz Mauelshagen
  0 siblings, 2 replies; 3+ messages in thread
From: Craig Hagerman @ 2005-10-21 12:14 UTC (permalink / raw)
  To: LVM general discussion and development

Hi all,

I want to make sure I understand the correct way to add more disc
space under LVM. If you have LVM set up on one single HD, and then
want to extend that to cover a second HD what is the correct way to
proceed?

From reading the HOWTO I think this is how it is done. Am I missing
anything essential here?

---------------------------------------------------------------------
Add physical volumes to a volume group:
---------------------------------------------------------------------
Use 'vgextend' to add an initialized physical volume to an existing
volume group.
# vgextend my_volume_group /dev/hdc1
                                    ^^^^^^^^^ new physical volume

---------------------------------------------------------------------
Extend logical volume:
---------------------------------------------------------------------

# lvextend -L12G /dev/myvg/homevol

         will extend /dev/myvg/homevol to 12 Gigabytes.

-----------------------------------------------------------------------------------------------------------
Increase size of file system to match the logical volume (assuming ext2 / 3):
-----------------------------------------------------------------------------------------------------------
   # umount /dev/myvg/homevol/dev/myvg/homevol
   # resize2fs /dev/myvg/homevol
   # mount /dev/myvg/homevol /home


Is this correct? Is this all you have to do?

Craig

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

* Re: [linux-lvm] Correct way to add disc to LVM
  2005-10-21 12:14 [linux-lvm] Correct way to add disc to LVM Craig Hagerman
@ 2005-10-21 12:37 ` Patrick Caulfield
  2005-10-21 15:19 ` Heinz Mauelshagen
  1 sibling, 0 replies; 3+ messages in thread
From: Patrick Caulfield @ 2005-10-21 12:37 UTC (permalink / raw)
  To: LVM general discussion and development

Craig Hagerman wrote:

> Is this correct? Is this all you have to do?
> 

yes

-- 

patrick

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

* Re: [linux-lvm] Correct way to add disc to LVM
  2005-10-21 12:14 [linux-lvm] Correct way to add disc to LVM Craig Hagerman
  2005-10-21 12:37 ` Patrick Caulfield
@ 2005-10-21 15:19 ` Heinz Mauelshagen
  1 sibling, 0 replies; 3+ messages in thread
From: Heinz Mauelshagen @ 2005-10-21 15:19 UTC (permalink / raw)
  To: LVM general discussion and development

On Fri, Oct 21, 2005 at 09:14:44PM +0900, Craig Hagerman wrote:
> Hi all,
> 
> I want to make sure I understand the correct way to add more disc
> space under LVM. If you have LVM set up on one single HD, and then
> want to extend that to cover a second HD what is the correct way to
> proceed?
> 
> >From reading the HOWTO I think this is how it is done. Am I missing
> anything essential here?

Run pvcreate on your new drive before vgextend.

> 
> ---------------------------------------------------------------------
> Add physical volumes to a volume group:
> ---------------------------------------------------------------------
> Use 'vgextend' to add an initialized physical volume to an existing
> volume group.
> # vgextend my_volume_group /dev/hdc1
>                                     ^^^^^^^^^ new physical volume
> 
> ---------------------------------------------------------------------
> Extend logical volume:
> ---------------------------------------------------------------------
> 
> # lvextend -L12G /dev/myvg/homevol
> 
>          will extend /dev/myvg/homevol to 12 Gigabytes.
> 
> -----------------------------------------------------------------------------------------------------------
> Increase size of file system to match the logical volume (assuming ext2 / 3):
> -----------------------------------------------------------------------------------------------------------
>    # umount /dev/myvg/homevol/dev/myvg/homevol
>    # resize2fs /dev/myvg/homevol
>    # mount /dev/myvg/homevol /home
> 
> 
> Is this correct? Is this all you have to do?
> 
> Craig
> 
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

-- 

Regards,
Heinz    -- The LVM Guy --

*** Software bugs are stupid.
    Nevertheless it needs not so stupid people to solve them ***

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Heinz Mauelshagen                                 Red Hat GmbH
Consulting Development Engineer                   Am Sonnenhang 11
Cluster and Storage Development                   56242 Marienrachdorf
                                                  Germany
Mauelshagen@RedHat.com                            +49 2626 141200
                                                       FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

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

end of thread, other threads:[~2005-10-21 15:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-21 12:14 [linux-lvm] Correct way to add disc to LVM Craig Hagerman
2005-10-21 12:37 ` Patrick Caulfield
2005-10-21 15:19 ` Heinz Mauelshagen

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