Cannot create zpool using links in /dev/disk/by-id

Bug #1575921 reported by Kyle Peterson
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Native ZFS for Linux
Fix Released
Unknown
zfs-linux (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

ZoL issue: https://github.com/zfsonlinux/zfs/issues/3708

I see this issue on Ubuntu 16.04 server; creating a zpool using /dev/disk/by-id labels fail with error 'no such pool or dataset'. The problem also happens when uzing zpool attach to attach a drive to a single disk pool to create a mirror when using /dev/disk/by-id labels.

$ sudo zpool attach storage ata-WDC_WD30EFRX-68EUZN0_WD-WCC4NPDEFNLP ata-WDC_WD30EFRX-68AX9N0_WD-WCC1T0879632
cannot attach ata-WDC_WD30EFRX-68AX9N0_WD-WCC1T0879632 to ata-WDC_WD30EFRX-68EUZN0_WD-WCC4NPDEFNLP: no such pool or dataset

Using /dev/sdx labels works as a workaround.

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https://wiki.ubuntu.com/Bugs/FindRightPackage. You might also ask for help in the #ubuntu-bugs irc channel on Freenode.

To change the source package that this bug is filed about visit https://bugs.launchpad.net/ubuntu/+bug/1575921/+editstatus and add the package name in the text box next to the word Package.

[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]

tags: added: bot-comment
tags: added: xenial
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ubuntu:
status: New → Confirmed
affects: ubuntu → zfs-linux (Ubuntu)
Changed in zfs-linux (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Colin Ian King (colin-king) wrote :

Seems to be fixed with upstream fix https://github.com/zfsonlinux/zfs/commit/2d82ea8b111103b28b8c9ad0f69dd88736248804

This fix is in Zesty zfsutils-linux 0.6.5.9, Yakkety zfsutils-linux 0.6.5.8, Xenuial zfsutils-linux 0.6.5.6

Revision history for this message
Colin Ian King (colin-king) wrote :

@Kyle, is this still an issue? I'm not sure about the fix, as it seems to be in the current Xenial ZFS, so it should have addressed the issue for you.

Changed in zfs-linux (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Kyle Peterson (kyle-peterson1) wrote : Re: [Bug 1575921] Re: Cannot create zpool using links in /dev/disk/by-id

I think it might be fixed. Yesterday I split apart my zfs mirror, reattached the drive using /dev/disk/by-id and it worked without any issues. I am using the 4.8 kernel now which has zfs 0.6.5.8. It looks like the userland zfs tools are still at 0.6.5.7.

> On Apr 20, 2017, at 2:52 AM, Colin Ian King <email address hidden> wrote:
>
> @Kyle, is this still an issue? I'm not sure about the fix, as it seems
> to be in the current Xenial ZFS, so it should have addressed the issue
> for you.
>
> ** Changed in: zfs-linux (Ubuntu)
> Status: Confirmed => Incomplete
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1575921
>
> Title:
> Cannot create zpool using links in /dev/disk/by-id
>
> Status in Native ZFS for Linux:
> Unknown
> Status in zfs-linux package in Ubuntu:
> Incomplete
>
> Bug description:
> ZoL issue: https://github.com/zfsonlinux/zfs/issues/3708
>
> I see this issue on Ubuntu 16.04 server; creating a zpool using
> /dev/disk/by-id labels fail with error 'no such pool or dataset'. The
> problem also happens when uzing zpool attach to attach a drive to a
> single disk pool to create a mirror when using /dev/disk/by-id labels.
>
> $ sudo zpool attach storage ata-WDC_WD30EFRX-68EUZN0_WD-WCC4NPDEFNLP ata-WDC_WD30EFRX-68AX9N0_WD-WCC1T0879632
> cannot attach ata-WDC_WD30EFRX-68AX9N0_WD-WCC1T0879632 to ata-WDC_WD30EFRX-68EUZN0_WD-WCC4NPDEFNLP: no such pool or dataset
>
> Using /dev/sdx labels works as a workaround.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/zfs/+bug/1575921/+subscriptions

Changed in zfs:
status: Unknown → Fix Released
Changed in zfs-linux (Ubuntu):
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.