Merge pull request #684 from notpeter/minor_cleanup

Minor cleanup: ping, zpool, zfs
waldyrious/alt-syntax
Ruben Vereecken 2016-01-21 13:29:12 +02:00
commit 5782425234
3 changed files with 16 additions and 18 deletions

View File

@ -6,13 +6,13 @@
`ping {{host}}` `ping {{host}}`
- Ping host limiting the number of packages to be send to four: - Ping a host only a specific number of times:
`ping -c 4 {{host}}` `ping -c {{count}} {{host}}`
- Ping host, waiting for 0.5 s between each request (default is 1 s): - Ping host, specifying the interval in seconds between requests (default is 1 second):
`ping -i 0.5 {{host}}` `ping -i {{seconds}} {{host}}`
- Ping host without trying to lookup symbolic names for addresses: - Ping host without trying to lookup symbolic names for addresses:

View File

@ -8,20 +8,20 @@
- Create a new ZFS filesystem: - Create a new ZFS filesystem:
`zfs create poolname/newfsname` `zfs create {{pool_name/filesystem_name}}`
- Delete a ZFS filesystem: - Delete a ZFS filesystem:
`zfs destroy {{poolname/newfsname}}` `zfs destroy {{pool_name/filesystem_name}}`
- Create a Snapshot of a ZFS filesystem: - Create a Snapshot of a ZFS filesystem:
`zfs snapshot {{poolname/filesystem@snapshot-name}}` `zfs snapshot {{pool_name/filesystem_name}}@{{snapshot_name}}`
- Enable compression on a filesystem: - Enable compression on a filesystem:
`zfs set compression=on {{poolname/fileystem}}` `zfs set compression=on {{pool_name/filesystem_name}}`
- Change mountpoint for a filesytem: - Change mountpoint for a filesytem:
`zfs set mountpoint={{/my/mount/path}} {{poolname/filesystem}}` `zfs set mountpoint={{/my/mount/path}} {{pool_name/filesystem_name}}`

View File

@ -4,30 +4,28 @@
- Show the configuration and status of all ZFS zpools: - Show the configuration and status of all ZFS zpools:
`zpool status [{{poolname}}]` `zpool status`
- Check a ZFS pool for errors (verifies the checksum of EVERY block). Very CPU and disk intensive: - Check a ZFS pool for errors (verifies the checksum of EVERY block). Very CPU and disk intensive:
`zpool scrub {{poolname}}` `zpool scrub {{pool_name}}`
- List zpools available for import: - List zpools available for import:
`zpool import` `zpool import`
- Import a zpool, optionally specifying a new name: - Import a zpool:
`zpool import {{poolname}}` `zpool import {{pool_name}}`
`zpool import {{poolname}} {{newpoolname}}`
- Export a zpool (unmount all filesystems): - Export a zpool (unmount all filesystems):
`zpool export {{poolname}}` `zpool export {{pool_name}}`
- Show the history of all pool operations: - Show the history of all pool operations:
`zpool histrory {{poolname}}` `zpool histrory {{pool_name}}`
- Create a mirrored pool: - Create a mirrored pool:
`zpool create {{poolname}} mirror {{disk1}} {{disk2}}` `zpool create {{pool_name}} mirror {{disk1}} {{disk2}} mirror {{disk3}} {{disk4}}`
`zpool create {{poolname}} mirror {{disk1}} {{disk2}} mirror {{disk3}} {{disk4}}`