Solved

volume groups and linux setup

Posted on 2010-11-12
5
377 Views
Last Modified: 2012-05-10
I want to slice up a  150GB hard disk that is mirrored in hardware  can someone recommend a good generic partition layout that I can add to a kickstart file.

I would like to use volume groups.  Please explain why you have used the recommended layout.  

Thanks
0
Comment
Question by:enigma1234567890
  • 2
  • 2
5 Comments
 
LVL 1

Accepted Solution

by:
reichhartkg earned 500 total points
ID: 34118761
Here's my partition config.  It creates a 512MB /boot partition and then creates a volume group (VG) with the remainder of sda.  The VG is divided up into a 2GB swap partition, a 30208MG / (30GB - 512MB for / and 2GB for swap).
I then allocate the remainder of the VG from custom RPMs, depending on the type of server.

zerombr
ignoredisk --drives=sdb,sdc,sdd,sde,sdf
bootloader --location=mbr --driveorder=sda
clearpart --drives=sda --initlabel
part /boot --fstype ext3 --size=512 --ondisk=sda
part pv.0 --size=0 --grow --ondisk=sda
volgroup VolGroup00 --pesize=8192 pv.0
logvol swap --fstype swap --name=LogVol01 --vgname=VolGroup00 --size=2048
logvol / --fstype ext3 --name=LogVol00 --vgname=VolGroup00 --size=1024 --maxsize=28160 --grow
0
 

Author Comment

by:enigma1234567890
ID: 34119067
I take it the line pv.0 means the physical disk what does the pv0 mean can i call it anything ?
0
 
LVL 1

Assisted Solution

by:reichhartkg
reichhartkg earned 500 total points
ID: 34119182
It should be named pv.<id>, with id increasing if there are more than one pv.  It may work if they have arbitrary names, but I've never tried anything else, so I can't say if there's an actual technical requirement or if it's just a guideline.
0
 

Author Comment

by:enigma1234567890
ID: 34119230
Hi

Last question I have a config from a server in work and it reads see below.  Would you know what this is all about.


part pv.100000 --size=8000 --grow
0
 
LVL 19

Expert Comment

by:jools
ID: 34120484
reccomended layout would really depend on the server use, for instance, if it's a web server you would likely allow a lot of space in /var/www, if it's a file server or mail server then this would also have a bearing on your layout.

for your last question the initial size would be 8gb but would then grow to fill the disk whatever that may be. you could use maxsize to limit this as in the example above.
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Why VNC doesn't work in Redhat? 11 61
Exchange 2010 unable to mount DB due to corruption 11 113
linux redhat 7.2 10 72
awk variable in printf 1 25
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

773 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