<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<font size="-1"><font face="sans-serif">If we're gonna be showing our
work...<br>
<br>
Here's how I partition my drives.  This grabs the driveinfo from the
python libs, and apportions the drive as <br>
<br>
/backup is 15%<br>
/var/log is 5%, with a min of 1G. and a max of 5G.<br>
/boot is 128M<br>
<br>
/ is whatever's left.<br>
<br>
See Chip's entry for how to detect vmware.  Hyper-V identifies as
Microsoft Corp as the system-manufacturer.<br>
<br>
This will *probably* not work for FC12 and RHEL-6, whenever that comes
out, as they've entirely re-written the storage layer, but it works for
redhat 5 based -distros.<br>
<br>
drive = isys.hardDriveDict().keys()[0]<br>
dev = parted.PedDevice.get("/dev/%s" % drive)<br>
sizeMB = (float(dev.heads * dev.cylinders * dev.sectors) / (1024 *
1024) * dev.sector_size)<br>
sizeMB_i = int(math.floor(sizeMB))<br>
backup_size = int(math.floor(float(sizeMB * .15)))<br>
<br>
if int(math.floor(float(sizeMB * .05))) < 1000:<br>
        log_size = 1000<br>
elif int(math.floor(float(sizeMB * .05))) > 5000:<br>
        log_size = 5000<br>
else:<br>
        log_size = int(math.floor(float(sizeMB * .05)))<br>
<br>
<br>
print "/var/log size is %i " % log_size<br>
print "/backup size is %i " % backup_size<br>
root_size = (sizeMB_i - backup_size - log_size - 128 -
iutil.swapSuggestion()[1] )<br>
print "/ size is %i " % root_size<br>
<br>
Matt<br>
</font></font><br>
Shabazian, Chip wrote:
<blockquote
 cite="mid:CCB50A4771243A4DBC4DD80454A7128B0186171C@ex2k.bankofamerica.com"
 type="cite">
  <pre wrap=""># Default value for disks (27G layout)
BOOTSIZE=256
ROOTSIZE=8192
VARSIZE=8192
SWAPSIZE=2048
BANKTOOLSIZE=8192
GRIDSIZE=0

# check for small disk sizes < default 27G layout:
if [ ${DISKSIZE} -lt 27648 ]
then
        # create small disk (16G layout)
        ROOTSIZE=5120
        VARSIZE=5120
        SWAPSIZE=2048
        BANKTOOLSIZE=3072
fi

# force it if it's a VMware system with more than 20G of space
dmidecode | grep Manufacturer | head -1 | grep -q VMware
if [ $? = "0" ]
then
        # create small disk xen/vmware (16G layout)
        ROOTSIZE=5120
        VARSIZE=5120
        SWAPSIZE=2048
        BANKTOOLSIZE=3072
fi



-----Original Message-----
From: <a class="moz-txt-link-abbreviated" href="mailto:kickstart-list-bounces@redhat.com">kickstart-list-bounces@redhat.com</a>
[<a class="moz-txt-link-freetext" href="mailto:kickstart-list-bounces@redhat.com">mailto:kickstart-list-bounces@redhat.com</a>] On Behalf Of John Oliver
Sent: Monday, November 09, 2009 11:33 AM
To: Discussion list about Kickstart
Subject: Re: Kickstart, partitioning, differing disk space

On Mon, Nov 09, 2009 at 11:04:22AM -0800, Shabazian, Chip wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">We have three  different partitioning schemes.  The kickstart figures
out how big the disk is, then uses one of three different schemes
    </pre>
  </blockquote>
  <pre wrap=""><!---->based
  </pre>
  <blockquote type="cite">
    <pre wrap="">on the size.  However, if it's a VM, we automatically select the
smallest partitioning scheme
    </pre>
  </blockquote>
  <pre wrap=""><!---->
What are these "three schemes"?  How do they know when they're on a VM?
Could you include a copy of the relevant section of your ks file?

Thanks...

--
***********************************************************************
* John Oliver                             <a class="moz-txt-link-freetext" href="http://www.john-oliver.net/">http://www.john-oliver.net/</a> *
*                                                                     *
***********************************************************************

_______________________________________________
Kickstart-list mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Kickstart-list@redhat.com">Kickstart-list@redhat.com</a>
<a class="moz-txt-link-freetext" href="https://www.redhat.com/mailman/listinfo/kickstart-list">https://www.redhat.com/mailman/listinfo/kickstart-list</a>

_______________________________________________
Kickstart-list mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Kickstart-list@redhat.com">Kickstart-list@redhat.com</a>
<a class="moz-txt-link-freetext" href="https://www.redhat.com/mailman/listinfo/kickstart-list">https://www.redhat.com/mailman/listinfo/kickstart-list</a>
  </pre>
</blockquote>
</body>
</html>