mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-05 05:44:15 +00:00
22 lines
494 B
Plaintext
22 lines
494 B
Plaintext
---
|
|
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}}`
|