LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

lvrename

renames a logical volume within its volume group

TLDR

Rename using full paths
$ sudo lvrename /dev/vg_name/old_lv /dev/vg_name/new_lv
copy
Rename using VG and names
$ sudo lvrename [vg_name] [old_lv] [new_lv]
copy
Rename with auto-confirm
$ sudo lvrename --yes /dev/vg_name/old_lv /dev/vg_name/new_lv
copy

SYNOPSIS

lvrename [options] vg/oldlv newlv

DESCRIPTION

lvrename renames a logical volume within its volume group. The volume can be active during the rename operation.

PARAMETERS

-y, --yes

Answer yes to all prompts
-A, --autobackup y|n
Automatically back up metadata after the change (default y).
--noudevsync
Disable udev synchronisation
-t, --test
Test mode (don't apply changes)
-v, --verbose
Verbose output

INSTALL

sudo apt install lvm2
copy
sudo dnf install lvm2
copy
sudo pacman -S lvm2
copy
sudo apk add lvm2
copy
sudo zypper install lvm2
copy
nix profile install nixpkgs#lvm2
copy

CAVEATS

Update /etc/fstab and any scripts referencing the old LV name. Active filesystems may need remounting after rename.

SEE ALSO

lvcreate(8), lvremove(8), lvm(8)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid