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

Re: what is the meaning of LVM id in ks.cfg



On Wed, May 13, 2009 at 8:54 AM, James Laska <jlaska redhat com> wrote:
> On Tue, 2009-05-12 at 14:44 -0700, Aldo Foot wrote:
>> On Tue, May 12, 2009 at 11:58 AM, Jeremy Katz <katzj redhat com> wrote:
>> > On Tuesday, May 12 2009, Aldo Foot said:
>> >> Looking at this article:  http://kbase.redhat.com/faq/docs/DOC-5511
>> >>
>> >> What is the meaning or purpose of the "01" in the lines
>> >>      part pv.01 --size=1 --grow
>> >>      volgroup vg_root pv.01
>> >> Is it an arbitrary number to give an id to the VG?
>> >
>> > Yes, it's purely an id for mapping the VG to a specific PV.  Which
>> > becomes needed as you have multiple volume groups
>>
>> Thanks for replying.
>>
>> This small detail is not documented anywhere I look. There is no
>> reference to it by the output of the LVM commands either. So, is this
>> something used only during the time kickstart is running?
>>
>> All LMV examples on kickstart that I've seen involved only one physical
>> disk.
>> Now, say that I have three HDDs and I have this in the ks.cfg:
>>       part pv.11 - -size=100 - -ondisk=hda
>>       part pv.12 - -size=200 - -ondisk=hdb
>>       part pv.13 - -size=300 - -ondisk=hdc
>> What would be the correct syntax to create the Volume Group?
>> I'm thinking maybe
>>       volgroup bigVG - -pesize=789 pv.1113
>> with the "pv.1113" pointing to what's specified in the previous part commands
>> showing the range 11 through 13. Is this accurate?
>
> In the example you note, to create a volume group of the 3 partitions
> you would do:
>
> volgroup bigVG --pesize=789 pv.11 pv.12 pv.13
>
> For additional information on the volgroup kickstart command, refer to
> http://fedoraproject.org/wiki/Anaconda/Kickstart.
>
> Thanks,
> James

It makes sense. I went to the link and read the doc and saw that the same
syntax is used to setup raids. I had seen the doc, but didn't occur to me
to use "pv.11 pv.12 pv.13".

Thank you very much for the tips.
~af


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