Monday, August 16, 2010

Blogger why doth you hate me?

So you write a blog, you decide you want a customer domain. Blogger then makes you life hell.

I have to give credit, where its due, but if you see

Another blog is already hosted at this address.

Then go and check out Shafar's blog post.

I have been recently phrasing question design (esp. web design) along the lines "What is Facebook designed X"... at least I could have had an amusing chat with people on the merits of Blogger versus Wordpress...

Friday, August 13, 2010

More lvm2 weirdness

I have just install lv,2 on my Ubuntu 9.10 instance on EC2. I go to create the logical volume and got the following

# lvcreate -L 1g -n data_vol data_vg
/proc/misc: No entry for device-mapper found
Is device-mapper driver missing from kernel?
Failure to communicate with kernel device-mapper driver.
/proc/misc: No entry for device-mapper found
Is device-mapper driver missing from kernel?
Failure to communicate with kernel device-mapper driver.
Incompatible libdevmapper 1.02.27 (2008-06-25)(compat) and kernel driver
striped: Required device-mapper target(s) not detected in your kernel
Run `lvcreate --help' for more information.

It turns out that after install some of the modules are not loaded, so you have to

# modprobe dm_mod
# modprobe dm_mirror
# modprobe dm_snapshot

After that the command executes correctly!

# lvcreate -L 1g -n data_vol data_vg
Logical volume "data_vol" created

Can't install lvm2 on Ubuntu 9.10 on EC2?

Welcome to planet weird, or should I say Linux-planet-weird.

I wanted to create a new logical volume based on an Amazon pair of EBS volumes.

So I get to the point of creating the Physical Volume

# pvcreate /dev/sdf1
The program 'pvcreate' is currently not installed. You can install it by typing:
apt-get install lvm2
pvcreate: command not found

That was unfortunate, so I then tried ti install LVM2

# apt-get install lvm2
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package lvm2 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package lvm2 has no installation candidate

After much, much banging of head against hard objects I found a solution

# apt-get update
[...]
# apt-get install lvm2
[...]

Now I have pvcreate on all the wonders from the lvm2 package!