Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
Important: Review theRead Before Installing or Updating to HP-UX 11i booklet accompanying the HP-UX 11i OE Media before installing or updating to 11i.: HP-UX 11i Installation and Update Guide > Appendix B Known Problems and Troubleshooting

Adjusting Required Minimum File System Sizes

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Index

Update Requirements

The absolute minimum /usr file-system sizes needed to update to HP-UX 11i are listed in “Disk Space and Memory Requirements” in Chapter 3 “Install/Update System Requirements”. If the required file-system size for the bundle you copy to a depot exceeds the file system limit set by your disk installation, you will get an error condition during the copy process. You can use lvextend and extendfs in this situation to create a larger file system.

You might have a problem updating your systems if any of these volumes are too small: /usr, /opt, /stand or /var. See “Disk Space and Memory Requirements” in Chapter 3 “Install/Update System Requirements”.

If you try an update, swinstall will determine how much disk space is required. If sufficient space is not available, swinstall will report an error like this:

ERROR: The used disk space on filesystem "/var" is estimated
to increase by 57977 Kbytes. This operation will exceed the minimum free space for this
volume. You should free up at least 10854 Kbytes to avoid
installing beyond this threshold of available user disk space.

In this example, you would need to increase the file system size of /var by 10 MB, which actually needs to be rounded up to 12 MB.

Increasing /var

Follow these steps to increase the size limit of /var:

  1. Determine if any space is available for the /dev/vg00:

    /sbin/vgdisplay /dev/vg00

    You should see output like this:

                     - Volume groups -
    VG Name /dev/vg00
    VG Write Access read/write
    VG Status available
    Max LV 255
    Cur LV 8
    Open LV 8
    Max PV 16
    Cur PV 1
    Act PV 1
    Max PE per PV 2000
    VGDA 2
    PE Size (Mbytes) 4
    Total PE 249
    Alloc PE 170
    Free PE 79
    Total PVG 0

    The "Free PE" indicates the number of 4MB extents available, in this case 79 (equivalent to 316 MB).

  2. Change to single user state:

    /sbin/shutdown

    This will allow /var to be unmounted.

  3. View mounted volumes:

    /sbin/mount

    You will see a display similar to the following:

    / on /dev/vg00/lvol1 defaults on Sat Mar 8 23:19:19 1997
    /var on /dev/vg00/lvol7 defaults on Sat Mar 8 23:19:28 1997
  4. Determine which logical volume maps to /var. In this example, it is /dev/vg00/lvol7

  5. Unmount /var:

    /sbin/umount /var

    This is required for the next step, since extendfs can only work on unmounted volumes. If you get a "device busy" error at this point, reboot the system and log on in single-user mode before continuing

  6. Extend the size of the logical volume:

    /sbin/lvextend -L new_size_in_MB /dev/vg00/lvol7

    For example, to make this volume 332 MB:

    /sbin/lvextend -L 332 /dev/vg00/lvol7

  7. To extend the file system size to the logical volume size:

    /sbin/extendfs /dev/vg00/rlvol7

  8. Mount /var:

    /sbin/mount /var

  9. Go back to the regular init state: init 3 or init 4, or reboot.

  10. Wait 10 minutes after changing the system state or rebooting to let processes complete before your enter an update-ux command.

Increasing /stand

In some cases, you will need to increase the size of /stand prior to completing a successful update to HP-UX 11i. If the update-ux command fails with a message indicating that /stand is too small, follow these steps to increase the size of /stand.

To increase /stand, you'll first have to create a larger /swap volume, since both require contiguous blocks and are adjacent volumes. If you need help with this procedure, refer to the Managing Systems and Workgroups manual, available on the HP-UX 11i Instant Information CD and on HP's documentation web site:

http://docs.hp.com/hpux/os/11i/oe/

  1. As root, use sam to create a new contiguous /swap volume of the required size, say, 300 MB. Name the new volume /dev/vg00/swap.

  2. Using sam, verify that there is no bad block relocation and the new /swap volume is contiguous.

  3. As root from a console window, remove and add primary swap and dump devices:

    1. Remove the current dump device:

      lvrmboot -v -d lvol2 /dev/vg00

    2. Add a new dump device:

      lvlnboot -d /dev/vg00/swap

    3. Remove the current swap device:

      lvrmboot -s /dev/vg00

    4. Add a new swap device:

      lvlnboot -s /dev/vg00/swap

  4. Verify your change by entering:

    lvlnboot -v

    Boot Definitions for Volume Group /dev/vg00:
    Physical Volumes belonging in Root Volume Group:
    /dev/dsk/c0t6d0 (8/0/19/0.6.0) -- Boot Disk
    Boot: lvol1 on: /dev/dsk/c0t6d0
    Root: lvol3 on: /dev/dsk/c0t6d0
    Swap: swap on: /dev/dsk/c0t6d0
    Dump: swap on: /dev/dsk/c0t6d0, 0
  5. If your changes are correct, reboot the system.

  6. After the system reboots, view swap information by entering:

    swapinfo

                     Kb      Kb       Kb   PCT  START/      Kb
    TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
    dev 307200 45936 216208 0% 0 - 1 /dev/vg00/swap
    reserve - 113748 -113748
    memory 85584 23492 62092 27%
  7. To verify that the same configuration exists as before the reboot, enter (again):

    lvlnboot -v

  8. As root, use sam to remove the old lvol2 entry from /dev/vg00.

  9. Using sam, increase /stand to the required new size. Also change the size of any other volumes as needed.

  10. Define your new volume as the boot volume at the next reboot:

    lvlnboot -b lvol1 /dev/vg00

  11. Reboot your system again.

Return to Chapter 2 to update your system to HP-UX 11i using the update-ux command.

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© Hewlett-Packard Development Company, L.P.