Re: Adding a logical volume



Colin Paul Adams wrote:

"Jim" == Jim Cornette <fc-cornette@xxxxxxxxxxxxxx> writes:

Jim> Colin Paul Adams wrote:
>> I have uninitialized disk space on my disk (/dev/sda), and I
>> have the Logical Volume Management GUI tool system-config-lvm
>> 1.1.1 running and looking at the unpartitioned space.
>>
>> How do I create a new logical volume group in that space (the
>> obvious way seems to be to press the Initialize entity button,
>> but that is greyed out)?

Jim> You might need to initialize the disk and toggle the
Jim> partition to lvm with fdisk or another disk management tool
Jim> first. I read that people have setup lvm without partitions a
Jim> long while back but not much lately about lvm with no
Jim> previous partitions setup.

How do I do this?

I have tried with fdisk and got lost.
I added an extended partition, then tried to change its system id to
8e (LVM). It wouldn't let me.


I don't know how to invoke Disk Druid.

Are there instructions for this anywhere?

Not sure if this is relevant,
but as I understand it you have to create LVM in a partition
like /dev/sdb2 .

So the first step is to create such a partition with fdisk.
You should give it the LVM partition type (with fdisk),
though I am not sure if this is necessary.

Then you do something like this:
----------------------------------
[tim@carrie ~]$ sudo pvcreate /dev/sdb2
Physical volume "/dev/sdb2" successfully created
[tim@carrie ~]$ sudo vgcreate vg /dev/sdb2
Volume group "vg" successfully created
[tim@carrie ~]$ sudo vgdisplay vg
--- Volume group ---
VG Name vg
...
[tim@carrie ~]$ sudo lvcreate -L 20G -n slash vg
Logical volume "slash" created
[tim@carrie ~]$ sudo lvcreate -L 10G -n home vg
Logical volume "home" created
[tim@carrie ~]$ sudo lvcreate -L 2G -n swap vg
Logical volume "swap" created
[tim@carrie ~]$ sudo lvdisplay vg
...
----------------------------------

Nb Keep /boot out of the LVM, or grub won't see it.

I've never used a system-config program for this.
On the whole I'd prefer not to.


--
Timothy Murphy
e-mail (<80k only): tim /at/ birdsnest.maths.tcd.ie
tel: +353-86-2336090, +353-1-2842366
s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list



Relevant Pages

  • Re: Trying to mount 13 Tb disk on RedHat system.
    ... As you mention that fdisk can see only 2TB. ... Then make that as LVM ... If we split the aux disk into 2 Tb partitions, ... that we use fdisk to change the partition type to 83 Linux LVM. ...
    (RedHat)
  • Re: Help: partitions - running out of free space
    ... You may free up space (maybe resizing a partition), and add this space to the LVM volume. ... You should first grab information about partition & LVM disk layout. ... $ fdisk -ul /dev/hda ...
    (comp.os.linux.misc)
  • Re: Adding a logical volume
    ... Jim> You might need to initialize the disk and toggle the ... Jim> partition to lvm with fdisk or another disk management tool ... Timothy> Not sure if this is relevant, but as I understand it you ... Timothy> have to create LVM in a partition like /dev/sdb2. ...
    (Fedora)
  • Re: Problem after converting FDisk Partitions to LVM
    ... For evaluation purposes I had created a few partitions with Warp4.0 and FDISK 14.082 on an empty test HDD and installed 3 instances of unfixed W4.0 on it. ... the other 2 in an extended partition still smaller than 8032MB. ... Then I added eCS2.0b3 to the extended one beyond the 8032MB limit, which offered to modify the existing W4.0 partitions to be usable with the LVM boot manager instead. ...
    (comp.os.os2.setup.storage)
  • RE: RE grub-install command
    ... I m able to view my boot partition in fdisk.. ... Subject: RE grub-install command ... only the /boot partition is important (which should not be raid or LVM if possible). ...
    (RedHat)