mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-10-31 04:17:55 +01:00
33 lines
732 B
Markdown
33 lines
732 B
Markdown
# zpool
|
|
|
|
> Manage ZFS pools
|
|
|
|
- Show the configuration and status of all ZFS zpools
|
|
|
|
`zpool status [{{poolname}}]`
|
|
|
|
- Check a ZFS pool for errors (verifies the checksum of EVERY block). Very CPU and disk intensive.
|
|
|
|
`zpool scrub {{poolname}}`
|
|
|
|
- List zpools available for import
|
|
|
|
`zpool import`
|
|
|
|
- Import a zpool, optionally specifying a new name
|
|
|
|
`zpool import {{poolname}}`
|
|
`zpool import {{poolname}} {{newpoolname}}`
|
|
|
|
- Export a zpool (unmount all filesystems)
|
|
|
|
`zpool export {{poolname}}`
|
|
|
|
- Show the history of all pool operations
|
|
|
|
`zpool histrory {{poolname}}`
|
|
|
|
- Create a mirrored pool.
|
|
|
|
`zpool create {{poolname}} mirror {{disk1}} {{disk2}}`
|
|
`zpool create {{poolname}} mirror {{disk1}} {{disk2}} mirror {{disk3}} {{disk4}}`
|