The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/contrib/openzfs/man/man8/zpool-attach.8

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    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 https://opensource.org/licenses/CDDL-1.0.
   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 .\" Copyright (c) 2007, Sun Microsystems, Inc. All Rights Reserved.
   22 .\" Copyright (c) 2012, 2018 by Delphix. All rights reserved.
   23 .\" Copyright (c) 2012 Cyril Plisko. All Rights Reserved.
   24 .\" Copyright (c) 2017 Datto Inc.
   25 .\" Copyright (c) 2018 George Melikov. All Rights Reserved.
   26 .\" Copyright 2017 Nexenta Systems, Inc.
   27 .\" Copyright (c) 2017 Open-E, Inc. All Rights Reserved.
   28 .\"
   29 .Dd May 15, 2020
   30 .Dt ZPOOL-ATTACH 8
   31 .Os
   32 .
   33 .Sh NAME
   34 .Nm zpool-attach
   35 .Nd attach new device to existing ZFS vdev
   36 .Sh SYNOPSIS
   37 .Nm zpool
   38 .Cm attach
   39 .Op Fl fsw
   40 .Oo Fl o Ar property Ns = Ns Ar value Oc
   41 .Ar pool device new_device
   42 .
   43 .Sh DESCRIPTION
   44 Attaches
   45 .Ar new_device
   46 to the existing
   47 .Ar device .
   48 The existing device cannot be part of a raidz configuration.
   49 If
   50 .Ar device
   51 is not currently part of a mirrored configuration,
   52 .Ar device
   53 automatically transforms into a two-way mirror of
   54 .Ar device
   55 and
   56 .Ar new_device .
   57 If
   58 .Ar device
   59 is part of a two-way mirror, attaching
   60 .Ar new_device
   61 creates a three-way mirror, and so on.
   62 In either case,
   63 .Ar new_device
   64 begins to resilver immediately and any running scrub is cancelled.
   65 .Bl -tag -width Ds
   66 .It Fl f
   67 Forces use of
   68 .Ar new_device ,
   69 even if it appears to be in use.
   70 Not all devices can be overridden in this manner.
   71 .It Fl o Ar property Ns = Ns Ar value
   72 Sets the given pool properties.
   73 See the
   74 .Xr zpoolprops 7
   75 manual page for a list of valid properties that can be set.
   76 The only property supported at the moment is
   77 .Sy ashift .
   78 .It Fl s
   79 The
   80 .Ar new_device
   81 is reconstructed sequentially to restore redundancy as quickly as possible.
   82 Checksums are not verified during sequential reconstruction so a scrub is
   83 started when the resilver completes.
   84 Sequential reconstruction is not supported for raidz configurations.
   85 .It Fl w
   86 Waits until
   87 .Ar new_device
   88 has finished resilvering before returning.
   89 .El
   90 .
   91 .Sh SEE ALSO
   92 .Xr zpool-add 8 ,
   93 .Xr zpool-detach 8 ,
   94 .Xr zpool-import 8 ,
   95 .Xr zpool-initialize 8 ,
   96 .Xr zpool-online 8 ,
   97 .Xr zpool-replace 8 ,
   98 .Xr zpool-resilver 8

Cache object: 9cbf9ad39c8078e35ca11870608e0c94


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.