Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP-UX System Administrator's Guide: Logical Volume Management: HP-UX 11i Version 3

Appendix B LVM Command Summary

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Glossary

 » Index

This appendix contains a summary of the LVM commands and descriptions of their use.

Table B-1 LVM Command Summary

Command

Description and Example

extendfs

Extends a file system:

# extendfs /dev/vg00/rlvol3

lvmadm

Displays the limits associated with a volume group version:

# lvmadm -t -V 2.0

lvchange

Changes the characteristics of a logical volume:

# lvchange -t 60 /dev/vg00/lvol3

lvcreate

Creates a logical volume in a volume group:

# lvcreate -L 100 /dev/vg00

lvdisplay

Displays information about logical volumes:

# lvdisplay -v /dev/vg00/lvol1

lvextend -m

Adds a mirror to a logical volume:

# lvextend -m 1 /dev/vg00/lvol3

lvextend -L

Increases the size of a logical volume:

# lvextend -L 120 /dev/vg00/lvol3

lvlnboot

Prepares a logical volume to become a root, swap, or dump area:

# lvlnboot -d /dev/vg00/lvol2

lvmerge

Merges split volumes into one logical volume:

# lvmerge /dev/vg00/lvol4b /dev/vg00/lvol4

lvreduce -L

Decreases the size of a logical volume:

# lvreduce -L 100 /dev/vg00/lvol3

lvreduce -m

Decreases the number of mirror copies of a logical volume:

# lvreduce -m 0 /dev/vg00/lvol3

lvremove

Removes logical volumes from a volume group:

# lvremove /dev/vg00/lvol6

lvrmboot

Removes a logical volume link to root, swap, or dump:

# lvrmboot -d /dev/vg00/lvol2

lvsplit

Splits a mirrored logical volume into two logical volumes:

# lvsplit /dev/vg00/lvol4

lvsync

Synchronizes stale logical volume mirrors:

# lvsync /dev/vg00/lvol1

pvchange

Changes the characteristics of a physical volume:

# pvchange -a n /dev/disk/disk2

pvck

Performs a consistency check on a physical volume:

# pvck /dev/disk/disk47_p2

pvcreate

Creates a physical volume be to used as part of a volume group:

# pvcreate /dev/rdisk/disk2

pvdisplay

Displays information about a physical volume:

# pvdisplay -v /dev/disk/disk2

pvmove

Moves extents from one physical volume to another:

# pvmove /dev/disk/disk2 /dev/disk/disk3

pvremove

Removes LVM data structures from a physical volume:

# pvremove /dev/rdisk/disk2

vgcfgbackup

Saves the LVM configuration for a volume group:

# vgcfgbackup vg00

vgcfgrestore

Restores the LVM configuration:

# vgcfgrestore -n /dev/vg00 /dev/rdisk/disk2

vgchange

Turns a volume group off or on:

# vgchange -a y /dev/vg00

vgchgid

Changes the volume group ID of a physical volume:

# vgchgid /dev/rdisk/disk3

vgcreate

Creates a volume group:

# vgcreate /dev/vg01 /dev/disk/disk2 /dev/disk/disk3

vgdisplay

Displays information about a volume group:

# vgdisplay -v /dev/vg00

vgextend

Extends a volume group by adding a physical volume:

# vgextend /dev/vg00 /dev/disk/disk2

vgexport

Removes a volume group from the system:

# vgexport /dev/vg01

vgimport

Adds an existing volume group to the system:

# vgimport -v /dev/vg04

vgmodify

Modifies the configuration parameters of a volume group:

# vgmodify -v -t -n -r vg32

vgscan

Scans the system disks for volume groups:

# vgscan -v

vgreduce

Reduces a volume group by removing one or more physical volumes from it:

# vgreduce /dev/vg00 /dev/disk/disk2

vgremove

Removes the definition of a volume group from the system and the disks:

# vgremove /dev/vg00 /dev/disk/disk2

vgsync

Synchronizes all mirrored logical volumes in the volume group:

# vgsync vg00

 

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 2008 Hewlett-Packard Development Company, L.P.