Solved

partition layout on redhat and Linux

Posted on 2010-11-11
5
625 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 77

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 77

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 77

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Guacamole and browser performance 1 64
Linux  Script File Attributes 5 53
nagios alerts 3 33
CentOS create a user with predefined MD5 Hashed password 17 69
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…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

896 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

18 Experts available now in Live!

Get 1:1 Help Now