HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Creating a multi-volume LVM VG in Kickstart?
Operating System - Linux
1829115
Members
14971
Online
109986
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2009 02:45 AM
06-19-2009 02:45 AM
Creating a multi-volume LVM VG in Kickstart?
Hi,
I'd like to sanity check/bounce this off you all before I go ahead with this. I'm preparing to install a DL580 fully populated with 16 drives, split across 2 x P400 controllers. For maximum availability and performance I want to mirror the drives across both controllers, add the mirrors into an LVM volume group and then create striped Logical Volumes across those mirrors for data.
I've prepared the following Kickstart but have struggled to find any examples online of creating a multi-volume VG at boot time using kickstart. Redhat's Kickstart docs only give an example using one pv. Is this likely to work? If not then I can fall back to using one and then add a %post script to extend the volume group with the rest later on.
Note: the display width (on preview) looks like it's causing the "physical volume (LVM)" lines to wrap, but they are all one line.
John
bootloader --location=mbr --driveorder=cciss/c0d0,cciss/c1d0
clearpart --linux
part raid.1 --size 300 --ondisk cciss/c0d0 --asprimary
part raid.2 --size 300 --ondisk cciss/c1d0 --asprimary
raid /boot --fstype ext3 --level=RAID1 --device=md0 raid.1 raid.2
part raid.3 --size 1 --ondisk cciss/c0d0 --grow
part raid.4 --size 1 --ondisk cciss/c1d0 --grow
raid pv.1 --fstype "physical volume (LVM)" --level=RAID1 --device=md1 raid.3 raid.4
part raid.5 --size 1 --ondisk cciss/c0d1 --grow
part raid.6 --size 1 --ondisk cciss/c1d1 --grow
raid pv.2 --fstype "physical volume (LVM)" --level=RAID1 --device=md2 raid.5 raid.6
part raid.7 --size 1 --ondisk cciss/c0d2 --grow
part raid.8 --size 1 --ondisk cciss/c1d2 --grow
raid pv.3 --fstype "physical volume (LVM)" --level=RAID1 --device=md3 raid.7 raid.8
part raid.9 --size 1 --ondisk cciss/c0d3 --grow
part raid.10 --size 1 --ondisk cciss/c1d3 --grow
raid pv.4 --fstype "physical volume (LVM)" --level=RAID1 --device=md4 raid.9 raid.10
part raid.11 --size 1 --ondisk cciss/c0d4 --grow
part raid.12 --size 1 --ondisk cciss/c1d4 --grow
raid pv.5 --fstype "physical volume (LVM)" --level=RAID1 --device=md5 raid.11 raid.12
part raid.13 --size 1 --ondisk cciss/c0d5 --grow
part raid.14 --size 1 --ondisk cciss/c1d5 --grow
raid pv.6 --fstype "physical volume (LVM)" --level=RAID1 --device=md6 raid.13 raid.14
part raid.15 --size 1 --ondisk cciss/c0d6 --grow
part raid.16 --size 1 --ondisk cciss/c1d6 --grow
raid pv.7 --fstype "physical volume (LVM)" --level=RAID1 --device=md7 raid.15 raid.16
part raid.17 --size 1 --ondisk cciss/c0d7 --grow
part raid.18 --size 1 --ondisk cciss/c1d7 --grow
raid pv.8 --fstype "physical volume (LVM)" --level=RAID1 --device=md8 raid.17 raid.18
volgroup system --pesize=32768 pv.1 pv.2 pv.3 pv.4 pv.5 pv.6 pv.7 pv.8
logvol / --fstype ext3 --name=root --vgname=system --size=51200
logvol swap --fstype swap --name=swap --vgname=system --size=16384
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2009 04:27 AM
06-19-2009 04:27 AM
Re: Creating a multi-volume LVM VG in Kickstart?
Shalom,
Best thing to do is do a normal install on a system like this, and use that as a template for a kickstart file.
If that does not work, or is not feasible, you may be faced with a litlte trial and error.
I see nothing inherently wrong with what you are trying.
Note also, if you have time to specify the server, that using built in hardware raid is better for performance than software raid. RAID controllers have CPU to handle I/O which takes this work load off the main CPU.
SEP
Best thing to do is do a normal install on a system like this, and use that as a template for a kickstart file.
If that does not work, or is not feasible, you may be faced with a litlte trial and error.
I see nothing inherently wrong with what you are trying.
Note also, if you have time to specify the server, that using built in hardware raid is better for performance than software raid. RAID controllers have CPU to handle I/O which takes this work load off the main CPU.
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2009 04:52 AM
06-19-2009 04:52 AM
Re: Creating a multi-volume LVM VG in Kickstart?
Hi SEP,
Yes doing a manual install first in the back of my mind as a possible option is this doesn't pan out the way I expect.
I don't agree with always using hardware RAID though, just because it's there, as most people seem to do. Hardware RAID doesn't allow me to mirror across controllers, so creates a single point of failure in a RAID card. I also don't like RAID5 very much: the read-read-write-write performance penalty for modifying data blocks sucks, and performance goes right down the toilet when rebalancing a RAID5 volume after a disk failure.
I've built a config spanning two controllers like this before on an rx6600 using LVM on HP-UX, and performance was very fast.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2009 07:35 AM
06-24-2009 07:35 AM
Re: Creating a multi-volume LVM VG in Kickstart?
Well, that actually worked first time. But in hind sight (and for the rest of the builds) I think it's better to stick with just one disk and build/add the remaining mirrors in later. What the install does when creating the mirrors for the first time is wait around until both halves of the mirror sync up. It looks like the install has hung, until you alt-f2 over to the install shell and watch(in top) all the md resync processes beavering away, and monitor their progress from /proc/mdstat.
With this many disks it stalls the install for a couple of hours until the last of the mirrors are complete before carrying on.
So, an interesting experiment but not worth doing it up front.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP