HP-UX: Expands logical volume size using SAM

Posted on May 21, 2009

0


System Administration Manager (SAM) and System Management Homepage (SMH)

System Administration Manager (SAM) has been a great help to configure HP-UX. Through SAM, a system administrator can easily modify the system’s users, groups, backup, recovery, display, kernel configuration, peripheral devices, tasks, as well as disks and file systems. However, the SAM is not included in the latest HP-UX anymore, replaced by a fancy and full-graphic interface that is called as System Management Homepage (SMH). But not to be afraid, this SMH is, in fact, as strong as SAM. The main different is that the SMH requires a web browser and is not accessible through TELNET/SSH protocol. Yes… yes… I know that everyone, today, can aford a laptop with web browser, as the matter of fact, an Acer Aspire One, HP Mini or Asus EEE PC is good enough for this task.

Expands Logical Volume Size Using SAM

Anyway, let’s get back to the topic, which is `expands logical volume size using SAM`, assuming that an old version of HP-UX is still being used. To begin with, the intended logical volume has to be `umount`-ed.

# umount /xxxxx4

And then, execute `sam`

# sam
Starting the terminal version of sam...

To move around in sam:

- use the "Tab" key to move between screen elements
- use the arrow keys to move within screen elements
- use "Ctrl-F" for context-sensitive help anywhere in sam

On screens with a menubar at the top like this:

        ------------------------------------------------------
       |File View Options Actions                         Help|
       | ---- ---- ------- ------------------------------- ---|

- use "Tab" to move from the list to the menubar
- use the arrow keys to move around
- use "Return" to pull down a menu or select a menu item
- use "Tab" to move from the menubar to the list without selecting a menu item
- use the spacebar to select an item in the list

On any screen, press "CTRL-K" for more information on how to use the keyboard.

Press "Return" to continue...

And then, choose `Disks and File Systems` continued with `Logical Volumes`

+ ===               System Administration Manager (xxxxx) (1)                  +
¦File View Options Actions                                                Help ¦
¦                       Press CTRL-K for keyboard help.                        ¦
¦SAM Areas                                                                     ¦
¦------------------------------------------------------------------------------¦
¦  Source   Area                                                               ¦
¦+---------------------------------------------------------------------------+ ¦
¦¦ SAM      Accounts for Users and Groups                      ->            ^ ¦
¦¦ SAM      Auditing and Security                              ->              ¦
¦¦ SAM      Backup and Recovery                                ->              ¦
¦¦ SAM      Disks and File Systems  <------                    ->              ¦
¦¦ SAM      Display                                            ->              ¦
¦¦ Kcweb    Kernel Configuration                               ->              ¦
¦¦ SAM      Networking and Communications                      ->              ¦
¦¦ SAM      Partition Manager                                                  ¦
¦¦ SAM      Performance Monitors                               ->              ¦
¦¦ SAM      Peripheral Devices                                 ->              ¦
¦¦ SAM      Printers and Plotters                              ->              ¦
¦¦ SAM      Process Management                                 ->              ¦
¦¦ Other    Resource Management                                ->              ¦
¦¦ SAM      Routine Tasks                                      ->            v ¦
¦+---------------------------------------------------------------------------+ ¦
¦                                                                              ¦
+------------------------------------------------------------------------------+

+ ===               System Administration Manager (xxxxx) (1)                  +
¦File View Options Actions                                                Help ¦
¦                       Press CTRL-K for keyboard help.                        ¦
¦SAM Areas:Disks and File Systems                                              ¦
¦------------------------------------------------------------------------------¦
¦  Source   Area                                                               ¦
¦+---------------------------------------------------------------------------+ ¦
¦¦ ..(go up)                                                                 ^ ¦
¦¦ SAM      Disk Devices                                                       ¦
¦¦ SAM      File Systems                                                       ¦
¦¦ SAM      Logical Volumes    <--------                                       ¦
¦¦ SAM      Swap                                                               ¦
¦¦ SAM      Volume Groups                                                      ¦
¦¦                                                                             ¦
¦¦                                                                             ¦
¦¦                                                                             ¦
¦¦                                                                             ¦
¦¦                                                                             ¦
¦¦                                                                             ¦
¦¦                                                                             ¦
¦¦                                                                           v ¦
¦+---------------------------------------------------------------------------+ ¦
¦                                                                              ¦
+------------------------------------------------------------------------------+

In this page, choose the intended `logical volume`, press `tab` to `Actions` and choose `Increase Size…`

+ ===                  Disks and File Systems (xxxxx) (1)                      +
¦File List View Options Actions                                           Help ¦
¦                       ¦ Run Veritas Enterprise Administrator...  ¦           ¦
¦                       ¦ ---------------------------------------- ¦           ¦
¦                       ¦ Create...                                ¦           ¦
¦-----------------------¦ ======================================== ¦-----------¦
¦Logical Volumes        ¦ View More Information...                 ¦12 selected¦
¦-----------------------¦ ---------------------------------------- ¦-----------¦
¦                       ¦ Modify...                                ¦r   Mou    ¦
¦  Logical Volume   Volu¦ Remove                                   ¦s   Dir    ¦
¦+----------------------¦ Increase Size...                         ¦---------+ ¦
¦¦ lovl10           vg01+------------------------------------------+    /xxx ^ ¦
¦¦ lv12             vg01           LVM    VxFS         20480   0        /xxx   ¦
¦¦ lv13             vg01           LVM    VxFS        102400   0        /pub   ¦
¦¦ lvol1            vg00           LVM    VxFS          1792   0        /sta   ¦
¦¦ lvol2            vg00           LVM    Swap/Dump     8192   0               ¦
¦¦ lvol3            vg00           LVM    VxFS          2048   0        /      ¦
¦¦ lvol4            vg00           LVM    VxFS         16384   0        /opt ¦ ¦
¦¦ lvol5            vg00           LVM    VxFS          1024   0        /tmp ¦ ¦
¦¦ lvol6            vg00           LVM    VxFS          2048   0        /hom ¦ ¦
¦¦ lvol7            vg00           LVM    VxFS         10192   0        /usr v ¦
¦+<                                                        ----------------->+ ¦
¦                                                                              ¦
+------------------------------------------------------------------------------+

In the `Increase Size` window, enter the `New Size` in Megabytes, and press `OK`.

+ ===    +                    Increase Size (xxxxx)                   +        +
¦File Lis¦+----------------------------------------------------------+¦   Help ¦
¦        ¦¦                                                          ^¦        ¦
¦        ¦¦ Logical Volume:  lovl10                                   ¦        ¦
¦        ¦¦ Volume Group:    vg01                                     ¦        ¦
¦--------¦¦ Space Available in Volume Group (Mbytes): 269728          ¦--------¦
¦Logical ¦¦ Current Logical Volume Size (Mbytes):     102400          ¦selected¦
¦--------¦¦                                                           ¦--------¦
¦        ¦¦ New Size (Mbytes):  269728                                ¦ Mou    ¦
¦  Logica¦¦                                                           ¦ Dir    ¦
¦+-------¦¦                                                           ¦------+ ¦
¦¦ lovl10¦¦                                                           ¦ /xxx ^ ¦
¦¦ lv12  ¦¦                                                           ¦ /xxx   ¦
¦¦ lv13  ¦¦                                                           ¦ /pub   ¦
¦¦ lvol1 ¦¦                                                          ¦¦ /sta   ¦
¦¦ lvol2 ¦¦                                                          ¦¦        ¦
¦¦ lvol3 ¦¦                                                          ¦¦ /      ¦
¦¦ lvol4 ¦¦                                                          ¦¦ /opt ¦ ¦
¦¦ lvol5 ¦¦                                                          ¦¦ /tmp ¦ ¦
¦¦ lvol6 ¦¦                                                          v¦ /hom ¦ ¦
¦¦ lvol7 ¦+----------------------------------------------------------+¦ /usr v ¦
¦+<      ¦------------------------------------------------------------¦----->+ ¦
¦        ¦(-) Extending file system /xxxxxxx...                       ¦        ¦
+--------+------------------------------------------------------------+--------+

It may take a few minutes before the extending process completed; this is the right time to enjoy a cup of coffee. Once the process is completed, exit from SAM and re-mount the logical volume.

# mount -a
mount: /dev/vg01/lv12 is already mounted on /xxxxx1
mount: /dev/vg00/lvol8 is already mounted on /var
mount: /dev/vg00/lvol7 is already mounted on /usr
mount: /dev/vg00/lvol6 is already mounted on /home
mount: /dev/vg00/lvol5 is already mounted on /tmp
mount: /dev/vg00/lvol4 is already mounted on /opt
mount: /dev/vg00/lvol1 is already mounted on /stand
#

Now the logical volume should have its new size. This can be verified using the `df -k` command.

Advertisements
Tagged:
Posted in: Technology