[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [Pkg-zfsonlinux-devel] zfsutils-linux: /usr/sbin/grub-probe: error: unknown filesystem



Hi,

So I reverted back to zfsonlinux packages to debug until I understand how to make a working configuration with the backports ones :) I had to reboot because I updated to 8.6 at the same time.

So what I did:
- I disabled the zfsonlinux repo
-  apt-get purge debian-zfs libzfs2 zfs-dkms zfs-initramfs zfsonlinux zfsutils spl spl-dkms which was removing the following packages: debian-zfs* grub-common* grub-efi* grub-efi-amd64* grub-efi-amd64-bin* grub2-common* libzfs2* spl* spl-dkms* zfs-dkms* zfs-initramfs* zfsonlinux* zfsutils*
- installed zfsutils-linux and I noticed that it did pushed back grub-common* grub-efi* grub-efi-amd64* grub-efi-amd64-bin* grub2-common*
- installed grub-common* grub-efi* grub-efi-amd64* grub-efi-amd64-bin* grub2-common*

After this I noticed that :
- grub-probe /  returned /usr/sbin/grub-probe: error: unknown filesystem
- grub.conf was not containing zfs specific stuff like:
             *  insmod zfs completely missing
             * kernel lines add root=ZFS=ROOT/debian-1 instead of root=ZFS=rpool/ROOT/debian-1 boot=zfs


I'm using whike disks but I've the small EFI mandatory partition
 

note that the *working* grub2-common comes out from zfsonlinux repo because I pinpointed it according to http://www.thecrosseroads.net/2016/02/booting-a-zfs-root-via-uefi-on-debian/

grub2-common:
  Installé : 2.02-beta2.9-ZOL11-7aa9f6
  Candidat : 2.02-beta2.9-ZOL11-7aa9f6
 Table de version :
 *** 2.02-beta2.9-ZOL11-7aa9f6 0
        900 http://archive.zfsonlinux.org/debian/ jessie/main amd64 Packages
        100 /var/lib/dpkg/status
     2.02~beta2-22+deb8u1 0
        500 http://httpredir.debian.org/debian/ jessie/main amd64 Packages


output of zpool status:
# zpool status -P
  pool: dpool
 state: ONLINE
  scan: resilvered 3,66T in 6h15m with 0 errors on Tue Sep 27 12:47:16 2016
config:

        NAME                                                                 STATE     READ WRITE CKSUM
        dpool                                                                ONLINE       0     0     0
          /dev/disk/by-id/ata-ST6000VN0011-1UL17Z_Z4D2Y11B-part1             ONLINE       0     0     0
          /dev/disk/by-id/ata-ST6000VN0011-1UL17Z_Z4D3XJGE-part1             ONLINE       0     0     0
          mirror-2                                                           ONLINE       0     0     0
            /dev/disk/by-id/ata-WDC_WD30EFRX-68AX9N0_WD-WMC1T0061294-part1   ONLINE       0     0     0
            /dev/disk/by-id/ata-WDC_WD30EFRX-68AX9N0_WD-WMC1T0055092-part1   ONLINE       0     0     0
          mirror-3                                                           ONLINE       0     0     0
            /dev/disk/by-id/ata-WDC_WD30EFRX-68AX9N0_WD-WMC1T0065963-part1   ONLINE       0     0     0
            /dev/disk/by-id/ata-WDC_WD30EFRX-68AX9N0_WD-WMC1T0061091-part1   ONLINE       0     0     0
          mirror-4                                                           ONLINE       0     0     0
            /dev/disk/by-id/ata-WDC_WD30EFRX-68AX9N0_WD-WMC1T0075132-part1   ONLINE       0     0     0
            /dev/disk/by-id/ata-WDC_WD30EFRX-68AX9N0_WD-WMC1T0061154-part1   ONLINE       0     0     0
        logs
          mirror-5                                                           ONLINE       0     0     0
            /dev/disk/by-id/ata-KINGSTON_SHSS37A240G_50026B72590928F8-part1  ONLINE       0     0     0
            /dev/disk/by-id/ata-KINGSTON_SHSS37A240G_50026B725909301B-part1  ONLINE       0     0     0
        cache
          /dev/disk/by-id/ata-KINGSTON_SHSS37A240G_50026B72590928F8-part2    ONLINE       0     0     0
          /dev/disk/by-id/ata-KINGSTON_SHSS37A240G_50026B725909301B-part2    ONLINE       0     0     0

errors: No known data errors

  pool: rpool
 state: ONLINE
  scan: resilvered 2,94G in 0h0m with 0 errors on Wed Sep 28 18:04:43 2016
config:

        NAME                                                              STATE     READ WRITE CKSUM
        rpool                                                             ONLINE       0     0     0
          mirror-0                                                        ONLINE       0     0     0
            /dev/disk/by-id/ata-SanDisk_SDSSDH120GG25_113334300609-part1  ONLINE       0     0     0
            /dev/disk/by-id/ata-OCZ-VERTEX2_f24230012-part1               ONLINE       0     0     0

errors: No known data errors


partition tables of rpool:
# gdisk -l /dev/disk/by-id/ata-SanDisk_SDSSDH120GG25_113334300609
GPT fdisk (gdisk) version 0.8.10

Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: present

Found valid GPT with protective MBR; using GPT.
Disk /dev/disk/by-id/ata-SanDisk_SDSSDH120GG25_113334300609: 234441648 sectors, 111.8 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): 9EBA6B3B-2B6A-EC49-8E3A-56E5974A1996
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 234441614
Partitions will be aligned on 2048-sector boundaries
Total free space is 2925 sectors (1.4 MiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1            2048       234424319   111.8 GiB   BF01  zfs
   9       234424320       234440703   8.0 MiB     BF07

# gdisk -l /dev/disk/by-id/ata-OCZ-VERTEX2_f24230012
GPT fdisk (gdisk) version 0.8.10

Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: present

Found valid GPT with protective MBR; using GPT.
Disk /dev/disk/by-id/ata-OCZ-VERTEX2_f24230012: 234441648 sectors, 111.8 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): 9B98DFF5-F6F1-7A4F-B5EB-5DB0B2427FE8
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 234441614
Partitions will be aligned on 2048-sector boundaries
Total free space is 2925 sectors (1.4 MiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1            2048       234424319   111.8 GiB   BF01  zfs
   9       234424320       234440703   8.0 MiB     BF07



2016-09-29 5:56 GMT+02:00 Richard Laager <rlaager@wiktel.com>:
On 09/28/2016 01:05 PM, Aron Xu wrote:
> On Thu, Sep 29, 2016 at 2:49 AM, Nicolas Di Gregorio
> <nicolas.digregorio@gmail.com> wrote:
>> Hi,
>>
>> I had a working debian jessie amd64 with zfsonlinux repo activated.
>>
>> As zfs is now in the official debian backports I decided to migrate my
>> system to official package.
>>
>> after removing the zfsonlinux packages (which removed grub by the way) I
>> installed backports one and manually reinstalled grub which fails on a
>> /usr/sbin/grub-probe: error: unknown filesystem and producing a wrong
>> grub.cfg file.

Definitely don't reboot yet!

Do you, by chance, have a wholedisk pool? If you don't know what I mean,
that's okay. I'll figure it out from the data below.

Can you provide the output of both `sudo zpool status`? Also include
`sudo zpool status -P` (if the -P option is supported by your version of
ZFS).

Also, provide some dump of your partition table, like this (or with
whatever tool you want):
sudo parted -ms /dev/sda print

--
Richard


Reply to: