• Home
  • Disclaimer
  • Contact
  • Archives
  • About
  • Subscribe
  • Support
  • Advertise

Kernel Talks

Unix, Linux, & Cloud!

  • How-to guides
    • Howto
    • Disk management
    • Configurations
    • Troubleshooting
  • OS
    • HPUX
    • Linux
  • Miscellaneous
    • Software & Tools
    • Cloud Services
    • System services
    • Virtualization
  • Certification Preparations
    • AWS Certified Solutions Architect – Associate
    • AWS Certified Solutions Architect – Professional
    • AWS Certified SysOps Administrator – Associate
    • AWS Certified Cloud Practitioner
    • Certified Kubernetes Administrator
    • Hashicorp Certified Terraform Associate
    • Oracle Cloud Infrastructure Foundations 2020 – Associate
  • Tips & Tricks
  • Linux commands
You are here: Home / Disk management

LVM cheatsheet

Published: November 24, 2016 | Modified: June 24, 2020



List of all LVM command of HPUX tutorials we have seen before on KernelTalks. LVM commands related to physical volume, volume group, and logical volume.

What is LVM?

LVM is a Logical Volume Manager.

LVM is a volume manager in Unix-Linux systems. It used to manage your disks. LVM enables raw disks to be used as a data store, file system defined mount points. LVM helps to manage your disk volumes efficiently for performance and data integrity. VxVM i.e. Veritas Volume Manager is another volume manager that is as popular as LVM.

Previously we have seen a series of LVM command tutorials on KernelTalks. Here is a summary of it along in the form of LVM cheatsheet for your quick reference.

  • Also read: Basics of LVM legends

Physical Volume Commands

Command
Description
Example
pvcreate Create physical volume Tutorial link
pvdisplay Display physical volume details Tutorial link
pvchange Activate, de-activate physical volume Tutorial link
pvmove Move data from one PV to another Tutorial link

Volume Group Commands

Command
Description
Example
vgcreate Create volume group Tutorial Link
vgdisplay Display volume group details Tutorial Link
vgscan Rebuild /etc/lvmtab file Tutorial Link
vgextend Add new PV to VG Tutorial Link
vgreduce Remove PV from VG Tutorial Link
vgexport Export VG from system Tutorial Link
vgimport Import VG into system Tutorial Link
vgcfgbackup Backup VG configurations Tutorial Link
vgcfgrestore Restore VG configurations Tutorial Link
vgchange Change details of VG Tutorial Link
vgremove Remove VG from system Tutorial Link
vgsync Sync stale PE in VG Tutorial Link

Logical Volume Commands

Command
Description
Example
lvcreate Create logical volume Tutorial Link
lvdisplay Display logical volume details Tutorial Link
lvremove Remove logical volume Tutorial Link
lvextend Increase size of logical volume Tutorial Link
lvreduce Decrease size of logical volume Tutorial Link
lvchange Change details of logical volume Tutorial Link
lvsync Sync stale LE of logical volume Tutorial Link
lvlnboot Set LV as root, boot, swap or dump volume Tutorial Link

⇠ Previous article
Linux user management (useradd, userdel, usermod)
Next article ⇢
How to rename volume group

Related stuff:

  • HPUX boot process
  • Root disk mirroring in itanium HPUX
  • Host to guest disk mapping in HP iVM
  • Understanding /etc/hosts file
  • sar command (Part III) : Disk, Network reporting
  • Password file commands
  • LVM commands tutorial: Part 3: Logical Volume (lvextend, lvreduce, lvchange)
  • Restore network Ignite backup on HPUX server
  • Adding new storage LUN to integrity virtual machine (iVM) in HPUX
  • LVM commands tutorial : Part 2 : Volume group (vgcreate, vgdisplay, vgscan)
  • Howto get CPU details in HPUX
  • How to identify current boot disk in HPUX

Filed Under: Disk management, HPUX Tagged With: all logical volume commands, all lvm commands, all physical volume commands, all volume group commands, list of lvm commands, lvchange, lvcreate, lvdisplay, lvextend, lvlnboot, lvreduce, lvremove, lvsync, pvchange, pvcreate, pvdisplay, pvmove, vgcreate, vgdisplay, vgexport, vgextend, vgimport, vgreduce, vgremove, vgscan, vgsync, what is LVM, what is lvm in linux

If you like my tutorials and if they helped you in any way, then

  • Consider buying me a cup of coffee via paypal!
  • Subscribe to our newsletter here!
  • Like KernelTalks Facebook page.
  • Follow us on Twitter.
  • Add our RSS feed to your feed reader.

Share Your Comments & Feedback: Cancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Get fresh content from KernelTalks

  • Email
  • Facebook
  • RSS
  • Twitter

Get Linux & Unix stuff right into your mailbox. Subscribe now!

* indicates required

This work is licensed under a CC-BY-NC license · Privacy Policy
© Copyright 2016-2023 KernelTalks · All Rights Reserved.
The content is copyrighted to Shrikant Lavhate & can not be reproduced either online or offline without prior permission.