Results 1 to 8 of 8

Thread: [Solved] multipathd error ... sda: failed to get sgio uid: No such file or directory

Hybrid View

  1. #1
    Join Date
    Apr 2020
    Beans
    2

    Thumbs up [Solved] multipathd error ... sda: failed to get sgio uid: No such file or directory

    Hi,
    I'm running Ubuntu Server 20.04 ... it's not my first but I'm probably still more comfortable with *BSD. That said, I'm having a good time with it when I see my syslog is filling up with messages from multipathd...

    Code:
    Apr 26 16:10:29 ubuntu2004 multipathd[728]: sda: add missing path
    Apr 26 16:10:29 ubuntu2004 multipathd[728]: sda: failed to get udev uid: Invalid argument
    Apr 26 16:10:29 ubuntu2004 multipathd[728]: sda: failed to get sysfs uid: Invalid argument
    Apr 26 16:10:29 ubuntu2004 multipathd[728]: sda: failed to get sgio uid: No such file or directory
    This is happening every five seconds, and it's not only annoying, it's worrisome.

    My server is a virtual machine on ESXi 6.7 ... and I gave it 50 GB of virtual disk at install and selected to use LVM.

    Any hints on what this means and how to solve it? For example, what is sgio and what does it have to do with sda?



    Here are a few more points that may be germane:


    Code:
    $ sudo fdisk -l
    <...snip...>
    
    Disk /dev/sda: 50 GiB, 53687091200 bytes, 104857600 sectors
    Disk model: Virtual disk
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disklabel type: gpt
    Disk identifier: 2594FF21-D82C-4B56-8CD6-9E352E48770A
    
    Device       Start       End   Sectors Size Type
    /dev/sda1     2048      4095      2048   1M BIOS boot
    /dev/sda2     4096   2101247   2097152   1G Linux filesystem
    /dev/sda3  2101248 104855551 102754304  49G Linux filesystem
    
    <...snip...>

    Code:
    $ cat /etc/multipath.conf
    defaults {
        user_friendly_names yes
    }
    Code:
    $ sudo multipath -t
              defaults {
              verbosity 2
              polling_interval 5
              max_polling_interval 20
              reassign_maps "no"
              multipath_dir "//lib/multipath"
              path_selector "service-time 0"
              path_grouping_policy "failover"
              uid_attribute "ID_SERIAL"
              prio "const"
              prio_args ""
              features "0"
              path_checker "tur"
              alias_prefix "mpath"
              failback "manual"
              rr_min_io 1000
              rr_min_io_rq 1
              max_fds "max"
              rr_weight "uniform"
              queue_without_daemon "no"
              flush_on_last_del "no"
              user_friendly_names "no"
              fast_io_fail_tmo 5
              bindings_file "/etc/multipath/bindings"
              wwids_file "/etc/multipath/wwids"
              prkeys_file "/etc/multipath/prkeys"
              log_checker_err always
              all_tg_pt "no"
              retain_attached_hw_handler "yes"
              detect_prio "yes"
              detect_checker "yes"
              force_sync "no"
              strict_timing "no"
              deferred_remove "no"
              config_dir "/etc/multipath/conf.d"
              delay_watch_checks "no"
              delay_wait_checks "no"
              san_path_err_threshold "no"
              san_path_err_forget_rate "no"
              san_path_err_recovery_time "no"
              marginal_path_err_sample_time "no"
              marginal_path_err_rate_threshold "no"
              marginal_path_err_recheck_gap_time "no"
              marginal_path_double_failed_time "no"
              find_multipaths "on"
              uxsock_timeout 4000
              retrigger_tries 0
              retrigger_delay 10
              missing_uev_wait_timeout 30
              skip_kpartx "no"
              disable_changed_wwids ignored
              remove_retries 0
              ghost_delay "no"
              find_multipaths_timeout -10
              enable_foreign ""
              marginal_pathgroups "no"
      }
      blacklist {
      ...


    Code:
    $ cat /var/log/syslog | grep multipathd | head -33
    Apr 26 16:09:52 ubuntu2004 multipathd[728]: --------start up--------
    Apr 26 16:09:52 ubuntu2004 multipathd[728]: read /etc/multipath.conf
    Apr 26 16:09:52 ubuntu2004 multipathd[728]: path checkers start up
    Apr 26 16:09:52 ubuntu2004 multipathd[728]: sda: failed to get udev uid: Invalid argument
    Apr 26 16:09:52 ubuntu2004 multipathd[728]: sda: failed to get unknown uid: Invalid argument
    Apr 26 16:09:52 ubuntu2004 kernel: [    5.758757] systemd[1]: Listening on multipathd control socket.
    Apr 26 16:09:53 ubuntu2004 multipathd[728]: sda: triggering change event to reinitialize
    Apr 26 16:09:53 ubuntu2004 multipathd[728]: sda: failed to get udev uid: Invalid argument
    Apr 26 16:09:53 ubuntu2004 multipathd[728]: sda: failed to get unknown uid: Invalid argument
    Apr 26 16:09:53 ubuntu2004 multipathd[728]: sda: failed to get path uid
    Apr 26 16:09:53 ubuntu2004 multipathd[728]: uevent trigger error
    Apr 26 16:10:03 ubuntu2004 multipathd[728]: sda: triggering change event to reinitialize
    Apr 26 16:10:03 ubuntu2004 multipathd[728]: sda: failed to get udev uid: Invalid argument
    Apr 26 16:10:03 ubuntu2004 multipathd[728]: sda: failed to get unknown uid: Invalid argument
    Apr 26 16:10:03 ubuntu2004 multipathd[728]: sda: failed to get path uid
    Apr 26 16:10:03 ubuntu2004 multipathd[728]: uevent trigger error
    Apr 26 16:10:13 ubuntu2004 multipathd[728]: sda: triggering change event to reinitialize
    Apr 26 16:10:13 ubuntu2004 multipathd[728]: sda: failed to get udev uid: Invalid argument
    Apr 26 16:10:13 ubuntu2004 multipathd[728]: sda: failed to get sysfs uid: Invalid argument
    Apr 26 16:10:13 ubuntu2004 multipathd[728]: sda: failed to get sgio uid: No such file or directory
    Apr 26 16:10:13 ubuntu2004 multipathd[728]: sda: failed to get path uid
    Apr 26 16:10:13 ubuntu2004 multipathd[728]: uevent trigger error
    Apr 26 16:10:23 ubuntu2004 multipathd[728]: sda: not initialized after 3 udev retriggers
    Apr 26 16:10:24 ubuntu2004 multipathd[728]: sda: add missing path
    Apr 26 16:10:24 ubuntu2004 multipathd[728]: sda: failed to get udev uid: Invalid argument
    Apr 26 16:10:24 ubuntu2004 multipathd[728]: sda: failed to get sysfs uid: Invalid argument
    Apr 26 16:10:24 ubuntu2004 multipathd[728]: sda: failed to get sgio uid: No such file or directory
    Apr 26 16:10:29 ubuntu2004 multipathd[728]: sda: add missing path
    Apr 26 16:10:29 ubuntu2004 multipathd[728]: sda: failed to get udev uid: Invalid argument
    Apr 26 16:10:29 ubuntu2004 multipathd[728]: sda: failed to get sysfs uid: Invalid argument
    Apr 26 16:10:29 ubuntu2004 multipathd[728]: sda: failed to get sgio uid: No such file or directory
    <... and so on every 5 seconds ...>

    Thank you!

    --jg
    Last edited by jg3; April 27th, 2020 at 08:34 PM.

  2. #2
    Join Date
    Apr 2020
    Beans
    2

    Re: multipathd error ... sda: failed to get sgio uid: No such file or directory

    I had the same issue and following the steps in this article resolved it for me. https://www.suse.com/support/kb/doc/?id=000016951
    Afterward, the disk appeared in /dev/disk/by-id

  3. #3
    Join Date
    Apr 2020
    Beans
    2

    Re: multipathd error ... sda: failed to get sgio uid: No such file or directory

    Wow, thanks. That worked and I would never have thought or found that based on my searches. I'm new here, is there a way to mark the question solved or something?



    From that page, here were the instructions I followed:

    Situation

    There is no link in /dev/disk/by-id for SCSI (sdx) devices. The OS is running as a guest on VMWare ESX

    Resolution

    By default VMWare doesn't provide information needed by udev to generate /dev/disk/by-id. This can be done by setting the following:

    1. Start the vSphere Client, and log in to a vCenter Server.
    2. Select Virtual Machines and Templates and click the Virtual Machines tab.
    3. Right-click the virtual machine for which you are enabling the disk UUID attribute, and select Power > Power Off.
      The virtual machine powers off.
    4. Right-click the virtual machine, and click Edit Settings.
    5. Click the Options tab, and select the General entry in the settings column.
    6. Click Configuration Parameters. The Configuration Parameters window appears.
    7. Click Add Row.
    8. In the Name column, enter disk.EnableUUID.
    9. In the Value column, enter TRUE.
    10. Click OK and click Save.
    11. Power on the virtual machine.
    Last edited by jg3; April 27th, 2020 at 08:32 PM. Reason: is there a way to mark question solved?

  4. #4
    Join Date
    Apr 2020
    Beans
    2

    Re: [Solved] multipathd error ... sda: failed to get sgio uid: No such file or direct

    Glad it worked for you also, and I derno, I'm new here too. I guess you just change the title as you did.

  5. #5
    Join Date
    May 2020
    Beans
    1

    Re: [Solved] multipathd error ... sda: failed to get sgio uid: No such file or direct

    worked for me. thanks a lot!

  6. #6
    Join Date
    Jun 2006
    Beans
    12

    Re: [Solved] multipathd error ... sda: failed to get sgio uid: No such file or direct

    There is another option I had to use. I have a Virtual Server running in a popular cheap cloud provider that uses ESX so I am unable to get to the vCenter console. I only have access to the command line on my virtual server.
    To solve this without access to the VM Host you can blacklist sda in the multipath.conf file. Here is my /etc/multipath.conf files contents which also blacklists common other devices like CDRom drives etc. that should never be checked for multipath configurations:

    Code:
    defaults {
        user_friendly_names yes
    }
    blacklist {
        devnode "^(ram|raw|loop|fd|md|dm-|sr|scd|st|sda)[0-9]*"
    }
    I don't use any multipath (most VMs don't) but if you do, this will be different for you.

  7. #7
    Join Date
    Apr 2021
    Beans
    2

    Re: [Solved] multipathd error ... sda: failed to get sgio uid: No such file or direct

    Thanks. Editing the ESXi parameters did not solve the problem for me but using your conf file did.

  8. #8
    Join Date
    Jun 2018
    Beans
    1

    Re: [Solved] multipathd error ... sda: failed to get sgio uid: No such file or direct

    confirm solution of adding:

    In the Name column, enter disk.EnableUUID.In the Value column, enter TRUE.

    I used the web ui of esxi directly
    * edit virtual machine settings
    * VM options
    * Advanced
    * at Configuration Parameters press Edit Configuration...
    add the key and value as described above
    (VM Machine Power should be off)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •