Sunday, April 10, 2011

Extending the root filesystem in HP-UX

Solution:
This is assumed that you already have a online JFS installed on the HP box.

1.Assume / is /dev/vg00/lvol3 and it is a vxfs file system.

lets assume that /dev/vg00/lvol4 is the next logical volume on the disk.

2. Move lvol4 to the other disk in VG00 ,extend the root volume and the filesystem.
pvmove -n /dev/vg00/lvol4 /dev/dsk/
lvextend -L /dev/vg00/lvol3
fsadm -F vxfs -b 100M /

Your / filesystem must be a contiguous logical volume so you need to move the logical volume after it to another disk.

3.After you extended /dev/vg00/lvol3 you can now move lvol4 back to the root disk
pvmove -n /dev/vg00/lvol4 /dev/ /dev/

If you do not have a ONLINE JFS installed or have a HFS root filesystem ignite may be your best choice.

Ignite Procedure:

After the initial Ignite interface is loaded from your tape or Ignite server, you will have an opportunity to interact with the Ignite tabbed interface. Use the tab key to access the FileSystem tab and resize file systems as you wish. After each change, be sure to click
[Modify].

After you have resized your file systems, click [Go!].
Ignite will rebuild your boot disk using the new file system sizes, and restore your data from the recovery archive. Using make_net_recovery, this oftentimes takes less than 20 minutes!

No comments: