Print this page
5882 Temporary pool names
Reviewed by: Matt Ahrens <matt@delphix.com>
Reviewed by: Igor Kozhukhov <igor@dilos.org>
Reviewed by: John Kennedy <john.kennedy@delphix.com>
Approved by: Dan McDonald <danmcd@joyent.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/man/man1m/zpool.1m.man.txt
          +++ new/usr/src/man/man1m/zpool.1m.man.txt
↓ open down ↓ 2 lines elided ↑ open up ↑
   3    3  NAME
   4    4       zpool - configure ZFS storage pools
   5    5  
   6    6  SYNOPSIS
   7    7       zpool -?
   8    8       zpool add [-fn] pool vdev...
   9    9       zpool attach [-f] pool device new_device
  10   10       zpool checkpoint [-d, --discard] pool
  11   11       zpool clear pool [device]
  12   12       zpool create [-dfn] [-B] [-m mountpoint] [-o property=value]...
  13      -           [-O file-system-property=value]... [-R root] pool vdev...
       13 +           [-O file-system-property=value]... [-R root] [-t tempname]
       14 +           pool vdev...
  14   15       zpool destroy [-f] pool
  15   16       zpool detach pool device
  16   17       zpool export [-f] pool...
  17   18       zpool get [-Hp] [-o field[,field]...] all|property[,property]... pool...
  18   19       zpool history [-il] [pool]...
  19   20       zpool import [-D] [-d dir]
  20   21       zpool import -a [-DfmN] [-F [-n]] [-c cachefile|-d dir] [-o mntopts]
  21   22             [-o property=value]... [-R root]
  22      -     zpool import [-Dfm] [-F [-n]] [--rewind-to-checkpoint]
       23 +     zpool import [-Dfmt] [-F [-n]] [--rewind-to-checkpoint]
  23   24             [-c cachefile|-d dir] [-o mntopts] [-o property=value]... [-R root]
  24   25             pool|id [newpool]
  25   26       zpool initialize [-cs] pool [device...]
  26   27       zpool iostat [-v] [-T u|d] [pool]... [interval [count]]
  27   28       zpool labelclear [-f] device
  28   29       zpool list [-Hpv] [-o property[,property]...] [-T u|d] [pool]...
  29   30             [interval [count]]
  30   31       zpool offline [-t] pool device...
  31   32       zpool online [-e] pool device...
  32   33       zpool reguid pool
↓ open down ↓ 500 lines elided ↑ open up ↑
 533  534               -d, --discard
 534  535                       Discards an existing checkpoint from pool.
 535  536  
 536  537       zpool clear pool [device]
 537  538               Clears device errors in a pool.  If no arguments are specified,
 538  539               all device errors within the pool are cleared.  If one or more
 539  540               devices is specified, only those errors associated with the
 540  541               specified device or devices are cleared.
 541  542  
 542  543       zpool create [-dfn] [-B] [-m mountpoint] [-o property=value]... [-O
 543      -             file-system-property=value]... [-R root] pool vdev...
      544 +             file-system-property=value]... [-R root] [-t tempname] pool
      545 +             vdev...
 544  546               Creates a new storage pool containing the virtual devices
 545  547               specified on the command line.  The pool name must begin with a
 546  548               letter, and can only contain alphanumeric characters as well as
 547  549               underscore ("_"), dash ("-"), and period (".").  The pool names
 548  550               mirror, raidz, spare and log are reserved, as are names beginning
 549  551               with the pattern c[0-9].  The vdev specification is described in
 550  552               the Virtual Devices section.
 551  553  
 552  554               The command verifies that each device specified is accessible and
 553  555               not currently in use by another subsystem.  There are some uses,
↓ open down ↓ 49 lines elided ↑ open up ↑
 603  605                       section for a list of valid properties that can be set.
 604  606  
 605  607               -O file-system-property=value
 606  608                       Sets the given file system properties in the root file
 607  609                       system of the pool.  See the Properties section of
 608  610                       zfs(1M) for a list of valid properties that can be set.
 609  611  
 610  612               -R root
 611  613                       Equivalent to -o cachefile=none -o altroot=root
 612  614  
      615 +             -t tempname
      616 +                     Sets the in-core pool name to tempname while the on-disk
      617 +                     name will be the name specified as the pool name pool.
      618 +                     This will set the default cachefile property to none.
      619 +                     This is intended to handle name space collisions when
      620 +                     creating pools for other systems, such as virtual
      621 +                     machines or physical machines whose pools live on network
      622 +                     block devices.
      623 +
 613  624       zpool destroy [-f] pool
 614  625               Destroys the given pool, freeing up any devices for other use.
 615  626               This command tries to unmount any active datasets before
 616  627               destroying the pool.
 617  628  
 618  629               -f      Forces any active datasets contained within the pool to
 619  630                       be unmounted.
 620  631  
 621  632       zpool detach pool device
 622  633               Detaches device from a mirror.  The operation is refused if there
↓ open down ↓ 133 lines elided ↑ open up ↑
 756  767  
 757  768               -o property=value
 758  769                       Sets the specified property on the imported pool.  See
 759  770                       the Properties section for more information on the
 760  771                       available pool properties.
 761  772  
 762  773               -R root
 763  774                       Sets the cachefile property to none and the altroot
 764  775                       property to root.
 765  776  
 766      -     zpool import [-Dfm] [-F [-n]] [--rewind-to-checkpoint] [-c cachefile|-d
      777 +     zpool import [-Dfmt] [-F [-n]] [--rewind-to-checkpoint] [-c cachefile|-d
 767  778               dir] [-o mntopts] [-o property=value]... [-R root] pool|id
 768  779               [newpool]
 769  780               Imports a specific pool.  A pool can be identified by its name or
 770  781               the numeric identifier.  If newpool is specified, the pool is
 771  782               imported using the name newpool.  Otherwise, it is imported with
 772  783               the same name as its exported name.
 773  784  
 774  785               If a device is removed from a system without running zpool export
 775  786               first, the device appears as potentially active.  It cannot be
 776  787               determined if this was a failed export, or whether the device is
↓ open down ↓ 39 lines elided ↑ open up ↑
 816  827  
 817  828               -o property=value
 818  829                       Sets the specified property on the imported pool.  See
 819  830                       the Properties section for more information on the
 820  831                       available pool properties.
 821  832  
 822  833               -R root
 823  834                       Sets the cachefile property to none and the altroot
 824  835                       property to root.
 825  836  
      837 +             -t      Used with newpool.  Specifies that newpool is temporary.
      838 +                     Temporary pool names last until export.  Ensures that the
      839 +                     original pool name will be used in all label updates and
      840 +                     therefore is retained upon export.  Will also set
      841 +                     cachefile property to none when not explicitly specified.
      842 +
 826  843               --rewind-to-checkpoint
 827  844                       Rewinds pool to the checkpointed state.  Once the pool is
 828  845                       imported with this flag there is no way to undo the
 829  846                       rewind.  All changes and data that were written after the
 830  847                       checkpoint are lost!  The only exception is when the
 831  848                       readonly mounting option is enabled.  In this case, the
 832  849                       checkpointed state of the pool is opened and an
 833  850                       administrator can see how the pool would look like if
 834  851                       they were to fully rewind.
 835  852  
↓ open down ↓ 441 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX