Re: [Bug 1374166] Re: Document how to add swap space on Azure resource disk
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 characteristic "persistent" from persistent swap) swap is created as part of the reformat; before the reformat we have a disk with a single NTFS partition. I'm not even sure what it would mean to create it before the reformat. Persistent swap is swap that continues to exist after a reboot; it doesn't retain any data over reboots (any more than RAM does). Unless you have an application that immediately requires swap on boot, this is effectively persistent swap. (And if you have such an application, you probably aren't using an appropriately sized VM for it) > - is the Azure VM image running the most appropriate and/or recent cloud-init version? This functionality is in all supported Ubuntu images on Azure; it was introduced for trusty and backported to precise in April 2014 (i.e. before trusty was even released). > It often has been the problem that cloud-init versions on Azure Ubuntu > VMs are not really up-to-date. Each release of Ubuntu contains the latest version of cloud-init when it is released. We then follow Ubuntu's Stable Release Update process[0] to backport any important functionality (or security fixes) whilst avoiding regression; the cloud-init versions on official Ubuntu images in Azure _are_ up-to-date. > However, I will try to test which issues occur (if any), after thursday > though. If you do find issues that aren't simply with the documentation at https://wiki.ubuntu.com/AzureSwapPartitions, please open a new bug. :) Thanks, Dan [0] https://wiki.ubuntu.com/StableReleaseUpdates -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1374166 Title: Document how to add swap space on Azure resource disk To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1374166/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 1374166] Re: Document how to add swap space on Azure resource disk
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.microsoft.com/en-us/documentation/articles/virtual-machines-linux-agent-user-guide/ > > Yet I am still not sure how could I edit my configuration to create a > swap through cloud-init on next boot. If this is fixed and released, > then please help point me and whoever comes next to the right doc. > The wiki page has a pretty comprehensive description of how you can add a swap partition using cloud-init configuration, including a full configuration that will actually do it at the bottom of the page, so I'm not really sure how you're drawing that conclusion. That said, if that documentation doesn't apply to your case or is in some way unclear, please let me know and I'll do my best to amend it. :) Thanks, Dan -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1374166 Title: Document how to add swap space on Azure resource disk To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1374166/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 1374166] Re: Document how to add swap space on Azure resource disk
-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 > means of the swap stanza Thanks for the pointer. The swap directive will only create swap _files_, rather than swap partitions. I've added a note to the page and a link to the cloud-init example of how to use the swap directive. > b) in good practice, swap partitions should be at the start of the > disk (and a function of the size of memory available) Best practices for swap partitions are outside of the scope of this documentation (particularly given that when we're talking about storage in a cloud, it's very difficult to know what it's actually backing on to). > - 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), Feel free to open a new bug for this, explaining precisely the change in behaviour you would want to see. :) > - 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. I'm not 100% sure what behaviour you are seeing that you don't expect to. Could you file a new bug with details? Thanks, Dan -BEGIN PGP SIGNATURE- Version: GnuPG v1 iQIcBAEBAgAGBQJUvi4EAAoJEO7mh3btsT6gtjQP/0HypN2gaBNwYOJ7iLpZsvuM guG19/Cq+Cjz4V1cD56i3bj7isFHo7jYUp+ZfGZZq3jvU7CssjGeQIllAs7shrDb G4xrmVj8Lsm5+oytmaiff3k6sPY1QHOlKZNRGmPBsjYqA5Ni3cp+mWMQppwd4aI1 NwHvLQRwVOD40dbJuzmP7+IKoGUx9fhnmN9FjpMDBfEV5Hgdyld6xLhI3iGUZICO S6qg1Y3L8TWTeihx6Kvlh3my+gDbEQW3Z8y+/3OdT9hUKBZt2aZZtcDr9WHSlx2Z 5thycOaYCZjHqKzc4ih/zxmlS+9oIYqba8Gk4tu0KlCLl9wZQHdl/ByH7gzIW5P5 AfB2/mBmZqvEIJooykcqds3nNiE/yx/3IBd59LKUwHOtr3RegzFInf1jqIC8XHMi CoxMoEfhud2d5MRF7YApJU/DsMAKXTBd/kXesZGu+nN9BbcFMu7+4y5bNQFixz0U dsfA70YZMbh6fHMYeouGZ3M0aGouwW7lMfzSlHRUnr2Vb8p1NppIgv1c6KOwHgQR mZ39YCx2+XIOHbZ/daB2UFg2lpOv30VFPNuws8Vr7bdYCRLA7jT9clbzcgUyoMbz eUHepQSQTgNykXfJS3/hCvMivFv/pRWWNV5JVIaRTwLQU62TfUyE7v5edsoXVM/b kYIKEv56MRnh7oKcN/k2 =SHJb -END PGP SIGNATURE- -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1374166 Title: Document how to add swap space on Azure resource disk To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1374166/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 1374166] Re: Document how to add swap space on Azure resource disk
-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/virtual-machines-how-to-inject-custom-data/ > > http://azure.microsoft.com/blog/2014/04/21/custom-data-and-cloud-init-on-windows-azure/ Done. > While passing a cloud-config via CustomData will work great during > the initial setup and provisioning of the machine, is there a > workflow that could allow a customer to configure a local > cloud-config to configure swap space post-provisioning? This is > feasible for those distributions that just use the Azure Linux > agent, so preferably there is a way to do this on Ubuntu as well. I'm not sure about this; I will confer with Ben and Scott Moser. Cheers, Dan -BEGIN PGP SIGNATURE- Version: GnuPG v1 iQIcBAEBAgAGBQJUvi3UAAoJEO7mh3btsT6gWyUQAJQg3KgbGa3ShzP2vCPYbOr4 f9hREe2Kt8+i24wlecQ6SYnoqbab7ct/Il18MM3kj1fSRzq9QdW5LMsjeiaQCdTa 3xoG33Kyh/N6GQ4LfWmfK302WLPuA85fOSyk+7NLdvw2sxKh0HXvRjUtXmJ7dJvj vQFU5oiqqpei8Q0GUN4MUs4HcR/ybzlOXBpIi1yNR11POBUmFHh4ubM3ZgZQODKc riAvKCm2VY6s3EdZLK2lI6+UoSkNudAmhSL3AyFj+tpFvuB/h6Aak9tSHFeqHTXq nChciSiQt0a7IlzbPOBK0w4MZOG3Xmg1tkHXFaS/eQR15W8HLhWqqtSwO4NFV5Gx uXuYh+RPS1jypX+f5Pz3oQrV2y3sENk+bfYt4hqV7RodkwLfpZHHiIgStDq6bjtr FGrWma4SkqZKVcXqzRT9DvVE3I9qXvj/YOeGGEQudlg9zYkb1CIDhxk18sog+7Vq WuN+GU0boDzLMgOvVcoh7zW9uZWcbtuceqMqcTUY3Vr8j+4G8hKeTQeB2vjmxhoY 3zkY/lBKs7EHcd89ud68M2Ec7WSXb5pOtiMZ517S0cXTrg7cllHhcixrmK7IXmEQ ecvemZEQGvebRxx8cas0y5zOuTUpgiB9Ecp7jsU+rbkvyx4xRqJq6LRSaNTX42BV mr7RPAJlpLogLOukXBiN =g+mH -END PGP SIGNATURE- -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1374166 Title: Document how to add swap space on Azure resource disk To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1374166/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs