Author Archives: Damien Gardner - Page 7

XenServer – Creating a local ISO repository

Starting a new job, I’m essentially starting from scratch, as far as development infrastructure goes – The live sites are hosted on a cpanel server with ftp access only – so debugging is basically a moot point – and there have been no development sites for quite a while – it’s a simple case of edit in dreamweaver/eclipse/zend studio/etc and FTP up and ‘see how it goes’ – so it’s either sync up the dev sites from current codebase, or start them from scratch with something a little more industry-standard.  Granted these are much smaller projects than my previous jobs, but they have the potential to still need multiple developers committing source changes, etc, in the somewhat near future.  So the current ftp-the-changes-up-to-the-server just won’t cut it.   My first step is running up a quick XenServer install, and bringing up a few VM’s for Subversion, LAMP, Jira, etc.  yes, they could all run on one, but if there’s one thing I’ve learnt of the years, it’s keep your environments separated.  Especially source control from development!

The environment here isn’t big enough to justify anything like I have in my small hosting business, with a SAN-backed XenServer cluster with HA licensing etc.  So a standalone XS server it is.  15 mins after finding a spare monitor, I had XenServer running.  And that’s about where I went ‘oh, bugger, ISO repository!’ – That’s right, there’s no fileserver in this office at present, so a-googling I went!

As it turned out, it wasn’t too bad at all 🙂  We basically create a small volume in LVM, mounted it, and add it as an ISO Storage Repository.

First up, get the name of the Volume Group

# pvscan
  PV /dev/sda3   VG VG_XenStorage-c0972b3b-ef4a-346f-42d2-8ddae19499da   lvm2 [690.62 GB / 690.61 GB free]
  Total: 1 [690.62 GB] / in use: 1 [690.62 GB] / in no VG: 0 [0   ]

Ok, so in this case, our VG is VG_XenStorage-c0972b3b-ef4a-346f-42d2-8ddae19499da. Now we want to create a Logical Volume.  I made it 40GB – if I was running small SCSI/SAS disks, I’d probably have made it smaller, but this box has a 750gb SATA disk.

[root@xenserver01 ~]# lvcreate -L 40G -n ISO VG_XenStorage-c0972b3b-ef4a-346f-42d2-8ddae19499da
  Logical volume "ISO" created

And of course, format it.  I use ext2 for anything ‘basic’, as I don’t need journalling, and I like my performance, especially in a SAN environment.  Not that that’s an issue here with a local disk, but it’s a good habit to form 😉

[root@xenserver01 ~]# mkfs.ext2 /dev/VG_XenStorage-c0972b3b-ef4a-346f-42d2-8ddae19499da/ISO 
mke2fs 1.39 (29-May-2006)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
5242880 inodes, 10485760 blocks
524288 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=0
320 block groups
32768 blocks per group, 32768 fragments per group
16384 inodes per group
Superblock backups stored on blocks: 
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 
4096000, 7962624
Writing inode tables: done                            
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 39 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.

Well, that was easy. Let’s make a new directory to mount the LV.

[root@xenserver01 ~]# mkdir /mnt/iso_import

Mount the Storage Repository. Make sure that all Volume Groups are active, mount it, and attach it as a storage repository..

[root@xenserver01 ~]# vgchange -a y
  3 logical volume(s) in volume group "VG_XenStorage-c0972b3b-ef4a-346f-42d2-8ddae19499da" now active
[root@xenserver01 ~]# mount /dev/VG_XenStorage-c0972b3b-ef4a-346f-42d2-8ddae19499da/ISO  /mnt/iso_import/
[root@xenserver01 xen]# xe-mount-iso-sr /mnt/iso_import -o bind

Sweet, and make it come up at boot!

[root@xenserver01 ~]# cat >> /etc/rc.local << __END__
vgchange -a y
mount /dev/VG_XenStorage-c0972b3b-ef4a-346f-42d2-8ddae19499da/ISO  /mnt/iso_import/
xe-mount-iso-sr /mnt/iso_import -o bind
__END__

And we’re done!

Oh, and obviously, scp some isos to it! 🙂

Mongoose M60 Programming

 

So, I tend to go nuts every few months, trying to find the Programming instructions for the M60/M80 Mongoose Alarms. So rather than bookmark the post I eventually find each time, and hope it doesn’t dissappear, or that I don’t lose my bookmarks, I’ll just reproduce it here 🙂

Instructions:

  1. Drivers door must be open
  2. Within 15 seconds of opening the door (note: Seems to really just be within de-arming the immobiliser), turn the ignition ON/Off the number of times for the programming charg (e.g. 3 times for remote code learning)
  3. Siren will then chirp the same number of times as the programme number.
  4. Press button one to turn the feature ‘ON’ – siren chirps once, lights flash once.
    Press button two to turn feature ‘OFF’ – siren chirps twice, lights flash twice.
  5. Leave system for 10 seconds – system quickly chirps 3 times (lights flash 3 times) to show exit of programming mode
Feature Button one (on) Button Two (Off)
3 Remote code learning
4 Ignition Door Lock ON OFF
5 Siren Chirps ON OFF
6 Turbo Timer Each press = 1 minute
Siren chirps for minutes set, max 5 mins
N/A>
7 Last Door Arming ON OFF
8 Door Diagnostics ON OFF
9 Engine Immobiliser ON OFF
10 Siren or Horn Siren Horn
11 CDL Pulse 0.8 Sec 3.5 Sec
12 NSW Siren Timing ON OFF

Dipole up :)

Well yes, the TEV-1 sucks as ever, so I finally got my bum into gear and sorted out stringing up the 40m dipole.. Center is hanging from a tree in the back corner of our yard. One element comes back towards the house, strung up to a 6m pole conveniently stuck down between some formwork in the retaining wall at the side of the house (Pleasantly surprised to find a sturdy mounting point so easy without bolts required!).. The other element took a bit of work – trimming a bunch of dead branches from trees in the park behind our property, but finally (and after using the aforementioned 6m pole to get a pull-rope into the top of one of the trees, much to the amusement of the lady next door putting out her washing) it’s up and it’s all quite easy to take up and down if I want to finish the ‘fan’ part of the dipole build..

We’ll see how it works, I may just get off my butt and pull the buddipole out of its bag where it lives in the back of the Pajero, and set that up instead of having all the other stuff strung up permanently.. we’ll see 🙂

So far it’s working GREAT on 40m – put it up as it had been at the old house, and was getting a solid 1.2:1 SWR, so that’s good enough for me for now 🙂

1178711791

Bahahah, ok, SWR problem fixed ;)

Ok, after much pulling apart of antenna mounts, re-terminating cables etc… I thought to open up the remote probe on my Welz SP-425 SWR meter, as one of the N chassis-mount connectors was a bit loose.. And what do you know? Broken track! Fixed that up, and voila, the big Diamond SG-7900 ground-independant dual-bander sits at 1.5:1 on both bands! The Mobile One M270 dual-bander sits on 1.2:1 on VHF, but 2:1 on UHF – Probably because the ‘ground plane’ is a 1/4 wave length (on VHF) of S/S wire vertically below the antenna. So it technically doesn’t HAVE a ground plane on UHF..

But all good 🙂

Oh, and the TEV-1? Yep still as useless as ever! I’m eyeing off the big tree in the back corner of the yard, and investigating the park behind us for stringing up a dipole 🙂

Whoa, where’d the cold come from?!

Now normally, the two rooms downstairs which make up my office have their airconditioners running fairly solidly.. little 1.3kW, fairly quiet unit in the office itself, and a 1.5kW fairly noisy unit in the front room.. They usually run on around a 20% duty cycle in the colder weather..

Walked into the office when i got home from sydney this evening, and it was 16C in the office, and both aircons were off! Had to go hunt out the trusty speedy heater I keep in our camping kit! 🙂