Re: Controller partition order?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxx, and delete the original message.
Your cooperation is appreciated.

_______________________________________________
Kickstart-list mailing list
Kickstart-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/kickstart-list


[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux