UnixPedia : HPUX / LINUX / SOLARIS: HPUX :LVM COMMANDS - QUICK REFERENCE

Saturday, October 11, 2014

HPUX :LVM COMMANDS - QUICK REFERENCE



Physical Volume Commands

pvcreate Makes a disk an LVM disk (a physical volume).
pvdisplay Displays information about physical volumes in a volume group.
pvchange Sets physical volume characteristics to allow or deny allocation of additional physical extents
from this disk.
pvmove Moves allocated physical extents from source to destination within a volume group.
 

Volume Group Commands
vgcreate Creates a volume group.
vgdisplay Displays information about volume groups.
vgchange Activates or deactivates one or more volume groups. Allows a volume group to mount with or
without a quorum.
vgextend Extends a volume group by adding disks to it.
vgreduce Reduces a volume group by removing one or more disks from it.
vgscan Scans all disks and looks for logical volume groups.
vgsync Synchronizes mirrors that are stale in one or more logical volumes.
vgremove Removes definition(s) of volume group(s) from the system.
vgexport Removes a volume group from the system without modifying the information found on the
physical volume(s).
vgimport Adds a volume group to the system by scanning physical volumes which have been exported
using vgexport.
vgcfgbackup Saves the configuration information for a volume group. Remember that a volume group is
made up of one or more physical volumes.
vgcfgrestore Restores the configuration information for a volume group.

Logical Volume Commands
lvcreate Creates a logical volume.
lvdisplay Displays information about logical volumes.
lvchange Changes characteristics of logical volume including availability, scheduling policy, permissions,
block relocation policy, allocation policy, mirror cache availability.
lvextend Increases disk space allocated to a logical volume.
extendfs Extends the size of a filesystem residing on a logical volume.
lvreduce Decreases disk space allocated to a logical volume.
lvremove Removes one or more logical volumes from a volume group.
lvsplit Splits a mirrored logical volume into two logical volumes.
lvmerge Merges the lvsplit logical volumes into one logical volume.
lvsync Synchronizes mirrors that are stale in one or more logical volumes.
lvmmigrate Prepares a root file system in a partion for migration to a logical volume.
lvlnboot Used to set up a logical volume to be a root, primary, swap, or dump volume.
lvrmboot Use this if you don't want a logical volume to be a root, primary, swap, or dump volume.

No comments:

Post a Comment