Device Commands | |
lsdev | 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. |
rmdev | 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. |
cfgmgr | 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 | Initialize a disk as a Physical Volume. This must be done prior to adding a disk to a volume group. |
lspv | 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 | 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. |
chvg | Change volume group characteristics. |
mkvg | Create a volume group. |
extendvg | Add PVs to a volume group. |
reducevg | 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. |
exportvg | 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. |
importvg | 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. |
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 | |
crfs | 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. |
chfs | Change file system characteristics. This can be used to increase the size of a file system. |
rmfs | Remove a filesystem, its associated logical volume, and its entry in /etc/filesystems. |
Paging Space Commands | |
lsps | Lists information about paging space volumes. |
| |
| |