Lines Matching defs:pool

206 		return (gettext("\tadd [-fn] <pool> <vdev> ...\n"));
208 return (gettext("\tattach [-f] <pool> <device> "
211 return (gettext("\tclear [-nF] <pool> [device]\n"));
215 "\t [-m mountpoint] [-R root] <pool> <vdev> ...\n"));
217 return (gettext("\tdestroy [-f] <pool>\n"));
219 return (gettext("\tdetach <pool> <device>\n"));
221 return (gettext("\texport [-f] <pool> ...\n"));
223 return (gettext("\thistory [-il] [<pool>] ...\n"));
226 "\timport [-d dir | -c cachefile] [-F [-n]] <pool | id>\n"
233 "\t <pool | id> [newpool]\n"));
235 return (gettext("\tiostat [-v] [-T d|u] [pool] ... [interval "
241 "[-T d|u] [pool] ... [interval [count]]\n"));
243 return (gettext("\toffline [-t] <pool> <device> ...\n"));
245 return (gettext("\tonline [-e] <pool> <device> ...\n"));
247 return (gettext("\treplace [-f] <pool> <device> "
250 return (gettext("\tremove <pool> <device> ...\n"));
252 return (gettext("\treopen <pool>\n"));
254 return (gettext("\tscrub [-s] <pool> ...\n"));
256 return (gettext("\tstatus [-vx] [-T d|u] [pool] ... [interval "
260 "\tupgrade [-V version] <-a | pool ...>\n"));
263 "<\"all\" | property[,...]> <pool> ...\n"));
265 return (gettext("\tset <property=value> <pool> \n"));
268 "\t [-o property=value] <pool> <newpool> "
271 return (gettext("\treguid <pool>\n"));
280 * Callback routine that will print out a pool property value.
434 "not a valid pool property\n"), propname);
482 * zpool add [-fn] <pool> <vdev> ...
488 * Adds the given vdevs to 'pool'. As with create, the bulk of this work is
523 /* get pool name and check number of arguments */
525 (void) fprintf(stderr, gettext("missing pool name argument\n"));
542 (void) fprintf(stderr, gettext("pool '%s' is unavailable\n"),
565 /* print original main pool and new tree */
589 * zpool remove <pool> <vdev> ...
591 * Removes the given vdev from the pool. Currently, this supports removing
592 * spares, cache, and log devices from the pool.
604 /* get pool name and check number of arguments */
606 (void) fprintf(stderr, gettext("missing pool name argument\n"));
676 gettext("Unable to determine pool state for %s\n"
690 "\tVdev %s is a member (%s), of pool \"%s\".\n"
692 "\tthe pool, or remove %s from the configuration of this pool\n"
704 "\tVdev %s is a member of the exported pool \"%s\".\n"
717 "\tVdev %s is a member of the pool \"%s\".\n"
718 "\tThis pool is unknown to this system, but may be active on\n"
726 /* inuse should never be set for a destoryed pool... */
749 * [-R root] [-m mountpoint] <pool> <dev> ...
752 * -n Do not create the pool, but display the resulting layout if it
754 * -R Create a pool under an alternate root
756 * '/<pool>'
758 * -d Don't automatically enable all supported pool features
760 * -O Set fsproperty=value in the pool's root file system
762 * Creates the named pool according to the given vdev specification. The
825 * If the user is creating a pool that doesn't support
877 /* get pool name and check number of arguments */
879 (void) fprintf(stderr, gettext("missing pool name argument\n"));
895 "character '/' in pool name\n"), poolname);
981 * the property is set appropriately prior to creating the pool.
1035 zfs_handle_t *pool = zfs_open(g_zfs, poolname,
1037 if (pool != NULL) {
1038 if (zfs_mount(pool, NULL, 0) == 0)
1039 ret = zfs_shareall(pool);
1040 zfs_close(pool);
1043 (void) fprintf(stderr, gettext("pool name may have "
1061 * zpool destroy <pool>
1065 * Destroy the given pool. Automatically unmounts any datasets in the pool.
1072 char *pool;
1094 (void) fprintf(stderr, gettext("missing pool argument\n"));
1102 pool = argv[0];
1104 if ((zhp = zpool_open_canfail(g_zfs, pool)) == NULL) {
1109 if (strchr(pool, '/') != NULL)
1132 * zpool export [-f] <pool> ...
1137 * unmount any active datasets within the pool. If the '-f' flag is specified,
1171 (void) fprintf(stderr, gettext("missing pool argument\n"));
1385 "pool '%s'"),
1410 (void) printf(gettext("split into new pool"));
1456 * Print the configuration of an exported pool. Iterate over all vdevs in the
1457 * pool, printing out the name and status for each one.
1553 * Logs are recorded as top level vdevs in the main pool child array
1590 * Display the status for the given pool.
1622 (void) printf(gettext(" pool: %s\n"), name);
1645 gettext(" status: The pool data is corrupted.\n"));
1654 (void) printf(gettext(" status: The pool metadata is "
1659 (void) printf(gettext(" status: The pool is formatted using a "
1664 (void) printf(gettext(" status: The pool is formatted using an "
1670 "not enabled on the pool.\n"));
1674 (void) printf(gettext("status: The pool uses the following "
1680 (void) printf(gettext("status: The pool can only be accessed "
1688 (void) printf(gettext(" status: The pool was last accessed by "
1722 * Print out an action according to the overall state of the pool.
1727 (void) printf(gettext(" action: The pool can be "
1732 (void) printf(gettext(" action: The pool can be "
1736 (void) printf(gettext(" action: The pool can be "
1741 (void) printf(gettext(" action: The pool can be imported "
1743 "tolerance of the pool may be compromised if imported.\n"));
1747 (void) printf(gettext(" action: The pool cannot be "
1748 "imported. Access the pool on a system running "
1749 "newer\n\tsoftware, or recreate the pool from "
1753 (void) printf(gettext("action: The pool cannot be "
1754 "imported. Access the pool on a system that "
1756 "the pool from backup.\n"));
1759 (void) printf(gettext("action: The pool cannot be "
1760 "imported in read-write mode. Import the pool "
1762 "\t\"-o readonly=on\", access the pool on a system "
1764 "recreate the pool from backup.\n"));
1769 (void) printf(gettext(" action: The pool cannot be "
1774 (void) printf(gettext(" action: The pool cannot be "
1779 /* Print the comment attached to the pool. */
1791 (void) printf(gettext("\tThe pool was destroyed, "
1794 (void) printf(gettext("\tThe pool may be active on "
1815 "be part of this pool, though their\n\texact "
1823 * within the pool.
1842 (void) fprintf(stderr, gettext("cannot import '%s': pool "
1862 "'%s': pool may be in use from other "
1873 "pool may be in use from other system\n"), name);
1905 * [-d dir | -c cachefile] [-f] [-n] [-F] <pool | id> [newpool]
1907 * -c Read pool information from a cachefile instead of searching
1916 * -R Temporarily import the pool, with all mountpoints relative to
1917 * the given root. The pool will remain exported when the machine
1922 * treats the pool configuration as complete, leaving any bad
1926 * -f Force import, even if it appears that the pool is active.
1932 * -N Import the pool but don't mount datasets.
1941 * The import command scans for pools to import, and import pools based on pool
1942 * name and GUID. The pool can also be renamed as part of the import process.
2131 * <id> Find the pool that corresponds to the given GUID/pool
2165 "a pool with that name already exists\n"),
2168 "<pool | id> <newpool>' to give it a new name\n"),
2173 "a pool with that name is already created/imported,\n"),
2181 "no such pool available\n"), argv[0]);
2194 * we were searching by pool name or guid, we still need to
2195 * post-process the list to deal with pool state and possible
2231 * We are searching for a pool based on name.
2240 "one matching pool\n"), searchname);
2251 * Search for a pool by guid.
2262 * If we were searching for a specific pool, verify that we found a
2263 * pool, and then do the import.
2268 "no such pool available\n"), argv[0]);
2316 cb->cb_namewidth, "pool");
2335 * is a verbose output, and we don't want to display the toplevel pool stats.
2479 * If the pool has disappeared, remove it from the list and continue.
2491 * Callback to print out the iostats for the given pool.
2515 * Print out the statistics for the pool.
2564 * Determine if the last argument is an integer or a pool name
2636 * zpool iostat [-v] [-T d|u] [pool] ... [interval [count]]
2641 * This command can be tricky because we want to be able to deal with pool
2720 * for the pool / device name column across all pools.
2737 * If there's more than one pool, and we're not in verbose mode
2828 * Given a pool and a list of properties, print out all the properties according
3046 * Generic callback function to list a pool.
3069 * zpool list [-Hp] [-o prop[,prop]*] [-T d|u] [pool] ... [interval [count]]
3227 /* get pool name and check number of arguments */
3229 (void) fprintf(stderr, gettext("missing pool name argument\n"));
3267 (void) fprintf(stderr, gettext("pool '%s' is unavailable\n"),
3289 * zpool replace [-f] <pool> <device> <new_device>
3303 * zpool attach [-f] <pool> <device> <new_device>
3319 * zpool detach [-f] <pool> <device>
3351 /* get pool name and check number of arguments */
3353 (void) fprintf(stderr, gettext("missing pool name argument\n"));
3379 * [-R altroot] <pool> <newpool> [<device> ...]
3381 * -n Do not split the pool, but display the resulting layout if
3384 * -R Mount the split-off pool under an alternate root.
3386 * Splits the named pool and gives it the new pool name. Devices to be split
3388 * per top-level vdev mirror. The newly split pool is left in an exported
3391 * Restrictions: the top-level of the pool pool must only be made up of
3392 * mirrors; all devices in the pool must be healthy; no device may be
3453 "valid when importing the pool\n"));
3461 (void) fprintf(stderr, gettext("Missing pool name\n"));
3465 (void) fprintf(stderr, gettext("Missing new pool name\n"));
3497 * pool and import it.
3517 * zpool online <pool> <device> ...
3546 /* get pool name and check number of arguments */
3548 (void) fprintf(stderr, gettext("missing pool name\n"));
3587 * zpool offline [-ft] <pool> <device> ...
3590 * so would appear to compromise pool availability.
3623 /* get pool name and check number of arguments */
3625 (void) fprintf(stderr, gettext("missing pool name\n"));
3649 * zpool clear <pool> [device]
3651 * Clear all errors associated with a pool or a particular device.
3664 char *pool, *device;
3689 (void) fprintf(stderr, gettext("missing pool name\n"));
3715 pool = argv[0];
3718 if ((zhp = zpool_open_canfail(g_zfs, pool)) == NULL) {
3734 * zpool reguid <pool>
3757 /* get pool name and check number of arguments */
3759 (void) fprintf(stderr, gettext("missing pool name\n"));
3780 * zpool reopen <pool>
3782 * Reopen the pool so that the kernel can update the sizes of all vdevs.
3790 char *pool;
3806 (void) fprintf(stderr, gettext("missing pool name\n"));
3815 pool = argv[0];
3816 if ((zhp = zpool_open_canfail(g_zfs, pool)) == NULL)
3840 (void) fprintf(stderr, gettext("cannot scrub '%s': pool is "
3851 * zpool scrub [-s] <pool> ...
3882 (void) fprintf(stderr, gettext("missing pool name argument\n"));
4094 * If the pool was faulted then we may not have been able to
4122 * Display a summary of pool status. Displays a summary such as:
4124 * pool: tank
4162 (void) printf(gettext("pool '%s' is healthy\n"),
4181 (void) printf(gettext(" pool: %s\n"), zpool_get_name(zhp));
4187 "be opened. Sufficient replicas exist for\n\tthe pool to "
4196 "pool to continue functioning.\n"));
4204 "Sufficient replicas exist for the pool to continue\n\t"
4213 "There are insufficient replicas for the pool to "
4233 "replicas exist for the pool to continue functioning in "
4243 "replicas exist for the pool to continue functioning in "
4252 "currently being resilvered. The pool will\n\tcontinue "
4263 "if possible. Otherwise restore the\n\tentire pool from "
4268 (void) printf(gettext("status: The pool metadata is corrupted "
4269 "and the pool cannot be opened.\n"));
4275 (void) printf(gettext("status: The pool is formatted using a "
4276 "legacy on-disk format. The pool can\n\tstill be used, "
4278 (void) printf(gettext("action: Upgrade the pool using 'zpool "
4285 (void) printf(gettext("status: The pool has been upgraded to a "
4286 "newer, incompatible on-disk version.\n\tThe pool cannot "
4288 (void) printf(gettext("action: Access the pool from a system "
4289 "running more recent software, or\n\trestore the pool from "
4295 "enabled on the pool. The pool can\n\tstill be used, but "
4298 "'zpool upgrade'. Once this is done,\n\tthe pool may no "
4304 (void) printf(gettext("status: The pool cannot be accessed on "
4309 (void) printf(gettext("action: Access the pool from a system "
4311 "pool from backup.\n"));
4315 (void) printf(gettext("status: The pool can only be accessed "
4321 (void) printf(gettext("action: The pool cannot be accessed in "
4322 "read-write mode. Import the pool with\n"
4323 "\t\"-o readonly=on\", access the pool from a system that "
4325 "pool from backup.\n"));
4331 "replicas exist for the pool to continue functioning "
4340 "insufficient replicas for the pool to\n\tcontinue "
4342 (void) printf(gettext("action: Destroy and re-create the pool "
4360 "faulted pool.\n"));
4464 * zpool status [-vx] [-T d|u] [pool] ... [interval [count]]
4663 (void) fprintf(stderr, gettext("cannot upgrade '%s': pool is "
4691 * to log this history once to each pool, and bypass
4715 * to log this history once to each pool, and bypass
4826 "pool may become incompatible with "
4862 (void) fprintf(stderr, gettext("cannot upgrade '%s': pool is "
4930 * zpool upgrade [-V version] <-a | pool ...>
4932 * With no arguments, display downrev'd ZFS pool available for upgrade.
4933 * Individual pools can be upgraded by specifying the pool, and '-a' will
4999 "be used along with a pool name\n"));
5004 (void) printf(gettext("This system supports ZFS pool feature "
5038 (void) printf(gettext(" 6 bootfs pool property\n"));
5077 "pool already has all supported features "
5113 (void) printf(gettext("Every %sfeature flags pool has "
5126 "If you boot from pool '%s', don't forget to update boot code.\n"
5144 * Print out the command history for a specific pool.
5263 * zpool history <pool>
5347 * zpool get [-Hp] [-o "all" | field[,...]] <"all" | property[,...]> <pool> ...
5519 (void) fprintf(stderr, gettext("missing pool name\n"));
5524 (void) fprintf(stderr, gettext("too many pool names\n"));