Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Nov 2020 21:16:06 -0800
From:      David Christensen <dpchrist@holgerdanske.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: "zpool attach" problem
Message-ID:  <6658aa78-6f02-e97e-15f9-5a08c36236d7@holgerdanske.com>
In-Reply-To: <202011200659.0AK6xlWb009163@sdf.org>
References:  <202011200659.0AK6xlWb009163@sdf.org>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
On 2020-11-19 22:59, Scott Bennett via freebsd-questions wrote:
>       I had a pool with two two-way mirrors as the top-level vdevs.  I needed
> to shift some of those partitions by a short distance on the drives, so I
> detached and deleted and rebuilt them one at a time until I hit a snag.  Here
> is the situation.
> 
> Script started on Fri Nov 20 00:40:36 2020
> hellas#	gpart show -l ada2 da0 da1 da2
> =>        40  5860533088  ada2  GPT  (2.7T)
>            40  4294967296     1  WD-WMC130F2V1RN  (2.0T)
>    4294967336    31457496        - free -  (15G)
>    4326424832   125829120    11  zmisc mirror-0 1  (60G)
>    4452253952   209715200    15  bw2-0  (100G)
>    4661969152  1198563976        - free -  (572G)
> 
> =>        34  3907029101  da0  GPT  (1.8T)
>            34          14       - free -  (7.0K)
>            48  3749709824    1  WD  WCC4MH1P7LYS  (1.7T)
>    3749709872    73400320    5  bw1-0  (35G)
>    3823110192        2000       - free -  (1.0M)
>    3823112192    83886080    8  zmisc mirror-1 1  (40G)
>    3906998272       30863       - free -  (15M)
> 
> =>        34  3907029100  da1  GPT  (1.8T)
>            34          14       - free -  (7.0K)
>            48  3749709824    1  Seagate NA5KYLVM  (1.7T)
>    3749709872          16       - free -  (8.0K)
>    3749709888    73400320    5  bw1-1  (35G)
>    3823110208        1984       - free -  (992K)
>    3823112192    83886080    8  zmisc mirror-1 0  (40G)
>    3906998272       30862       - free -  (15M)
> 
> =>        40  3907029088  da2  GPT  (1.8T)
>            40           8       - free -  (4.0K)
>            48  3749709824    1  WD-WCC6N7KD2YAK  (1.7T)
>    3749709872          16       - free -  (8.0K)
>    3749709888    31457280    5  bw0-0  (15G)
>    3781167168        1984       - free -  (992K)
>    3781169152   125829120    8  zmisc mirror-0 0  (60G)
>    3906998272       30856       - free -  (15M)
> 
> hellas#	zpool status zmisc
>    pool: zmisc
>   state: ONLINE
>    scan: resilvered 25.8G in 0 days 00:16:07 with 0 errors on Fri Nov 20 00:10:19 2020
> config:
> 
> 	NAME        STATE     READ WRITE CKSUM
> 	zmisc       ONLINE       0     0     0
> 	  ada2p11   ONLINE       0     0     0
> 	  mirror-1  ONLINE       0     0     0
> 	    da0p8   ONLINE       0     0     0
> 	    da1p8   ONLINE       0     0     0
> 
> errors: No known data errors
> hellas#	zpool attach zmisc ada2p11 da2p8
> cannot attach da2p8 to ada2p11: no such pool or dataset
> hellas#	exit
> exit
> 
> Script done on Fri Nov 20 00:42:33 2020
> 
>       Would somebody please tell me what I am doing wrong here?  Many thanks in
> advance to whoever can help.

It looks like you added the slice ada2p11 to zmisc, rather than the 
mirror ada2p11 da2p8.  If so, these commands could fix things:

     # zpool remove zmisc ada2p11

     # zpool add zmisc mirror ada2p11 da2p8


But, I am confused by your storage architecture.  Why one internal "3 
TB" drive and three external "2 TB" drives?  What is the 2.0T internal 
slice for?  What are the three 1.7 GiB external slices for?  What are 
the bw?-? slices for, and why are they different sizes?  Why are the 
zmisc slices different sizes?  What about ada0 and ada1?  And, do you 
have spaces in your GPT labels?


David


[1] https://docs.oracle.com/cd/E37838_01/html/E61017/remove-devices.html

[2] https://docs.oracle.com/cd/E19253-01/819-5461/gazgw/index.html



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?6658aa78-6f02-e97e-15f9-5a08c36236d7>