bugGNU GRUB - Bugs: bug #50896, grub-probe zfs bug: failed to get...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #50896: grub-probe zfs bug: failed to get canonical path

Submitter:  Jens Elkner <jelmd>
Submitted:  Sat 29 Apr 2017 12:11:11 AM UTC
Votes: 100
 
Category:  Disk & Partition Severity:  Major
Priority:  5 - Normal Item Group:  Software Error
Status:  Duplicate Privacy:  Public
Assigned to:  None Originator Name: 
Open/Closed:  Closed Release:  2.02~beta1
Release:  Reproducibility:  Every Time
Planned Release:  2.03+

Sat 29 Apr 2017 04:59:42 AM UTC, comment #1: 
Andrei Borzenkov <arvidjaar>
Group Member
Sat 29 Apr 2017 12:11:11 AM UTC, original submission:  

grub-probe /

fails with grub-probe: error: failed to get canonical path of `/dev/HDD0p2'. This is simply because grub makes the wrong assumption, that "zpool status $pool" lists the vdevs in use only with the '/dev/' prefix stripped off. It probably assumes something like /dev/sda etc., which is discouraged to use.

Instead, grub should use "zpool status -P $pool" to get the full device path. This would probably result into a symlink, e.g. /dev/disk-by-id/$bla . If this is not sufficient, grub should use realpath() to get the final blockdev entry like /dev/sda1 .


The current setup I use is:

      433      0 drwxr-xr-x   4 root     root           80 Apr 28 20:22 /dev/chassis/SYS
      434      0 drwxr-xr-x   2 root     root          200 Apr 28 23:06 /dev/chassis/SYS/HDD0
      435      0 lrwxrwxrwx   1 root     root           12 Apr 28 23:16 /dev/chassis/SYS/HDD0/HDD0 -> ../../../sda
      417      0 lrwxrwxrwx   1 root     root           13 Apr 28 23:16 /dev/chassis/SYS/HDD0/HDD0p1 -> ../../../sda1
      442      0 lrwxrwxrwx   1 root     root           13 Apr 28 23:16 /dev/chassis/SYS/HDD0/HDD0p2 -> ../../../sda2
      423      0 lrwxrwxrwx   1 root     root           13 Apr 28 23:16 /dev/chassis/SYS/HDD0/HDD0p9 -> ../../../sda9
      436      0 lrwxrwxrwx   1 root     root           12 Apr 28 23:16 /dev/chassis/SYS/HDD0/disk -> ../../../sda
      418      0 lrwxrwxrwx   1 root     root           13 Apr 28 23:16 /dev/chassis/SYS/HDD0/p1 -> ../../../sda1
      443      0 lrwxrwxrwx   1 root     root           13 Apr 28 23:16 /dev/chassis/SYS/HDD0/p2 -> ../../../sda2
      424      0 lrwxrwxrwx   1 root     root           13 Apr 28 23:16 /dev/chassis/SYS/HDD0/p9 -> ../../../sda9
      437      0 drwxr-xr-x   2 root     root           80 Apr 28 20:22 /dev/chassis/SYS/HDD1
      438      0 lrwxrwxrwx   1 root     root           12 Apr 28 23:16 /dev/chassis/SYS/HDD1/HDD1 -> ../../../sdb
      439      0 lrwxrwxrwx   1 root     root           12 Apr 28 23:16 /dev/chassis/SYS/HDD1/disk -> ../../../sdb

with 'zpool create ... rpool /dev/chassis/SYS/HDD0/HDD0p2'


PS: The full version is 2.02~beta2-36ubuntu3.9 (Ubuntu xenial 16.04).

Jens Elkner <jelmd>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by arvidjaar (Posted a comment)
  • -email is unavailable- added by jelmd (Voted in favor of this item)
  • -email is unavailable- added by jelmd (Submitted the item)
  •  

    There are 100 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-04-29 arvidjaar StatusNone Duplicate
        Open/ClosedOpen Closed
        Planned ReleaseNone 2.03+
    2017-04-29 jelmd Carbon-Copy- Added jelmd

    Back to the top

    Powered by Savane 3.13-cf05.
    Corresponding source code