Category Archives: Life

God bless LVM

Correct me if I’m wrong (and I really want to be wrong).
Is that whole LVM crap expects me to be forecaster/fortune-teller?

I wanted to upgrade some squeeze based virtual machine to wheezy. Sounds nice, yeah?
So before the upgrade you should ensure that you have backup, right?
Assuming that whole system is LVM based all you have to do before upgrade is LVM snapshot.
I did it and I was quite surprised that I had to declare its size.
I did it basing on assumption that upgrade shouldn’t take more than let say 5GB.


mastersrv:~# lvs
  LV       VG      Attr   LSize   Origin  Snap%  Move Log Copy%  Convert
  backup   virtual -wi-ao  50,00g                                       
  mainsrv  virtual -wi-ao 300,00g                                       
  redminbu virtual swi-a-   5,00g redmine   0,00                        
  redmine  virtual owi-a-  19,53g

Now I did upgrade redmine virtual machine and this is what I got:

mastersrv:~# lvs
  LV       VG      Attr   LSize   Origin  Snap%  Move Log Copy%  Convert
  backup   virtual -wi-ao  50,00g                                       
  mainsrv  virtual -wi-ao 300,00g                                       
  redminbu virtual Swi-I-   5,00g redmine 100.00                        
  redmine  virtual owi-ao  19,53g

These attr flags mean “Snapshot invalid” and “Invalid snapshot”.
End of the story… this is last time I actually tried that method of backup.
Happily I have also some traditional backup (mysqldump+rsync) but I’m really surprised that LVM works this way.
There was plenty of free space to enlarge that volume and this is what you get in your logs:

[13402279.777238] device-mapper: snapshots: Invalidating snapshot: Unable to allocate exception.

Unable to allocate exception? Did it really try to do it?

mastersrv:~# pvs
  PV         VG      Fmt  Attr PSize   PFree  
  /dev/md0   virtual lvm2 a-   884,01g 514,46g

I don’t think so.


As usual… if I’m trying to solve some issue there is a technology that solves it.
But… it’s in early stage of development, poorly packaged, stable versions lack most of the features, and basically it’s recommended to use git snapshots and to patch all the software that is going to use it.

I’m talking about usbredir and SPICE.

Changing the job

It was almost 6 years in NetArt company (probably known better as
Time for changes. Starting on May I’ll be working for Akamai.

Wish me luck… few hundreds of servers against almost 100 thousands looks like a real challenge ;)

Cracow against ACTA

Wow… that’s really big demonstration.
I’ve just uploaded video with people walking near Wawel castle… plenty of people during almost 20 minutes.
I suppose there was more than 50k people and wonder what’s going to be shown in TV ;)

I really like it.

Happy new blog!

Always wanted to eventually start my own blog.
Facebook without searching capability isn’t the best place to share notes which I would like to find someday.

Yeah. This means that this blog will be mainly technical, related to Linux.

Since I want to add it to Planet Debian it’s going to be written only in English (sorry Sylwia ;) )

Don’t know yet if it’s its final theme/layout, I’m still experimenting with WordPress.

Almost forgot. Forgive me my poor English.

See you later.

This entry was posted in Life by .