{"action":"reopened","issue":{"url":"https://api.github.com/repos/zfsonlinux/zfs/issues/7352","repository_url":"https://api.github.com/repos/zfsonlinux/zfs","labels_url":"https://api.github.com/repos/zfsonlinux/zfs/issues/7352/labels{/name}","comments_url":"https://api.github.com/repos/zfsonlinux/zfs/issues/7352/comments","events_url":"https://api.github.com/repos/zfsonlinux/zfs/issues/7352/events","html_url":"https://github.com/zfsonlinux/zfs/issues/7352","id":308875502,"node_id":"MDU6SXNzdWUzMDg4NzU1MDI=","number":7352,"title":"autoreplace does not work","user":{"login":"wutaizeng","id":9458625,"node_id":"MDQ6VXNlcjk0NTg2MjU=","avatar_url":"https://avatars3.githubusercontent.com/u/9458625?v=4","gravatar_id":"","url":"https://api.github.com/users/wutaizeng","html_url":"https://github.com/wutaizeng","followers_url":"https://api.github.com/users/wutaizeng/followers","following_url":"https://api.github.com/users/wutaizeng/following{/other_user}","gists_url":"https://api.github.com/users/wutaizeng/gists{/gist_id}","starred_url":"https://api.github.com/users/wutaizeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wutaizeng/subscriptions","organizations_url":"https://api.github.com/users/wutaizeng/orgs","repos_url":"https://api.github.com/users/wutaizeng/repos","events_url":"https://api.github.com/users/wutaizeng/events{/privacy}","received_events_url":"https://api.github.com/users/wutaizeng/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2018-03-27T08:45:57Z","updated_at":"2018-10-02T12:38:21Z","closed_at":null,"author_association":"NONE","body":"<!--\r\nThank you for reporting an issue.\r\n\r\n*IMPORTANT* - Please search our issue tracker *before* making a new issue.\r\nIf you cannot find a similar issue, then create a new issue.\r\nhttps://github.com/zfsonlinux/zfs/issues \r\n\r\n*IMPORTANT* - This issue tracker is for *bugs* and *issues* only.\r\nPlease search the wiki and the mailing list archives before asking \r\nquestions on the mailing list.\r\nhttps://github.com/zfsonlinux/zfs/wiki/Mailing-Lists\r\n\r\nPlease fill in as much of the template as possible.\r\n-->\r\n\r\n### System information\r\n<!--  add version after \"|\" character -->\r\nType                                | Version/Name\r\n  ---                                  |     --- \r\nDistribution Name       | RHEL\r\nDistribution Version    | 7.4\r\nLinux Kernel                 | 3.10.0-693.11.6.el7\r\nArchitecture                 | x86_64\r\nZFS Version                  | 0.7.5\r\nSPL Version                  | 0.7.5\r\n<!-- \r\nCommands to find ZFS/SPL versions:\r\nmodinfo zfs | grep -iw version\r\nmodinfo spl | grep -iw version \r\n-->\r\n\r\n### Describe the problem you're observing\r\n\r\nAuto replace does not work when new disk was pushed.\r\n\r\n### Describe how to reproduce the problem\r\n\r\n1. Enable `autoreplace=on` on the pool, and start `zed` daemon\r\n2. Pull out of a disk from the pool\r\n3. Push a new disk to the same location\r\n\r\n### Include any warning/errors/backtraces from the system logs\r\n<!-- \r\n*IMPORTANT* - Please mark logs and text output from terminal commands \r\nor else Github will not display them correctly. \r\nAn example is provided below.\r\n\r\nExample:\r\n```\r\nthis is an example how log text should be marked (wrap it with ```)\r\n```\r\n-->\r\n\r\nWhen i push the new disk, i can see the kernel report below from `/var/log/message`\r\n\r\n```\r\nMar 27 15:02:02 oss1 kernel: hpsa 0000:04:00.0: Acknowledging event: 0x80000012 (HP SSD Smart Path configuration change)\r\nMar 27 15:02:02 oss1 kernel: hpsa 0000:04:00.0: scsi 1:0:4:0: added Direct-Access     HP       MB4000JVYZC      PHYS DRV SSDSmartPathCap- En- Exp=1\r\nMar 27 15:02:02 oss1 kernel: scsi 1:0:57:0: Direct-Access     HP       MB4000JVYZC      HPD1 PQ: 0 ANSI: 6\r\nMar 27 15:02:02 oss1 kernel: sd 1:0:57:0: Attached scsi generic sg6 type 0\r\nMar 27 15:02:02 oss1 kernel: sd 1:0:57:0: [sde] 7814037168 512-byte logical blocks: (4.00 TB/3.63 TiB)\r\nMar 27 15:02:02 oss1 kernel: sd 1:0:57:0: [sde] 4096-byte physical blocks\r\nMar 27 15:02:02 oss1 kernel: sd 1:0:57:0: [sde] Write Protect is off\r\nMar 27 15:02:02 oss1 kernel: sd 1:0:57:0: [sde] Write cache: disabled, read cache: enabled, supports DPO and FUA\r\nMar 27 15:02:02 oss1 kernel: sd 1:0:57:0: [sde] Attached SCSI disk\r\n```\r\n\r\nand the `zpool` status has not changed when push new disk\r\n\r\n```\r\n[root@oss1 ~]# zpool status -x\r\n  pool: share-ost0pool\r\n state: DEGRADED\r\nstatus: One or more devices has been removed by the administrator.\r\n\tSufficient replicas exist for the pool to continue functioning in a\r\n\tdegraded state.\r\naction: Online the device using 'zpool online' or replace the device with\r\n\t'zpool replace'.\r\n  scan: resilvered 13.1M in 0h0m with 0 errors on Tue Mar 27 14:32:36 2018\r\nconfig:\r\n\r\n\tNAME                        STATE     READ WRITE CKSUM\r\n\tshare-ost0pool              DEGRADED     0     0     0\r\n\t  raidz2-0                  DEGRADED     0     0     0\r\n\t    wwn-0x5000c500946466a3  ONLINE       0     0     0\r\n\t    wwn-0x5000c50094646f8f  ONLINE       0     0     0\r\n\t    wwn-0x5000c50094653f07  ONLINE       0     0     0\r\n\t    wwn-0x5000c500946554f3  ONLINE       0     0     0\r\n\t    wwn-0x5000c500946558c3  ONLINE       0     0     0\r\n\t    wwn-0x5000c500946561e3  REMOVED      0     0     0\r\n\t    wwn-0x5000c50094656253  ONLINE       0     0     0\r\n\t    wwn-0x5000c50094656733  ONLINE       0     0     0\r\n\t    wwn-0x5000c500946a5a13  ONLINE       0     0     0\r\n\t    wwn-0x5000c500946b45ff  ONLINE       0     0     0\r\n\r\nerrors: No known data errors\r\n```"}}
{"actor":{"display_login":"wutaizeng"}}