Re: Confusion over LVM

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

Thanks for everyone who contributed suggestions, etc to my previous query - see below.

However I seem to have a more fundamental problem in the CLI -
bash - which reports that lvm commands commands aren't recognised. Any
idea what on earth that could be? Sorry to appear so dumb!

For example:
[root@localhost andrew]# pvcreate /dev/hdd
bash: pvcreate: command not found

It's odd as command 'ls' is working fine, and when I run 'yum install
lvm2' then that reports 'nothing to do'.

Andrew Wood, Oxford.

127 **

Message: 14
Date: Mon, 15 Jan 2007 19:09:09 +0100
From: Remi Collet <Fedora@xxxxxxxxxxxxxxxxx>
Subject: Re: Confusion over LVM
To: For users of Fedora <fedora-list@xxxxxxxxxx>
Message-ID: <45ABC345.9030309@xxxxxxxxxxxxxxxxx>
Content-Type: text/plain; charset=ISO-8859-1

Andrew Wood a écrit :
> > Dear all,
> >
> > I'm using FC6. I  have a 8 gbyte disk on my pc, and I've justed added
> > another. Easy enough, ensuring the jumpers for master slave are set, etc.
> >
> > I am a bit confused about the LVM. I used this, via the graphical front
> > end to add the new physical volume.

You have extend the "Volume Group"

> >
> > I must have missed something, or do I have unfounded expectations of how
> > LVM works (i.e. seemlessly)?

I think you need to extent the "Logical Volume".
Think it's not possible with graphical tools (require to umount the
filesystem) with current version...

You should
1/ extent the Logical Volume (lvextent)
2/ extent the filesystem (resize2fs)

Remi

128 **

Message: 4 Date: Tue, 16 Jan 2007 00:33:15 +0530 From: "Anil Kumar Sharma" <xplusaks@xxxxxxxxx> Subject: Re: Confusion over LVM To: "For users of Fedora" <fedora-list@xxxxxxxxxx> Message-ID: <52fe6b680701151103i7f3d7990wda497950d8413ce2@xxxxxxxxxxxxxx> Content-Type: text/plain; charset="iso-8859-1"
> >
> >
> > I think you need to extent the "Logical Volume".
> > Think it's not possible with graphical tools (require to umount the
> > filesystem) with current version...
> >
> > You should
> > 1/ extent the Logical Volume (lvextent)
> > 2/ extent the filesystem (resize2fs)
> >
> > Remi
> >
> > --
> > fedora-list mailing list
> > fedora-list@xxxxxxxxxx
> > To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
> >

Since your space is vacant you may experiment but my experience with LVM
tells this
1. LVM is a very nice and powerful tool
2. It is basically meant for long term deployment. i.e. you may find it
difficult to make frequent changes especially if space outside LVM is less
than space inside LVM.
3. Generally, You may leave ample space outside LVM and very conveniently
add it to your LVM structure later on, as you gain confidence.
4. As you get familiar with LVM intricacies, you can plan a more optimised
initial configuration (when you re-configure - you will do that).
5. MoS : Keep flexibility to begin with LVM or master it.

LVM - is it supposed to perform faster also, especially on SATA hardware,
and optimised drivers?

-- Anil Kumar Shrama -------------- next part -------------- An HTML attachment was scrubbed... URL: https://www.redhat.com/archives/fedora-list/attachments/20070116/c504ca1c/attachment.html ------------------------------


** 130

Message: 2
Date: Mon, 15 Jan 2007 23:32:58 +0100
From: Ambrogio <fn050202@xxxxxxxxxxx>
Subject: Re: Confusion over LVM
To: For users of Fedora <fedora-list@xxxxxxxxxx>
Message-ID: <1168900379.3873.26.camel@xxxxxxxxxxxx>
Content-Type: text/plain

Il giorno lun, 15/01/2007 alle 17.55 +0000, Andrew Wood ha scritto:
> > Dear all,
> >
> > I'm using FC6. I  have a 8 gbyte disk on my pc, and I've justed added
> > another. Easy enough, ensuring the jumpers for master slave are set, etc.
> >
> > I am a bit confused about the LVM. I used this, via the graphical front
Many people are confused abot LVM.

A usefull link by wich you can learn about LVM is provided by IBM.

I don't remember the links but Searching with google for ibm lvm I found
that
http://www-128.ibm.com/developerworks/linux/library/l-lvm/

Bye
 Ambrogio



------------------------------

** 130

Message: 5 Date: Mon, 15 Jan 2007 22:39:59 +0000 From: AJ Mitchelson <aj.mitchelson@xxxxxxxxxxxxx> Subject: Re: Confusion over LVM To: For users of Fedora <fedora-list@xxxxxxxxxx> Message-ID: <1168900799.15871.30.camel@xxxxxxxxxxxxxxxxx> Content-Type: text/plain; charset=UTF-8 On Mon, 2007-01-15 at 19:09 +0100, Remi Collet wrote:
> > Andrew Wood a écrit :
>> > > Dear all,
>> > >
>> > > I'm using FC6. I have a 8 gbyte disk on my pc, and I've justed added >> > > another. Easy enough, ensuring the jumpers for master slave are set, etc.
>> > >
>> > > I am a bit confused about the LVM. I used this, via the graphical front
>> > > end to add the new physical volume.
> >
> > You have extend the "Volume Group"
> >
>> > >
>> > > I must have missed something, or do I have unfounded expectations of how
>> > > LVM works (i.e. seemlessly)?
> >
> > I think you need to extent the "Logical Volume".
> > Think it's not possible with graphical tools (require to umount the
> > filesystem) with current version...
> >
> > You should
> > 1/ extent the Logical Volume (lvextent)
> > 2/ extent the filesystem (resize2fs)
> >
> > Remi
> >

LVM is a very cool and powerful piece of kit ... allowing the addition
(and removal) of storage with relative ease (Easy for me to say I've
been messing around with this stuff for over 10 years).

Anyway what you need to do is initialise the the new hard drive before
you can extend the volume group onto it (Im working on the assumption
here that you've not partioned the disk and what to use the whole drive
in the volume group)

# pvcreate /dev/hdX (where hdX is the new drive)

e.g pvcreate /dev/hdb

(Have a look at the man page for pvcreate as well)

Once the above command has completed you can bring that disk into your
existing volume group

# vgextend <Volume Group Name> /dev/hdX

e.g. vgextend VolGroup00 /dev/hdb

(Have a look at the man page for vgextend as well)

Where <Volume Group Name> is your existing volume group and /dev/hdX is
the same as you used in the pvcreate command

Once the above has completed successfully you can then extend the
logical volume that holds the file system you're filling up

# lvextend -L +NN[mg] /dev/VGName/LVName PhysicalVolume

e.g. lvextend -L +10g /dev/VolGroup00/LogVol00 /dev/hdb

(Have a look at the man page for vgextend as well)

Where +NN is the amount of space you want to ADD and [mg] is either
megabytes or gigabytes (it will do kilobytes and terabytes as well if
need be) and VGName is the volume group you used in the vgextend step
and LVName is the logical volume name and PhysicalVolume is the hard
drive you used in the pvcreate step.

Once the above is complete you can then resize your filesystem be using
the correct utility for the type of filesystem you're using.

All of the above (and potentially the file system resize) can be done
while your machine is up and running as well.

I'd read up about LVM and just double check the syntax (I am doing this
from memory and it is late here)

HTH

AJ




------------------------------




Tom Spec wrote:
Adding a new disk to LVM is a bit complicated. If you want I can work with you over email to do it.

I'd need the output of the following commands:

fdisk -l
vgdisplay
df




[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux