[ Previous | Next | Contents | Glossary | Home | Search ]
AIX Version 4.3 System Management Guide: Operating System and Devices

Managing Logical Volume Storage

The following tables show many tasks that help manage logical volume storage. The tables group tasks by those that primarily affect logical and physical volumes and those that primarily affect file systems. More complicated tasks are described in subsequent sections of this chapter.

Note: You must have root authority to perform most of the tasks in the following table.
Managing Logical Volumes and Storage Tasks
Web-based System Manager:    wsm lvm fast path
(Volumes application)

-OR-
Task SMIT Fast Path Command or File
Add a logical volumeNote1 smit mklv  
Add a volume group smit mkvg  
Activate a volume group smit varyonvg  
Add and activate a new volume group smit mkvg  
Add fixed disk without data to existing volume group smit extendvg  
Add fixed disk without data to new volume group smit mkvg  
Change name of volume group Note2
  1. smit varyoffvg
  2. smit exportvg
  3. smit importvg
  4. smit mountfs
  1. varyoffvg OldVGName
  2. exportvg OldVGName
  3. importvg NewVGName
  4. mount all
Check size of a logical volume smit lslv  
Copy a logical volume to a new logical volumeNote3 smit cplv  
Copy a logical volume to an existing logical volume of the same sizeAttn1 smit cplv  
Copy a logical volume to an existing logical volume of smaller sizeAttn1 ,Note3 Do not use SMITAttn2
  1. Create logical volume. For example:
    mklv -y hdX vg00 4
  2. Create new files system on new logical volume.
    For example:
    crfs -v jfs -d hdX -m /doc -A yes
  3. Mount file system. For example:
    mount /doc
  4. Create directory at new mount point. For example:
    mkdir /doc/options
  5. Transfer files system from source to destination
    logical volume. For example:
    cp -R /usr/adam/oldoptions/* /doc/options
Copy a logical volume to an existing logical volume of larger sizeAttn1 smit cplv  
Deactivate a volume group smit varyoffvg  
Implement mirroring and data allocation smit mklvcopy  
Implement mirroring only smit mklvcopy  
Implement data allocation only smit chlv1  
Implement write-verify and scheduling smit chlv1  
Increase the maximum size of a logical volume smit chlv1  
Increase the size of a logical volume smit lsvc  
List all logical volumes by volume group smit lslv2  
List all physical volumes in system smit lspv2  
List contents of a physical volume smit lspv  
List all volume groups smit lsvg2  
List contents of a volume group smit lsvg1  
Power off a disk smit offdsk  
Power on a removable disk smit ondsk  
Remove a volume group smit reducevg2  
Remove a disk with data from the operating system smit exportvgrds  
Remove a disk without data from the operating system smit reducevgrds  
Reorganize a volume group smit reorgvg  
Set automatic activation for a volume group smit chvg  
Set logical volume policies smit chlv1  
Unconfigure and power off a disk smit rmvdsk1 or
smit rmvdsk then
smit opendoor
 
Attention:
  1. Using this procedure to copy to an existing logical volume will overwrite any data on that volume without requesting user confirmation.
  2. Do not use the SMIT procedure or the cplv command to copy a larger logical volume to a smaller one. Doing so results in a corrupted file system because some of the data (including the superblock) is not copied to the smaller logical volume.
Notes:
  1. After you create a logical volume, the state will be closed. This means that no LVM structure is using that logical volume. It will remain closed until a file system has been mounted over the logical volume or the logical volume is opened for raw I/O. See also "Defining a Raw Logical Volume for an Application".
  2. You cannot change the name of, import, or export rootvg.
  3. You must have enough direct access storage to duplicate a specific logical volume.

 

Managing Logical Volumes and File Systems Tasks
Web-based System Manager:    wsm fs fast path
(File Systems application)

-OR-
Task SMIT Fast Path Command or File
Add a journaled file system (JFS) to a previously defined logical volume menu Create logical volume, then
smit crjfslv
 
Check size of a file system smit fs  
Increase size of a file system smit chjfs  
Listing all file systems on a disk smit lsmntdsk  
Unmount file systems on a disk smit unmntdsk  

[ Previous | Next | Contents | Glossary | Home | Search ]