Solved

partition layout on redhat and Linux

Posted on 2010-11-11
5
624 Views
Last Modified: 2012-05-10
could someone in simple Englist explain what is going on in these two lines word by word.  They are taken from a  Kickstart config file and relate to partition sises.  I want to modify them but dont understand them.  


part pv.100000 --size=8000 --grow
volgroup vg0 --pesize=32768 pv.100000
0
Comment
Question by:enigma1234567890
  • 3
  • 2
5 Comments
 
LVL 76

Accepted Solution

by:
arnold earned 500 total points
ID: 34115919
Create a partition of 8000 MB
Create a Volume group vg0 with physical extent size of 32768 (not sure of the units bytes,kbytes,mbytes) versus the default 4MB  using the pv.10000

Then you would likely have lvm instruction to create the logical volumes within the Volgroup VG0.

http://linuxgazette.net/issue43/nielsen.kickstart.html
http://www.faqs.org/docs/Linux-HOWTO/KickStart-HOWTO.html

An example of a kickstart with LVM which is a closer match to your situation.
Your setup relies on a single disk being in the system .
http://www.redhat.com/archives/rhelv5-list/2007-October/msg00007.html
0
 
LVL 76

Expert Comment

by:arnold
ID: 34116099
pe will create 32768MB of extents.

http://linux.die.net/man/8/vgchange
0
 

Author Comment

by:enigma1234567890
ID: 34118482
what does this bit do --> part pv.100000 -
0
 

Author Comment

by:enigma1234567890
ID: 34118740
sorry for got to past the complete pat I want to know what this line does
part pv.100000 --size=8000 --grow
0
 
LVL 76

Assisted Solution

by:arnold
arnold earned 500 total points
ID: 34121300
It creates partition and ceates a reference to it as pv.100000 of size 8000 MB --grow I think means is equivalent to create.

using the label eliminates the need to know which partition on which drive this process was running on.

i.e. the drive is /dev/sda
so when the part command rans, the partition could be /dev/sda1 /dev/sda2 etc. depending on whether there are other part commands before it.  Assigning the label to the partition means that when you want to create/define a volumegroup you would use the label instead of maintaining the count of the part command .

Please look at the link I posted, I think it does a much better job at illustrating and describing the whole process.
It further adds a RAID overlay to the LVM

In the example, the --ondisk=/dev/hda is used to direct a specific partition to a specific disk that is supposed to be in the system.  If this disk is not in the system this instruction will fail and so will the install attempt.
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Ubuntu 15.10 hangs when rebooting after apt-get upgrade 5 65
Oracle Finace 3 45
Write an app 10 61
UNIX SCP 5 47
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now