Oracle Linux: Unable to Rename VG with Error “Device /dev/sdb3 has active LVs, deactivate first"
APPLIES TO:
Oracle Cloud Infrastructure - Version N/A and later
Linux x86-64
GOAL:
This document is intended to explain why the error “Device /dev/sdb3 has active LVs, deactivate first
” and how to fix it.
SOLUTION:
The error "Device /dev/sdb3 has active LVs, deactivate first
" indicates that there is a need to stop the Logical Volumes (LVs) using the LVM on “/dev/sdb3
” before any changes.
To fix this, identify the active LVs with “lvs
” command. Then unmount any filesystems on these LVs using “umount
” command, deactivate the LVs with “lvchange -an
” command, and finally, deactivate the associated Volume Group (VG) with “