You are on page 1of 2

Device Commands

The "lsdev -Cc disk" command can be used to display the what disks are
lsdev 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
rmdev 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
cfgmgr
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
Initialize a disk as a Physical Volume. This must be done prior to adding a
pvcreate
disk to a volume group.
Display the Physical Volumes on a system. When given a PV name as a
lspv
parameter, it gives detailed information about that PV.
Volume Group
Commands
List information about logical volumes. When given with parameters, it lists
all volume groups on the system. When given parameters, it can give detailed
lsvg
information about a particular VG, including information about what logical
volumes are in that volume group.
chvg Change volume group characteristics.
mkvg Create a volume group.
extendvg Add PVs to a volume group.
Remove unused PVs from a volume group. If logical volumes currently
reducevg 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
exportvg
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
importvg
has been imported. The existing logical volume names are used unless they
conflict with logical volumes currently in use on the system.
mirrorvg Creates mirror volumes for all volumes in a volume group.
unmirrorvg Removes a mirror from each volume in a volume group.
Logical Volume
Commands
lslv 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>"
on each volume group. You could then use "lslv <lvname>" to list the detailed
information about each logical volume found.
mklv Create a logical volume.
rmlv Delete a logical volume.
extendlv Increase the size of a logical volume.
chlv Change the characteristics of a logical volume.
mklvcopy Mirror a logical volume. This allows for RAID-1 in software.
rmlvcopy Removes a mirror copy of a logical volume.
File System
Commands
Create a file system. This command can be used to create a file system on an
crfs 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
chfs
file system.
Remove a filesystem, its associated logical volume, and its entry in
rmfs
/etc/filesystems.
Paging Space
Commands
lsps Lists information about paging space volumes.

You might also like