From: Craig Hagerman <craighagerman@gmail.com>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: [linux-lvm] Correct way to add disc to LVM
Date: Fri, 21 Oct 2005 21:14:44 +0900 [thread overview]
Message-ID: <80d985600510210514h29edd384n65d4d14dc0492399@mail.gmail.com> (raw)
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
next reply other threads:[~2005-10-21 12:14 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-21 12:14 Craig Hagerman [this message]
2005-10-21 12:37 ` [linux-lvm] Correct way to add disc to LVM Patrick Caulfield
2005-10-21 15:19 ` Heinz Mauelshagen
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=80d985600510210514h29edd384n65d4d14dc0492399@mail.gmail.com \
--to=craighagerman@gmail.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;
as well as URLs for NNTP newsgroup(s).