Destroying single disk ZFS zpool

This is a note for Future John. I followed the instructions from ChatGPT. They looked reasonable enough. Now I have a spare 2TB SATA drive that has no purpose in life. I am always sad when things have no purpose in life. Who knows. Maybe one day…

-------------------
Tue Jul 01 03:33:54 [bash:5.2.15 jobs:0 error:0 time:0]
root@charisma:/home/jj5
# zpool status sata
  pool: sata
 state: ONLINE
config:

        NAME                               STATE     READ WRITE CKSUM
        sata                               ONLINE       0     0     0
          ata-ST2000DM008-2UB102_ZFL7BGR8  ONLINE       0     0     0

errors: No known data errors
-------------------
Tue Jul 01 03:34:00 [bash:5.2.15 jobs:0 error:0 time:6]
root@charisma:/home/jj5
# zpool destroy sata
-------------------
Tue Jul 01 03:34:08 [bash:5.2.15 jobs:0 error:0 time:14]
root@charisma:/home/jj5
# cat /proc/partitions 
major minor  #blocks  name
...snip...
   8       48 1953514584 sdd
   8       49 1953505280 sdd1
...snip...
-------------------
Tue Jul 01 03:34:23 [bash:5.2.15 jobs:0 error:0 time:29]
root@charisma:/home/jj5
# wipefs -a /dev/sdd
/dev/sdd: 8 bytes were erased at offset 0x00000200 (gpt): 45 46 49 20 50 41 52 54
/dev/sdd: 8 bytes were erased at offset 0x1d1c1115e00 (gpt): 45 46 49 20 50 41 52 54
/dev/sdd: 2 bytes were erased at offset 0x000001fe (PMBR): 55 aa
/dev/sdd: calling ioctl to re-read partition table: Success
-------------------
Tue Jul 01 03:34:58 [bash:5.2.15 jobs:0 error:0 time:64]
root@charisma:/home/jj5
# sgdisk --zap-all /dev/sdd
Creating new GPT entries in memory.
GPT data structures destroyed! You may now partition the disk using fdisk or
other utilities.
-------------------
Tue Jul 01 03:35:28 [bash:5.2.15 jobs:0 error:0 time:94]
root@charisma:/home/jj5
# parted /dev/sdd --script mklabel gpt
-------------------
Tue Jul 01 03:35:50 [bash:5.2.15 jobs:0 error:0 time:116]
root@charisma:/home/jj5
# wipefs /dev/sdd
DEVICE OFFSET        TYPE UUID LABEL
sdd    0x200         gpt       
sdd    0x1d1c1115e00 gpt       
sdd    0x1fe         PMBR      
-------------------
Tue Jul 01 03:36:02 [bash:5.2.15 jobs:0 error:0 time:128]
root@charisma:/home/jj5
# lsblk /dev/sdd
NAME MAJ:MIN RM  SIZE RO TYPE MOUNTPOINTS
sdd    8:48   0  1.8T  0 disk 
-------------------

ORBTrace mini and instrumenting embedded applications

Today I learned about the ORBTrace mini. Gotta get me a few of those! There’s a video explaining the related software, Orbuculum, over here (but it requires you signup for a free account and validate your email address to watch).

New Zealand’s $16 Billion Public Health System Runs on a Single Excel Sheet

This is a note for Future John: New Zealand’s $16 Billion Public Health System Runs on a Single Excel Sheet.

From the report:

Notably, one major issue was through a significant reliance on the use of an Excel file to manage the consolidated financials of the organisation. This spreadsheet was the primary data file used by HNZ to manage its financial performance. It consolidated files from each district into a single spreadsheet, and key reports, such as the monthly finance report, were produced from it. The use of an Excel spreadsheet file to track and report financial performance for a $28bn expenditure organisation raises significant concerns, particularly when other more appropriate systems are present on the IT landscape.

This Excel file is flawed in that:

  • Financial information was often ‘hard-coded,’ making it difficult to trace to the source or have updated data flow through.
  • Errors such as incorrectly releasing accruals or double-up releases were not picked up until following periods.
  • Changes to prior periods and FTE errors in district financial reporting Excel submissions, would not flow through to consolidated file.
  • The spreadsheet can be easy to manipulate information as there is limited tracking to source information where information is not flowing directly from accounting systems.
  • It is highly prone to human error, such as accidental typing of a number or omission of a zero.

The cumbersome process of collecting data also meant monthly financial reporting usually took 12-15 days to consolidate and 5 days to analyse. Adding to that the time associated with the creation of the monthly finance reports and circulation of these to the Board, there was an inevitable challenge of obtaining real-time financial information from one source of truth.

Demo #8: Unboxing and Product Review of Rown Fusny R03U Wireless Mono Headset | In The Lab

This post is part of my video blog and you can find more information about this video over here.

You can support this channel on Patreon: patreon.com/JohnElliotV

In this video we unbox and demo the R03U Wireless Mono Headset sent to me for review by Rown Fusny. This headset supports wireless connectivity for both USB and Bluetooth. I really enjoyed using this product and their customer support was first class.

It’s a mono device which means it only has a speaker for one ear, which is really good for your situational awareness because you can hear what’s going on in your environment through your other ear. Both the headphone and the microphone worked properly in both USB and Bluetooth mode.

I wasn’t able to get the USB mode to work on my Windows 10 machine, but I don’t know if that was related to the USB hardware on that computer or if it had to do with Windows 10 support for the device. I was able to get USB mode working on a Windows 11 Pro computer and one of my Debian 12 (bookworm) computers. I tested the Bluetooth mode on both iPhone 6s and iPhone 8.

One thing that I needed explained to me was that after you pair your Bluetooth device you may need to double click the power button on the headset in order to toggle from USB mode over to Bluetooth mode in order to activate the device. That’s why I had to contact customer support, because I was confused by this.

The device gives you status updates via audio. So if you toggle to USB mode it says “USB mode” and if you toggle to Bluetooth mode it says “Bluetooth mode”. If you disconnect the USB dongle or unpair the Bluetooth connection it says “disconnected”.

There is a microphone mute button on the headset and there are volume control buttons too. I tested the volume control buttons via Bluetooth but forgot to test via USB… hmm. Gimme a tick. Yep, the volume controls work on USB too!

Overall I was very pleased with this device and I would happily recommend this product!

In preparing this video I made some notes about my headphones which are still available on my wiki.

Thanks very much for watching! And please remember to hit like and subscribe! :)


Following is a product I use picked at random from my collection which may appear in my videos. Clicking through on this to find and click on the green affiliate links before purchasing from eBay or AliExpress is a great way to support the channel at no cost to you. Thanks!

Yum Cha 16MP USB CameraThis is an image of the product.

Let’s go shopping!

Voyager bug fix

This is too cool. A core dump then binary patch to work around memory hardware failure 15 BILLION MILES AWAY: How NASA Fixed a Software Bug 15 BILLION MILES AWAY | Voyager 1

Arduino Keyboard library not working on Debian KDE

Man, I just spent quite a bit of time diagnosing this particular issue.

The problem was that my Symbol Keyboard stopped working. This is a USB keyboard I made from an Arduino Leonardo. The touch screen was working okay, but the keypresses weren’t being delivered over USB.

Long story short, the 7-port USB 3.0 hub attached to my workstation needed rebooting! I disconnected the power supply and disconnected the upstream USB cable to remove both sources of power, then when I reconnected everything my stuff started working again, including my symbol keyboard.

Lesson learned: if you’re debugging a USB device failure try plugging the device directly into the host to avoid any potential issues caused by your hub(s).

It was lucky I had a spare 104-key USB keyboard in the cupboard because I needed one while diagnosing this issue (the Windows box I was using only has a tenkeyless 87-key keyboard plugged into it but the Windows alt-key codes require use of the number pad).

The latest incarnation of my symbol keyboard looks like this:

John's symbol keyboard