[Kernel-packages] [Bug 1581904] Re: File-based pools do not import on boot

2016-05-15 Thread Lisio
It works.

-- 
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/1581904

Title:
  File-based pools do not import on boot

Status in zfs-linux package in Ubuntu:
  Confirmed

Bug description:
  System:

  ubuntu: 16.04
  zfsutils-linux: 0.6.5.6-0ubuntu8

  Create sparse files and create pool:

  root@server:/# fallocate -l 100G /web/lxd/100gb.01
  root@server:/# fallocate -l 100G /web/lxd/100gb.02
  root@server:/# zpool create lxd /web/lxd/100gb.01
  root@server:/# zpool add lxd /web/lxd/100gb.02

  Check:

  root@server:/# zpool list
  NAME   SIZE  ALLOC   FREE  EXPANDSZ   FRAGCAP  DEDUP  HEALTH  ALTROOT
  lxc199G77K   199G - 0% 0%  1.00x  ONLINE  -

  After reboot:

  root@server:/etc/apt# zpool list
  no pools available

  Try to create another pool with that files:

  root@server:/# zpool create lxc /web/lxd/100gb.01 /web/lxd/100gb.02
  invalid vdev specification
  use '-f' to override the following errors:
  /web/lxd/100gb.01 is part of potentially active pool 'lxd'
  /web/lxd/100gb.02 is part of potentially active pool 'lxd'

  ProblemType: Bug
  DistroRelease: Ubuntu 16.04
  Package: zfsutils-linux 0.6.5.6-0ubuntu8
  ProcVersionSignature: Ubuntu 4.4.0-22.39-generic 4.4.8
  Uname: Linux 4.4.0-22-generic x86_64
  NonfreeKernelModules: zfs zunicode zcommon znvpair zavl nvidia_uvm 
nvidia_modeset nvidia
  ApportVersion: 2.20.1-0ubuntu2
  Architecture: amd64
  Date: Sun May 15 05:53:51 2016
  InstallationDate: Installed on 2016-04-21 (23 days ago)
  InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Release amd64 
(20160420.1)
  ProcEnviron:
   LANGUAGE=en_US
   TERM=xterm-256color
   PATH=(custom, no user)
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: zfs-linux
  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/1581904/+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 1581904] Re: File-based pools do not import on boot

2016-05-15 Thread Lisio
I've just added "After=local-fs.target" to /lib/systemd/system/zfs-
import-cache.service and now it starts almost normally. Only once I saw
an error after boot saying that kernel module zfs is not loaded. So,
this is not a good fix, but it shows that an issue is likely to be
connected with some race condition between mounting local filesystems
and zfs.

-- 
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/1581904

Title:
  File-based pools do not import on boot

Status in zfs-linux package in Ubuntu:
  Confirmed

Bug description:
  System:

  ubuntu: 16.04
  zfsutils-linux: 0.6.5.6-0ubuntu8

  Create sparse files and create pool:

  root@server:/# fallocate -l 100G /web/lxd/100gb.01
  root@server:/# fallocate -l 100G /web/lxd/100gb.02
  root@server:/# zpool create lxd /web/lxd/100gb.01
  root@server:/# zpool add lxd /web/lxd/100gb.02

  Check:

  root@server:/# zpool list
  NAME   SIZE  ALLOC   FREE  EXPANDSZ   FRAGCAP  DEDUP  HEALTH  ALTROOT
  lxc199G77K   199G - 0% 0%  1.00x  ONLINE  -

  After reboot:

  root@server:/etc/apt# zpool list
  no pools available

  Try to create another pool with that files:

  root@server:/# zpool create lxc /web/lxd/100gb.01 /web/lxd/100gb.02
  invalid vdev specification
  use '-f' to override the following errors:
  /web/lxd/100gb.01 is part of potentially active pool 'lxd'
  /web/lxd/100gb.02 is part of potentially active pool 'lxd'

  ProblemType: Bug
  DistroRelease: Ubuntu 16.04
  Package: zfsutils-linux 0.6.5.6-0ubuntu8
  ProcVersionSignature: Ubuntu 4.4.0-22.39-generic 4.4.8
  Uname: Linux 4.4.0-22-generic x86_64
  NonfreeKernelModules: zfs zunicode zcommon znvpair zavl nvidia_uvm 
nvidia_modeset nvidia
  ApportVersion: 2.20.1-0ubuntu2
  Architecture: amd64
  Date: Sun May 15 05:53:51 2016
  InstallationDate: Installed on 2016-04-21 (23 days ago)
  InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Release amd64 
(20160420.1)
  ProcEnviron:
   LANGUAGE=en_US
   TERM=xterm-256color
   PATH=(custom, no user)
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: zfs-linux
  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/1581904/+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 1581904] Re: File-based pools do not import on boot

2016-05-15 Thread Lisio
root@server:~# zpool import -c /etc/zfs/zpool.cache -aN
root@server:~# zpool list
NAME   SIZE  ALLOC   FREE  EXPANDSZ   FRAGCAP  DEDUP  HEALTH  ALTROOT
lxd199G   132K   199G - 0% 0%  1.00x  ONLINE  -

/web is a separate filesystem on LVM volume, /web/lxd - is a regular
directory

** Attachment added: "fstab"
   
https://bugs.launchpad.net/ubuntu/+source/zfs-linux/+bug/1581904/+attachment/4663167/+files/fstab

-- 
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/1581904

Title:
  File-based pools do not import on boot

Status in zfs-linux package in Ubuntu:
  Confirmed

Bug description:
  System:

  ubuntu: 16.04
  zfsutils-linux: 0.6.5.6-0ubuntu8

  Create sparse files and create pool:

  root@server:/# fallocate -l 100G /web/lxd/100gb.01
  root@server:/# fallocate -l 100G /web/lxd/100gb.02
  root@server:/# zpool create lxd /web/lxd/100gb.01
  root@server:/# zpool add lxd /web/lxd/100gb.02

  Check:

  root@server:/# zpool list
  NAME   SIZE  ALLOC   FREE  EXPANDSZ   FRAGCAP  DEDUP  HEALTH  ALTROOT
  lxc199G77K   199G - 0% 0%  1.00x  ONLINE  -

  After reboot:

  root@server:/etc/apt# zpool list
  no pools available

  Try to create another pool with that files:

  root@server:/# zpool create lxc /web/lxd/100gb.01 /web/lxd/100gb.02
  invalid vdev specification
  use '-f' to override the following errors:
  /web/lxd/100gb.01 is part of potentially active pool 'lxd'
  /web/lxd/100gb.02 is part of potentially active pool 'lxd'

  ProblemType: Bug
  DistroRelease: Ubuntu 16.04
  Package: zfsutils-linux 0.6.5.6-0ubuntu8
  ProcVersionSignature: Ubuntu 4.4.0-22.39-generic 4.4.8
  Uname: Linux 4.4.0-22-generic x86_64
  NonfreeKernelModules: zfs zunicode zcommon znvpair zavl nvidia_uvm 
nvidia_modeset nvidia
  ApportVersion: 2.20.1-0ubuntu2
  Architecture: amd64
  Date: Sun May 15 05:53:51 2016
  InstallationDate: Installed on 2016-04-21 (23 days ago)
  InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Release amd64 
(20160420.1)
  ProcEnviron:
   LANGUAGE=en_US
   TERM=xterm-256color
   PATH=(custom, no user)
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: zfs-linux
  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/1581904/+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 1581904] Re: File-based pools do not import on boot

2016-05-15 Thread Lisio
But it can be started manually:

root@server:~# systemctl start zfs-import-cache

root@server:~# systemctl status -l zfs-import-cache.service
● zfs-import-cache.service - Import ZFS pools by cache file
   Loaded: loaded (/lib/systemd/system/zfs-import-cache.service; static; vendor 
preset: enabled)
   Active: active (exited) since Sun 2016-05-15 11:34:44 MSK; 10s ago
  Process: 3423 ExecStart=/sbin/zpool import -c /etc/zfs/zpool.cache -aN 
(code=exited, status=0/SUCCESS)
  Process: 3418 ExecStartPre=/sbin/modprobe zfs (code=exited, status=0/SUCCESS)
 Main PID: 3423 (code=exited, status=0/SUCCESS)

May 15 11:34:43 server systemd[1]: Starting Import ZFS pools by cache file...
May 15 11:34:44 server systemd[1]: Started Import ZFS pools by cache file.

root@server:~# zpool list
NAME   SIZE  ALLOC   FREE  EXPANDSZ   FRAGCAP  DEDUP  HEALTH  ALTROOT
lxd199G   115K   199G - 0% 0%  1.00x  ONLINE  -

A couple of days before it worked fine, and I didn't change anything
connected with ZFS, LXC and fstab for weeks.

-- 
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/1581904

Title:
  File-based pools do not import on boot

Status in zfs-linux package in Ubuntu:
  Confirmed

Bug description:
  System:

  ubuntu: 16.04
  zfsutils-linux: 0.6.5.6-0ubuntu8

  Create sparse files and create pool:

  root@server:/# fallocate -l 100G /web/lxd/100gb.01
  root@server:/# fallocate -l 100G /web/lxd/100gb.02
  root@server:/# zpool create lxd /web/lxd/100gb.01
  root@server:/# zpool add lxd /web/lxd/100gb.02

  Check:

  root@server:/# zpool list
  NAME   SIZE  ALLOC   FREE  EXPANDSZ   FRAGCAP  DEDUP  HEALTH  ALTROOT
  lxc199G77K   199G - 0% 0%  1.00x  ONLINE  -

  After reboot:

  root@server:/etc/apt# zpool list
  no pools available

  Try to create another pool with that files:

  root@server:/# zpool create lxc /web/lxd/100gb.01 /web/lxd/100gb.02
  invalid vdev specification
  use '-f' to override the following errors:
  /web/lxd/100gb.01 is part of potentially active pool 'lxd'
  /web/lxd/100gb.02 is part of potentially active pool 'lxd'

  ProblemType: Bug
  DistroRelease: Ubuntu 16.04
  Package: zfsutils-linux 0.6.5.6-0ubuntu8
  ProcVersionSignature: Ubuntu 4.4.0-22.39-generic 4.4.8
  Uname: Linux 4.4.0-22-generic x86_64
  NonfreeKernelModules: zfs zunicode zcommon znvpair zavl nvidia_uvm 
nvidia_modeset nvidia
  ApportVersion: 2.20.1-0ubuntu2
  Architecture: amd64
  Date: Sun May 15 05:53:51 2016
  InstallationDate: Installed on 2016-04-21 (23 days ago)
  InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Release amd64 
(20160420.1)
  ProcEnviron:
   LANGUAGE=en_US
   TERM=xterm-256color
   PATH=(custom, no user)
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: zfs-linux
  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/1581904/+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 1581904] Re: File-based pools do not import on boot

2016-05-15 Thread Lisio
root@server:~# systemctl status -l zfs-import-cache.service
● zfs-import-cache.service - Import ZFS pools by cache file
   Loaded: loaded (/lib/systemd/system/zfs-import-cache.service; static; vendor 
preset: enabled)
   Active: failed (Result: exit-code) since Sun 2016-05-15 11:27:46 MSK; 1min 
18s ago
  Process: 884 ExecStart=/sbin/zpool import -c /etc/zfs/zpool.cache -aN 
(code=exited, status=1/FAILURE)
  Process: 781 ExecStartPre=/sbin/modprobe zfs (code=exited, status=0/SUCCESS)
 Main PID: 884 (code=exited, status=1/FAILURE)

May 15 11:27:46 server systemd[1]: Starting Import ZFS pools by cache file...
May 15 11:27:46 server zpool[884]: cannot import 'lxd': no such pool or dataset
May 15 11:27:46 server zpool[884]: Destroy and re-create the pool from
May 15 11:27:46 server zpool[884]: a backup source.
May 15 11:27:46 server systemd[1]: zfs-import-cache.service: Main process 
exited, code=exited, status=1/FAILURE
May 15 11:27:46 server systemd[1]: Failed to start Import ZFS pools by cache 
file.
May 15 11:27:46 server systemd[1]: zfs-import-cache.service: Unit entered 
failed state.
May 15 11:27:46 server systemd[1]: zfs-import-cache.service: Failed with result 
'exit-code'.

-- 
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/1581904

Title:
  File-based pools do not import on boot

Status in zfs-linux package in Ubuntu:
  Confirmed

Bug description:
  System:

  ubuntu: 16.04
  zfsutils-linux: 0.6.5.6-0ubuntu8

  Create sparse files and create pool:

  root@server:/# fallocate -l 100G /web/lxd/100gb.01
  root@server:/# fallocate -l 100G /web/lxd/100gb.02
  root@server:/# zpool create lxd /web/lxd/100gb.01
  root@server:/# zpool add lxd /web/lxd/100gb.02

  Check:

  root@server:/# zpool list
  NAME   SIZE  ALLOC   FREE  EXPANDSZ   FRAGCAP  DEDUP  HEALTH  ALTROOT
  lxc199G77K   199G - 0% 0%  1.00x  ONLINE  -

  After reboot:

  root@server:/etc/apt# zpool list
  no pools available

  Try to create another pool with that files:

  root@server:/# zpool create lxc /web/lxd/100gb.01 /web/lxd/100gb.02
  invalid vdev specification
  use '-f' to override the following errors:
  /web/lxd/100gb.01 is part of potentially active pool 'lxd'
  /web/lxd/100gb.02 is part of potentially active pool 'lxd'

  ProblemType: Bug
  DistroRelease: Ubuntu 16.04
  Package: zfsutils-linux 0.6.5.6-0ubuntu8
  ProcVersionSignature: Ubuntu 4.4.0-22.39-generic 4.4.8
  Uname: Linux 4.4.0-22-generic x86_64
  NonfreeKernelModules: zfs zunicode zcommon znvpair zavl nvidia_uvm 
nvidia_modeset nvidia
  ApportVersion: 2.20.1-0ubuntu2
  Architecture: amd64
  Date: Sun May 15 05:53:51 2016
  InstallationDate: Installed on 2016-04-21 (23 days ago)
  InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Release amd64 
(20160420.1)
  ProcEnviron:
   LANGUAGE=en_US
   TERM=xterm-256color
   PATH=(custom, no user)
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: zfs-linux
  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/1581904/+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 1581904] Re: Pools get lots on reboot

2016-05-15 Thread Lisio
Also, I get this:

root@server:~# zpool create -o cachefile=/etc/zfs/zpool.cache lxd 
/web/lxd/100gb.01 /web/lxd/100gb.02
root@server:~# zpool list
NAME   SIZE  ALLOC   FREE  EXPANDSZ   FRAGCAP  DEDUP  HEALTH  ALTROOT
lxd199G50K   199G - 0% 0%  1.00x  ONLINE  -
root@server:~# zpool get cachefile lxd
NAME  PROPERTY   VALUE  SOURCE
lxd   cachefile  -  default

Even setting it directly has no effect:

root@server:~# zpool set cachefile=/etc/zfs/zpool.cache lxd
root@server:~# zpool get cachefile lxd
NAME  PROPERTY   VALUE  SOURCE
lxd   cachefile  -  default

-- 
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/1581904

Title:
  File-based pools do not import on boot

Status in zfs-linux package in Ubuntu:
  Confirmed

Bug description:
  System:

  ubuntu: 16.04
  zfsutils-linux: 0.6.5.6-0ubuntu8

  Create sparse files and create pool:

  root@server:/# fallocate -l 100G /web/lxd/100gb.01
  root@server:/# fallocate -l 100G /web/lxd/100gb.02
  root@server:/# zpool create lxd /web/lxd/100gb.01
  root@server:/# zpool add lxd /web/lxd/100gb.02

  Check:

  root@server:/# zpool list
  NAME   SIZE  ALLOC   FREE  EXPANDSZ   FRAGCAP  DEDUP  HEALTH  ALTROOT
  lxc199G77K   199G - 0% 0%  1.00x  ONLINE  -

  After reboot:

  root@server:/etc/apt# zpool list
  no pools available

  Try to create another pool with that files:

  root@server:/# zpool create lxc /web/lxd/100gb.01 /web/lxd/100gb.02
  invalid vdev specification
  use '-f' to override the following errors:
  /web/lxd/100gb.01 is part of potentially active pool 'lxd'
  /web/lxd/100gb.02 is part of potentially active pool 'lxd'

  ProblemType: Bug
  DistroRelease: Ubuntu 16.04
  Package: zfsutils-linux 0.6.5.6-0ubuntu8
  ProcVersionSignature: Ubuntu 4.4.0-22.39-generic 4.4.8
  Uname: Linux 4.4.0-22-generic x86_64
  NonfreeKernelModules: zfs zunicode zcommon znvpair zavl nvidia_uvm 
nvidia_modeset nvidia
  ApportVersion: 2.20.1-0ubuntu2
  Architecture: amd64
  Date: Sun May 15 05:53:51 2016
  InstallationDate: Installed on 2016-04-21 (23 days ago)
  InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Release amd64 
(20160420.1)
  ProcEnviron:
   LANGUAGE=en_US
   TERM=xterm-256color
   PATH=(custom, no user)
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: zfs-linux
  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/1581904/+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 1581904] Re: Pools get lots on reboot

2016-05-15 Thread Lisio
Create pool:

root@server:~# zpool create -o cachefile=/etc/zfs/zpool.cache lxd 
/web/lxd/100gb.01 /web/lxd/100gb.02
root@server:~# zpool list
NAME   SIZE  ALLOC   FREE  EXPANDSZ   FRAGCAP  DEDUP  HEALTH  ALTROOT
lxd199G50K   199G - 0% 0%  1.00x  ONLINE  -

After reboot:

root@server:~# zpool list
no pools available

-- 
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/1581904

Title:
  Pools get lots on reboot

Status in zfs-linux package in Ubuntu:
  Confirmed

Bug description:
  System:

  ubuntu: 16.04
  zfsutils-linux: 0.6.5.6-0ubuntu8

  Create sparse files and create pool:

  root@server:/# fallocate -l 100G /web/lxd/100gb.01
  root@server:/# fallocate -l 100G /web/lxd/100gb.02
  root@server:/# zpool create lxd /web/lxd/100gb.01
  root@server:/# zpool add lxd /web/lxd/100gb.02

  Check:

  root@server:/# zpool list
  NAME   SIZE  ALLOC   FREE  EXPANDSZ   FRAGCAP  DEDUP  HEALTH  ALTROOT
  lxc199G77K   199G - 0% 0%  1.00x  ONLINE  -

  After reboot:

  root@server:/etc/apt# zpool list
  no pools available

  Try to create another pool with that files:

  root@server:/# zpool create lxc /web/lxd/100gb.01 /web/lxd/100gb.02
  invalid vdev specification
  use '-f' to override the following errors:
  /web/lxd/100gb.01 is part of potentially active pool 'lxd'
  /web/lxd/100gb.02 is part of potentially active pool 'lxd'

  ProblemType: Bug
  DistroRelease: Ubuntu 16.04
  Package: zfsutils-linux 0.6.5.6-0ubuntu8
  ProcVersionSignature: Ubuntu 4.4.0-22.39-generic 4.4.8
  Uname: Linux 4.4.0-22-generic x86_64
  NonfreeKernelModules: zfs zunicode zcommon znvpair zavl nvidia_uvm 
nvidia_modeset nvidia
  ApportVersion: 2.20.1-0ubuntu2
  Architecture: amd64
  Date: Sun May 15 05:53:51 2016
  InstallationDate: Installed on 2016-04-21 (23 days ago)
  InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Release amd64 
(20160420.1)
  ProcEnviron:
   LANGUAGE=en_US
   TERM=xterm-256color
   PATH=(custom, no user)
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: zfs-linux
  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/1581904/+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 1581904] [NEW] Pools get lots on reboot

2016-05-14 Thread Lisio
Public bug reported:

System:

ubuntu: 16.04
zfsutils-linux: 0.6.5.6-0ubuntu8

Create sparse files and create pool:

root@server:/# fallocate -l 100G /web/lxd/100gb.01
root@server:/# fallocate -l 100G /web/lxd/100gb.02
root@server:/# zpool create lxd /web/lxd/100gb.01
root@server:/# zpool add lxd /web/lxd/100gb.02

Check:

root@server:/# zpool list
NAME   SIZE  ALLOC   FREE  EXPANDSZ   FRAGCAP  DEDUP  HEALTH  ALTROOT
lxc199G77K   199G - 0% 0%  1.00x  ONLINE  -

After reboot:

root@server:/etc/apt# zpool list
no pools available

Try to create another pool with that files:

root@server:/# zpool create lxc /web/lxd/100gb.01 /web/lxd/100gb.02
invalid vdev specification
use '-f' to override the following errors:
/web/lxd/100gb.01 is part of potentially active pool 'lxd'
/web/lxd/100gb.02 is part of potentially active pool 'lxd'

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: zfsutils-linux 0.6.5.6-0ubuntu8
ProcVersionSignature: Ubuntu 4.4.0-22.39-generic 4.4.8
Uname: Linux 4.4.0-22-generic x86_64
NonfreeKernelModules: zfs zunicode zcommon znvpair zavl nvidia_uvm 
nvidia_modeset nvidia
ApportVersion: 2.20.1-0ubuntu2
Architecture: amd64
Date: Sun May 15 05:53:51 2016
InstallationDate: Installed on 2016-04-21 (23 days ago)
InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.1)
ProcEnviron:
 LANGUAGE=en_US
 TERM=xterm-256color
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: zfs-linux
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: zfs-linux (Ubuntu)
 Importance: Undecided
 Status: New


** Tags: amd64 apport-bug xenial

-- 
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/1581904

Title:
  Pools get lots on reboot

Status in zfs-linux package in Ubuntu:
  New

Bug description:
  System:

  ubuntu: 16.04
  zfsutils-linux: 0.6.5.6-0ubuntu8

  Create sparse files and create pool:

  root@server:/# fallocate -l 100G /web/lxd/100gb.01
  root@server:/# fallocate -l 100G /web/lxd/100gb.02
  root@server:/# zpool create lxd /web/lxd/100gb.01
  root@server:/# zpool add lxd /web/lxd/100gb.02

  Check:

  root@server:/# zpool list
  NAME   SIZE  ALLOC   FREE  EXPANDSZ   FRAGCAP  DEDUP  HEALTH  ALTROOT
  lxc199G77K   199G - 0% 0%  1.00x  ONLINE  -

  After reboot:

  root@server:/etc/apt# zpool list
  no pools available

  Try to create another pool with that files:

  root@server:/# zpool create lxc /web/lxd/100gb.01 /web/lxd/100gb.02
  invalid vdev specification
  use '-f' to override the following errors:
  /web/lxd/100gb.01 is part of potentially active pool 'lxd'
  /web/lxd/100gb.02 is part of potentially active pool 'lxd'

  ProblemType: Bug
  DistroRelease: Ubuntu 16.04
  Package: zfsutils-linux 0.6.5.6-0ubuntu8
  ProcVersionSignature: Ubuntu 4.4.0-22.39-generic 4.4.8
  Uname: Linux 4.4.0-22-generic x86_64
  NonfreeKernelModules: zfs zunicode zcommon znvpair zavl nvidia_uvm 
nvidia_modeset nvidia
  ApportVersion: 2.20.1-0ubuntu2
  Architecture: amd64
  Date: Sun May 15 05:53:51 2016
  InstallationDate: Installed on 2016-04-21 (23 days ago)
  InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Release amd64 
(20160420.1)
  ProcEnviron:
   LANGUAGE=en_US
   TERM=xterm-256color
   PATH=(custom, no user)
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: zfs-linux
  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/1581904/+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