How to check LVM usage history

If your lvm storage has some problem, you can dump it with the following command. $ dd if= of=lvm_head.out bs=100M count=1 $ strings lvm_head.out > dump.txt And make the following awk script (lvm_history.awk) to check the history. BEGIN { new = 1 pecount = 0 } { if ($1 == “pe_count”) pecount = $3 ifContinue reading “How to check LVM usage history”

LVM filter generation

To limit unnecessary I/O, you might need to make a filter in /etc/lvm/lvm.conf and sometimes, it’s hard to find a proper filter configuration. Here is a simple way you can get a good filter. $ pvs -a –config ‘devices { filter = [ “a|.*|” ] }’ –noheadings -opv_name,fmt,vg_name | awk ‘BEGIN { f = “”;Continue reading “LVM filter generation”

Set up test environment with two virtual machines.

To test some problems usually I have to have two machines which is not easy to have. Especially if I have to configure it for each version, RHEL4, RHEL5, Fedora, etc. Virtualzation comes here to solve those kinds of difficulty. But, just installing new operating system each time is also not a perfect solution. YouContinue reading “Set up test environment with two virtual machines.”