From: Lou Arnold <larnolda1@gmail.com>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] Total free space using added VGs and LVs
Date: Thu, 22 Oct 2009 20:26:01 -0400 [thread overview]
Message-ID: <a5a956f70910221726h589752f1p4d89b1711d0038b9@mail.gmail.com> (raw)
In-Reply-To: <4ADF5E81.4070609@worldspice.net>
[-- Attachment #1: Type: text/plain, Size: 4575 bytes --]
No, I'm confortable that I know the distinctions between PVs, VGs, and LVs.
But the command resize2fs doesn't belong with the LVM and that's perhaps
where the trouble is, in part anyway.
The other part of the problem is with the HOW-TO. It has a habit of saying
"to do this, use xyz command", then say "but you may need to do this before
hand". Here is an example from the tldp.org LVM How-To:
11.6. Removing physical volumes from a volume group
Make sure that the physical volume isn't used by any logical volumes by
using then 'pvdisplay' command:
# pvdisplay /dev/hda1
If the physical volume is still used you will have to migrate the data to
another physical volume using pvmove. (But I have nothing to move and no
pladce to move anything to.)
Then use 'vgreduce' to remove the physical volume:
# vgreduce my_volume_group /dev/hda1
-- Result: The message says that the PV is busy.
No where does it say how to make it not busy.
I tried "13.5. Removing an Old Disk" but that tries to move physical
extents. But again, I have nothing to move, and no place to move anything.
And..the examples show how to remove a disk when the LV is not mounted at
root.
So now I have to figure out what to do to make the logical volume not busy
and yet still let the computer operate. That last trial wasn't successful,
and I really don't know where to start.
On 10/21/09, Ryan Anderson <ryan@worldspice.net> wrote:
>
> Lou,
>
> I'm new to this list and have not posted here before, so I am not sure
> if this is the advice you'd eventually get, but it seems like you should
> focus on the basics. You will need to understand the individual
> components before a the more task-oriented parts of a how-to will be of
> use. Following a step-by-step guide will get you a result, but if you
> don't understand the steps the result probably won't be of any use to you.
>
> The how-to has a good breakdown of the anatomy of LVM; that might be the
> best place to start, focusing on the differences between Physical
> Volumes, Volume Groups, Logical Volumes and where in that arrangement a
> filesystem is placed.
>
>
> Lou Arnold wrote:
> > I read the How-To. It doesn't talk about the specific case or being
> > mounted at root, so I had to experiment. It is likely that commands
> > were in the wrong order, but I don't know what the right order is.
> >
> > I have attached the terminal session I used. In the end it did not work.
> > There was still 66 GB free, and when I rebooted, the file system failed.
> > The superblock was too big.
> >
> > I obviously don't understand the difference between pvresize, lvreduce
> > and vgreduce, and how resize2fs is related to these commands.
> >
> > Hope you can help,
> > Lou.
> >
> >
> > On 10/21/09, *Drew* <drew.kay@gmail.com <mailto:drew.kay@gmail.com>>
> wrote:
> >
> > > The documentation wasn't specific. I believe the intent was simply
> to
> > > migrate the data to another logical volume to temporarily allow
> > the source
> > > volume to be reduced and/or removed. But let's assume that has
> > happened or
> > > that doesn't need to happen. So now we need to unmount LogVol00,
> > reduce it
> > > to its original nunber of extents and then remount it (either
> > before or
> > > after remount we remove the physical drive.) I assume you can't
> > try this or
> > > you'll screw up your computer, but I have a system that I screw up
> and
> > > easily restore from a OS image. So no need to be too cautious.
> >
> > I've done this on several occasions.
> >
> > If you want to play with various scenarios in LVM, I'd recommend
> > reading the LVM How-To @ http://tldp.org/HOWTO/LVM-HOWTO/ . Sections
> > 11 & 13 cover the most common tasks you'll encounter in LVM. Play
> > around, don't be afraid to break things, and if you have questions
> > feel free to give the list a shout.
> >
> >
> > --
> > Drew
> >
> > "Nothing in life is to be feared. It is only to be understood."
> > --Marie Curie
> >
> >
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > 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/
>
>
> --
> Ryan
>
>
> _______________________________________________
> 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/
>
>
[-- Attachment #2: Type: text/html, Size: 5875 bytes --]
next prev parent reply other threads:[~2009-10-23 0:26 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-19 14:52 [linux-lvm] Total free space using added VGs and LVs Lou Arnold
2009-10-19 17:21 ` Stuart D. Gathman
2009-10-19 18:03 ` Drew
[not found] ` <a5a956f70910191114r3025ec45r5ddb2e02620fb0c0@mail.gmail.com>
2009-10-19 18:41 ` Drew
[not found] ` <a5a956f70910191200t340c02c2t28f14d3aef46cfdc@mail.gmail.com>
2009-10-19 19:51 ` Drew
2009-10-20 0:26 ` Lou Arnold
2009-10-20 3:19 ` Drew
[not found] ` <a5a956f70910201044j12e70c1cg78f454e580595815@mail.gmail.com>
2009-10-21 15:02 ` Lou Arnold
2009-10-21 15:28 ` Drew
2009-10-21 19:03 ` Lou Arnold
2009-10-21 19:18 ` Ryan Anderson
2009-10-23 0:26 ` Lou Arnold [this message]
2009-10-23 0:52 ` Stuart D. Gathman
2009-10-21 22:54 ` David
2009-10-23 6:52 ` Luca Berra
2009-10-23 19:06 ` Lou Arnold
2009-10-23 20:12 ` Ryan Anderson
2009-10-23 20:41 ` Lou Arnold
2009-10-24 0:06 ` Brian McCullough
2009-10-24 7:34 ` Luca Berra
2009-10-24 16:43 ` Lou Arnold
2009-10-24 17:04 ` brem belguebli
2009-10-24 19:16 ` Lou Arnold
2009-10-24 20:54 ` brem belguebli
2009-10-24 21:21 ` Lou Arnold
2009-10-24 22:04 ` Stuart D. Gathman
2009-10-25 8:46 ` Luca Berra
2009-10-25 13:13 ` Drew
2009-10-25 18:09 ` Stuart D. Gathman
2009-10-25 19:17 ` Stuart D. Gathman
2009-10-26 15:20 ` Lou Arnold
2009-10-26 19:39 ` Stuart D. Gathman
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=a5a956f70910221726h589752f1p4d89b1711d0038b9@mail.gmail.com \
--to=larnolda1@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).