• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

lvrename Command Examples in Linux

by admin

If you have already created your logical volume and you forgot to give it a proper name, you don’t have to delete it and create it again. Using the lvrename command, you can change the name of a logical partition:

# lvrename /dev/vg_group01/new_lv_name /dev/vg_group01/old_lv_name
Renamed "old_lv_name" to "new_lv_name" in volume group "vg_group01"

Verify with the following command:

# lvdisplay vg_group01
  -- Logical volume --
  LV Name                /dev/vg_group01/new_lv_name
  VG Name                vg_group01
  LV UUID                mk9dJM-3qt7-ypbC-nsks-I8Gh-9V3d-4BNE6s
  LV Write Access        read/write
  LV Status              available
  # open                 0
  LV Size                2.93 GiB
  Current LE             750
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:2

lvrename Command Examples

1. To rename a logical volume:

# lvrename /dev/VG00/LV00 /dev/VG00/LV-01
# lvrename VG00 LV00 LV01 

2. To disable udev synchronisation:

# lvrename --noudevsync 

Filed Under: Linux

Some more articles you might also be interested in …

  1. How to Debug systemd boot process in CentOS/RHEL 7 and 8
  2. CentOS / RHEL : How to setup session idle timeout (inactivity timeout) for ssh auto logout
  3. How to allow or deny telnet login to specific users only in CentOS/RHEL
  4. RPM command examples to query, install, remove and upgrade packages
  5. UNIX / Linux : How crontab validates the access based on the cron.allow and cron.deny files
  6. Can’t start X11 applications after “su” or “su -” to another user
  7. CentOS / RHEL 7 : How to enable telnet for a group of users
  8. pvmove Command Examples in Linux
  9. lspcmcia Command Examples in Linux
  10. LVM Configuration : Physical Volume (PV) Operations/Utilities

You May Also Like

Primary Sidebar

Recent Posts

  • grpck command – Remove corrupt or duplicate entries in the /etc/group and /etc/gshadow files.
  • xxd command – Expressed in hexadecimal form
  • sesearch: command not found
  • macof: command not found

© 2022 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright