Tag Archive for 'software'

software raid1 and lvm on debian etch

Background

I have a fileserver box, which currently has 2×200GB disks in lvm to give me a 400GB virtual disk. This arrangement gets good use of space, but if one disk has a failure, then the whole filesystem is trashed and cannot be recovered.

The solution is to start using raid. Before I go on, raid is not a backup solution. It cannot protect you from accidentally deleting all your files, and will not protect you from a virus or malicious user or hacker. Raid just reduces the damage if a disk happens to fail (which knowing my luck, is sometime soon).

The final solution I want is 2×500GB disks in raid1 (mirrored) with lvm on top to split into my partitions. This way I could add another pair of disks in raid, add them to the lvm and not have to worry about which partitions get new space, as lvm will allow me to expand any parition onto the new space, and have a partition across multiple disks.

Why not raid5? Raid 5 is great for getting space, as you have n+1 disks, and get the space of n disks out of it as one is the redundant disk. The problem with raid5 is it is limited to the smallest disk in the raid. So 2 500GB disks and one 200GB disk will only give 400GB as each disk can only be used up to 200GB. Raid5 is great if all your disks are the same size, but if I want to add disks, and not have to replace all 3+ disks, then with raid1 I just have to buy disks in pairs. My pc has 4 ide slots and 2 sata slots, so raid1 should be fine (disks are getting quite bit these days).

So the plan is to add 2 500GB disks. put them in raid1 with a partition for /boot (which cant be in lvm) and the rest becomes part of a lvm group, with my / and /home partitions in there (and /tmp, swap)

How I did it

Continue reading ’software raid1 and lvm on debian etch’

Installing/Updating WordPress with Subversion

So, as there is a new version of Wordpress (2.5.1) which has some serious security fixes, I thought I would move my blog to running from svn. This doesnt mean I am running bleeding edge code, it just means updating the Wordpress code is as simple as svn sw new_version_url. Which is a lot simpler than downloading and unpacking tars over the top.

Installing/Updating WordPress with Subversion « WordPress Codex

Theres also a configuration option for the new wordpress that improves the cryptography

Open Source software and Software Patents working together

Linux.com :: Software patents underlie a novel open source business model (video)

“Software patents are evil.” Ask almost any free or open source software advocate, and they’ll tell you that software patents kill creativity and keep computer science from advancing as rapidly as it would if everyone shared their basic work with everyone else, unencumbered by patents or other restrictions. But computer science professor Fred Popowich of Simon Fraser University says this is not necessarily true. So does attorney Larry Rosen, who spent many years as legal counsel for the Open Source Initiative starting (literally) before it had a name.

They have basically started a company that produces OpenSource software, and patents parts of it. They say their motto is “Free for Open Source, everyone else pays”. Not a particularly new idea, but I think it is the first time it is actually being attempted commercially