Project

General

Profile

Actions

Bug #5213

closed

panic in metaslab_init due to space_map_open returning ENXIO

Added by Prakash Surya almost 7 years ago. Updated almost 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
zfs - Zettabyte File System
Start date:
2014-10-06
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

I managed to hit the following assertion:

panic message:          
assertion failed: space_map_open(&msp->ms_sm, mos, object, msp->ms_start, msp->ms_size, vd->vdev_ashift, &msp->ms_lock) 0 (0x6 0x0), file: ../../common/fs/zfs/metaslab.c, line: 1408

With the following stack trace:

vpanic()
strlog()
metaslab_init+0x1bb(ffffff04fbbb3980, 2, 43, 0)
vdev_metaslab_init+0x15d(ffffff0510a280c0, 0)
vdev_load+0xd2(ffffff0510a280c0)
vdev_load+0x3b(ffffff0511971900)
spa_load_impl+0xa2f(ffffff051135d000, 7fad683ba845ba11, ffffff04f319f018, 3, 0, 1)
spa_load+0x14e(ffffff051135d000, 3, 0, 1)
spa_tryimport+0xaa(ffffff04fef6d648)
zfs_ioc_pool_tryimport+0x51(ffffff05f44bb000)
zfsdev_ioctl+0x4a7(1900000000, 5a06, 80423ec, 100003, ffffff04f04b4188, ffffff001e91fe68)
cdev_ioctl+0x39(1900000000, 5a06, 80423ec, 100003, ffffff04f04b4188, ffffff001e91fe68)
spec_ioctl+0x60(ffffff04ecbdd140, 5a06, 80423ec, 100003, ffffff04f04b4188, ffffff001e91fe68)
fop_ioctl+0x55(ffffff04ecbdd140, 5a06, 80423ec, 100003, ffffff04f04b4188, ffffff001e91fe68)
ioctl+0x9b(3, 5a06, 80423ec)
_sys_sysenter_post_swapgs+0x149()

I will post a fix to better handle this error case soon.

Actions

Also available in: Atom PDF