About Jay Jay

Hi there. My name is John Elliot V. My friends call me Jay Jay. I talk about technology on my blog at blog.jj5.net and make videos about electronics on my YouTube channel @InTheLabWithJayJay.

Data corruption

Oh, yuck. ZFS-8000-8A. :(

-------------------
Mon May 29 16:23:47 [bash:5.2.15 jobs:0 error:0 time:35]
root@charm:/home/jj5
# zpool status -v
  pool: fast
 state: ONLINE
status: One or more devices has experienced an error resulting in data
        corruption.  Applications may be affected.
action: Restore the file in question if possible.  Otherwise restore the
        entire pool from backup.
   see: https://openzfs.github.io/openzfs-docs/msg/ZFS-8000-8A
config:

        NAME                                              STATE     READ WRITE CKSUM
        fast                                              ONLINE       0     0     0
          mirror-0                                        ONLINE       0     0     0
            nvme-Samsung_SSD_990_PRO_2TB_S6Z2NJ0W215171W  ONLINE       0     0     2
            nvme-Samsung_SSD_990_PRO_2TB_S6Z2NJ0W215164J  ONLINE       0     0     2

errors: Permanent errors have been detected in the following files:

        /fast/vbox/218-jj-wrk-8-charm-prod-vbox/218-jj-wrk-8-charm-prod-vbox.vdi
-------------------

Target then source

I’m surprised it took me this long to figure this out. But there’s a very big problem with a command like this:

rsync var/data/ target:/var/data/

The problem is that in order to type that command, you first have to type the first part of the command, which includes this command:

rsync var/data/ target:/

That first part of the command is in fact a valid command, and if you pressed ENTER accidentally before you had finished typing the whole command, then rsync would begin to replace your entire root file system with the contents of var. That’s the sort of thing that will ruin your day.

So from now on, when I write command-line tools, I will nominate the target *before* the source, and if both the target and source are not specified then I will return an error.

p.s. Yes, the reverse problem exists, that when you nominate the target first you can still fuck up with the source, but given that you are operating on the target from the source, if you get the source wrong, you can just fix your command and run it again and it will be fixed up.

Watching temperature on ‘charm’

Note to self: run these commands to watch NVMe, GPU, and CPU temperatures on ‘charm‘:

watch sudo sensors
watch sudo nvme smart-log /dev/nvme0
watch sudo nvme smart-log /dev/nvme1
watch sudo nvme smart-log /dev/nvme2
watch sudo nvme smart-log /dev/nvme3

These sensors were enabled with:

sudo apt install nvme-cli
sudo apt install lm-sensors
sudo sensors-detect

In conversation with ChatGPT

Model: Default (GPT-3.5)

User:

Whatever happened to the girl who played the cello for Nirvana Unplugged?

ChatGPT:

The girl who played the cello during Nirvana’s MTV Unplugged performance in 1993 was Lori Goldston. Lori Goldston is a talented cellist who has had a successful career as a musician and composer. After her appearance with Nirvana, she continued to collaborate with various artists and bands, both as a performer and a recording artist.

Following the Nirvana Unplugged performance, Lori Goldston went on to work with musicians such as David Byrne, Cat Power, and Earth. She has also released solo albums and composed music for films and dance performances. In addition to her work as a cellist, Goldston is known for her improvisational and experimental approach to music.

Lori Goldston’s contribution to the Nirvana Unplugged performance, particularly her cello arrangement for the song “Something in the Way,” received critical acclaim and is still celebrated by fans of the band. Her performance added a unique and haunting element to the already iconic concert.

As of my knowledge cutoff in September 2021, Lori Goldston was actively involved in the music industry, and she continues to perform, compose, and collaborate with various artists. However, for the most up-to-date information on her current activities, it’s recommended to check reliable sources or her official website.