[OpenIndiana-discuss] cleaning out stale entries in zpool cache
George Wilson
george.wilson at delphix.com
Mon Oct 24 15:18:53 UTC 2011
Since these disks are mirrors in your current pool, you could detach them and then try dd-ing over the first megabyte of the disk. This should blow away the partition table. I would verify that you can no longer see the disk by using the 'zdb' command below. Once you're satisfied then you can re-attach it your mirror.
- George
On Oct 24, 2011, at 10:26 AM, Dan Swartzendruber wrote:
> George Wilson wrote:
>> Dan,
>>
>> I suspect that the problem is that your original pool was built using a couple of p0 devices. Can you do a 'zdb -l /dev/rdsk/c0t50014EE204411A53d0p0' and send that output?
>>
> I seem to recall way back I was in fact playing around with 'p0' for some stupid reason. Here you are:
>
> root at nas:~# zdb -l /dev/rdsk/c0t50014EE204411A53d0p0
>
> --------------------------------------------
> LABEL 0
> --------------------------------------------
> failed to unpack label 0
> --------------------------------------------
> LABEL 1
> --------------------------------------------
> failed to unpack label 1
> --------------------------------------------
> LABEL 2
> --------------------------------------------
> version: 15
> name: 'tank'
> state: 1
> txg: 1483
> pool_guid: 2892264051913514813
> hostid: 3835746931
> hostname: 'nas'
> top_guid: 18276335273809533634
> guid: 1797254204209569000
> vdev_tree:
> type: 'raidz'
> id: 0
> guid: 18276335273809533634
> nparity: 1
> metaslab_array: 23
> metaslab_shift: 34
> ashift: 9
> asize: 3200651100160
> is_log: 0
> children[0]:
> type: 'disk'
> id: 0
> guid: 1797254204209569000
> path: '/dev/label/disk1'
> whole_disk: 0
> DTL: 32
> children[1]:
> type: 'disk'
> id: 1
> guid: 15672587174620045917
> path: '/dev/label/disk2'
> whole_disk: 0
> DTL: 31
> children[2]:
> type: 'disk'
> id: 2
> guid: 10581259236987591007
> path: '/dev/label/disk3'
> whole_disk: 0
> DTL: 30
> children[3]:
> type: 'disk'
> id: 3
> guid: 3439542365145273072
> path: '/dev/label/disk4'
> whole_disk: 0
> DTL: 29
> children[4]:
> type: 'disk'
> id: 4
> guid: 8233020508343454683
> path: '/dev/label/disk5'
> whole_disk: 0
> DTL: 28
> --------------------------------------------
> LABEL 3
> --------------------------------------------
> version: 15
> name: 'tank'
> state: 1
> txg: 1483
> pool_guid: 2892264051913514813
> hostid: 3835746931
> hostname: 'nas'
> top_guid: 18276335273809533634
> guid: 1797254204209569000
> vdev_tree:
> type: 'raidz'
> id: 0
> guid: 18276335273809533634
> nparity: 1
> metaslab_array: 23
> metaslab_shift: 34
> ashift: 9
> asize: 3200651100160
> is_log: 0
> children[0]:
> type: 'disk'
> id: 0
> guid: 1797254204209569000
> path: '/dev/label/disk1'
> whole_disk: 0
> DTL: 32
> children[1]:
> type: 'disk'
> id: 1
> guid: 15672587174620045917
> path: '/dev/label/disk2'
> whole_disk: 0
> DTL: 31
> children[2]:
> type: 'disk'
> id: 2
> guid: 10581259236987591007
> path: '/dev/label/disk3'
> whole_disk: 0
> DTL: 30
> children[3]:
> type: 'disk'
> id: 3
> guid: 3439542365145273072
> path: '/dev/label/disk4'
> whole_disk: 0
> DTL: 29
> children[4]:
> type: 'disk'
> id: 4
> guid: 8233020508343454683
> path: '/dev/label/disk5'
> whole_disk: 0
> DTL: 28
>
> _______________________________________________
> OpenIndiana-discuss mailing list
> OpenIndiana-discuss at openindiana.org
> http://openindiana.org/mailman/listinfo/openindiana-discuss
More information about the OpenIndiana-discuss
mailing list