Comment 8 for bug 1374166

Revision history for this message
trialotto (trialotto) wrote :

@Daniel,

The documentation looks great.

However, can you add the following (important) remarks to the documentation page:

a) as from cloud-init 0.7.6, the option exists to create swap by means of the swap stanza

b) in good practice, swap partitions should be at the start of the disk (and a function of the size of memory available)

Also note that your documentation is very suitable, if adapted slightly, for general documentation about creating partitions.

As a personal (and internal) note, the following:

- the new swap stanza (in newer versions of cloud-init) are automatically determined with some code logic, this should also be applied to swap partitions (and that is possible, since the settings are only applied on provisiniong or a restart of the VM),

- in general, cloud-init should be able to detect existing swap files and/or swap partitions and leaving them as is, when restarting a VM (instead of creating them again, as happens at this moment, with swap files and swap partitions). In essence, a restart (a shut-down and start-up sequence) should not be required to CHANGE swap space.

Can you react on the above personal notes?

Kind regards.....