Re: F18 partitioning LVM Question....

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

 



On 12/28/2012 12:31 AM, Chris Murphy wrote:
> On Dec 26, 2012, at 7:11 AM, Ed Greshko <Ed.Greshko@xxxxxxxxxxx> wrote:
>
>> On 12/26/2012 08:51 PM, Chris Murphy wrote:
>>> On Dec 26, 2012, at 5:03 AM, Ed Greshko <Ed.Greshko@xxxxxxxxxxx> wrote:
>>>
>>>> What I wanted to do was create a large physical volume and then create several logical volumes within and some un-allocated space.  I want to do this since I'm not certain as to the ultimate size needs of the partitions as time goes by.  So, if need be, I can add to a partition or shrink a partition.
>>>>
>>>> I could find no way to do this in the "customize" partition layout of F18.  I'm pretty sure it could be done in F17.
>>>>
>>>> Am I missing something or is this feature not yet available but planned?
>>> I'm not understanding what point you're getting lost. On a 2TB disk, I can create one partition that goes to an LVM VG, from which I create four LVs: swap, root, boot, home. 4GB, 50GB, 500MB, and 50GB respectively. The remaining 1.99TB is unallocated.
>>>
>>> BTW this single partition, everything in LVM, is GRUB2 bootable.
>> Well, maybe I'm confused....  So, would you mind to show the output of "pvscan" for your system?
> I have no idea what this is going to tell you, but here it is…
>
>   PV /dev/sda1   VG f18one          lvm2 [80.00 GiB / 80.00 GiB free]
>   PV /dev/sdb1                      lvm2 [80.00 GiB]
>   Total: 2 [160.00 GiB] / in use: 1 [80.00 GiB] / in no VG: 1 [80.00 GiB]
>
> You clearly said you wanted "a large physical volume" which means one disk. So you select one disk in the first Installation Destination window, continue forward making sure in Installation Options you check "let me customize" which brings you to Manual Partitioning.
>
> By default, LVM is used. So all mount points except Boot that you create will be LVs. The size of the VG will be exactly the combined size of the LVs. And the partition created will be the size of the VG as well. The rest will be unallocated which is what you said you wanted.
>
> If you mean you want a single partition consuming the whole disk, all of it in the VG, but to specify LVs that don't use all of the space in the VG, no you can't do that within anaconda. You'd need to do that in a shell first: partition, make it a pv, add it to a VG, then run anaconda. Any mount points you create will by default become LV's using that VG.

Your last paragraph says it all....  "you can't do that in anaconda".  *Previously*, you could....

>From an F17 system ....

[root@f17dt ~]# pvscan
  PV /dev/sda3   VG vg_A   lvm2 [196.91 GiB / 28.31 GiB free]
  PV /dev/sda2   VG vg_B   lvm2 [58.56 GiB / 14.59 GiB free]
  Total: 2 [255.47 GiB] / in use: 2 [255.47 GiB] / in no VG: 0 [0   ]
[root@f17dt ~]# lvscan
  ACTIVE            '/dev/vg_A/lv01' [97.66 GiB] inherit       (/home)
  ACTIVE            '/dev/vg_A/lv00' [1.97 GiB] inherit         (swap)
  ACTIVE            '/dev/vg_A/lv02' [68.97 GiB] inherit       (/usr/local)
  ACTIVE            '/dev/vg_B/lv01' [34.19 GiB] inherit       (/opt)
  ACTIVE            '/dev/vg_B/lv00' [9.78 GiB] inherit         (/)

It was easy to create 2 PV's on one disk and then several LV's within the PV.  As you can see, I've got free space on both PV's which can be added to what LV I want online.

Can't do the same configuration at install time, with ease, on F18.  So, the question remains, will the same feature be added in the future as existed in F17 and prior releases?

-- 
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. -- Rick Cook, The Wizardry Compiled
-- 
test mailing list
test@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe:
https://admin.fedoraproject.org/mailman/listinfo/test



[Index of Archives]     [Fedora Desktop]     [Fedora SELinux]     [Photo Sharing]     [Yosemite Forum]     [KDE Users]

  Powered by Linux