Announcement

Collapse
No announcement yet.

Odd dmesg output: one drive and its partitions listed every 5 minutes when nothing is mounted

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [ABANDONED] Odd dmesg output: one drive and its partitions listed every 5 minutes when nothing is mounted

    This is on Ubuntu Server 20.04 - headless.

    Checked dmesg this morning and this is the output:
    [Tue Jan 17 08:02:07 2023] sdc: sdc1 sdc2 sdc3 sdc4
    [Tue Jan 17 08:07:09 2023] sdc: sdc1 sdc2 sdc3 sdc4
    [Tue Jan 17 08:12:10 2023] sdc: sdc1 sdc2 sdc3 sdc4
    [Tue Jan 17 08:17:12 2023] sdc: sdc1 sdc2 sdc3 sdc4
    [Tue Jan 17 08:22:14 2023] sdc: sdc1 sdc2 sdc3 sdc4
    This goes back more than 24 hours. Basically, the dmesg buffer is filled with the above. None of the above partitions are mounted, although 2 of them are in fstab (but noauto).

    The drives and partitions:
    /dev/sdb btrfs backup2 (not mounted)
    /dev/sda btrfs pool (in use)
    /dev/sdc1 (not mounted)
    /dev/sdc2 swap (not mounted)
    /dev/sdc3 install1 (not mounted)
    /dev/sdc4 backup (not mounted)
    /dev/sdd1 (not mounted)
    /dev/sdd2 btrfs install (in use)
    /dev/sdd3 swap [SWAP]
    I don't think it matters, but here's the file system info of the drive in question:
    /dev/sdc1 BIOS boot
    /dev/sdc2 swap
    /dev/sdc3 btrfs
    /dev/sdc4 btrfs
    As a test I mounted sdc3 and sdc4 and the messages stopped. So it seems to be something scanning the system for drives but only if none of the partitions are mounted. Oddly, sdb is not mounted and it is not listed. However it is also not partitioned so it appears to be a partition table scan.

    This doesn't seem harmful except that it wipes out meaningful info in dmesg and it's totally useless.

    Anyone have an idea what is doing this and how to turn it off?

    Please Read Me

    #2
    A CRON task?
    Using Kubuntu Linux since March 23, 2007
    "It is a capital mistake to theorize before one has data." - Sherlock Holmes

    Comment


      #3
      If I understand you correctly /dev/sdc is the only unmounted drive with entries in /etc/fstab? /dev/sdb has no entries at all in /etc/fstab and is not mentioned in dmesg?
      Double-check the syntax of /dev/sdc in /etc/fstab… If there is nothing wrong I would try to uncomment the two entries for the /dev/sdc partitions in /etc/fstab and see what happens…
      And if commenting out /dev/sdc prevents the entries in dmesg you could use an alias in CLI to mount the two partitions with specific options instead.
      Last edited by Schwarzer Kater; Jan 17, 2023, 12:29 PM.
      Debian KDE & LXQt • Kubuntu & Lubuntu • openSUSE KDE • Windows • macOS X
      Desktop: Lenovo ThinkCentre M75s • Laptop: Apple MacBook Pro 13" • and others

      get rid of Snap scriptreinstall Snap for release-upgrade scriptinstall traditional Firefox script

      Comment


        #4
        Originally posted by Schwarzer Kater View Post
        If I understand you correctly /dev/sdc is the only unmounted drive with entries in /etc/fstab?
        /dev/sdb has no entries at all in /etc/fstab and is not mentioned in dmesg?
        No. All the partitions are listed in fstab except the BIOS BOOT partitions and the lone swap partition on sdc (it's no longer used).

        sdb does not have partitions, but is listed in fstab and is mountable as a whole disk BTRFS filesystem. BTRFS does not require partitioning and can occupy an entire disk without a partition table, as in this case. I tried to point out this difference because it seems likely that the fact that a partition table exists on sdc but does not exist on sdb may be why sdc is apparently being polled but sdb is not.

        All the entries in fstab are noauto except sdd2, sdd2, sda. The rest are for backups and thus are only mounted when needed to make backups.

        Originally posted by Schwarzer Kater View Post
        Double-check the syntax of /dev/sdc in /etc/fstab… If there is nothing wrong I would try to uncomment the two entries for the /dev/sdc partitions in /etc/fstab and see what happens…
        And if commenting out /dev/sdc prevents the entries in dmesg you could use an alias in CLI to mount the two partitions with specific options instead.
        There's nothing in fstab that would result in polling a drive or its partitions:
        Code:
        ~~~
        # Media backups
        UUID=<sdc4> /mnt/backup1  btrfs rw,noauto,space_cache=v2,compress=zstd 0 0
        UUID=<sdb> /mnt/backup2  btrfs rw,noauto,space_cache=v2,compress=zstd 0 0
        # Install backups  
        UUID=<sdc3> /mnt/install1 btrfs rw,noauto,space_cache,compress=lzo 0 0
        ~~~
        ​
        Interestingly, after mounting the sdc partitions the polling stopped. I went back just now to check that and unmounted the sdc partitions and the polling/dmesg output has not resumed.

        Please Read Me

        Comment


          #5
          Scratch that last bit, it started back up eventually. Every five minutes again.

          Please Read Me

          Comment


            #6
            I just looked up the /etc/fstab in both my openSUSE and Garuda installations (I use both of them with btrfs)- and I could not find anything what I did fundamentally different except for the "noauto" part…

            Perhaps Mr. Little or someone else will have an idea for your problem.
            Debian KDE & LXQt • Kubuntu & Lubuntu • openSUSE KDE • Windows • macOS X
            Desktop: Lenovo ThinkCentre M75s • Laptop: Apple MacBook Pro 13" • and others

            get rid of Snap scriptreinstall Snap for release-upgrade scriptinstall traditional Firefox script

            Comment


              #7
              Ok, well it appears to be a UDEV function or bug. Running this:
              Code:
              sudo udevadm monitor --udev --property
              Gets me this every 5 minutes:
              Code:
              UDEV  [351252.948541] add      /devices/pci0000:00/0000:00:1f.2/ata3/host2/target2:0:0/2:0:0:0/block/sdc/sdc4 (block)
              ACTION=add
              DEVPATH=/devices/pci0000:00/0000:00:1f.2/ata3/host2/target2:0:0/2:0:0:0/block/sdc/sdc4
              SUBSYSTEM=block
              DEVNAME=/dev/sdc4
              DEVTYPE=partition
              DISKSEQ=11
              PARTN=4
              PARTNAME=Linux filesystem
              SEQNUM=31344
              USEC_INITIALIZED=351252934238
              ID_ATA=1
              ID_TYPE=disk
              ID_BUS=ata
              ID_MODEL=WDC_WD60EFRX-68MYMN1
              ID_MODEL_ENC=WDC\x20WD60EFRX-68MYMN1\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20
              ID_REVISION=82.00A82
              ID_SERIAL=WDC_WD60EFRX-68MYMN1_WD-WX11DC4FKH3V
              ID_SERIAL_SHORT=WD-WX11DC4FKH3V
              ID_ATA_WRITE_CACHE=1
              ID_ATA_WRITE_CACHE_ENABLED=1
              ID_ATA_FEATURE_SET_HPA=1
              ID_ATA_FEATURE_SET_HPA_ENABLED=1
              ID_ATA_FEATURE_SET_PM=1
              ID_ATA_FEATURE_SET_PM_ENABLED=1
              ID_ATA_FEATURE_SET_SECURITY=1
              ID_ATA_FEATURE_SET_SECURITY_ENABLED=0
              ID_ATA_FEATURE_SET_SECURITY_ERASE_UNIT_MIN=66290
              ID_ATA_FEATURE_SET_SECURITY_ENHANCED_ERASE_UNIT_MIN=66290
              ID_ATA_FEATURE_SET_SECURITY_FROZEN=1
              ID_ATA_FEATURE_SET_SMART=1
              ID_ATA_FEATURE_SET_SMART_ENABLED=1
              ID_ATA_FEATURE_SET_PUIS=1
              ID_ATA_FEATURE_SET_PUIS_ENABLED=0
              ID_ATA_DOWNLOAD_MICROCODE=1
              ID_ATA_SATA=1
              ID_ATA_SATA_SIGNAL_RATE_GEN2=1
              ID_ATA_SATA_SIGNAL_RATE_GEN1=1
              ID_ATA_ROTATION_RATE_RPM=5700
              ID_WWN=0x50014ee2b6480f38
              ID_WWN_WITH_EXTENSION=0x50014ee2b6480f38
              ID_PATH=pci-0000:00:1f.2-ata-3
              ID_PATH_TAG=pci-0000_00_1f_2-ata-3
              ID_PART_TABLE_UUID=c5e39bac-66d8-4615-9c44-fe8e2f37a7d9
              ID_PART_TABLE_TYPE=gpt
              ID_FS_LABEL=backup1
              ID_FS_LABEL_ENC=backup1
              ID_FS_UUID=d8d4c888-11cf-4ec8-a3ca-b7ad8afb4944
              ID_FS_UUID_ENC=d8d4c888-11cf-4ec8-a3ca-b7ad8afb4944
              ID_FS_UUID_SUB=d078cb1e-f45d-4be9-83db-3f8f02a2dc9c
              ID_FS_UUID_SUB_ENC=d078cb1e-f45d-4be9-83db-3f8f02a2dc9c
              ID_FS_TYPE=btrfs
              ID_FS_USAGE=filesystem
              ID_PART_ENTRY_SCHEME=gpt
              ID_PART_ENTRY_NAME=Linux\x20filesystem
              ID_PART_ENTRY_UUID=e457451e-69d7-4401-97aa-ff9f4646f66b
              ID_PART_ENTRY_TYPE=0fc63daf-8483-4772-8e79-3d69d8477de4
              ID_PART_ENTRY_NUMBER=4
              ID_PART_ENTRY_OFFSET=134217736
              ID_PART_ENTRY_SIZE=11586827399
              ID_PART_ENTRY_DISK=8:32
              ID_BTRFS_READY=1
              MAJOR=8
              MINOR=36
              DEVLINKS=/dev/disk/by-id/ata-WDC_WD60EFRX-68MYMN1_WD-WX11DC4FKH3V-part4 /dev/disk/by-id/wwn-0x50014ee2b6480f38-part4 /dev/disk/by-partuuid/e457451e-69d7
              -4401-97aa-ff9f4646f66b /dev/disk/by-path/pci-0000:00:1f.2-ata-3-part4 /dev/disk/by-uuid/d8d4c888-11cf-4ec8-a3ca-b7ad8afb4944 /dev/disk/by-label/backup1
              /dev/disk/by-partlabel/Linux\x20filesystem
              TAGS=:systemd:
              So UDEV is polling the drive as though it were a removable device or something. When a partition is mounted, it doesn't activate.

              Please Read Me

              Comment


                #8
                Actually, it's a couple 1000 lines. It looks at all the partitions/drives but only spits out the partition list for the drive with no mounted partitions.

                Please Read Me

                Comment


                  #9
                  This doesn't happen on the 22.04 bases KDEneon install. I'm running the same kernel on both so now I'm scratching my head. Web searches have revealed only 2 other cases where someone complained about this.

                  Since mounting any partition on the drive seems to stop the dmesg spamming, I added the currently unused swap partition to fstab and dropping the discussion.

                  Please Read Me

                  Comment

                  Working...
                  X