]> git.proxmox.com Git - mirror_zfs.git/blob - tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/zpool_upgrade.cfg
Add the ZFS Test Suite
[mirror_zfs.git] / tests / zfs-tests / tests / functional / cli_root / zpool_upgrade / zpool_upgrade.cfg
1 #
2 # CDDL HEADER START
3 #
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
7 #
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
12 #
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 #
19 # CDDL HEADER END
20 #
21
22 #
23 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
24 # Use is subject to license terms.
25 #
26
27 #
28 # Copyright (c) 2012 by Delphix. All rights reserved.
29 # Copyright 2015 Nexenta Systems, Inc. All rights reserved.
30 #
31
32 # The following variable names describe files, stored as gzip compressed files
33 # in the test directory which can be used to construct a pool of a given
34 # version. The variable names are important, in that the construction
35 # ZPOOL_VERSION_$var_FILES describes the files the pool is made from, and
36 # ZPOOL_VERSION_$var_NAME describes the pool name.
37
38 # v1 pools
39 ZPOOL_VERSION_1_FILES="zfs-pool-v1.dat"
40 ZPOOL_VERSION_1_NAME="v1-pool"
41 # v1 stripe
42 ZPOOL_VERSION_1stripe_FILES="zfs-pool-v1stripe1.dat \
43 zfs-pool-v1stripe2.dat zfs-pool-v1stripe3.dat"
44 ZPOOL_VERSION_1stripe_NAME="pool-v1stripe"
45 # v1 raidz
46 ZPOOL_VERSION_1raidz_FILES="zfs-pool-v1raidz1.dat zfs-pool-v1raidz2.dat \
47 zfs-pool-v1raidz3.dat"
48 ZPOOL_VERSION_1raidz_NAME="pool-v1raidz"
49 # v1 mirror
50 ZPOOL_VERSION_1mirror_FILES="zfs-pool-v1mirror1.dat zfs-pool-v1mirror2.dat \
51 zfs-pool-v1mirror3.dat"
52 ZPOOL_VERSION_1mirror_NAME="pool-v1mirror"
53
54 # v2 pools
55 ZPOOL_VERSION_2_FILES="zfs-pool-v2.dat"
56 ZPOOL_VERSION_2_NAME="v2-pool"
57 # v2 stripe
58 ZPOOL_VERSION_2stripe_FILES="zfs-pool-v2stripe1.dat zfs-pool-v2stripe2.dat \
59 zfs-pool-v2stripe3.dat"
60 ZPOOL_VERSION_2stripe_NAME="pool-v2stripe"
61 # v2 raidz
62 ZPOOL_VERSION_2raidz_FILES="zfs-pool-v2raidz1.dat zfs-pool-v2raidz2.dat \
63 zfs-pool-v2raidz3.dat"
64 ZPOOL_VERSION_2raidz_NAME="pool-v2raidz"
65 # v2 mirror
66 ZPOOL_VERSION_2mirror_FILES="zfs-pool-v2mirror1.dat zfs-pool-v2mirror2.dat \
67 zfs-pool-v2mirror3.dat"
68 ZPOOL_VERSION_2mirror_NAME="pool-v2mirror"
69
70 # v3 pools
71 ZPOOL_VERSION_3_FILES="zfs-pool-v3.dat"
72 ZPOOL_VERSION_3_NAME="v3-pool"
73 # v3 stripe
74 ZPOOL_VERSION_3stripe_FILES="zfs-pool-v3stripe1.dat zfs-pool-v3stripe2.dat \
75 zfs-pool-v3stripe3.dat"
76 ZPOOL_VERSION_3stripe_NAME="pool-v3stripe"
77 # v3 raidz
78 ZPOOL_VERSION_3raidz_FILES="zfs-pool-v3raidz1.dat zfs-pool-v3raidz2.dat \
79 zfs-pool-v3raidz3.dat"
80 ZPOOL_VERSION_3raidz_NAME="pool-v3raidz"
81 # v3 mirror
82 ZPOOL_VERSION_3mirror_FILES="zfs-pool-v3mirror1.dat zfs-pool-v3mirror2.dat \
83 zfs-pool-v3mirror3.dat"
84 ZPOOL_VERSION_3mirror_NAME="pool-v3mirror"
85 # v3 raidz2
86 ZPOOL_VERSION_3dblraidz_FILES="zfs-pool-v3raidz21.dat zfs-pool-v3raidz22.dat \
87 zfs-pool-v3raidz23.dat"
88 ZPOOL_VERSION_3dblraidz_NAME="pool-v3raidz2"
89 # v3 hotspares
90 ZPOOL_VERSION_3hotspare_FILES="zfs-pool-v3hotspare1.dat \
91 zfs-pool-v3hotspare2.dat zfs-pool-v3hotspare3.dat"
92 ZPOOL_VERSION_3hotspare_NAME="pool-v3hotspare"
93
94 # v4 pool
95 ZPOOL_VERSION_4_FILES="zfs-pool-v4.dat"
96 ZPOOL_VERSION_4_NAME="v4-pool"
97
98 # v5 pool
99 ZPOOL_VERSION_5_FILES="zfs-pool-v5.dat"
100 ZPOOL_VERSION_5_NAME="v5-pool"
101
102 # v6 pool
103 ZPOOL_VERSION_6_FILES="zfs-pool-v6.dat"
104 ZPOOL_VERSION_6_NAME="v6-pool"
105
106 # v7 pool
107 ZPOOL_VERSION_7_FILES="zfs-pool-v7.dat"
108 ZPOOL_VERSION_7_NAME="v7-pool"
109
110 # v8 pool
111 ZPOOL_VERSION_8_FILES="zfs-pool-v8.dat"
112 ZPOOL_VERSION_8_NAME="v8-pool"
113
114 # v9 pool
115 ZPOOL_VERSION_9_FILES="zfs-pool-v9.dat"
116 ZPOOL_VERSION_9_NAME="v9-pool"
117
118 # v10 pool
119 ZPOOL_VERSION_10_FILES="zfs-pool-v10.dat"
120 ZPOOL_VERSION_10_NAME="v10-pool"
121
122 # v11 pool
123 ZPOOL_VERSION_11_FILES="zfs-pool-v11.dat"
124 ZPOOL_VERSION_11_NAME="v11-pool"
125
126 # v12 pool
127 ZPOOL_VERSION_12_FILES="zfs-pool-v12.dat"
128 ZPOOL_VERSION_12_NAME="v12-pool"
129
130 # v13 pool
131 ZPOOL_VERSION_13_FILES="zfs-pool-v13.dat"
132 ZPOOL_VERSION_13_NAME="v13-pool"
133
134 # v14 pool
135 ZPOOL_VERSION_14_FILES="zfs-pool-v14.dat"
136 ZPOOL_VERSION_14_NAME="v14-pool"
137
138 # v15 pool
139 ZPOOL_VERSION_15_FILES="zfs-pool-v15.dat"
140 ZPOOL_VERSION_15_NAME="v15-pool"
141
142 # v2 pool, with device problems on one side of the mirror
143 # so that the pool appears as DEGRADED
144 ZPOOL_VERSION_2brokenmirror_FILES="zfs-broken-mirror1.dat \
145 zfs-broken-mirror2.dat"
146 ZPOOL_VERSION_2brokenmirror_NAME="zfs-broken-mirror"
147
148 # v999 pool (an unknown version) which can be used to check whether upgrade,
149 # import or other tests that should fail against unknown pool version.
150 # It should not be listed in the CONFIGS variable below, as these are pool
151 # versions that can be imported and upgraded.
152 ZPOOL_VERSION_9999_FILES="zfs-pool-v999.dat"
153 ZPOOL_VERSION_9999_NAME="v999-pool"
154
155 # This is a list of pool configurations we should be able to upgrade from,
156 # each entry should have corresponding ZPOOL_VERSION_*_FILES and
157 # ZPOOL_VERSION_*_NAME variables defined above.
158 CONFIGS="1 1stripe 1raidz 1mirror \
159 2 2stripe 2raidz 2mirror 2brokenmirror \
160 3 3stripe 3raidz 3mirror 3dblraidz 3hotspare \
161 4 5 6 7 8 9 10 11 12 13 14 15"