Re: ZFS bug or feature

From: John-Mark Gurney <jmg_at_funkthat.com>
Date: Tue, 22 Apr 2014 09:42:14 -0700
Andrey Fesenko wrote this message on Tue, Apr 22, 2014 at 20:35 +0400:
> On Tue, Apr 22, 2014 at 8:23 PM, Tom Evans <tevans.uk_at_googlemail.com> wrote:
> >
> > I'm confused, what is the bug or feature? Has it added the disk with
> > the wrong label? You can correct that with an zpool export x220pool /
> > zpool import -d /dev/diskid x220pool
> >
> 
> gpart see only one disk ada0 (OCZ), if believe camcontrol ada0
> (Corsair) - OCZ (ada1) why zpool status see two disk and not error
> 
> x220pool - root file system I'm would not like to break it

It sees both disks...  It's just that it used the diskid for your OCZ
via diskid instead of the normal method....  Per your original email:
# camcontrol devlist
<Corsair Neutron SSD M206>         at scbus0 target 0 lun 0 (ada0,pass0)
<OCZ-NOCTI 2.15>                   at scbus1 target 0 lun 0 (ada1,pass1)

# zpool status
[...]
        NAME                                     STATE     READ WRITE CKSUM
        x220pool                                 ONLINE       0     0     0
          mirror-0                               ONLINE       0     0     0
            diskid/DISK-OCZ-J8928HU1G10KR9XMs1a  ONLINE       0     0     0
	    ^^^^^^^^^^^ OCZ ^^^^^^^^^^^^^^^^^^^
            ada0s1a                              ONLINE       0     0     0

# gpart show
=>       63  468862065  ada0  MBR  (224G)
         63  234441585     1  freebsd  (112G)
  234441648  234420480     2  freebsd  (112G)

=>        0  234441585  ada0s1  BSD  (112G)
          0  234441585       1  freebsd-zfs  (112G)

=>       63  234441585  diskid/DISK-OCZ-J8928HU1G10KR9XM  MBR  (112G)
			^^^^^^^^^^^ OCZ ^^^^^^^^^^^^^^^^
         63  234441585                                 1  freebsd
[active]  (112G)

=>        0  234441585  diskid/DISK-OCZ-J8928HU1G10KR9XMs1  BSD  (112G)
			^^^^^^^^^^^ OCZ ^^^^^^^^^^^^^^^^^^
          0  234441585                                   1  freebsd-zfs  (112G)


It's just named a bit differently...  and the other poster showed
how you can work around the diskid thing, though there is a kernel option
to disable diskid's (which would solve the ZFS on root problem) for
all devices.. search the archives as you're not the first one to raise
this issue...

-- 
  John-Mark Gurney				Voice: +1 415 225 5579

     "All that I will do, has been done, All that I have, has not."
Received on Tue Apr 22 2014 - 14:42:15 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:48 UTC