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

Bug#613796: partman-partitioning: Put swap at begin of disk instead of at end



18.02.2011 00:09, Olaf van der Spek wrote:
[]
>> In contrary to that, you really want your main filesystems
>> to be at the beginning of the drive - the data you access
>> most often.
> 
> A 256 mb swap partition before a 1 tb root partition isn't really
> going to make a difference.

256mb for swap is very rare nowadays.  yes, it makes little
difference even if it's 4gb or - with nowadays drive volumes -
even 40gb.  Just a tiny data point.

>> For resizing, -- there's no big deal to temporary remove
>> or move swap in case you're resizing root filesystem.
>> Root filesystem can be resized only when booting from
>> a rescue/install media [...]
> 
> Not true, ext supports online resize.

While ext*fs and xfs supports online resizing, one needs
to resize partitions too, and that one isn't that easy,
you need to reboot for the kernel to recognize new size
of a partition which is in use (it is possible to resize
only unused partition freely using BLKPG ioctl, but root
fs is always mounted).

So at least you will reboot, and when you do so, it may
be just safer to go for offline resize (using rescue/install
media), verifying at the same time that you do have an
alternative way to boot up the system if something goes
wrong.

Yes my wording was not really correct, thank you for
spotting this.

/mjt



Reply to: