Wiki-UX / Logical Volume Manager / How to extend usr file system offline on Integrity Systems
Jump to: navigation, search

How to extend usr file system offline on Integrity Systems


This article explains how to extend the /usr file system in single user mode when OnlineJFS product is not available without using Ignite-UX.



1. The first thing you want to do when you are increasing a file system is to make sure you have enough space in the volume group and your current logical volume size.

# vgdisplay vg00
PE Size (Mbytes)            8
Total PE                    4228
Alloc PE                    4000
Free PE                     228      <--- Available Space

# lvdisplay /dev/vg00/lvol7
--- Logical volumes ---
LV Name                     /dev/vg00/lvol7
VG Name                     /dev/vg00
LV Permission               read/write
LV Status                   available/syncd
Mirror copies               0
Consistency Recovery        MWC
Schedule                    parallel
LV Size (Mbytes)            8192
Current LE                  1024     <--- Current Size

Volume Group: There are 228 free PEs, each PE is made of 8MB, so it means that you have 1824MB available (8*228). Logical Volume: There are 1024 PEs allocated (8192MB).

2. Use the bdf command to determine the logical volume name.

# bdf
Filesystem          kbytes    used   avail %used Mounted on
/dev/vg00/lvol3    2097152  678976 1407136   33% /
/dev/vg00/lvol7    8388608 2924704 5421328   35% /usr

3. Each file system resides on an existent logical volume, so next step is to increase the logical volume size. We are going to add 1000MB to /usr in this example. You have to specify the total size.

Specify the new size in MB (8192 + 1000)

# lvextend -L 9192 /dev/vg00/lvol7

Or using the amount of PEs (1024 + 125)

# lvextend -l 1149 /dev/vg00/lvol7
NOTE: The logical volume name may be different in your system.

4. Looks like the last step is to increase the file system, but that is not true. The problem is that /usr is always going to be mounted, so it's neccesary to boot the server into single-user mode. You need a local connection to the server (MP/Serial Port).

To manually boot an Integrity server:

A. Boot the system to the EFI manager screen.
EFI Boot Manager ver 1.10 [14.57]  Firmware ver 2.31 

Please select a boot option 

HP-UX Primary Boot: 0/1/1/1.2.0

EFI Shell [Built-in] 

Boot option maintenance menu 

Security/Password Menu 

Use | and | to change option(s). Use Enter to select an option 
B. If a primary HP-UX boot option is available - select it by pressing enter
(c) Copyright 1990-2003, Hewlett Packard Company. 

All rights reserved 

HP-UX Boot Loader for IPF  --  Revision 1.73

Press Any Key to interrupt Autoboot


Seconds left till autoboot -   9

Type 'help' for help
C. Interrupt the auto-boot sequence by pressing the SPACE bar. This will bring you to the HPUX> prompt.
D. At the HPUX prompt type:
HPUX> boot vmunix -is 

5. Extend the file system. It is going to match the logical volume size. Run the fsck command to make sure it is clean.

# extendfs -F vxfs /dev/vg07/rlvol7

# fsck -F vxfs /dev/vg07/rlvol7

6. Attempt to mount the file system and verify the new size using bdf.

# mount /usr

# bdf /usr

7. Boot the server into multi-user mode. Do not interrupt the server this time.

# shutdown -ry 0


This page was last modified on 3 August 2011, at 19:08. This page has been accessed 2,306 times.