Bug 92223

Summary: example of lvm over md in kickstart doc
Product: [Retired] Red Hat Linux Reporter: Marc MERLIN <marc_soft>
Component: rhl-cgAssignee: Sandra Moore <smoore>
Status: CLOSED NEXTRELEASE QA Contact: John Ha <jha>
Severity: medium Docs Contact:
Priority: medium    
Version: 9CC: adstrong, andriusb
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-02-08 20:40:16 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 123819    

Description Marc MERLIN 2003-06-03 22:44:33 UTC
rhl-cg-en-9/s1-kickstart2-options.html
doesn't give good details on how partitioning, raid, and lvm work together.

By reading the docs, I did not realize that the installer did support lvm on
top of raid. I just had no idea what the syntax would be.

Could you add a meta-example like this one, to show the options in action?
----------------------------------------------------------------------------
clearpart --drives=hda,hdc --initlabel

# Raid 1 IDE config
part raid.11    --size 1000     --asprimary     --ondrive=hda
part raid.12    --size 1000     --asprimary     --ondrive=hda
part raid.13    --size 2000     --asprimary     --ondrive=hda
part raid.14    --size 8000                     --ondrive=hda
part raid.15    --size 1 --grow                 --ondrive=hda
           
part raid.21    --size 1000     --asprimary     --ondrive=hdc
part raid.22    --size 1000     --asprimary     --ondrive=hdc
part raid.23    --size 2000     --asprimary     --ondrive=hdc
part raid.24    --size 8000                     --ondrive=hdc
part raid.25    --size 1 --grow                 --ondrive=hdc

# You can add --spares=x 
raid /          --fstype ext3 --device md0 --level=RAID1 raid.11 raid.21
raid /safe      --fstype ext3 --device md1 --level=RAID1 raid.12 raid.22
raid swap       --fstype swap --device md2 --level=RAID1 raid.13 raid.23
raid /usr       --fstype ext3 --device md3 --level=RAID1 raid.14 raid.24
raid pv.01      --fstype ext3 --device md4 --level=RAID1 raid.15 raid.25

# LVM configuration so that we can resize /var and /usr/local later
volgroup sysvg pv.01    
logvol /var             --vgname=sysvg  --size=8000     --name=var
logvol /var/freespace   --vgname=sysvg  --size=8000     --name=freespacetouse
logvol /usr/local       --vgname=sysvg  --size=1 --grow --name=usrlocal
----------------------------------------------------------------------------

Comment 1 Tammy Fox 2004-02-27 05:44:17 UTC
Changing owner to new owner

Comment 2 Andrius Benokraitis 2005-02-02 21:08:20 UTC
Greetings Marc,

I'm updating the kickstart chapter in the SAG for Red Hat Enterprise
Linux 4, and LMV2 is the default mechanism for creation of volumes.

The concern I have in your mentioned example is that the content spans
multiple chapters in the manual.

Where exactly, in which options section should this go in the
kickstart section? Is your concern based more during installation
using anaconda and disk druid?

Thanks so much!

Andrius.

Comment 3 Andrius Benokraitis 2005-02-08 19:53:35 UTC
Marc, haven't heard back from you on this, and our deadline for RHEL4
documentation is looming. Please contact me to reopen the bug or for
more clarification! Thanks so much!

Comment 4 Marc MERLIN 2005-02-08 20:00:33 UTC
I apologize, I didn't see your first reply.
If I were to guess, I'd say anaconda, but honestly, you can pick either.
As long as it's there somewhere, people can grep/search for it

Comment 5 Andrius Benokraitis 2005-02-08 20:12:29 UTC
Currently, in the raid options section the following is there:

part raid.01 --size=60 --ondisk=sda
part raid.02 --size=60 --ondisk=sdb
part raid.03 --size=60 --ondisk=sdc

part swap --size=128 --ondisk=sda 
part swap --size=128 --ondisk=sdb 
part swap --size=128 --ondisk=sdc

part raid.11 --size=1 --grow --ondisk=sda 
part raid.12 --size=1 --grow --ondisk=sdb 
part raid.13 --size=1 --grow --ondisk=sdc

raid / --level=1 --device=md0 raid.01 raid.02 raid.03 
raid /usr --level=5 --device=md1 raid.11 raid.12 raid.13

I assume this isn't sufficient?

I don't believe your suggestion belongs in clearpart, but possibly an
example in part?

Comment 6 Marc MERLIN 2005-02-08 20:15:14 UTC
I would put it under LVM, the part that was specifically hard for me
to find was:
raid pv.01      --fstype ext3 --device md4 --level=RAID1 raid.15 raid.25

# LVM configuration so that we can resize /var and /usr/local later
volgroup sysvg pv.01    
logvol /var             --vgname=sysvg  --size=8000     --name=var
logvol /var/freespace   --vgname=sysvg  --size=8000    
--name=freespacetouse
logvol /usr/local       --vgname=sysvg  --size=1 --grow --name=usrlocal




Comment 7 Andrius Benokraitis 2005-02-08 20:24:13 UTC
how about I add your advanced example under logvol?

Comment 8 Marc MERLIN 2005-02-08 20:25:47 UTC
You're in charge of documentation, wherever is good as far as I'm
concerned ;)
But yes, that sounds like a good place.

Comment 9 Andrius Benokraitis 2005-02-08 20:29:22 UTC
Thanks for your advice, I think I'll add a new section, "Partitioning
Examples" after the options section...

Thanks again!