Project

General

Profile

Bug #3296

Assertion failed in function zpool_in_use

Added by Piotr Jasiukajtis over 7 years ago. Updated over 7 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
zfs - Zettabyte File System
Start date:
2012-10-23
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:

Description

# uname -a
SunOS openindiana 5.11 oi_151a5 i86pc i386 i86pc Solaris

# zpool remove data1 c2t50015179594D675Fd0p0

# zpool add data1 cache c2t50015179594D675Fd0  
Assertion failed: nvlist_lookup_uint64(config, "guid", &vdev_guid) == 0, file ../common/libzfs_import.c, line 1566, function zpool_in_use
Abort (core dumped)

> $C
080425d8 libc_hwcap1.so.1`_lwp_kill+0x15(1, 6, 80425f8, fee980de)
080425f8 libc_hwcap1.so.1`raise+0x22(6, 0, 8042648, fee6fa9a)
08042648 libc_hwcap1.so.1`abort+0xf2(65737341, 6f697472, 6166206e, 64656c69, 766e203a, 7473696c)
08042858 libc_hwcap1.so.1`_assert_c99+0x85(fee0bbf0, fee0bbd4, 61e, fedd5648)
080428d8 libzfs.so.1`zpool_in_use+0xde(80b4ac8, d, 8042918, 8042914, 804291c, 0)
08042938 libdiskmgt.so.1`inuse_zpool_common+0xbf(80cb4d0, 80b2168, 804297c, fea87be0, fea873c4)
08042958 libdiskmgt.so.1`inuse_active_zpool+0x28(80cb4d0, 80b2168, 804297c, fea6c622)
08042998 libdiskmgt.so.1`add_inuse+0x36(80cb4d0, 80b2168, 0, fea6c39d)
08043238 libdiskmgt.so.1`slice_get_stats+0x73(8154948, 0, 8043378, fea660b1)
08043278 libdiskmgt.so.1`dm_get_stats+0xdd(8154948, 0, 0, 8043378)
080432b8 libdiskmgt.so.1`dm_get_slice_stats+0x4e(80cb260, 8043330, 8043378, fea66bae)
08043358 libdiskmgt.so.1`dm_inuse+0xfa(80cb290, 804337c, 1, 8043378)
08043388 check_slice+0x34(80cb290, 0, 1, 0)
080433c8 check_disk+0xd0(80e3f38, 8154920, 0, 0, 0, 80e3f41)
08043408 check_device+0x7a(80e3f38, 0, 0, 8043430)
08043858 check_in_use+0x2bb(80b2f88, 80e3f90, 0, 0, 0, 8066740)
08043cb8 check_in_use+0x1a2(80b2f88, 80b2b88, 0, 0, 0, 0)
08043cf8 make_root_vdev+0x5f(80b9e08, 0, 1, 0, 0, 2)
08043d58 zpool_do_add+0x162(4, 8047dd4, 8047dd0, 8078800)
08047d98 main+0x158(5, 8047dd0, 8047de8, 8047d8c)
08047dc4 _start+0x7d(5, 8047e90, 8047e96, 8047e9a, 8047ea0, 8047ea6)

History

#2

Updated by Christopher Siden over 7 years ago

Do you know what c2t50015179594D675Fd0 was used for before you tried to add it to the pool.

What does 'zdb -l /dev/dsk/c2t50015179594D675Fd0' (or maybe 'zdb -l /dev/dsk/c2t50015179594D675Fd0s0') return?

#3

Updated by Piotr Jasiukajtis over 7 years ago

Unfortunately I'm unable to reproduce this issue.
Zpool data1 was recreated since then, but I have a history for the old one.
As you can see c2t50015179594D675Fd0 was a cache drive.

# cat zpool_history_data1 | grep zpool
2012-08-14.16:11:12 zpool create data1 raidz c2t5000C50016B27567d0p0 c2t5000C50016C0EEE7d0p0 c2t5000C50016C0FDB3d0p0 c2t5000C50016C1B7EFd0p0 c2t5000C50016C1B88Fd0p0 c2t5000C50016C1B757d0p0 raidz1 c2t5000C50016C13F83d0p0 c2t5000C50016C15B5Bd0p0 c2t5000C50016C15B97d0p0 c2t5000C50016C158A3d0p0 c2t5000C50016C158E3d0p0 c2t5000C50016C263E7d0p0 raidz1 c2t5000C50016C1545Fd0p0 c2t5000C50016C15207d0p0 c2t5000C50016996DF3d0p0 c2t5000C50016996E67d0p0 c2t5000C50016997BEBd0p0 c2t5000C5001699734Bd0p0 log mirror c2t5E83A97E9F1CBDADd0p0 c2t5E83A97EE7A6D0B2d0p0 cache c2t50015179594D675Fd0p0 spare c2t5000C50016927637d0p0
2012-08-23.12:52:44 zpool replace data1 c2t5000C50016B27567d0p0 c2t5000C50016927637d0p0
2012-08-23.13:18:19 zpool offline data1 c2t5000C50016B27567d0p0
2012-08-23.13:19:49 zpool clear data1
2012-08-23.13:52:01 zpool detach data1 c2t5000C50016B27567d0p0
2012-08-23.13:53:10 zpool add data1 spare c2t5000C50016AFEC4Fd0p0
2012-08-23.15:02:45 zpool offline data1 c2t5000C50016C263E7d0p0
2012-08-23.15:02:54 zpool detach data1 c2t5000C50016C263E7d0p0
2012-08-23.17:01:56 zpool add data1 spare c2t5000C50016C263E7d0p0
2012-08-23.17:06:16 zpool clear data1
2012-10-16.13:12:11 zpool scrub data1
2012-10-16.14:12:39 zpool replace data1 c2t5000C50016996DF3d0p0 c2t5000C50016C263E7d0p0
2012-10-16.16:02:26 zpool detach data1 c2t5000C50016996DF3d0p0
2012-10-16.16:04:56 zpool clear data1
2012-10-16.16:05:26 zpool scrub data1
2012-10-19.13:21:22 zpool clear data1 c2t5000C50016C15B97d0p0
2012-10-19.13:22:30 zpool scrub data1
2012-10-19.14:13:44 zpool scrub data1
2012-10-19.16:24:15 zpool scrub -s data1
2012-10-19.16:24:41 zpool online data1 c2t5000C50016C15B97d0p0
2012-10-19.16:28:30 zpool add data1 spare c2t5000C50016B276D3d0p0
2012-10-19.16:29:03 zpool replace data1 c2t5000C50016C15B97d0p0 c2t5000C500169E213Fd0p0
2012-10-22.12:02:19 zpool scrub data1
2012-10-22.13:23:41 zpool scrub data1
2012-10-22.13:54:58 zpool scrub -s data1
2012-10-23.10:48:10 zpool scrub data1
2012-10-23.11:32:57 zpool scrub -s data1
2012-10-23.11:59:00 zpool online data1 c2t5000C50016C15B5Bd0p0
2012-10-23.11:59:05 zpool clear data1 c2t5000C50016C15B5Bd0p0
2012-10-23.11:59:36 zpool online data1 c2t5000C50016C13F83d0p0
2012-10-23.11:59:43 zpool clear data1 c2t5000C50016C13F83d0p0
2012-10-23.12:01:41 zpool replace data1 c2t5000C50016C13F83d0p0 c2t5000C50016B3E627d0
2012-10-23.13:02:35 zpool remove data1 c2t5000C50016B276D3d0p0
2012-10-23.13:02:49 zpool add -f data1 spare c2t5000C50016B276D3d0
2012-10-23.13:03:01 zpool remove data1 c2t50015179594D675Fd0p0
2012-10-23.13:04:05 zpool add data1 cache c2t50015179594D675Fd0p0
2012-10-23.13:04:18 zpool remove data1 c2t50015179594D675Fd0p0
2012-10-23.13:16:46 zpool add data1 cache c2t50015179594D675Fd0p0
2012-10-23.13:20:18 zpool replace data1 c2t5000C50016C15B5Bd0p0 c2t5000C50016B276D3d0
2012-10-23.14:05:55 zpool online data1 c2t5000C50016C15B5Bd0p0
2012-10-23.14:06:00 zpool clear data1 c2t5000C50016C15B5Bd0p0
2012-10-23.14:07:53 zpool online data1 c2t5000C50016C15B5Bd0p0
2012-10-23.14:09:22 zpool scrub data1
2012-10-23.14:09:59 zpool scrub -s data1
2012-10-23.14:10:19 zpool online data1 c2t5000C50016C15B5Bd0p0
2012-10-23.14:11:07 zpool replace data1 c2t5000C50016C15B5Bd0p0 c2t5000C50016A8F57Fd0
2012-10-23.16:33:56 zpool detach data1 c2t5E83A97EE7A6D0B2d0p0
2012-10-23.16:34:44 zpool add data1 cache c2t5E83A97EE7A6D0B2d0
2012-10-23.16:35:36 zpool replace data1 c2t5000C500169E213Fd0p0 c2t5000C50016B276D3d0
2012-10-24.10:12:52 zpool detach data1 c2t5000C500169E213Fd0p0
2012-10-24.10:13:18 zpool add -f data1 spare c2t5000C500169E213Fd0
2012-10-24.10:13:48 zpool remove data1 c2t50015179594D675Fd0p0
2012-10-24.10:14:00 zpool add data1 cache c2t50015179594D675Fd0
2012-10-24.10:14:38 zpool replace data1 c2t5000C50016C158A3d0p0 c2t5000C500169E213Fd0
2012-10-24.10:52:32 zpool detach data1 c2t5000C50016C158A3d0p0
2012-10-24.10:52:42 zpool add data1 spare c2t5000C50016C158A3d0
2012-10-24.10:53:28 zpool replace data1 c2t5000C50016C158E3d0p0 c2t5000C50016C158A3d0
2012-10-24.12:16:43 zpool detach data1 c2t5000C50016C158E3d0p0
2012-10-24.12:16:58 zpool add data1 spare c2t5000C50016C158E3d0
2012-10-24.12:19:13 zpool scrub data1
2012-10-30.09:19:46 zpool replace data1 c2t5000C50016AFEC4Fd0p0 c2t5000C50016C158E3d0
2012-10-30.10:44:33 zpool detach data1 c2t5000C50016AFEC4Fd0p0
2012-10-30.10:47:20 zpool add -f data1 spare c2t5000C50016AFEC4Fd0
2012-10-30.10:47:56 zpool replace data1 c2t5000C50016C1545Fd0p0 c2t5000C50016AFEC4Fd0
2012-10-30.12:51:57 zpool detach data1 c2t5000C50016C1545Fd0p0
2012-10-30.12:52:16 zpool add data1 spare c2t5000C50016C1545Fd0
2012-10-30.12:52:40 zpool replace data1 c2t5000C50016C15207d0p0 c2t5000C50016C1545Fd0
2012-10-30.15:37:15 zpool detach data1 c2t5000C50016C15207d0p0
2012-10-30.15:37:24 zpool add data1 spare c2t5000C50016C15207d0
2012-10-30.15:37:49 zpool replace data1 c2t5000C50016C263E7d0p0 c2t5000C50016C15207d0
2012-10-31.09:10:00 zpool detach data1 c2t5000C50016C263E7d0p0
2012-10-31.09:10:11 zpool add data1 spare c2t5000C50016C263E7d0
2012-10-31.09:10:34 zpool replace data1 c2t5000C50016996E67d0p0 c2t5000C50016C263E7d0
2012-10-31.13:06:32 zpool detach data1 c2t5000C50016996E67d0p0
2012-10-31.13:06:49 zpool add data1 spare c2t5000C50016996E67d0
2012-10-31.13:07:12 zpool replace data1 c2t5000C50016997BEBd0p0 c2t5000C50016996E67d0
2012-10-31.15:30:06 zpool detach data1 c2t5000C50016997BEBd0p0
2012-10-31.15:30:12 zpool add data1 spare c2t5000C50016997BEBd0
2012-10-31.15:30:44 zpool replace data1 c2t5000C5001699734Bd0p0 c2t5000C50016997BEBd0
2012-11-02.10:29:50 zpool detach data1 c2t5000C5001699734Bd0p0
2012-11-02.10:30:01 zpool add data1 spare c2t5000C5001699734Bd0
2012-11-02.10:30:19 zpool replace data1 c2t5000C50016927637d0p0 c2t5000C5001699734Bd0
2012-11-02.14:55:36 zpool detach data1 c2t5000C50016927637d0p0
2012-11-02.14:55:55 zpool add data1 spare c2t5000C50016927637d0
2012-11-02.14:56:25 zpool replace data1 c2t5000C50016C0EEE7d0p0 c2t5000C50016927637d0
2012-11-05.09:22:48 zpool detach data1 c2t5000C50016C0EEE7d0p0
2012-11-05.09:22:59 zpool add data1 spare c2t5000C50016C0EEE7d0
2012-11-05.09:23:25 zpool replace data1 c2t5000C50016C0FDB3d0p0 c2t5000C50016C0EEE7d0
2012-11-05.11:11:00 zpool detach data1 c2t5000C50016C0FDB3d0p0
2012-11-05.11:11:06 zpool add data1 spare c2t5000C50016C0FDB3d0
2012-11-05.11:11:31 zpool replace data1 c2t5000C50016C1B7EFd0p0 c2t5000C50016C0FDB3d0
2012-11-05.13:33:36 zpool detach data1 c2t5000C50016C1B7EFd0p0
2012-11-05.13:33:48 zpool add data1 spare c2t5000C50016C1B7EFd0
2012-11-05.13:34:06 zpool replace data1 c2t5000C50016C1B88Fd0p0 c2t5000C50016C1B7EFd0
2012-11-05.16:05:22 zpool detach data1 c2t5000C50016C1B88Fd0p0
2012-11-05.16:05:32 zpool add data1 spare c2t5000C50016C1B88Fd0
2012-11-05.16:05:53 zpool replace data1 c2t5000C50016C1B757d0p0 c2t5000C50016C1B88Fd0
2012-11-06.11:33:42 zpool detach data1 c2t5000C50016C1B757d0p0
2012-11-06.11:33:53 zpool add data1 spare c2t5000C50016C1B757d0
2012-11-06.12:30:20 zpool remove data1 c2t50015179594D675Fd0
2012-11-06.12:30:37 zpool add data1 cache c2t50015179594D675Fd0p0
2012-11-06.12:30:45 zpool remove data1 c2t50015179594D675Fd0p0
2012-11-06.12:30:50 zpool add data1 cache c2t50015179594D675Fd0
2012-11-06.12:30:58 zpool remove data1 c2t50015179594D675Fd0
2012-11-06.12:31:14 zpool add data1 log c2t50015179594D675Fd0
2012-11-06.12:31:31 zpool remove data1 c2t5E83A97E9F1CBDADd0p0
2012-11-06.12:31:35 zpool add data1 c2t5E83A97E9F1CBDADd0

Also available in: Atom PDF