[Kernel-packages] [Bug 1654708] Re: Trying to reinstall ZFS on Xenial. Cannot mount existing zpool with identifier from /mnt/disk/by-id/xxxx

2017-02-06 Thread Michael T.
Some more details


A posix function in kernel has changed between 4.4.0-57 and 4.4.0-59

./linux-headers-4.4.0-53/include/linux/posix_acl.h:extern int 
posix_acl_valid(const struct posix_acl *);
./linux-headers-4.4.0-57/include/linux/posix_acl.h:extern int 
posix_acl_valid(const struct posix_acl *);
./linux-headers-4.4.0-59/include/linux/posix_acl.h:extern int 
posix_acl_valid(struct user_namespace *, const struct posix_acl *);
./linux-headers-4.4.0-62/include/linux/posix_acl.h:extern int 
posix_acl_valid(struct user_namespace *, const struct posix_acl *);


The zfs kernel modul is not updated to match these changes.
see: 
https://fossies.org/diffs/zfs/0.6.5.7_vs_0.6.5.8/module/zfs/zpl_xattr.c-diff.html

I have tried the following:

Replaced all occurrences
   error = posix_acl_valid(acl);
with 
   error = posix_acl_valid(ip, acl);
in file:
/usr/src/zfs-0.6.5.6/module/zfs/zpl_xattr.c

 dkms remove -m zfs -v 0.6.5.6 -k 4.4.0-62-generic
 dkms install --force -m zfs -v 0.6.5.6 -k 4.4.0-62-generic 
does compiles now.

System seems to work.

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to zfs-linux in Ubuntu.
https://bugs.launchpad.net/bugs/1654708

Title:
  Trying to reinstall ZFS on Xenial. Cannot mount existing zpool with
  identifier from /mnt/disk/by-id/

Status in zfs-linux package in Ubuntu:
  Confirmed

Bug description:
  Description:  Ubuntu 16.04.1 LTS
  Release:  16.04

  zfs-dkms 0.6.5.6-0ubuntu15

  I cant mount/install my zpool. so i tried reinstalling zfslinux-utils,
  which gives me three error messages like this: "zfs-mount.service is a
  disabled" or a static unit, not starting it."...

  If something doesn't work I try googling error messages. most answers
  not totally like my problem but related to dkms, so I tried loading
  zfs-dkms and reinstalling zfslinux-utils.

  I created the zpool with id from /mnt/disk/by-id/ - which is zfs good-
  practice. This may be causing problems with the mount. I dont know...

  Cheers.

  ProblemType: Package
  DistroRelease: Ubuntu 16.04
  Package: zfs-dkms 0.6.5.6-0ubuntu15
  ProcVersionSignature: Ubuntu 4.4.0-58.79-generic 4.4.35
  Uname: Linux 4.4.0-58-generic x86_64
  NonfreeKernelModules: zfs zunicode zcommon znvpair zavl
  ApportVersion: 2.20.1-0ubuntu2.4
  Architecture: amd64
  DKMSKernelVersion: 4.4.0-58-generic
  Date: Sat Jan  7 15:58:15 2017
  DuplicateSignature: 
dkms:zfs-dkms:0.6.5.6-0ubuntu15:/var/lib/dkms/zfs/0.6.5.6/build/module/zfs/zpl_xattr.c:1284:12:
 error: too few arguments to function ‘posix_acl_valid’
  InstallationDate: Installed on 2016-12-26 (12 days ago)
  InstallationMedia: Ubuntu 16.04.1 LTS "Xenial Xerus" - Beta amd64 (20161225)
  PackageVersion: 0.6.5.6-0ubuntu15
  RelatedPackageVersions:
   dpkg 1.18.4ubuntu1.1
   apt  1.2.18
  SourcePackage: zfs-linux
  Title: zfs-dkms 0.6.5.6-0ubuntu15: zfs kernel module failed to build
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/zfs-linux/+bug/1654708/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp


[Kernel-packages] [Bug 1654708] Re: Trying to reinstall ZFS on Xenial. Cannot mount existing zpool with identifier from /mnt/disk/by-id/xxxx

2017-01-21 Thread Michael T.
zfs is killed with kernel update in xenial similar as with 14.04:
https://github.com/zfsonlinux/zfs/issues/5408
https://github.com/zfsonlinux/pkg-zfs/issues/219

The 14.04 issue fixed.

when i try to compile 
dkms install -m zfs -v 0.6.5.6 -k 4.4.0-59-generic

then get:

   CC [M]  /var/lib/dkms/zfs/0.6.5.6/build/module/zfs/zpl_xattr.o
 /var/lib/dkms/zfs/0.6.5.6/build/module/zfs/zpl_xattr.c: In function 
'__zpl_xattr_acl_set_access':
 /var/lib/dkms/zfs/0.6.5.6/build/module/zfs/zpl_xattr.c:1284:28: warning: 
passing argument 1 of 'posix_acl_valid' from incompatible pointer type 
[-Wincompatible-pointer-types]
 error = posix_acl_valid(acl);
 ^
 In file included from 
/var/lib/dkms/zfs/0.6.5.6/build/include/linux/vfs_compat.h:204:0,
  from /var/lib/dkms/zfs/0.6.5.6/build/include/sys/zpl.h:37,
  from 
/var/lib/dkms/zfs/0.6.5.6/build/include/sys/zfs_vnops.h:34,
  from 
/var/lib/dkms/zfs/0.6.5.6/build/module/zfs/zpl_xattr.c:81:
 include/linux/posix_acl.h:84:12: note: expected 'struct user_namespace *' but 
argument is of type 'struct posix_acl *'
  extern int posix_acl_valid(struct user_namespace *, const struct posix_acl *);
 ^
 /var/lib/dkms/zfs/0.6.5.6/build/module/zfs/zpl_xattr.c:1284:12: error: too few 
arguments to function 'posix_acl_valid'
 error = posix_acl_valid(acl);
 ^
 In file included from 
/var/lib/dkms/zfs/0.6.5.6/build/include/linux/vfs_compat.h:204:0,
  from /var/lib/dkms/zfs/0.6.5.6/build/include/sys/zpl.h:37,
  from 
/var/lib/dkms/zfs/0.6.5.6/build/include/sys/zfs_vnops.h:34,
  from 
/var/lib/dkms/zfs/0.6.5.6/build/module/zfs/zpl_xattr.c:81:
 include/linux/posix_acl.h:84:12: note: declared here
  extern int posix_acl_valid(struct user_namespace *, const struct posix_acl *);
 ^
 /var/lib/dkms/zfs/0.6.5.6/build/module/zfs/zpl_xattr.c: In function 
'__zpl_xattr_acl_set_default':
 /var/lib/dkms/zfs/0.6.5.6/build/module/zfs/zpl_xattr.c:1323:28: warning: 
passing argument 1 of 'posix_acl_valid' from incompatible pointer type 
[-Wincompatible-pointer-types]
 error = posix_acl_valid(acl);
 ^
 In file included from 
/var/lib/dkms/zfs/0.6.5.6/build/include/linux/vfs_compat.h:204:0,
  from /var/lib/dkms/zfs/0.6.5.6/build/include/sys/zpl.h:37,
  from 
/var/lib/dkms/zfs/0.6.5.6/build/include/sys/zfs_vnops.h:34,
  from 
/var/lib/dkms/zfs/0.6.5.6/build/module/zfs/zpl_xattr.c:81:
 include/linux/posix_acl.h:84:12: note: expected 'struct user_namespace *' but 
argument is of type 'struct posix_acl *'
  extern int posix_acl_valid(struct user_namespace *, const struct posix_acl *);
 ^
 /var/lib/dkms/zfs/0.6.5.6/build/module/zfs/zpl_xattr.c:1323:12: error: too few 
arguments to function 'posix_acl_valid'
 error = posix_acl_valid(acl);
 ^
 In file included from 
/var/lib/dkms/zfs/0.6.5.6/build/include/linux/vfs_compat.h:204:0,
  from /var/lib/dkms/zfs/0.6.5.6/build/include/sys/zpl.h:37,
  from 
/var/lib/dkms/zfs/0.6.5.6/build/include/sys/zfs_vnops.h:34,
  from 
/var/lib/dkms/zfs/0.6.5.6/build/module/zfs/zpl_xattr.c:81:
 include/linux/posix_acl.h:84:12: note: declared here
  extern int posix_acl_valid(struct user_namespace *, const struct posix_acl *);
 ^
 scripts/Makefile.build:258: recipe for target 
'/var/lib/dkms/zfs/0.6.5.6/build/module/zfs/zpl_xattr.o' failed
 make[5]: *** [/var/lib/dkms/zfs/0.6.5.6/build/module/zfs/zpl_xattr.o] Error 1
 scripts/Makefile.build:403: recipe for target 
'/var/lib/dkms/zfs/0.6.5.6/build/module/zfs' failed
 make[4]: *** [/var/lib/dkms/zfs/0.6.5.6/build/module/zfs] Error 2
 Makefile:1420: recipe for target 
'_module_/var/lib/dkms/zfs/0.6.5.6/build/module' failed
 make[3]: *** [_module_/var/lib/dkms/zfs/0.6.5.6/build/module] Error 2
 make[3]: Leaving directory '/usr/src/linux-headers-4.4.0-59-generic'
 Makefile:16: recipe for target 'modules' failed
 make[2]: *** [modules] Error 2
 make[2]: Leaving directory '/var/lib/dkms/zfs/0.6.5.6/build/module'
 Makefile:685: recipe for target 'all-recursive' failed
 make[1]: *** [all-recursive] Error 1
 make[1]: Leaving directory '/var/lib/dkms/zfs/0.6.5.6/build'
 Makefile:556: recipe for target 'all' failed
 make: *** [all] Error 2
DKMSKernelVersion: 4.4.0-59-generic


please fix it.
zfs is basic.



** Bug watch added: Github Issue Tracker for ZFS #5408
   https://github.com/zfsonlinux/zfs/issues/5408

** Bug watch added: github.com/zfsonlinux/pkg-zfs/issues #219
   https://github.com/zfsonlinux/pkg-zfs/issues/219

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to zfs-linux in Ubuntu.
https://bugs.launchpad.net/bugs/1654708

Title:
  Trying to reinstall ZFS on Xenial. Cannot mount existing zpool with
  identifier from /mnt/disk/by-id/

Status in