You are on page 1of 2

Device Commands

lsdev

rmdev

cfgmgr

The "lsdev -Cc disk" command can be used to display the what disks are
recognized by the system. This will display disks whether they have been
initialized as PVs or not.
Remove a device from the system configuration. This is done to remove the
device configuration when a faulty disk is replaced, or if a disk is moved to
another system.
Re-scan the system for devices that were not available at system start up. This
can be done to recognize hot pluggable drives that were added after the
system was up, or can be used to recognize devices such as external tape or
disk drives that were not powered on when the system was booted up.

Physical Volume
Commands
pvcreate
lspv

Initialize a disk as a Physical Volume. This must be done prior to adding a


disk to a volume group.
Display the Physical Volumes on a system. When given a PV name as a
parameter, it gives detailed information about that PV.

Volume Group
Commands
lsvg
chvg
mkvg
extendvg
reducevg

exportvg

importvg
mirrorvg
unmirrorvg
Logical Volume
Commands
lslv

List information about logical volumes. When given with parameters, it lists
all volume groups on the system. When given parameters, it can give detailed
information about a particular VG, including information about what logical
volumes are in that volume group.
Change volume group characteristics.
Create a volume group.
Add PVs to a volume group.
Remove unused PVs from a volume group. If logical volumes currently
reside on the PV in question, the "migratepv" command can be used to move
the LV onto another disk in the VG provided there is enough space to do so.
Remove knowledge of a volume group from the Kernel. This can be used on
removable disks such as optical disks or Iomega Jaz drives prior to removing
the drive from a system, or can be used when moving a disk or disks from
one system to another. The data in the VG is left intact.
Re-initializes kernel knowledge of a volume group that had been previously
exported. The data on the VG is left intact, and becomes accessible once it
has been imported. The existing logical volume names are used unless they
conflict with logical volumes currently in use on the system.
Creates mirror volumes for all volumes in a volume group.
Removes a mirror from each volume in a volume group.

Lists information about logical volumes. A logical volume name must be


specified. In order to list information about all logical volumes, you would
need to use "lsvg" to list all volume groups, and then use "lsvg -l <vgname>"

mklv
rmlv
extendlv
chlv
mklvcopy
rmlvcopy
File System
Commands
crfs
chfs
rmfs
Paging Space
Commands
lsps

on each volume group. You could then use "lslv <lvname>" to list the detailed
information about each logical volume found.
Create a logical volume.
Delete a logical volume.
Increase the size of a logical volume.
Change the characteristics of a logical volume.
Mirror a logical volume. This allows for RAID-1 in software.
Removes a mirror copy of a logical volume.

Create a file system. This command can be used to create a file system on an
existing logical volume, or it can be used as an all in one command to create
both a logical volume and file system at once.
Change file system characteristics. This can be used to increase the size of a
file system.
Remove a filesystem, its associated logical volume, and its entry in
/etc/filesystems.

Lists information about paging space volumes.

You might also like