Changing the user profile path in Windows 7

Posted on Thu 12 July 2012 in Sysadmin • Tagged with profile, windows7

Nothing programmatic about this post, unfortunately. Instead, a bit of rambling about Windows. :-) One of the reasons I don’t use Linux on my desktop computer is that it requires too much constant tweaking, configuring and fixing to get things to work together properly. I tried it twice, and I …

Continue reading

LVM recipe: determine which physical volume(s) a logical volume is located on

Posted on Thu 19 January 2012 in Sysadmin • Tagged with lvm, recipe

Run the lvs command as follows:

# lvs --segments -o +pe_ranges

The output should be something similar to this:

LV      VG   Attr   #Str Type   SSize   PE Ranges
data    data -wi-ao    1 linear   1.82t /dev/md4:0-476930
data    data -wi-ao    1 linear   1.36t /dev/md2:0-357701
homes   data -wi-a-    1 …

Continue reading

Adventures in updating hard drive firmware

Posted on Fri 06 January 2012 in Sysadmin • Tagged with boot, firmware, iso, linux

I decided to update the firmware of two of my hard drives. The drives in question are both Seagate Barracuda 7200.11, model ST3500320AS, and smartctl gave me the following warning:

==> WARNING: There are known problems with these drives,
see the following Seagate web pages: …

Continue reading

Certificate error when upgrading to Oneric

Posted on Fri 30 December 2011 in Sysadmin • Tagged with oneric, ubuntu

Just updated one of my Ubuntu servers to Oneric, and I noticed some error messages during the installation:

error adding /etc/ssl/certs/
error adding /etc/ssl/certs/
error adding /etc/ssl/certs/ca.pem

I found a solution in this forum post …

Continue reading

Getting network interfaces in Python

Posted on Fri 30 December 2011 in Sysadmin • Tagged with linux, network interfaces, Python

Here’s a small Python script/module I put together to list all network interfaces on the current server (tested on Linux only!) in a format that easily lets me convert between name, index and address of an interface.

The code is based on from pydlnadms, but I …

Continue reading

How to get the serial number of a badly failed disk

Posted on Thu 08 December 2011 in Sysadmin • Tagged with bash, smartctl

One of my server disks has failed - so badly that smartctl cannot even read basic disk information from it! But to replace the disk I need its serial number, because I have been clever enough to print the serial number of each disk onto its bay door. Ironic, huh?

So …

Continue reading

A convoluted way to list controllers per block device in Linux

Posted on Thu 08 December 2011 in Sysadmin • Tagged with bash, controller, device

One of my SATA drives has failed and needs to be replaced. I have tried to find out if I can hot swap it instead of having to turn off the computer (which isn’t a big deal, but it’s nice if I don’t have to), and the …

Continue reading

When security gets in your face

Posted on Sun 02 October 2011 in Sysadmin

When I started writing that post, I kept getting HTTP 406 Not Acceptable errors from the web server as I tried to preview it or save a draft. I managed to narrow down the cause of the problem to two seemingly innocent words: test and method. Whenever my post contained …

Continue reading