Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dlangille/1015354c65b4284a981555a17b5463a3 to your computer and use it in GitHub Desktop.
Save dlangille/1015354c65b4284a981555a17b5463a3 to your computer and use it in GitHub Desktop.
This isn't a fun start to Saturday
root@mfsbsd:~ # zpool import -f -R /dst zroot_dst
cannot import 'zroot_dst': I/O error
Destroy and re-create the pool from
a backup source.
Jun 20 11:40:19 mfsbsd kernel: ZFS filesystem version: 5
Jun 20 11:40:19 mfsbsd kernel: ZFS storage pool version: features support (5000)
Jun 20 11:40:22 mfsbsd ZFS[2371]: vdev state changed, pool_guid=$10443359089269485823 vdev_guid=$14936720131378251566
Jun 20 11:40:22 mfsbsd ZFS[2372]: vdev state changed, pool_guid=$10443359089269485823 vdev_guid=$4713809697672316496
Jun 20 11:40:22 mfsbsd ZFS[2373]: vdev state changed, pool_guid=$10443359089269485823 vdev_guid=$14936720131378251566
Jun 20 11:40:22 mfsbsd ZFS[2374]: vdev state changed, pool_guid=$10443359089269485823 vdev_guid=$4713809697672316496
Jun 20 11:40:22 mfsbsd kernel: Solaris: WARNING:
Jun 20 11:40:22 mfsbsd kernel: can't open objset 95, error 5
Jun 20 11:40:22 mfsbsd ZFS[2375]: vdev state changed, pool_guid=$10443359089269485823 vdev_guid=$14936720131378251566
Jun 20 11:40:22 mfsbsd ZFS[2376]: vdev state changed, pool_guid=$10443359089269485823 vdev_guid=$4713809697672316496
Jun 20 11:40:22 mfsbsd ZFS[2377]: vdev state changed, pool_guid=$10443359089269485823 vdev_guid=$14936720131378251566
Jun 20 11:40:22 mfsbsd ZFS[2378]: vdev state changed, pool_guid=$10443359089269485823 vdev_guid=$4713809697672316496
Jun 20 11:40:22 mfsbsd kernel: Solaris: WARNING:
Jun 20 11:40:22 mfsbsd kernel: can't open objset 95, error 5
Jun 20 11:40:22 mfsbsd kernel: GEOM_LABEL
Jun 20 11:40:22 mfsbsd ZFS[2379]: vdev state changed, pool_guid=$10443359089269485823 vdev_guid=$14936720131378251566
Jun 20 11:40:22 mfsbsd kernel: : Cannot create slice 8a57407f-ab1b-11ea-8a52-94de80aad24a.
Jun 20 11:40:22 mfsbsd ZFS[2380]: vdev state changed, pool_guid=$10443359089269485823 vdev_guid=$4713809697672316496
Jun 20 11:40:22 mfsbsd ZFS[2381]: vdev state changed, pool_guid=$10443359089269485823 vdev_guid=$14936720131378251566
Jun 20 11:40:22 mfsbsd ZFS[2382]: vdev state changed, pool_guid=$10443359089269485823 vdev_guid=$4713809697672316496
Jun 20 11:40:22 mfsbsd kernel: Solaris: WARNING:
Jun 20 11:40:22 mfsbsd kernel: can't open objset 95, error 5
@dlangille
Copy link
Author

root@slocumnew:~ # gpart show
=>    40  180208  da0  GPT  (119G) [CORRUPT]
      40     472    1  freebsd-boot  (236K)
     512  179736    2  freebsd-ufs  (88M)

=>       40  488397088  ada0  GPT  (233G)
         40       1024     1  freebsd-boot  (512K)
       1064        984        - free -  (492K)
       2048   41943040     2  freebsd-swap  (20G)
   41945088  446451712     3  freebsd-zfs  (213G)
  488396800        328        - free -  (164K)

=>       40  488397088  ada1  GPT  (233G)
         40       1024     1  freebsd-boot  (512K)
       1064        984        - free -  (492K)
       2048   41943040     2  freebsd-swap  (20G)
   41945088  446451712     3  freebsd-zfs  (213G)
  488396800        328        - free -  (164K)

root@slocumnew:~ # 

@dlangille
Copy link
Author

To fix da0 from above:

root@slocumnew:~ # gpart recover da0
da0 recovered
root@slocumnew:~ # gpart show
=>       40  250068912  da0  GPT  (119G)
         40        472    1  freebsd-boot  (236K)
        512     179736    2  freebsd-ufs  (88M)
     180248  249888704       - free -  (119G)

=>       40  488397088  ada0  GPT  (233G)
         40       1024     1  freebsd-boot  (512K)
       1064        984        - free -  (492K)
       2048   41943040     2  freebsd-swap  (20G)
   41945088  446451712     3  freebsd-zfs  (213G)
  488396800        328        - free -  (164K)

=>       40  488397088  ada1  GPT  (233G)
         40       1024     1  freebsd-boot  (512K)
       1064        984        - free -  (492K)
       2048   41943040     2  freebsd-swap  (20G)
   41945088  446451712     3  freebsd-zfs  (213G)
  488396800        328        - free -  (164K)

root@slocumnew:~ # 

@allanjude
Copy link

zdb -lu /dev/ada0p3

@dlangille
Copy link
Author

Thank you.

I've since wiped those drives, they were the new ones. New ones are in place and now in use. It was much faster this time around now that I 'know' what I'm doing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment