How do we clear a bogus zpool?
Adam McDougall
mcdouga9 at egr.msu.edu
Wed Aug 21 13:29:08 UTC 2013
On 08/21/13 09:16, Sean Bruno wrote:
> On Wed, 2013-08-21 at 13:38 +0200, Nicolas Rachinsky wrote:
>>> # zpool destroy -f zroot
>>> cannot open 'zroot': no such pool
>>> # zpool clear -F zroot
>>> cannot open 'zroot': no such pool
>>
>> What about zpool export zroot?
>>
>> Nicolas #
>
>
>
> # zpool export zroot
> cannot open 'zroot': no such pool
> #
>
Can you try 'truss zpool import' to see which device it opens just
before printing information about the bogus zpool? It is a bit crude
but it might help narrow down the source.
Example output:
...
open("/dev/da0p3",O_RDONLY,0240726100) = 7 (0x7)
close(7) = 0 (0x0)
__sysctl(0x7fffffff7ba0,0x2,0x7fffffff7bd0,0x7fffffff7c38,0x80146ac28,0x15)
= 0 (0x0)
__sysctl(0x7fffffff7bd0,0x4,0x7fffffff7c84,0x7fffffff7c78,0x0,0x0) = 0 (0x0)
ioctl(3,0xc0185a05 { IORW 0x5a('Z'), 5, 24 },0xffff7c20) ERR#2 'No such
file or directory'
madvise(0x802843000,0x10000,0x5,0x42,0x7fffffff73a0,0xffffffff) = 0 (0x0)
ioctl(3,0xc0185a06 { IORW 0x5a('Z'), 6, 24 },0xffff7ca0) = 0 (0x0)
ioctl(3,0xc0185a06 { IORW 0x5a('Z'), 6, 24 },0xffff7ca0) = 0 (0x0)
open("/dev/gptid/253f5bfa-8005-11e2-8c92-00224d51fa64",O_RDONLY,0240727500)
= 7 (0x7)
close(7) = 0 (0x0)
ioctl(3,0xc0185a05 { IORW 0x5a('Z'), 5, 24 },0xffff7c20) = 0 (0x0)
madvise(0x80288d000,0x10000,0x5,0x8c,0x7fffffff7390,0xffffffff) = 0 (0x0)
open("/dev/gptid/cf8ffb28-d96f-11e0-8255-00224d51fa64",O_RDONLY,0240727500)
= 7 (0x7)
close(7) = 0 (0x0)
ioctl(3,0xc0185a05 { IORW 0x5a('Z'), 5, 24 },0xffff7c20) = 0 (0x0)
madvise(0x80288d000,0x10000,0x5,0x8c,0x7fffffff7390,0xffffffff) = 0 (0x0)
__sysctl(0x7fffffff94f0,0x2,0x7fffffff94e0,0x7fffffff94e8,0x0,0x0) = 0 (0x0)
fstat(1,{ mode=crw--w---- ,inode=212,size=0,blksize=4096 }) = 0 (0x0)
ioctl(1,TIOCGETA,0xffff8fd0) = 0 (0x0)
pool: cruzerfit
write(1," pool: cruzerfit\n",19) = 19 (0x13)
id: 14480202155425657121
write(1," id: 14480202155425657121\n",30) = 30 (0x1e)
state: ONLINE
More information about the freebsd-fs
mailing list