Tag Archives: centos

/etc/network/if-up.d/ on CentOS & RedHat EL

On debian machines there is a folder /etc/network/if-up.d/ that will run executable scripts when the network connection goes up. On CentOS and RedHat it works differently – it checks to see if there is a file /sbin/ifup-local and will execute that if it is available. to create it: sudo vi /sbin/ifup-local sudo chmod +x /sbin/ifup-local Debian’s directory structure is cleaner but I don’t think there is an out-of-the-box 1:1 on enterprise linux… yet.

Posted in Linux | Tagged | Leave a comment

Marketplace codes may not be attached as a secondary device

I was using some CentOS images from CentOS via the Amazon Marketplace – well when one of them wouldn’t start due to a configuration error I thought I would just stop the instance, detatch the volume, attach it to another instance, mount it, make edits to the configuration, detatch it, reattach it to the original instance, and voila! Well that is how it should work – at least with my experience using Community AMIs provided by Canonical with Ubuntu. The error I got was: Client.OperationNotPermitted: ‘vol-xxxxxxx’ with Marketplace codes may not be attached as a secondary device. However, with CentOS and Enterprise Linux (EL) they provide instances via the marketplace – their site even says: Using the AMI’s directly is currently deprecated. We are working to resolve issues and establish automation as well as monitoring around resources and process that will allow us to re-enable direct AMI instantiation. In the mean time, the AMI’s are listed at the bottom of this document for legacy / reference purposes. After a lot of searching I found this on Quora: My name is Julien Ellie, I’m one of the engineers on the AWS Marketplace team at Amazon. We are aware of this issue and we’re looking into what can be done to address it. In the meantime if you contact customer support, they can help you through this and hopefully get you unblocked. You can reach them at 1-800-407-2983 or you can find the contact us form on the marketplace website at the … Continue reading

Posted in Tech Tips | Tagged , , | 2 Comments