/freebsd-13-stable/tests/sys/cddl/zfs/tests/hotspare/ |
H A D | hotspare.kshlib | 78 function setup_hotspares # keyword, spares 82 typeset spares=${@:-${sparedevs[@]}} 88 log_must $ZPOOL add -f "$TESTPOOL" spare $spares 89 log_must iscontained "$TESTPOOL" "$spares" 101 function iterate_over_hotspares # function, spares 104 typeset spares=${2:-${sparedevs[@]}} 106 for spare in $spares
|
/freebsd-13-stable/sys/contrib/openzfs/tests/zfs-tests/tests/functional/redundancy/ |
H A D | redundancy_draid_spare1.ksh | 28 # Verify resilver to dRAID distributed spares. 34 # - has N distributed spares to replace all faulted vdevs 41 log_assert "Verify resilver to dRAID distributed spares" 62 spares=$(random_int_between $parity 3) 65 (( min_children = (data + parity + spares) )) 68 draid="draid${parity}:${data}d:${children}c:${spares}s" 73 while [[ $i -lt $spares ]]; do 98 log_pass "Verify resilver to dRAID distributed spares"
|
H A D | redundancy_draid_spare2.ksh | 27 # Verify multiple dRAID spares can be used. 31 # 2. Engage 3 distributed spares and verify the pool 37 log_assert "Verify multiple dRAID spares" 42 spares=3 45 draid="draid${parity}:${data}d:${children}c:${spares}s" 80 log_pass "Verify multiple dRAID spares"
|
H A D | redundancy_draid_spare3.ksh | 27 # Verify dRAID resilver to traditional and distributed spares for 33 # sustain 1 failure and has 5 distributed spares. 36 # spares to test resilving in common pool states. 70 spares=5 73 draid="draid${parity}:${data}d:${children}c:${spares}s" 78 # Perform a variety of replacements to normal and distributed spares 103 # spares 193 log_pass "Verify resilver to dRAID distributed spares"
|
/freebsd-13-stable/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_create/ |
H A D | zpool_create_draid_003_pos.ksh | 30 # Verify allowed striped widths (data+parity) and hot spares may be 57 spares=$(random_int_between 0 3) 60 (( min_children = (data + parity + spares) )) 63 draid="draid${parity}:${data}d:${children}c:${spares}s" 101 # Spares are limited: spares < children - (parity + data).
|
/freebsd-13-stable/tests/sys/cddl/zfs/tests/zfsd/ |
H A D | zfsd_hotspare_001_pos.ksh | 42 # 1. Create a storage pool with two hot spares 142 typeset spares="$fail_spare $standby_spare"
|
/freebsd-13-stable/sys/contrib/openzfs/cmd/zed/agents/ |
H A D | zfs_retire.c | 29 * The ZFS retire agent is responsible for managing hot spares across all pools. 31 * pool and look for any hot spares. We iterate over any available hot spares 187 nvlist_t **spares; local 199 * Find out if there are any hot spares available in the pool. 202 &spares, &nspares) != 0) 225 if (nvlist_lookup_string(spares[s], ZPOOL_CONFIG_PATH, 229 /* prefer sequential resilvering for distributed spares */ 230 if ((nvlist_lookup_string(spares[s], ZPOOL_CONFIG_TYPE, 236 (void) nvlist_add_uint64(spares[ [all...] |
/freebsd-13-stable/lib/libc/db/hash/ |
H A D | hash.h | 86 int32_t spares[NCACHED];/* spare pages for overflow */ member in struct:hashhdr 287 #define SPARES hdr.spares
|
H A D | hash.c | 400 "spares[%d] = %d\n", i, hashp->SPARES[i]); 934 P_32_COPY(srcp->spares[i], destp->spares[i]); 965 M_32_SWAP(hdrp->spares[i]);
|
/freebsd-13-stable/sys/contrib/openzfs/cmd/zpool/ |
H A D | zpool_vdev.c | 41 * Hot spares 48 * Hot spares are a special case, and passed down as an array of disk vdevs, at 149 * Allow hot spares to be shared between pools. 218 nvlist_t **spares; local 250 &spares, &nspares) == 0) { 252 verify(nvlist_lookup_uint64(spares[i], 316 gettext("cannot open '%s': dRAID spares can only " 816 * for spares there may be no children, and therefore no 1011 * it. Hot spares have already been partitioned and are 1286 * draid[<parity>][:<data><d|D>][:<children><c|C>][:<spares>< 1448 nvlist_t *nvroot, *nv, **top, **spares, **l2cache; local [all...] |
H A D | zpool_main.c | 732 * Print the list of spares for dry runs. 742 (void) printf("\t%*s%s\n", indent, "", "spares"); 1072 /* And finally the spares */ 1558 /* make_root_vdev() allows 0 toplevel children if there are spares */ 2244 * For hot spares, we use the terms 'INUSE' and 'AVAILABLE' for 7969 print_spares(zpool_handle_t *zhp, status_cbdata_t *cb, nvlist_t **spares, argument 7981 name = zpool_vdev_name(g_zfs, zhp, spares[i], 7983 print_status_config(zhp, cb, name, spares[i], 2, B_TRUE, NULL); 8478 nvlist_t **spares, **l2cache; local 8526 &spares, [all...] |
/freebsd-13-stable/cddl/usr.sbin/zfsd/ |
H A D | case_file.cc | 411 /* Try to activate spares if they are available */ 484 nvlist_t **spares; local 516 * Don't activate spares for members of a "replacing" vdev. 527 nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_SPARES, &spares, 530 /* The pool has no spares configured */ 532 "No spares available for pool %s", poolname); 540 if (nvlist_lookup_uint64_array(spares[i], 557 /* No available spares were found */ 561 error = nvlist_lookup_string(spares[i], ZPOOL_CONFIG_PATH, &devPath); 569 error = nvlist_lookup_string(spares[ [all...] |
/freebsd-13-stable/sys/geom/raid/ |
H A D | md_jmicron.c | 1397 int i, spares; local 1441 /* Put spares to their slots. */ 1442 spares = 0; 1447 meta->spare[spares] = pd->pd_disk_id; 1448 if (++spares >= 2)
|
H A D | md_nvidia.c | 1401 int i, spares; local 1475 spares = 0; 1497 pd->pd_meta->disk_number = meta->total_disks + spares++;
|
/freebsd-13-stable/sys/contrib/openzfs/module/zfs/ |
H A D | spa.c | 1728 * Load (or re-load) the current list of vdevs describing the active spares for 1736 nvlist_t **spares; local 1777 ZPOOL_CONFIG_SPARES, &spares, &nspares) == 0); 1788 * structures associated with it: one in the list of spares (used only 1797 VERIFY(spa_config_parse(spa, &vd, spares[i], NULL, 0, 1836 * Recompute the stashed list of spares, with status information 1842 spares = kmem_alloc(spa->spa_spares.sav_count * sizeof (void *), 1845 spares[i] = vdev_config_generate(spa, 1848 ZPOOL_CONFIG_SPARES, spares, spa->spa_spares.sav_count) == 0); 1850 nvlist_free(spares[ 5261 nvlist_t **spares; local 5708 nvlist_t **spares, **l2cache; local 6015 nvlist_t **spares, **l2cache; local 6509 nvlist_t **spares, **l2cache; local [all...] |
H A D | vdev_removal.c | 2204 nvlist_t **spares, **l2cache, *nv; local 2232 ZPOOL_CONFIG_SPARES, &spares, &nspares) == 0 && 2233 (nv = spa_nvlist_lookup_by_guid(spares, nspares, guid)) != NULL) { 2259 ZPOOL_CONFIG_SPARES, spares, nspares, nv);
|
H A D | vdev_draid.c | 56 * virtual distributed spare disks can be created. These spares similarly 86 * data disks (8 data + 1 parity) spares (2) 1379 * Always check groups with active distributed spares 1419 * Always check groups with active distributed spares 1431 * available capacity. Distributed spares are ignored since their capacity 1474 * Open all children, excluding spares. 1500 * First open the normal children then the distributed spares. This 1501 * ordering is important to ensure the distributed spares calculate 1519 * the number of distributed spares rounded down to last full row 1627 * Add virtual dRAID spares t 2658 nvlist_t **spares; local [all...] |
/freebsd-13-stable/sys/contrib/openzfs/lib/libzutil/ |
H A D | zutil_import.c | 462 nvlist_t **spares, **l2cache; local 814 * Go through and update the paths for spares, now that we have 820 &spares, &nspares) == 0) { 822 if (fix_paths(hdl, spares[i], pl->names) != 0)
|
/freebsd-13-stable/sys/contrib/openzfs/lib/libzfs/ |
H A D | libzfs_pool.c | 1241 uint64_t spares, uint64_t children) 1245 (u_longlong_t)children, (u_longlong_t)spares); 1544 nvlist_t **spares, **l2cache; local 1553 &spares, &nspares) == 0) { 1555 "upgraded to add hot spares")); 3356 "dRAID spares can only replace child " 3593 * Unlike cache & spares, slogs are stored in the 3782 "dRAID spares cannot be removed")); 3920 * Don't allow error clearing for hot spares. Do allow 4145 * If it's a dRAID device, we add parity, groups, and spares 1240 zpool_draid_name(char *name, int len, uint64_t data, uint64_t parity, uint64_t spares, uint64_t children) argument [all...] |