mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-28 18:54:16 +02:00
pvcreate, pvremove, vgchange, vgremove: add short options (#17783)
This commit is contained in:
parent
0a539a5c94
commit
b8fb24f61b
4 changed files with 10 additions and 10 deletions
|
@ -6,8 +6,8 @@
|
|||
|
||||
- Initialize the `/dev/sda1` volume for use by LVM:
|
||||
|
||||
`pvcreate {{/dev/sda1}}`
|
||||
`pvcreate {{/dev/sdXY}}`
|
||||
|
||||
- Force the creation without any confirmation prompts:
|
||||
|
||||
`pvcreate --force {{/dev/sda1}}`
|
||||
`pvcreate {{[-f|--force]}} {{/dev/sdXY}}`
|
||||
|
|
|
@ -9,15 +9,15 @@
|
|||
|
||||
- Display detailed output during the operation:
|
||||
|
||||
`sudo pvremove --verbose {{/dev/sdXY}}`
|
||||
`sudo pvremove {{[-v|--verbose]}} {{/dev/sdXY}}`
|
||||
|
||||
- Remove a LVM label without asking for confirmation:
|
||||
|
||||
`sudo pvremove --yes {{/dev/sdXY}}`
|
||||
`sudo pvremove {{[-y|--yes]}} {{/dev/sdXY}}`
|
||||
|
||||
- Forcefully remove a LVM label:
|
||||
|
||||
`sudo pvremove --force {{/dev/sdXY}}`
|
||||
`sudo pvremove {{[-f|--force]}} {{/dev/sdXY}}`
|
||||
|
||||
- Display output in JSON format:
|
||||
|
||||
|
|
|
@ -6,8 +6,8 @@
|
|||
|
||||
- Change the activation status of logical volumes in all volume groups:
|
||||
|
||||
`sudo vgchange --activate {{y|n}}`
|
||||
`sudo vgchange {{[-a|--activate]}} {{y|n}}`
|
||||
|
||||
- Change the activation status of logical volumes in the specified volume group (determine with `vgscan`):
|
||||
|
||||
`sudo vgchange --activate {{y|n}} {{volume_group}}`
|
||||
`sudo vgchange {{[-a|--activate]}} {{y|n}} {{volume_group}}`
|
||||
|
|
|
@ -9,11 +9,11 @@
|
|||
|
||||
- Forcefully remove a volume group without confirmation:
|
||||
|
||||
`vgremove --force {{volume_group}}`
|
||||
`vgremove {{[-f|--force]}} {{volume_group}}`
|
||||
|
||||
- Set the debug level for detailed logging to level 2, (repeat `--debug` up to 6 times to increase the level):
|
||||
|
||||
`vgremove --debug --debug {{volume_group}}`
|
||||
`vgremove {{[-d|--debug]}} {{[-d|--debug]}} {{volume_group}}`
|
||||
|
||||
- Use a specific config setting to override defaults:
|
||||
|
||||
|
@ -21,4 +21,4 @@
|
|||
|
||||
- Display help text for usage information:
|
||||
|
||||
`vgremove --help`
|
||||
`vgremove {{[-h|--help]}}`
|
||||
|
|
Loading…
Add table
Reference in a new issue