mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-10 18:58:17 +00:00
Update cheatsheets
This commit is contained in:
21
tldr/linux/lvrename
Normal file
21
tldr/linux/lvrename
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# lvrename
|
||||
|
||||
> Rename a logical volume.
|
||||
> More information: <https://manned.org/lvrename>.
|
||||
|
||||
- Rename an LV using full paths:
|
||||
|
||||
`sudo lvrename {{/dev/vg_name/old_lv}} {{/dev/vg_name/new_lv}}`
|
||||
|
||||
- Rename an LV using the volume group and names:
|
||||
|
||||
`sudo lvrename {{vg_name}} {{old_lv}} {{new_lv}}`
|
||||
|
||||
- Answer "yes" to any prompts:
|
||||
|
||||
`sudo lvrename {{[-y|--yes]}} {{/dev/vg_name/old_lv}} {{/dev/vg_name/new_lv}}`
|
||||
Reference in New Issue
Block a user