Controller partition order?

Jared Rodriguez jared.rodriguez at rackspace.com
Thu Dec 2 18:08:51 UTC 2010


>> I'm building a bunch of virtual machines and I want to make sure that the swap
>> partition comes first on the disk. Sometimes we need to expand storage on VMs
>> and this is much harder if the swap partition is after the / partition. Is
>> there a way with the partition command to control where on the disk a
>> partition goes?

We use something like this:

zerombr yes
clearpart --all --initlabel
part /boot --fstype "ext3" --size=100 --asprimary
part /tmp --fstype "ext3" --size=2048 --asprimary
part / --fstype "ext3" --size=1 --grow
%include /tmp/swap.cfg

swap is dynamically generated during the bootstrap process. The 
configuration creates the following partitions:

/dev/sda1   /boot
/dev/sda2   /tmp
/dev/sda3   swap
/dev/sda4   extended
/dev/sda5   /

I am not aware of any other way to make anaconda honor the position of 
the swap partition.

jrod


Confidentiality Notice: This e-mail message (including any attached or
embedded documents) is intended for the exclusive and confidential use of the
individual or entity to which this message is addressed, and unless otherwise
expressly indicated, is confidential and privileged information of Rackspace.
Any dissemination, distribution or copying of the enclosed material is prohibited.
If you receive this transmission in error, please notify us immediately by e-mail
at abuse at rackspace.com, and delete the original message.
Your cooperation is appreciated.




More information about the Kickstart-list mailing list