The Linux Newbie Guide  ⇒    Fundamentals     Advanced     Supplement   Command Index   ENG⇒中
All rights reserved, please indicate the source when citing
  

lvrename - Rename LV





lvrename
為一個 LVM 相關指令,功能為更名 LVM 之 邏輯卷LV (Logical Volume) 。

以下是 lvrename 命令的基本語法 lvrename MY_VG OLD_VG NEW_LV

例:



lvrename is a command in the context of LVM (Logical Volume Manager) and is used to rename a logical volume (LV) within an LVM setup.

The basic syntax of the lvrename command is: lvrename MY_VG OLD_LV NEW_LV.

Examples:
# lvrename vg01 lvold lvnew ←Rename the LV named 'lvold' to 'lvnew' in the volume group 'vg01'
# lvrename '/dev/vg01/lvold' 'dev/vg01/lvnew ←Another way to achieve the same result
 renamed "lvod" to "lvnew" in volume grouop "vg01"