Friday, August 13, 2010

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!






No comments: