6.7.2 Cannot Unmount File Systems

6.8 Summary of LVM Commands

This section summarizes the key commands that have been used in different sections of this chapter.

6.8.1 PV Commands

The following commands are most commonly used with physical volume related tasks.

lsdev Lists devices in the ODM.

chdev
Changes the characteristics of a device.
mkdev
Adds a device to the system.
chpv
Changes the state of the physical volume.
lspv
Displays information about a physical volume within a volume group.
migratepv
Moves allocated physical partitions from one physical volume to one or more other physical volumes.

6.8.2 VG Commands

The following commands are most commonly used with volume group related tasks.

mkvg
Creates a new volume group.
extendvg
Adds a physical volume to a volume group.
reducevg
Removes physical volume from a volume group.
chvg
Changes a volume group.
lsvg
Displays information about a volume group.
importvg
Installs a volume group.
exportvg
Removes a volume group.
reorgvg
Reorganizes a volume group.
syncvg
Synchronizes a volume group.
varyonvg
Makes a volume group available for use.

varyoffvg Makes a volume group unavailable for use.

6.8.3 LV Commands

The following are some of the most commonly used logical volume commands.

mklv
Creates a logical volume.
lslv
Lists the characteristics of a logical volume.
rmlv
Removes a logical volume.
extendlv
Increases the size of a logical volume.
chlv
Changes the characteristic of a logical volume.
mklvcopy
Adds copies to a logical volume.
rmlvcopy
Removes copies from a logical volume.

6.8.4 File System Commands

The following is the list of file systems commands that have been discussed in this chapter:

chfs
Changes the characteristics of a file system.
crfs
Adds a file system.
lsfs
Displays the characteristics of a file system.
rmfs
Removes a file system.
mount
Makes a file system available for use.
fsck
Checks file system consistency and interactively repairs the file system.
umount
Unmounts a previously mounted file system, directory, or file.
df
Reports information about space on file systems.

6.9 Quiz