[Kernel-packages] [Bug 1667838] Re: zpool export mpu1pool cannot export 'mpu1pool': pool is busy

2018-12-26 Thread Colin Ian King
OK, thanks for the update.

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

Title:
  zpool export mpu1pool  cannot export 'mpu1pool': pool is busy

Status in zfs-linux package in Ubuntu:
  Won't Fix

Bug description:
  $ lsb_release -rd
  Description:  Ubuntu 16.04.2 LTS
  Release:  16.04

  Linux 4.4.0-64-generic

  $ apt-cache policy zfsutils-linux
  zfsutils-linux:
Installed: 0.6.5.6-0ubuntu15

  # modinfo zfs |head
  filename:   /lib/modules/4.4.0-64-generic/kernel/zfs/zfs/zfs.ko
  version:0.6.5.6-0ubuntu15

  
  I was not able to unmount a ZFS pool:

  # zpool export mpu1pool 
  cannot export 'mpu1pool': pool is busy

  The filesystems were unmounted and there was nothing that would be blocking 
them FS.
  Neither sync, echo 3 > /proc/sys/vm/drop_caches helped.

  The only way worked to export a ZFS pool was to turn off the SWAP:

  # lsof -Pn |grep -i mpu1
  lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/1000/gvfs
Output information may be incomplete.
  # free -mh
totalusedfree  shared  buff/cache   
available
  Mem:   7.7G5.1G502M837M2.1G
1.0G
  Swap:  8.0G428M7.6G

  # swapoff -a 
  # free -mh
totalusedfree  shared  buff/cache   
available
  Mem:   7.7G1.5G4.8G366M1.4G
5.2G
  Swap:0B  0B  0B

  # zpool export mpu1pool 
  # echo $?
  0
  # swapon -a

  
  It is not obvious that the SWAP has to be freed before one can export ZFS 
pool.
  Would it be possible to improve this situation?

  
  Kind regards,
  Andrey Arapov

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/zfs-linux/+bug/1667838/+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 1667838] Re: zpool export mpu1pool cannot export 'mpu1pool': pool is busy

2018-12-26 Thread Andrey Arapov
Ok, this is not limited to ZFS. So that's solely due to namespace
isolation.

"It's not a bug, it's a feature" (c) :-)

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

Title:
  zpool export mpu1pool  cannot export 'mpu1pool': pool is busy

Status in zfs-linux package in Ubuntu:
  Won't Fix

Bug description:
  $ lsb_release -rd
  Description:  Ubuntu 16.04.2 LTS
  Release:  16.04

  Linux 4.4.0-64-generic

  $ apt-cache policy zfsutils-linux
  zfsutils-linux:
Installed: 0.6.5.6-0ubuntu15

  # modinfo zfs |head
  filename:   /lib/modules/4.4.0-64-generic/kernel/zfs/zfs/zfs.ko
  version:0.6.5.6-0ubuntu15

  
  I was not able to unmount a ZFS pool:

  # zpool export mpu1pool 
  cannot export 'mpu1pool': pool is busy

  The filesystems were unmounted and there was nothing that would be blocking 
them FS.
  Neither sync, echo 3 > /proc/sys/vm/drop_caches helped.

  The only way worked to export a ZFS pool was to turn off the SWAP:

  # lsof -Pn |grep -i mpu1
  lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/1000/gvfs
Output information may be incomplete.
  # free -mh
totalusedfree  shared  buff/cache   
available
  Mem:   7.7G5.1G502M837M2.1G
1.0G
  Swap:  8.0G428M7.6G

  # swapoff -a 
  # free -mh
totalusedfree  shared  buff/cache   
available
  Mem:   7.7G1.5G4.8G366M1.4G
5.2G
  Swap:0B  0B  0B

  # zpool export mpu1pool 
  # echo $?
  0
  # swapon -a

  
  It is not obvious that the SWAP has to be freed before one can export ZFS 
pool.
  Would it be possible to improve this situation?

  
  Kind regards,
  Andrey Arapov

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/zfs-linux/+bug/1667838/+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 1667838] Re: zpool export mpu1pool cannot export 'mpu1pool': pool is busy

2018-12-26 Thread Andrey Arapov
Actually I've just figured why I could not export the pool.
One of my docker containers was using the FS, so I could not see it with the 
"lsof" :/ (mount namespace). I figured when I saw multiple zfs kernel calls 
with bpftrace :-)

I am wondering what would be required for the "zfs unmount -a" to
actually fail when its FS is actually used in some other namespace?

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

Title:
  zpool export mpu1pool  cannot export 'mpu1pool': pool is busy

Status in zfs-linux package in Ubuntu:
  Won't Fix

Bug description:
  $ lsb_release -rd
  Description:  Ubuntu 16.04.2 LTS
  Release:  16.04

  Linux 4.4.0-64-generic

  $ apt-cache policy zfsutils-linux
  zfsutils-linux:
Installed: 0.6.5.6-0ubuntu15

  # modinfo zfs |head
  filename:   /lib/modules/4.4.0-64-generic/kernel/zfs/zfs/zfs.ko
  version:0.6.5.6-0ubuntu15

  
  I was not able to unmount a ZFS pool:

  # zpool export mpu1pool 
  cannot export 'mpu1pool': pool is busy

  The filesystems were unmounted and there was nothing that would be blocking 
them FS.
  Neither sync, echo 3 > /proc/sys/vm/drop_caches helped.

  The only way worked to export a ZFS pool was to turn off the SWAP:

  # lsof -Pn |grep -i mpu1
  lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/1000/gvfs
Output information may be incomplete.
  # free -mh
totalusedfree  shared  buff/cache   
available
  Mem:   7.7G5.1G502M837M2.1G
1.0G
  Swap:  8.0G428M7.6G

  # swapoff -a 
  # free -mh
totalusedfree  shared  buff/cache   
available
  Mem:   7.7G1.5G4.8G366M1.4G
5.2G
  Swap:0B  0B  0B

  # zpool export mpu1pool 
  # echo $?
  0
  # swapon -a

  
  It is not obvious that the SWAP has to be freed before one can export ZFS 
pool.
  Would it be possible to improve this situation?

  
  Kind regards,
  Andrey Arapov

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/zfs-linux/+bug/1667838/+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 1667838] Re: zpool export mpu1pool cannot export 'mpu1pool': pool is busy

2018-12-26 Thread Andrey Arapov
Hum, just came across the same issue again:

# modinfo zfs | head -2
filename:   /lib/modules/4.15.0-43-generic/kernel/zfs/zfs/zfs.ko
version:0.7.5-1ubuntu16.4

# sync
# echo 3 > /proc/sys/vm/drop_caches 
# zfs unmount -a
# swapoff -a
# zpool export WD4Gpool
cannot export 'WD4Gpool': pool is busy

# lsof nor fuser do not show anything related to the WD4Gpool
mountpoints.

# dmsetup table
does not show anything related to ZFS as expected (I do not have the volume 
datasets)

Please re-open this bug.

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

Title:
  zpool export mpu1pool  cannot export 'mpu1pool': pool is busy

Status in zfs-linux package in Ubuntu:
  Won't Fix

Bug description:
  $ lsb_release -rd
  Description:  Ubuntu 16.04.2 LTS
  Release:  16.04

  Linux 4.4.0-64-generic

  $ apt-cache policy zfsutils-linux
  zfsutils-linux:
Installed: 0.6.5.6-0ubuntu15

  # modinfo zfs |head
  filename:   /lib/modules/4.4.0-64-generic/kernel/zfs/zfs/zfs.ko
  version:0.6.5.6-0ubuntu15

  
  I was not able to unmount a ZFS pool:

  # zpool export mpu1pool 
  cannot export 'mpu1pool': pool is busy

  The filesystems were unmounted and there was nothing that would be blocking 
them FS.
  Neither sync, echo 3 > /proc/sys/vm/drop_caches helped.

  The only way worked to export a ZFS pool was to turn off the SWAP:

  # lsof -Pn |grep -i mpu1
  lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/1000/gvfs
Output information may be incomplete.
  # free -mh
totalusedfree  shared  buff/cache   
available
  Mem:   7.7G5.1G502M837M2.1G
1.0G
  Swap:  8.0G428M7.6G

  # swapoff -a 
  # free -mh
totalusedfree  shared  buff/cache   
available
  Mem:   7.7G1.5G4.8G366M1.4G
5.2G
  Swap:0B  0B  0B

  # zpool export mpu1pool 
  # echo $?
  0
  # swapon -a

  
  It is not obvious that the SWAP has to be freed before one can export ZFS 
pool.
  Would it be possible to improve this situation?

  
  Kind regards,
  Andrey Arapov

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/zfs-linux/+bug/1667838/+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 1667838] Re: zpool export mpu1pool cannot export 'mpu1pool': pool is busy

2018-11-09 Thread Andrey Arapov
Hi,

sorry, I have missed your reply of 2018-07-17.

I wanted to highlight that ZFS's export  was blocked until "swapoff -a" 
command was ran.
Then, I have mentioned in the OP that the filesystem was unmounted, hence there 
was no possibility for any file to be opened.

And what information was requested in the comment #1?

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

Title:
  zpool export mpu1pool  cannot export 'mpu1pool': pool is busy

Status in zfs-linux package in Ubuntu:
  Won't Fix

Bug description:
  $ lsb_release -rd
  Description:  Ubuntu 16.04.2 LTS
  Release:  16.04

  Linux 4.4.0-64-generic

  $ apt-cache policy zfsutils-linux
  zfsutils-linux:
Installed: 0.6.5.6-0ubuntu15

  # modinfo zfs |head
  filename:   /lib/modules/4.4.0-64-generic/kernel/zfs/zfs/zfs.ko
  version:0.6.5.6-0ubuntu15

  
  I was not able to unmount a ZFS pool:

  # zpool export mpu1pool 
  cannot export 'mpu1pool': pool is busy

  The filesystems were unmounted and there was nothing that would be blocking 
them FS.
  Neither sync, echo 3 > /proc/sys/vm/drop_caches helped.

  The only way worked to export a ZFS pool was to turn off the SWAP:

  # lsof -Pn |grep -i mpu1
  lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/1000/gvfs
Output information may be incomplete.
  # free -mh
totalusedfree  shared  buff/cache   
available
  Mem:   7.7G5.1G502M837M2.1G
1.0G
  Swap:  8.0G428M7.6G

  # swapoff -a 
  # free -mh
totalusedfree  shared  buff/cache   
available
  Mem:   7.7G1.5G4.8G366M1.4G
5.2G
  Swap:0B  0B  0B

  # zpool export mpu1pool 
  # echo $?
  0
  # swapon -a

  
  It is not obvious that the SWAP has to be freed before one can export ZFS 
pool.
  Would it be possible to improve this situation?

  
  Kind regards,
  Andrey Arapov

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/zfs-linux/+bug/1667838/+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 1667838] Re: zpool export mpu1pool cannot export 'mpu1pool': pool is busy

2018-11-09 Thread Colin Ian King
There has been no reply to this information request in comment #1, so I
am closing this bug. Please re-open it if it still an issue.

** Changed in: zfs-linux (Ubuntu)
   Status: Incomplete => Won't Fix

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

Title:
  zpool export mpu1pool  cannot export 'mpu1pool': pool is busy

Status in zfs-linux package in Ubuntu:
  Won't Fix

Bug description:
  $ lsb_release -rd
  Description:  Ubuntu 16.04.2 LTS
  Release:  16.04

  Linux 4.4.0-64-generic

  $ apt-cache policy zfsutils-linux
  zfsutils-linux:
Installed: 0.6.5.6-0ubuntu15

  # modinfo zfs |head
  filename:   /lib/modules/4.4.0-64-generic/kernel/zfs/zfs/zfs.ko
  version:0.6.5.6-0ubuntu15

  
  I was not able to unmount a ZFS pool:

  # zpool export mpu1pool 
  cannot export 'mpu1pool': pool is busy

  The filesystems were unmounted and there was nothing that would be blocking 
them FS.
  Neither sync, echo 3 > /proc/sys/vm/drop_caches helped.

  The only way worked to export a ZFS pool was to turn off the SWAP:

  # lsof -Pn |grep -i mpu1
  lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/1000/gvfs
Output information may be incomplete.
  # free -mh
totalusedfree  shared  buff/cache   
available
  Mem:   7.7G5.1G502M837M2.1G
1.0G
  Swap:  8.0G428M7.6G

  # swapoff -a 
  # free -mh
totalusedfree  shared  buff/cache   
available
  Mem:   7.7G1.5G4.8G366M1.4G
5.2G
  Swap:0B  0B  0B

  # zpool export mpu1pool 
  # echo $?
  0
  # swapon -a

  
  It is not obvious that the SWAP has to be freed before one can export ZFS 
pool.
  Would it be possible to improve this situation?

  
  Kind regards,
  Andrey Arapov

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/zfs-linux/+bug/1667838/+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 1667838] Re: zpool export mpu1pool cannot export 'mpu1pool': pool is busy

2018-07-17 Thread Colin Ian King
Internally zpool export will call unshare and umount, so a "pool is
busy" indicates that process(es) has/have one or more files open and so
this operation fails.

One can check for these processes using either:

lsof -Pn

or

fuser -vm /poolname

(where poolname is the name of your pool)

and it's worth checking the status of the pool using:

zpool status -v




** Changed in: zfs-linux (Ubuntu)
   Status: In Progress => Incomplete

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

Title:
  zpool export mpu1pool  cannot export 'mpu1pool': pool is busy

Status in zfs-linux package in Ubuntu:
  Incomplete

Bug description:
  $ lsb_release -rd
  Description:  Ubuntu 16.04.2 LTS
  Release:  16.04

  Linux 4.4.0-64-generic

  $ apt-cache policy zfsutils-linux
  zfsutils-linux:
Installed: 0.6.5.6-0ubuntu15

  # modinfo zfs |head
  filename:   /lib/modules/4.4.0-64-generic/kernel/zfs/zfs/zfs.ko
  version:0.6.5.6-0ubuntu15

  
  I was not able to unmount a ZFS pool:

  # zpool export mpu1pool 
  cannot export 'mpu1pool': pool is busy

  The filesystems were unmounted and there was nothing that would be blocking 
them FS.
  Neither sync, echo 3 > /proc/sys/vm/drop_caches helped.

  The only way worked to export a ZFS pool was to turn off the SWAP:

  # lsof -Pn |grep -i mpu1
  lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/1000/gvfs
Output information may be incomplete.
  # free -mh
totalusedfree  shared  buff/cache   
available
  Mem:   7.7G5.1G502M837M2.1G
1.0G
  Swap:  8.0G428M7.6G

  # swapoff -a 
  # free -mh
totalusedfree  shared  buff/cache   
available
  Mem:   7.7G1.5G4.8G366M1.4G
5.2G
  Swap:0B  0B  0B

  # zpool export mpu1pool 
  # echo $?
  0
  # swapon -a

  
  It is not obvious that the SWAP has to be freed before one can export ZFS 
pool.
  Would it be possible to improve this situation?

  
  Kind regards,
  Andrey Arapov

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/zfs-linux/+bug/1667838/+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 1667838] Re: zpool export mpu1pool cannot export 'mpu1pool': pool is busy

2017-05-31 Thread Colin Ian King
** Changed in: zfs-linux (Ubuntu)
   Status: New => In Progress

** Changed in: zfs-linux (Ubuntu)
   Importance: Undecided => Medium

** Changed in: zfs-linux (Ubuntu)
 Assignee: (unassigned) => Colin Ian King (colin-king)

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

Title:
  zpool export mpu1pool  cannot export 'mpu1pool': pool is busy

Status in zfs-linux package in Ubuntu:
  In Progress

Bug description:
  $ lsb_release -rd
  Description:  Ubuntu 16.04.2 LTS
  Release:  16.04

  Linux 4.4.0-64-generic

  $ apt-cache policy zfsutils-linux
  zfsutils-linux:
Installed: 0.6.5.6-0ubuntu15

  # modinfo zfs |head
  filename:   /lib/modules/4.4.0-64-generic/kernel/zfs/zfs/zfs.ko
  version:0.6.5.6-0ubuntu15

  
  I was not able to unmount a ZFS pool:

  # zpool export mpu1pool 
  cannot export 'mpu1pool': pool is busy

  The filesystems were unmounted and there was nothing that would be blocking 
them FS.
  Neither sync, echo 3 > /proc/sys/vm/drop_caches helped.

  The only way worked to export a ZFS pool was to turn off the SWAP:

  # lsof -Pn |grep -i mpu1
  lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/1000/gvfs
Output information may be incomplete.
  # free -mh
totalusedfree  shared  buff/cache   
available
  Mem:   7.7G5.1G502M837M2.1G
1.0G
  Swap:  8.0G428M7.6G

  # swapoff -a 
  # free -mh
totalusedfree  shared  buff/cache   
available
  Mem:   7.7G1.5G4.8G366M1.4G
5.2G
  Swap:0B  0B  0B

  # zpool export mpu1pool 
  # echo $?
  0
  # swapon -a

  
  It is not obvious that the SWAP has to be freed before one can export ZFS 
pool.
  Would it be possible to improve this situation?

  
  Kind regards,
  Andrey Arapov

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/zfs-linux/+bug/1667838/+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