ZFS

smartd: Device: /dev/ada0, 8 Currently unreadable (pending) sectors persists

That smartd: Device: /dev/ada0, 8 Currently unreadable (pending) sectors problem which arose on Sunday is still around. I’ve run a short test, a long test, and a ZFS scrub is now underway. I may just replace the drive. $ sudo smartctl -P show /dev/ada0 smartctl 6.4 2015-06-04 r4109 [FreeBSD 10.2-RELEASE-p9 amd64] (local build) Copyright (C) 2002-15, Bruce Allen, Christian Franke, www.smartmontools.org Drive found in smartmontools Database. Drive identity strings: MODEL: TOSHIBA DT01ACA300 FIRMWARE: […]

smartd: Device: /dev/ada0, 8 Currently unreadable (pending) sectors persists Read More »

Using a Dell TL4000 with Bacula’s bacula-sd on FreeBSD with ZFS

Last night, I managed to install new (but used) SAS cables for my Dell TL4000 on the tape01 server. I managed to get bacula-sd running, but I was unable to communicate with it from bacula-dir, via bconsole on my laptop. Eventually, I ran bacula-sd from the command line in the foreground and with debugging and saw things which needed to be corrected. In this post, I will adjust permissions on devices get bacula-dir

Using a Dell TL4000 with Bacula’s bacula-sd on FreeBSD with ZFS Read More »

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 »

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 »

smartd: Device: 8 Currently unreadable (pending) sectors

I noticed these messages this morning, on the new server: $ grep smartd /var/log/messages Jul 25 11:35:29 varm smartd[813]: Device: /dev/da15 [SAT], 8 Currently unreadable (pending) sectors Jul 25 11:35:29 varm smartd[813]: Device: /dev/da15 [SAT], 10 Offline uncorrectable sectors Jul 25 12:05:28 varm smartd[813]: Device: /dev/da15 [SAT], 8 Currently unreadable (pending) sectors Jul 25 12:35:29 varm smartd[813]: Device: /dev/da15 [SAT], 8 Currently unreadable (pending) sectors Jul 25 13:05:29 varm smartd[813]: Device: /dev/da15 [SAT],

smartd: Device: 8 Currently unreadable (pending) sectors Read More »

Excluding the base-OS when backing up FreeBSD jails with Bacula

I felt I was backing up way too much on my jail server. I was backing up files which would be installed as part of the OS. Let’s look at the esimate: *estimate level=full job=”slocum jail snapshots” Using Catalog “MyCatalog” Connecting to Client slocum-fd at slocum.int.unixathome.org:9102 2000 OK estimate files=2,824,716 bytes=239,568,332,325 * I decided to add these to the FileSet: Options { Exclude = yes WildDir = “/usr/jails/*/.zfs/snapshot/basejail” WildDir = “/usr/jails/*/.zfs/snapshot/bin” WildDir =

Excluding the base-OS when backing up FreeBSD jails with Bacula Read More »

Upgrading from FreeBSD 9.3 to FreeBSD 10.1 using beadm and freebsd-update

In this post, I will use boot environments to upgrade an existing FreeBSD 9.3 to FreeBSD 10.1, and I will do this from within a chroot. Why? Because I can. You might want to read about my previous attempt and one or two, actually three, things I did to get ready for this. In the following commands, I clone the existing running environment to 10.1-RELEASE, then I mount it to /mnt, chroot into

Upgrading from FreeBSD 9.3 to FreeBSD 10.1 using beadm and freebsd-update Read More »

system/bootenv/default/var does not contain /var

Much like the system/bootenv/default/usr does not contain /usr issue I recently wrote about, I found the same issue with system/bootenv/default/var For this post, I have booted my FreeBSD 9.3 system from mfsBSD thumb drive. I will import the pool, but not mount it. # zpool import -N system I mounted the filesystem in question, and confirm that there is just one ZFS thing mounted: # mount -t zfs system/bootenv/default/var /mnt # mount -t

system/bootenv/default/var does not contain /var Read More »

Fixing the system/bootenv/default/usr to be mounted

My goal is to make an easy way to upgrade with beadm by using the idea found in this post. I had a problem with my first attempt which I solved with the details in this post. boot mfsBSD This tool has very quickly become one of my favorites. I like how easy it is to pop in a USB drive and boot a live version of FreeBSD to do stuff. The import

Fixing the system/bootenv/default/usr to be mounted Read More »

Scroll to Top