[Bug 257240] glabel(8): glabel status can be difficult to kill when presented with a failing drive

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 18 Jul 2021 06:21:26 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257240

--- Comment #2 from Graham Perrin <grahamperrin@gmail.com> ---
… eventually I realised that glabel had disappeared from the htop view of
things ☑

I guess that it ended at 06:44 BST – maybe around thirty-five minutes after I
first attempted to terminate/kill the process. 

I chose to remove the offending device. 

----

% date 
Sun 18 Jul 2021 06:55:24 BST
% tail -f -n 18 /var/log/messages
Jul 18 06:43:44 mowa219-gjp4-8570p kernel: (da3:umass-sim3:3:0:0): READ(10).
CDB: 28 00 00 00 00 00 00 00 01 00 
Jul 18 06:43:44 mowa219-gjp4-8570p kernel: (da3:umass-sim3:3:0:0): CAM status:
CCB request completed with an error
Jul 18 06:43:44 mowa219-gjp4-8570p kernel: (da3:umass-sim3:3:0:0): Error 5,
Retries exhausted
Jul 18 06:43:54 mowa219-gjp4-8570p kernel: (da3:umass-sim3:3:0:0): READ(10).
CDB: 28 00 00 3b b7 ff 00 00 01 00 
Jul 18 06:43:54 mowa219-gjp4-8570p kernel: (da3:umass-sim3:3:0:0): CAM status:
CCB request completed with an error
Jul 18 06:43:54 mowa219-gjp4-8570p kernel: (da3:umass-sim3:3:0:0): Retrying
command, 3 more tries remain
Jul 18 06:44:05 mowa219-gjp4-8570p kernel: (da3:umass-sim3:3:0:0): READ(10).
CDB: 28 00 00 3b b7 ff 00 00 01 00 
Jul 18 06:44:05 mowa219-gjp4-8570p kernel: (da3:umass-sim3:3:0:0): CAM status:
CCB request completed with an error
Jul 18 06:44:05 mowa219-gjp4-8570p kernel: (da3:umass-sim3:3:0:0): Retrying
command, 2 more tries remain
Jul 18 06:44:15 mowa219-gjp4-8570p kernel: (da3:umass-sim3:3:0:0): READ(10).
CDB: 28 00 00 3b b7 ff 00 00 01 00 
Jul 18 06:44:15 mowa219-gjp4-8570p kernel: (da3:umass-sim3:3:0:0): CAM status:
CCB request completed with an error
Jul 18 06:44:15 mowa219-gjp4-8570p kernel: (da3:umass-sim3:3:0:0): Retrying
command, 1 more tries remain
Jul 18 06:44:25 mowa219-gjp4-8570p kernel: (da3:umass-sim3:3:0:0): READ(10).
CDB: 28 00 00 3b b7 ff 00 00 01 00 
Jul 18 06:44:25 mowa219-gjp4-8570p kernel: (da3:umass-sim3:3:0:0): CAM status:
CCB request completed with an error
Jul 18 06:44:25 mowa219-gjp4-8570p kernel: (da3:umass-sim3:3:0:0): Retrying
command, 0 more tries remain
Jul 18 06:44:36 mowa219-gjp4-8570p kernel: (da3:umass-sim3:3:0:0): READ(10).
CDB: 28 00 00 3b b7 ff 00 00 01 00 
Jul 18 06:44:36 mowa219-gjp4-8570p kernel: (da3:umass-sim3:3:0:0): CAM status:
CCB request completed with an error
Jul 18 06:44:36 mowa219-gjp4-8570p kernel: (da3:umass-sim3:3:0:0): Error 5,
Retries exhausted
Jul 18 06:55:32 mowa219-gjp4-8570p kernel: ugen1.7: <Alcor Micro Mass Storage
Device> at usbus1 (disconnected)
Jul 18 06:55:32 mowa219-gjp4-8570p kernel: umass3: at uhub4, port 6, addr 7
(disconnected)
Jul 18 06:55:32 mowa219-gjp4-8570p kernel: da3 at umass-sim3 bus 3 scbus8
target 0 lun 0
Jul 18 06:55:32 mowa219-gjp4-8570p kernel: da3: <Generic USB Flash Disk 7.76> 
s/n 6 detached
Jul 18 06:55:32 mowa219-gjp4-8570p kernel: (da3:umass-sim3:3:0:0): Periph
destroyed
Jul 18 06:55:32 mowa219-gjp4-8570p kernel: umass3: detached
^C
% 

----

Note to self, lines from root user history 
  (lsblk at 6:03, htop at 6:08, gpart show at 6:47): 

  …
   975  6:03    lsblk
   976  6:08    which glabel
   977  6:08    htop
   978  6:09    which glabel
   979  6:09    pkg provides glabel
   980  6:09    which glabel
   981  6:09    pkg provides /sbin/glabel
   982  6:16    man glabel
   983  6:17    man gdisk
   984  6:17    newfs
   985  6:17    man newfs
   986  6:17    man 8 gdisk
   987  6:18    man 8 newfs
   988  6:25    man lsblk
   989  6:25    pkg query '%o %v %R' lsblk
   990  6:26    pkg query '%o %v %R' gdisk
   991  6:31    pkg query '%o %v %R' htop
   992  6:44    pkg query '%o %v %R' gdisk htop lsblk
   993  6:45    uname -KRu
   994  6:45    uname -KrU
   995  6:45    pkg query '%o %v %R' gdisk htop lsblk
   996  6:45    uname -KuV
   997  6:45    uname -KUv
   998  6:45    pkg query '%o %v %R' gdisk htop lsblk
   999  6:45    uname -KUv
  1000  6:46    exit
  1001  6:47    gpart show
  1002  6:47    zpool status
  1003  6:51    exit
  …

-- 
You are receiving this mail because:
You are the assignee for the bug.