Re: Adding a logical volume

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

 



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
[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