August 2015

Deleting files from /usr/, breaking your system, then recovering

Yes, this was not fun. I took some notes, but not everything. Please read the notes if you plan on doing these foolish things. I was cleaning up /usr/src on a host which does not hold src. I looked and found: It was there that I knew I’d done the wrong thing. Trying snapshots Let’s look for snapshots, find one from a few minutes ago, and rollback to that. $ zfs list -t […]

Deleting files from /usr/, breaking your system, then recovering Read More »

Swapping disks in a zpool

I’m using FreeBSD 10.2-RC2 here, with a bunch of HDD. Here are the current pools: The degraded music pool contains a drive I will be replacing later in this post. But first, I want to replace a mis-matched drive in the benchmarking pool. I noticed that when I saw this output: The serial number on line 19 is of a different format. I suspected I was using different size drives because I knew

Swapping disks in a zpool Read More »

Smart quotes are not so smart: net-snmp-config –create-snmpv3-user for LibreNMS

NOTE: If you are looking to configure net-mgmt/net-snmp for the first time, the latest article is Configuration of net-mgmt/net-snmp on FreeBSD. I wasted a few hours today trying to figure out why special characters in passwords were causing problems. I was chasing the wrong problem. Conclusion: smart quotes are dumb. Full disclosure: I should have seen the problem. The problem is not with LibreNMS. Here is my procedure for creating an snmp read-only

Smart quotes are not so smart: net-snmp-config –create-snmpv3-user for LibreNMS Read More »

CAM status: ATA Status Error READ_DMA48 Error 5, Retries exhausted

This turned up this morning: Aug 5 05:10:04 knew kernel: (ada0:ata0:0:0:0): READ_DMA48. ACB: 25 00 d0 c4 6e 40 57 00 00 00 60 00 Aug 5 05:10:04 knew kernel: (ada0:ata0:0:0:0): CAM status: ATA Status Error Aug 5 05:10:04 knew kernel: (ada0:ata0:0:0:0): ATA status: 51 (DRDY SERV ERR), error: 40 (UNC ) Aug 5 05:10:04 knew kernel: (ada0:ata0:0:0:0): RES: 51 40 f0 c4 6e 57 57 00 00 40 00 Aug 5 05:10:04

CAM status: ATA Status Error READ_DMA48 Error 5, Retries exhausted Read More »

Replacing a failed drive in ZFS on FreeBSD

I’m using FreeBSD 10.2-RC2. One of my new hard 3TB drives was acting up. I removed it and sent it off to be replaced. In the meantime, I received some 5TB drives and I added one of them into the existing vdev of the zpool. First, I partitioned the drive much like the other drives in the system. In my case, this was: $ sudo gpart create -s gpt da0 da0 created $

Replacing a failed drive in ZFS on FreeBSD Read More »

smartctl -t long /dev/allthedrives

I took delivery of another 10 x Toshiba PH3500U-1I72 5TB drives yesterday. They are installed into the latest server (varm). This sever also contains 10x Toshiba DT01ACA300 3TB drives. Last night I wrote a wee script to start long tests on each of them. I was able to extract a list of the hard drives through this command: I suspect I could have done similar with ls /dev/da*. With the above list, I

smartctl -t long /dev/allthedrives Read More »

Scroll to Top