On 01/06/15 23:55, trialotto wrote:
> You are very likely to be correct, I saw the specific code (for recent
> versions of cloud-init) and it should be able to reformat disks.
>
> Questions are:
>
> - is the swap created after or before the reformat? (Note: a reformat removes
> the characteristi
Daniel,
You are very likely to be correct, I saw the specific code (for recent
versions of cloud-init) and it should be able to reformat disks.
Questions are:
- is the swap created after or before the reformat? (Note: a reformat removes
the characteristic "persistent" from persistent swap)
- i
Hi trialotto,
Could you confirm what version of cloud-init you are using? Recent
versions detect when a reformatted ephemeral disk is presented and will
always reformat it (I have just confirmed this with an Ubuntu trusty
instance).
Also, "ResourceDisk.Format=y" only allows you to specify a singl
Daniel,
Defining swap with cloud-config will not result in a persistent swap
space across shutdown and restart sequences on Azure.
In general, the cloud-config disk setup and/or filesystem stanza will
not result in a persisting ext4 ephemeral disk in before mentioned
sequences, in which the ephem
Hi David,
On 31/05/15 09:45, David Frank wrote:
> So I ended up on this page and found the conclusion is azure cloud-init
> doesn't support adding a swap through configuration, is that true?
>
> ...
>
> I have read both:
>
> - https://wiki.ubuntu.com/AzureSwapPartitions
> -
> https://azure.mic
So I ended up on this page and found the conclusion is azure cloud-init
doesn't support adding a swap through configuration, is that true?
Furthermore why isn't there a canonical doc or blog post that explain
the correct way to add swap for Ubuntu VM on Azure?
I have seen examples that modify /et
Ben,
The patch lp-1422919-azure-g5_ephemeral.patch does not help, when
introducing this patch (alone) in cloud-init.
There seems to be some basic problem with the basic config settings, in
the sense that /dev/sdb is always starting as NTFS.
The standard result of the tests are summarized as: che
@Ben,
As soon as time is available, I will test the -proposed package (if
possible, on the old Azure VMs that have been used for testing).
I will add the following test: testing the 0.7.6 version on Ubuntu
Trusty (14.04.1 LTS)
Please note that I just received the message, implying that I have no
I'm happy to report that this will be fixed in the next SRU of Cloud-
init currently in -proposed. For Bug #1422919, we backported bits to
support GPT partition tables. In testing the -proposed package, I
confirmed that things worked.
@trialotto, can you please try the package in -proposed and re
@Daniel,
The documentation is not okay: the swap partition (on the last part of a
disk) will not persist through shutdown in Azure.
The strange thing is:
a) often a NTFS formatted ephemeral disk reoccurs when starting up after
a shutdown,
b) a swap partition on the FIRST part of a disk IS persi
Steve,
I think the conclusion we've reached is that cloud-init isn't an
appropriate way to add swap to an instance after it has been spun up.
cloud-init has been designed to do disk setup at first boot and so makes
assumptions that wouldn't hold after that point.
If people do want to add swap aft
@Dan(iel),
I will post two new "bugs" (that are not really bugs, but a wish for
code improvement):
- size logic (for both swap space as swap partitions)
- swap stanza that allows changes of swap file size (not swap partitions) on a
created/running VM to be persistent
By the way, if necessary, I
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi trialotto,
On 20/01/15 02:15, trialotto wrote:
> The documentation looks great.
Thanks!
> 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
>
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi Steve,
On 19/01/15 20:18, Stephen A. Zarkos wrote:
> In case customers are not familiar with the term "Custom Data" or
> how to use it, I would recommend linking to our documentation:
> http://azure.microsoft.com/en-us/documentation/articles/virtu
@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 func
@Steve,
I am working on a solution to pass some local cloud-config settings, for
swap space settings and other settings.
One idea is to change the AzureDataSource.py script, in order to allow
it to read from waagent.conf and/or other config files.
The possibility exists, given the fact that a us
Hi Daniel,
Thanks for doing this, looks great so far! I do have a couple
recommendations:
In case customers are not familiar with the term "Custom Data" or how to use
it, I would recommend linking to our documentation:
http://azure.microsoft.com/en-us/documentation/articles/virtual-machines-how
Steve, I've written up some documentation on how to create swap
partitions on Azure at https://wiki.ubuntu.com/AzureSwapPartitions
Please do let me know if there are any improvements that you'd like me
to make!
(Marking this as Fix Committed until I hear back from you)
** Changed in: cloud-init
** Changed in: cloud-init (Ubuntu)
Assignee: (unassigned) => Daniel Watkins (daniel-thewatkins)
** Changed in: cloud-init (Ubuntu)
Status: New => In Progress
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to cloud-init in Ubu
@Daniel,
I did all the testing before and came to the same result (as you are
probably aware of) BUT with a different CONCLUSION.
I personally concluded that the use of swap partitions, if ever
desirable, is (also) not desirable in the current case AND certainly not
on an ephemeral disk, given th
OK, so passing a file containing the following as custom-data gives us a
swap partition and a mounted disk at /mnt:
#cloud-config
disk_setup:
ephemeral0:
table_type: mbr
layout: [[66, 82], 33]
overwrite: True
fs_setup:
- device: ephemeral0.1
filesystem: swap
@Cracco,
The discussion has to do with creating (persistent) swap space, on the
resource (ephemeral) disk, without adding additional disks.
In essence, you provide a solution, but the solution ignores the
possibility to use some of the unused disk space on the resource disk.
Furthermore, your so
Hi,
these are the steps I've used to add a swap partition to my Ubuntu VM on
Azure:
1) Add from Azure portal a new data disk (in my case I added 2 data
disk, the first is a 100 GB disk, the second one is a 6GB size for swap
partition)
“/dev/sda” is the Azure VM OS disk;
“/dev/sdb” is the Azure V
** Summary changed:
- Document ow to add swap space on Azure resource disk
+ Document how to add swap space on Azure resource disk
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to cloud-init in Ubuntu.
https://bugs.launchpad.net/bugs/13
24 matches
Mail list logo