Posts

Deciding on a photo hosting service

I am getting way too lazy for my own good. After my latest trip I now want to share my photos with friends and family, and I am trying to decide how to easily to this. And since I couldn't really decide on what I need, I decide to list (mostly for myself) what I am looking for in a photo sharing service. ability to upload original images, so people can download and print photos at decent quality (12M resolution to be allowed) decent space available - my average photo size is 5MB organize photos in albums, many albums privacy - I certainly do not want to make all my photos visible to the whole world ability to share with non-account holders - I want to be able to send an email with a link to the album and not impose on my relatives to have to sign up for yet another service they may or may not need I will be trying out the two big players - Picasa and Flickr in the coming days and update this post with my findings.

Lame web interface on Motorola SBG900

Image
I've been struggling with a wireless SBG900 for a couple of hours now. The interface looks fine (as far as wireless router interfaces go) and I had the simple setting up WPA security on this router. The higher security setting was supposed to replace the current no password + MAC restriction setup. The bottom line is that after removing the registered MAC addresses the router simply refused connections from all clients. And the best part is that nowhere in the interface I could find a clicky button to enable it. [caption id="attachment_145" align="aligncenter" width="595" caption="There is no place to disable the MAC filter"] [/caption] Tamper Data to the rescue. Click "Apply" and just change the value of the Wireless.EnableAllowAccess.enableAllowAccess parameter to 0. Works fine now.

Consistent software RAID disk errors on nVidia MCP51

My brand new pair of disks in a setup that would otherwise work perfectly fine, decided to keep giving me headache. There are only two disks in the machine, partitioned in three, with the first two pairs of partitions in a RAID1 array. And every now and then one of the disks would disappear from the system, then re-appear with a different drive letter (e.g. sda would become sdc). Obviously the disk would get kicked out of the RAID, but I can then add it back and wait for the 1.5TB partition to sync back the RAID. The errors look like this: Oct 29 03:44:59 lion kernel: ata1.00: n_sectors mismatch 3907029168 != 268435455 Oct 29 03:44:59 lion kernel: ata1.00: revalidation failed (errno=-19) Oct 29 03:44:59 lion kernel: ata1.00: limiting speed to UDMA/133:PIO2 Oct 29 03:44:59 lion kernel: ata1: hard resetting link Oct 29 03:44:59 lion kernel: ata1: nv: skipping hardreset on occupied port Oct 29 03:45:00 lion kernel: ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300) Oct 29 03:45:00 lio...

Recovering from a failed LVM2 pvmove

After I left a loop moving the data from my LVM2 LVs to a new raid1 array overnight (I wanted to also reorder the LVs physically at the beginning of the disk) I came back in the morning to see that one of the moves had hung. I killed it, and the loop kept going. Unfortunately something had already gone wrong and I had to issue pvmove --abort to get things in order. And that almost worked, except I started getting these: > sudo lvs --all Number of segments in active LV pvmove0 does not match metadata Number of segments in active LV pvmove0 does not match metadata LV VG Attr LSize Origin Snap% Move Log Copy% Convert  download lionvg -wi-ao 200.00g home lionvg -wi-ao 100.00g kvmpool lionvg -wi-ao 50.00g opt lionvg -wi-ao 15.00g [pvmove0] lionvg p-C-a- 0 repos lionvg -wi-ao 2.00g root lionvg -wi-ao 4.00g  usr lionvg -wi-ao 20.00g var lionvg -wi-ao 20.00g I was furthermore unable to destroy or make inac...

SSL renegotiation in Firefox 4

My bank uses client SSL certificates + a single-password token for authentication. Unfortunately, the latest Firefox gives me this error: Secure Connection Failed An error occurred during a connection to secure.example.com. Renegotiation is not allowed on this SSL socket. (Error code: ssl_error_renegotiation_not_allowed) The page you are trying to view can not be shown because the authenticity of the received data could not be verified. Please contact the web site owners to inform them of this problem. Alternatively, use the command found in the help menu to report this broken site. A workaround, which I do not recommend, as pointed out here , is to set security.ssl.allow_unrestricted_renego_everywhere__temporarily_available_pref from about:config to true. A more correct solution would be to read up on the decision to disable the feature, and then just add your server to the security.ssl.renego_unrestricted_hosts configuration value instead.

LVM metadata corruption

I had the biggest PC related scare a couple of days ago. After I had two disks in my RAID5 fail in a very short amount of time and only pure luck saved my data I moved to RAID6 and I felt safer. That was, until two days ago I ran: # pvs -v pvs Scanning for physical volume names pvs Incorrect metadata area header checksum pvs Incorrect metadata area header checksum pvs WARNING: Volume Group vg0 is not consistent pvs Incorrect metadata area header checksum pvs Incorrect metadata area header checksum pvs PV VG Fmt Attr PSize PFree DevSize PV UUID pvs /dev/md2 vg0 lvm2 a- 1.80T 922.19G 1.80T Y9naEo-OKG6-0ZyX-qmZX-u3JP-uCPg-cE1hVX Ooops. Not looking good. # vgs -v vgs Finding all volume groups vgs Incorrect metadata area header checksum vgs Finding volume group "vg0" vgs Incorrect metadata area header checksum vgs Incorrect metadata area header checksum vgs VG Attr Ext #PV #LV #SN VSize VFree VG UUID vgs vg0 wz--n- 4.00M 1 15 ...

Updating u-boot on SheevaPlug

Tools required openocd tftp-hpa cross compiler Cross-compiler: cd customrepo mkdir cross-armv5tel-softfloat-linux-gnueabi ln -s ../gentoo/sys-devel/{gcc,binutils} cross-armv5tel-softfloat-linux-gnueabi sudo cave resolve cross-armv5tel-softfloat-linux-gnueabi/gcc Updating u-boot: There are several repositories, but the official one is this one: http://git.denx.de/u-boot.git . The maintainer of the official one actually recommends using the repos for each architecture, in the case of the SheevaPlug that would the Marvell repo: git://git.denx.de/u-boot-marvell.git . git init git remote add marvell git://git.denx.de/u-boot-marvell.git git fetch marvell git checkout -b testing marvell/testing cat <<EOF >GNUmakefile CROSS_COMPILE ?= armv5tel-softfloat-linux-gnueabi- include Makefile EOF make sheevaplug_config make u-boot.kwb Now you can try the new u-boot on your plug: openocd -f /usr/share/openocd/scripts/board/sheevaplug.cfg In another terminal (or screen) telnet localhost 4444 ...