vgchange -an

Category: Administration

vgchange -an

Deactivate all volume groups

Takes every volume group offline, hiding its logical volumes from the system. All logical volumes must be unmounted first or the command fails. Use this before moving disks or resizing groups at the block level.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.