Use the following commands to check the AIX LVM stucture and volumes.
LVM
LVM stands for Logical Volume Mangement. It is used in the Unix and Linux environment.
To understand LVM, refer to the architecture shown below.
Commands
The following commands are useful for analyzing the disk usage in AIX.
Check the VG (Volume group)
- lsvg
- This command gives the list of volume groups on the system.
- lsvg <VG name>
- It shows the usage of PPs.
- The following list will appear:
- PP SIZE, TOTAL PPs, FREE PPs, and USED PPs.
- lsvg -p <VG name>
- It displays the list of hdisks in the volume group.
- lsvg -l <VG name>
- The LV name and the mount point of the logical volume will be shown.
- These mount points are displayed with ‘df -g’ command
- lspv
- It displays the physical volumes in the VG
Scenario
You want to add datafiles to the PSAPSR3 tablespace.
Check the usage of your storage volume attached to the SAP system.
- In transaction DB02, there is no more space in the PSAPSR3 tablespace.
- Use the “df -g” command to see the LVs usage in the server.
- If the LV does not have enough space to add new datafiles, check whether there is free space in the VG
- Use the command ‘lsvg <VG name>’ to analyze free disk usage.
- If there are no more FREE PPs, request your server administrator to add a storage volume.
Note:
- If you add datafiles to the tablespace using BRTools, the free space of the LVs declared for it will decrease.