Disk Management

Disks exist in Unix as physical volumes and are carved into physical partitions (PPs). These physical partitions are, in turn, assigned to logical volumes. A logical volume is a chunk of storage that consists of one or more physical partitions. The logical volumes are then mapped onto Unix mount points. Several logical volumes can be used in a mount point, and a collection of such logical volumes is referred to as a volume group. A Unix mount point is like a directory name, and is used by you, the Oracle DBA, when allocating Oracle data files.

List Logical Volumes in HP-UX

All logical volumes can be listed in HP-UX using the df -k command. The df -k command shows each logical volume, and the corresponding mount point. For example:

ROOT>df -k

/home(/dev/vg00/lvol5): 20166 total allocated Kb
                         4945 free allocated Kb
                        15221 used allocated Kb
                           75 % allocation used
/opt (/dev/vg00/lvol6):615914 total allocated Kb
                       227403 free allocated Kb
                       388511 used allocated Kb
                           63 % allocation used
/tmp (/dev/vg00/lvol4):64215 total allocated Kb
                       20564 free allocated Kb
                       43651 used allocated Kb
                          67 % allocation used
/u01 (/dev/vg01/u01  ):17580720 total allocated Kb
                       12117048 free allocated Kb
                        5463672 used allocated Kb
                             31 % allocation used

The df -k command is most often used to see the total space in each mount point and the amount of free space within each mount point. In the previous example, you see that /u01 is defined with a size of 17 gigabytes, and has 12 gigabytes free.

The mount point ...

Get Unix for Oracle DBAs Pocket Reference now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.