Re: [Bug 1374166] Re: Document how to add swap space on Azure resource disk

2015-06-02 Thread Dan Watkins
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

[Bug 1374166] Re: Document how to add swap space on Azure resource disk

2015-06-01 Thread trialotto
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

[Bug 1374166] Re: Document how to add swap space on Azure resource disk

2015-06-01 Thread Dan Watkins
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

[Bug 1374166] Re: Document how to add swap space on Azure resource disk

2015-06-01 Thread trialotto
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

Re: [Bug 1374166] Re: Document how to add swap space on Azure resource disk

2015-06-01 Thread Dan Watkins
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

[Bug 1374166] Re: Document how to add swap space on Azure resource disk

2015-05-31 Thread David Frank
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

[Bug 1374166] Re: Document how to add swap space on Azure resource disk

2015-03-04 Thread trialotto
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

[Bug 1374166] Re: Document how to add swap space on Azure resource disk

2015-03-03 Thread trialotto
@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

[Bug 1374166] Re: Document how to add swap space on Azure resource disk

2015-03-03 Thread Ben Howard
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

[Bug 1374166] Re: Document how to add swap space on Azure resource disk

2015-02-17 Thread trialotto
@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

[Bug 1374166] Re: Document how to add swap space on Azure resource disk

2015-02-04 Thread Daniel Watkins
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

[Bug 1374166] Re: Document how to add swap space on Azure resource disk

2015-01-21 Thread trialotto
@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

Re: [Bug 1374166] Re: Document how to add swap space on Azure resource disk

2015-01-20 Thread Daniel Watkins
-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 >

Re: [Bug 1374166] Re: Document how to add swap space on Azure resource disk

2015-01-20 Thread Daniel Watkins
-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

[Bug 1374166] Re: Document how to add swap space on Azure resource disk

2015-01-19 Thread trialotto
@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

[Bug 1374166] Re: Document how to add swap space on Azure resource disk

2015-01-19 Thread trialotto
@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

[Bug 1374166] Re: Document how to add swap space on Azure resource disk

2015-01-19 Thread Stephen A. Zarkos
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

[Bug 1374166] Re: Document how to add swap space on Azure resource disk

2015-01-19 Thread Daniel Watkins
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

[Bug 1374166] Re: Document how to add swap space on Azure resource disk

2015-01-19 Thread Daniel Watkins
** 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

[Bug 1374166] Re: Document how to add swap space on Azure resource disk

2015-01-16 Thread trialotto
@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

[Bug 1374166] Re: Document how to add swap space on Azure resource disk

2015-01-16 Thread Daniel Watkins
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

[Bug 1374166] Re: Document how to add swap space on Azure resource disk

2015-01-13 Thread trialotto
@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

[Bug 1374166] Re: Document how to add swap space on Azure resource disk

2014-11-21 Thread Cracco
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

[Bug 1374166] Re: Document how to add swap space on Azure resource disk

2014-10-02 Thread Stephen A. Zarkos
** 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