April 30, 2012, 6:32 am
When you see this in your PostgreSQL log:
ERROR: invalid page header in block 13760 of relation base/16995/67484
or that, when doing your database dump:
pg_dump: SQL command failed
pg_dump: Error message from server: ERROR: invalid page header in block 11947 of relation base/16995/17062
pg_dump: The command was: COPY public.samaged_table (column1, column2, column3, ...) TO stdout;
it is likely your PostgreSQL server has hardware issues or has crashed (or, the VM host, as in my case). If it’s the case, pg_dump / pg_dumpall will error and exit when seeing a corrupted block.
Unfortunately, it mean’s you’ll loose some data, so depending on what you have in your database, you may resort to some other methods.
Here is a quick way to fix it:
Continue reading ‘ERROR: invalid page header in block 13760 of relation base/16995/67484’ »
March 22, 2012, 1:51 pm
Ever wondered how to set up multiple shared IPs in WHM? Here is how.
Continue reading ‘Multiple shared IPs in WHM’ »
March 15, 2012, 7:53 pm
If you’ve migrated to a newer kernel and a newer hpsa module is used instead of cciss, you may wonder why you’re no longer able to use hpacucli tool to see the status of your RAID device:
# hpacucli ctrl all show
Error: No controllers detected.
Here is how to solve it.
Continue reading ‘hpacucli: Error: No controllers detected (with hpsa module in use)’ »
December 6, 2011, 3:01 pm
Installing Debian Squeeze on DELL PowerEdge R710 via DRAC can be quite an adventure – the main problem is that the Debian installer does not include firmware for Broadcom network cards.
Continue reading ‘Installing Debian Squeeze on DELL PowerEdge R710 via DRAC’ »
July 7, 2011, 3:59 pm
Some hosting companies, notably OVH, have their networking set in a way that it constantly “pollutes” dmesg with the following messages:
IPv6 addrconf: prefix with wrong length 56
IPv6 addrconf: prefix with wrong length 56
IPv6 addrconf: prefix with wrong length 56
Here is what you can do to get rid of it.
Continue reading ‘Getting rid of “IPv6 addrconf: prefix with wrong length 56″’ »
June 12, 2011, 5:08 pm
Getting a laptop without Windows is really problematic. How about getting a refund for a Windows system you’re not going to use? I tried asking Acer, and it’s no easy task (it’s technically possible, but will cost you more than a refund you get).
Continue reading ‘Acer accepting Windows tax refund’ »
November 23, 2010, 4:45 pm
Sometimes, applications on your server crash in mysterious ways, or your server hangs without any apparent reason. You suspect that the RAM may be broken, so memtest86+would be ideal tool to check RAM – however, there are some problems involved with it:
- running memtest86+ means server downtime,
- it may not be possible to run memtest86+ on a remote server without KVM-IP, iLO or similar access.
What to do in such situations? User-space memtester to the rescue!
Continue reading ‘Testing RAM on a server without rebooting to run memtest86+’ »
October 10, 2010, 11:36 pm
If you want to implement a simple server-side SSH session logging, follow these simple steps.
Continue reading ‘SSH session logging / recording’ »
October 10, 2010, 2:08 pm
The mod_sftp module implements the SSH2, SFTP and SCP protocols, allowing SCP and SFTP clients to be used with ProFTPD. By default, Debian Lenny does not provide mod_sftp support, but you can build a proper package using a development version available in Debian repositories – here is how.
Continue reading ‘Building ProFTPD with SFTP support on Debian Lenny’ »
October 4, 2010, 10:59 am
To date (as of qemu 0.12.5), it was not possible to resize qcow2 images. The only workaround was to convert the image to some other format, resize it, and convert it back to qcow2. Which could be quite lengthy and meant plenty of IO. Moreover, it was even more tricky if the image was already more than 50% of your storage space and you still wanted to increase its size.
It changed with qemu 0.13.0 (still release candidate as of writing this blog post), where resize option was added to qemu-img.
Continue reading ‘Resizing qcow2 images’ »