To find yourself, think for yourself.

Snapshot hell: Recover a locked vmdk

Posted by Martijn On May - 14 - 2009ADD COMMENTS

I’ve had my share of battles with corrupt vmdk files, after the process of removing a snapshot crashed. Finally, I found a way to recover them through a VCB utility. Here’s the log that usually presents itself:

May 12 01:43:13.593: vmx| DISKLIB-DSCPTR: Failed to open extents for descriptor file in normal mode
May 12 01:43:13.593: vmx| DISKLIB-LINK : “/vmfs/volumes/49dc603e-af139aaa-7131-002219b6f201/VM1/VM1.vmdk” : failed to open (Device or resource... more

PHP4 IPv6 validation

Posted by Martijn On May - 4 - 2009ADD COMMENTS

Incase you don’t have the luxury of PHP5’s filter_ functions, this is a handy regexp:

function validate_ipv6($ip)
{
$hex = ‘[A-Fa-f0-9]‘;
$h16 = “{$hex}{1,4}”;
$dec_octet = ‘(?:25[0-5]|2[0-4]d|1dd|[1-9]d|[0-9])’;
$ipv4 = “$dec_octet\.$dec_octet\.$dec_octet\.$dec_octet”;
$ls32 = “(?:$h16:$h16|$ipv4)”;
$ipv6 = “(?:(?:{$IPv4address})|(?:”.more

Using this site.

Posted by Martijn On May - 3 - 2009Comments Off

Yes, you read right. Instead of using this domain just for email and my servers, I am going to use this site. Probaly just going to be handy articles (for myself), backend scripts, pictures and some time-wasting games.

I have too many separate systems (dns, backups, monitoring, etc), of which I was sick of a week ago. It’s a wonderful mesh of it all.

 Read More →

If your replay window size has not been set to a number that is high enough for the number of packets received, you will receive a system message such as the following:

*Nov 17 19:27:32.279: %CRYPTO-4-PKT_REPLAY_ERR: decrypt: replay check failed connection id=xxx

To prevent this error, you can do following:

rtr(config)# crypto ipsec security-association replay window-size 1024

 Read More →

rtsol under Leopard

Posted by Martijn On October - 26 - 2008ADD COMMENTS

Leopard’s rtsol clients seems broken. Thanks to Wiedi, I managed to create this patch:

more

 Read More →

WP Cumulus Flash tag cloud by Roy Tanck requires Flash Player 9 or better.