{"action":"created","issue":{"url":"https://api.github.com/repos/zfsonlinux/zfs/issues/2434","repository_url":"https://api.github.com/repos/zfsonlinux/zfs","labels_url":"https://api.github.com/repos/zfsonlinux/zfs/issues/2434/labels{/name}","comments_url":"https://api.github.com/repos/zfsonlinux/zfs/issues/2434/comments","events_url":"https://api.github.com/repos/zfsonlinux/zfs/issues/2434/events","html_url":"https://github.com/zfsonlinux/zfs/issues/2434","id":36725785,"number":2434,"title":"\"zpool destroy -f\" fails when pool is busy","user":{"login":"FransUrbo","id":572706,"avatar_url":"https://avatars.githubusercontent.com/u/572706?v=3","gravatar_id":"","url":"https://api.github.com/users/FransUrbo","html_url":"https://github.com/FransUrbo","followers_url":"https://api.github.com/users/FransUrbo/followers","following_url":"https://api.github.com/users/FransUrbo/following{/other_user}","gists_url":"https://api.github.com/users/FransUrbo/gists{/gist_id}","starred_url":"https://api.github.com/users/FransUrbo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FransUrbo/subscriptions","organizations_url":"https://api.github.com/users/FransUrbo/orgs","repos_url":"https://api.github.com/users/FransUrbo/repos","events_url":"https://api.github.com/users/FransUrbo/events{/privacy}","received_events_url":"https://api.github.com/users/FransUrbo/received_events","type":"User","site_admin":false},"labels":[{"id":99050,"url":"https://api.github.com/repos/zfsonlinux/zfs/labels/Test%20Suite","name":"Test Suite","color":"d7e102","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/zfsonlinux/zfs/milestones/12","html_url":"https://github.com/zfsonlinux/zfs/milestone/12","labels_url":"https://api.github.com/repos/zfsonlinux/zfs/milestones/12/labels","id":7014,"number":12,"title":"0.8.0","description":"ZFS on Linux v0.8.0 - ZFS+SPL Consolidation\r\n","creator":{"login":"behlendorf","id":148917,"avatar_url":"https://avatars.githubusercontent.com/u/148917?v=3","gravatar_id":"","url":"https://api.github.com/users/behlendorf","html_url":"https://github.com/behlendorf","followers_url":"https://api.github.com/users/behlendorf/followers","following_url":"https://api.github.com/users/behlendorf/following{/other_user}","gists_url":"https://api.github.com/users/behlendorf/gists{/gist_id}","starred_url":"https://api.github.com/users/behlendorf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/behlendorf/subscriptions","organizations_url":"https://api.github.com/users/behlendorf/orgs","repos_url":"https://api.github.com/users/behlendorf/repos","events_url":"https://api.github.com/users/behlendorf/events{/privacy}","received_events_url":"https://api.github.com/users/behlendorf/received_events","type":"User","site_admin":false},"open_issues":81,"closed_issues":32,"state":"open","created_at":"2011-05-03T17:39:03Z","updated_at":"2017-01-24T18:24:44Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2014-06-28T14:06:09Z","updated_at":"2017-01-24T18:24:44Z","closed_at":"2017-01-24T18:24:44Z","body":"Way to reproduce:\n\n```\n#!/bin/sh\n\nrm -f /var/tmp/zfs_test-1\ntruncate -s 25000m /var/tmp/zfs_test-1\n\nzpool create test /var/tmp/zfs_test-1\nzfs create test/test\nzfs set mountpoint=/var/tmp/test test/test\n\ncd /var/tmp/test\nless < /dev/null > /dev/null 2>&1 &\n\nzpool destroy test\nres=$?\necho \"zpool destroy test: '$res'\" ; echo ; zpool list\n\n[ \"$res\" -ne \"0\" ] && zpool destroy -f test\necho \"zpool destroy -f test: '$?'\" ; echo ; zpool list\n```\n\nResults in:\n\n```\n# /tmp/testme.sh\numount: /var/tmp/test: device is busy.\n        (In some cases useful info about processes that use\n         the device is found by lsof(8) or fuser(1))\ncannot unmount '/var/tmp/test': umount failed\ncould not destroy 'test': could not unmount datasets\nzpool destroy test: '1'\n\nNAME   SIZE  ALLOC   FREE    CAP  DEDUP  HEALTH  ALTROOT\ntest  24.4G   256K  24.4G     0%  1.00x  ONLINE  -\numount2: Device or resource busy\numount: /var/tmp/test: device is busy.\n        (In some cases useful info about processes that use\n         the device is found by lsof(8) or fuser(1))\numount2: Device or resource busy\ncannot unmount '/var/tmp/test': umount failed\ncould not destroy 'test': could not unmount datasets\nzpool destroy -f test: '1'\n\nNAME   SIZE  ALLOC   FREE    CAP  DEDUP  HEALTH  ALTROOT\ntest  24.4G   256K  24.4G     0%  1.00x  ONLINE  -\n```\n"},"comment":{"url":"https://api.github.com/repos/zfsonlinux/zfs/issues/comments/274891058","html_url":"https://github.com/zfsonlinux/zfs/issues/2434#issuecomment-274891058","issue_url":"https://api.github.com/repos/zfsonlinux/zfs/issues/2434","id":274891058,"user":{"login":"behlendorf","id":148917,"avatar_url":"https://avatars.githubusercontent.com/u/148917?v=3","gravatar_id":"","url":"https://api.github.com/users/behlendorf","html_url":"https://github.com/behlendorf","followers_url":"https://api.github.com/users/behlendorf/followers","following_url":"https://api.github.com/users/behlendorf/following{/other_user}","gists_url":"https://api.github.com/users/behlendorf/gists{/gist_id}","starred_url":"https://api.github.com/users/behlendorf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/behlendorf/subscriptions","organizations_url":"https://api.github.com/users/behlendorf/orgs","repos_url":"https://api.github.com/users/behlendorf/repos","events_url":"https://api.github.com/users/behlendorf/events{/privacy}","received_events_url":"https://api.github.com/users/behlendorf/received_events","type":"User","site_admin":false},"created_at":"2017-01-24T18:24:44Z","updated_at":"2017-01-24T18:24:44Z","body":"Closing, without directly modifying the Linux kernel this EBUSY behave can't be changed.  Therefore, the ZFS Test Suite is being systematically updated to expect this behavior on Linux.   The helper functions `log_must_retry` and `log_must_busy` have been added to the ZFS Test Suite to simplify updating the necessary test cases.\r\n\r\n@vmorgo rebooting the server shouldn't be required.  If the Linux tools for some reason can't identify all the processes which need to be terminated we could look it providing some tools to make it easier to identify them.  However, let's tackle that as a feature request in a new issue."}}
{"actor":{"display_login":"behlendorf"}}