Skip to content

Commit f4f2456

Browse files
author
Greg Palmier
committed
Merge branch 'source' of github.com:promet/promet.github.com into source
2 parents 28143e4 + 88d3070 commit f4f2456

16 files changed

+107
-9
lines changed

blog/our-team/marius-ducea.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<meta name="author" content="Promet OPS Team">
1010

1111

12-
<meta name="description" content="Marius Ducea <iframe src="http://markdotto.github.com/github-buttons/github-btn.html?user=mdxp&type=follow&count=true" allowtransparency="true" &hellip;">
12+
<meta name="description" content="Marius Ducea <iframe src="http://ghbtns.com/github-btn.html?user=mdxp&type=follow&count=true" allowtransparency="true" &hellip;">
1313

1414

1515
<!-- http://t.co/dKP3o1e -->
@@ -73,7 +73,7 @@ <h1 class="entry-title">Marius Ducea</h1>
7373

7474
<div id="author-top-links" style="margin:-10px 0 8px 0;">
7575

76-
<iframe src="http://markdotto.github.com/github-buttons/github-btn.html?user=mdxp&type=follow&count=true"
76+
<iframe src="http://ghbtns.com/github-btn.html?user=mdxp&type=follow&count=true"
7777
allowtransparency="true" frameborder="0" scrolling="0" width="165px" height="20px"></iframe>
7878

7979

images/2012/cluster-setup.png

14.2 KB
Loading

images/2012/softlyer-dns-config.png

42.9 KB
Loading

images/2012/sync-dns.png

48.1 KB
Loading

source/_layouts/team_member.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
<div id="author-top-links" style="margin:-10px 0 8px 0;">
99
{% if author.github %}
10-
<iframe src="http://markdotto.github.com/github-buttons/github-btn.html?user={{ author.github }}&type=follow&count=true"
10+
<iframe src="http://ghbtns.com/github-btn.html?user={{ author.github }}&type=follow&count=true"
1111
allowtransparency="true" frameborder="0" scrolling="0" width="165px" height="20px"></iframe>
1212
{% endif %}
1313

source/_posts/2011-04-03-install-apachesolr-in-ubuntu-for-drupal.markdown

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ You should see Solr access on your Tomcat admin/manager page (`http://hostname:8
5757
**3.) Connect Drupal Site to Solr (multi-core setup)**
5858

5959
I already have a Drupal site with ApacheSolr module installed and SolrPHPclient library.
60-
60+
<!--more-->
6161
```
6262
cp /path/drupal_site/sites/all/modules/apachesolr/schema.xml /usr/share/tomcat6/solr/conf/schema.xml
6363
cp /path/drupal_site/sites/all/modules/apachesolr/solrconfig.xml /usr/share/tomcat6/solr/conf/solrconfig.xml

source/_posts/2011-04-22-amazon-aws-worse-failure.markdown

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ I'm sure almost everyone is aware at this point on the **failure** that caused A
2020
The failure was specifically related to the **EBS** drives that made customer instances non responding, but also prevented them to start or stop new instances with the same EBS volumes (that probably 99% have tried immediately as they got paged). There are some sites that had failover mechanisms, but if they were in the same availability zone it was useless (something that looked like a good solution and fast and cost effective). Others, many startups, found out that they had no such mechanism at all, and that they depended way too much on the Amazon reliability. Until this issue, Amazon had a great uptime record; there were many issues but with individual instances, but not such a global issue. You would expect people running their application in the cloud to expect failures and be prepared and I'm sure most of them are compared with applications deployed in the regular datacenter, but apparently there is still much work to be done.
2121

2222
Overall I believe this showed (if we needed a reminder), that failures can happen and anyone can suffer from such a problem (Google had problems, Facebook the same, and Twitter is most of the time down, and now was just Amazon's turn). We need to be prepared and build and architect our applications with this in mind and be ready to failover. A great example of this is the twilio application design: [http://www.twilio.com/engineering/2011/04/22/why-twilio-wasnt-affected-by-todays-aws-issues/](http://www.twilio.com/engineering/2011/04/22/why-twilio-wasnt-affected-by-todays-aws-issues/)
23-
23+
<!--more-->
2424
Also I think Amazon will learn many things from this event, and hopefully one of them will be to _better communicate with their clients_. They can definitely improve on this, and not leave people to go to twitter or ec2 forums for the best updates on such problems instead from the source.
2525

2626
I've also seen different providers (I will not give names but they are everywhere on twitter) come out and offer their services to people hit by this. I don't believe this is the best approach to sell your very performant cloud solution or barebone datacenter servers or whatever, and probably it does worse for their reputation making them look like coyotes on a fallen prey. I'm sure like me, most people felt disgusted on their offers at this time, and it will definitely not make me look at their offering again.

source/_posts/2012-06-04-install-vsftpd-server-with-virtual-user-and-directory.markdown

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ aptitude install libpam-pwdfile
3131
```
3232

3333
Next create your password file (example: _/etc/vsftpd_users.conf_) which contain the list of virtual users and password hash. You can use [htpasswd](http://httpd.apache.org/docs/2.0/programs/htpasswd.html) that's included in Apache or go to this website, [htaccesstools.com](http://www.htaccesstools.com/htpasswd-generator/) to generate the list of users and passwords.
34-
34+
<!--more-->
3535
Once you have the list of users (example: _demo1_ and _demo2_), you have to create their virtual directory as well, let's say I want to set ftp users home directory inside _/home/ftpusers_. This will be their home directory and they can't see or navigate outside of their home dir. Make sure they're writable as well.
3636

3737
```

source/_posts/2012-06-22-debian-6-backup-xen-with-lvm-and-rsnapshot.markdown

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ vi /etc/rsnapshot.conf
3838
```
3939

4040
Here's my rsnapshot config changes and/or additions:
41-
41+
<!--more-->
4242
```
4343
snapshot_root /backups/ #this is a mounted partition
4444
interval daily 1 # i removed all other schedule and one daily copy only

source/_posts/2012-06-22-restore-xen-vm-from-lvm-snapshot-backups.markdown

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Overview of "bare-metal" restore process:
3232
create, format, and mount logical volumes to use on the vm that you want to restore or re-create, based on its original vm disk properties such as size, names, etc.
3333
copy all files from backup location to the newly mounted lvm disk
3434

35-
35+
<!--more-->
3636
adjust necessary xen vm configs (if any, like new ip address) and start/create the vm using the volume with restored contents or files, and you're done.
3737
In the restore example below I'll refer to the vm as "domain.com" and we will restore the backups to a different volume with the same config as the original. Then we'll start the vm, domain.com, using the restored volume.
3838

source/_posts/2012-08-09-integrate-sendgrid-with-redmine.markdown

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ The core of this funcionality is provided by the sendgrid gem which originates f
3131
#### Redmine Configuration File
3232

3333
If your Redmine install is something like /var/www/redmine, your configuration file will be /var/www/redmine/config/configuration.yml. If you have a relatively clean Redmine install, chances are you might not have one or it's a default template with a lot of examples. You might find an example detailing how to integrate with GMail in the example file. Our set up will be similar. Paste the following into your configuration.yml file and change the necessary parameters.
34-
34+
<!--more-->
3535
```
3636
production:
3737
delivery_method: :smtp
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
---
2+
layout: post
3+
title: "HowTo: Bulk Import DNS Zones to Softlayer DNS using Cpanel"
4+
date: 2012-11-13 01:08
5+
comments: true
6+
author: gerold-mercadero
7+
published: true
8+
status: publish
9+
categories:
10+
- cpanel
11+
- HowTo
12+
- dns
13+
---
14+
15+
This guide covers the process for doing bulk import of existing DNS zones from a Cpanel or BIND server to Softlayer's DNS servers (*ns1/ns2.softlayer.com*). This is useful if you need to add hundreds of zones, if for example you are moving your DNS hosting servers to Softlayer's free DNS hosting. Currently, Softlayer doesn't have a tool to do bulk import of zones with existing records. Although you can create a default zone template and bulk add zones but this doesn't fit for existing zones.
16+
17+
### Requirements:
18+
19+
1.) DNS zones on a Cpanel server (WHM or DNSOnly).
20+
21+
If you are not using a Cpanel server then you can stand up a Cpanel VPS this process and install Cpanel DNSOnly as it is free or install Cpanel WHM and automatically it will have 15-day trial license, or you can get a one month WHM VPS license for $15/month.
22+
DNSOnly should be fine and easier/faster to install but you cannot view the DNS zones from its UI, although you can view or edit the zone files directly (*ex: /var/named/domain.db*).
23+
Then import your zones to Cpanel server. There are lots of guides or discussions online in doing this. Some mentioned that you can move the named.conf and zone files as-is and adjust the formatting to match Cpanel's.
24+
In our case we were running Cpanel server so we copied straight our "/var/named/*.db" files to Cpanel DNSOnly to import zones.
25+
26+
2.) Softlayer API key for your account.
27+
28+
You will need this later to connect your Cpanel DNS server in a cluster setup with Softlayer's DNS servers. Cpanel have DNS cluster functionality with SoftLayer and VPS.NET.
29+
30+
### The Import Process:
31+
32+
1.) Configure your Cpanel DNS cluster to connect to Softlayer's DNS servers.
33+
<!--more-->
34+
- Login to Cpanel WHM or DNSOnly, then go to *Cluster/Remote Access* ->> *Configure Cluster*.
35+
- select *Enable DNS clustering*
36+
- On *Backend Type* dropdown, you will see *cPanel* only. Then click on *(Show All)* link next to it and the page will reload and you will see two more options: *Softlayer* and *VPS.NET*. Select *Softlayer* and click on *Configure button.
37+
[![cluster-setup](http://linuxsysadminblog.com/images/2012/cluster-setup.png)](http://linuxsysadminblog.com/images/2012/cluster-setup.png)
38+
- On *SoftLayer DNS Remote Configuration* page, enter your Softlayer API user and key. On *DNS role* choose *Synchronize changes* from dropdown list and click on *Submit*.
39+
[![softlyer-dns-config](http://linuxsysadminblog.com/images/2012/softlyer-dns-config.png)](http://linuxsysadminblog.com/images/2012/softlyer-dns-config.png)
40+
41+
2.) Synchronize DNS Records across clusters. DNS Cluster is now your Cpanel server and Softlayer servers.
42+
43+
- From Cpanel WHM or DNSOnly admin, go to * DNS Functions* ->> *Synchronize DNS Records*
44+
- Select *Synchronize all zones to all servers* and check the box that says *Synchronize zones that are not configured on this server*. Then hit *Synchronize* button.
45+
[![sync-dns](http://linuxsysadminblog.com/images/2012/sync-dns.png)](http://linuxsysadminblog.com/images/2012/sync-dns.png)
46+
- The dns sync process will run and it will take some time depending on the number of zones and records that you have. Wait until it's finish and you're done.
47+
- Once this starts you can login to your Softlayer portal and go to *Public Network* ->> *Domain Name System* and you will start seeing zones and see the progress on how many are imported.
48+
49+
*That is all. You can shutdown or remove your Cpanel DNSOnly/WHM server when if not needed.*
50+
51+
### Notes:
52+
53+
- Cpanel have DNS cluster functionality with SoftLayer and VPS.NET so you might be able to use this guide to bulk import zones to VPS.NET.
54+
- At this time of writing, we encountered a problem with Cpanel DNS cluster integration with Softlayer and we cannot modify the dns records that were imported initially. When we update them it reverts to the original records from initial import. We disabled the DNS cluster setup from Cpanel and we update our DNS zones/records right from Softlayer portal.
55+
- Above info refers to BIND server as the default DNS server on Cpanel.
56+
57+
58+
59+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
---
2+
layout: post
3+
title: "Xen: Add Extra Partitions to Guest OS"
4+
date: 2012-11-21 18:55
5+
author: gerold-mercadero
6+
published: true
7+
comments: true
8+
categories:
9+
- xen
10+
---
11+
12+
13+
Here's one way to add and mount additional LVM partition in xen guest machines.
14+
15+
1.) Create logical partition and format it. Example below creates "40GB" partition and "ext3" format in "vg0" volume group.
16+
17+
```
18+
lvcreate -L 40G -n extra_storage vg0
19+
mkfs -t ext3 -v /dev/vg0/extra_storage
20+
```
21+
22+
2.) Update xen config to add new partition to guest os. Assign device name to it, example "xvda3". Then re-create the VM to recognize the new partition/device. Note: reboot doesn't read the new xen configuration.
23+
24+
```
25+
disk = [
26+
'phy:/dev/vg0/extra_storage,xvda3,w',
27+
```
28+
29+
3.) After you reboot, login to VM and mount the new partition. New drive or partition shoud be in "/dev/xvda3."
30+
31+
```
32+
mount /dev/xvda3 /extra_space
33+
```
34+
35+
Add it to "/etc/fstab" to automount on reboot.
36+
37+
```
38+
/dev/xvda3 /extra_space ext3 noatime,nodiratime,errors=remount-ro 0 1
39+
```

source/images/2012/cluster-setup.png

14.2 KB
Loading
42.9 KB
Loading

source/images/2012/sync-dns.png

48.1 KB
Loading

0 commit comments

Comments
 (0)