1834272 Members
94915 Online
110066 Solutions
New Discussion

Resizing Partitions

 
Ted McLean
Occasional Advisor

Resizing Partitions

Hey,

I am starting part time work for a company that has several boxes they use to test software. One of them is an HP/UX 11.0 system and I am very inexperienced with this platform. The problem that I am having is that I am attempting to install Oracle but to do so i need to install a list of patches. In order to install these patches I need to increase the size of my /var partition because every time I try to use "swinstall" it complains that I don't have enough space. Does anyone know how I can find what physical disks are in the box and their sizes? Also, does anyone know how I can resize the partition perhaps with some sort of application? Any help would be greatly appreciated. Thanks

Ted
10 REPLIES 10
James A. Donovan
Honored Contributor

Re: Resizing Partitions

First,

# lvextend -L /dev/vg00/lvolY

where /dev/vg00/lvolY is the logical volume associated to your /var partition, then

Then check to see if you have OnlineJFS on your box.

$ swlist -l fileset|grep OnlineJFS
# OnlineJFS B.11.11 Online features of the VxFS File System
OnlineJFS.VXFS-ADV-RUN B.11.11 VXFS-ADV-RUN

If you do, then it's easy...

# fsadm -F vxfs $((size-in-MB>*1024)) /var

otherwise, you'll need to boot to single-user mode and use

# extendfs /dev/vg00/rlvolY

to extend the /var partition
Remember, wherever you go, there you are...
SS_6
Valued Contributor

Re: Resizing Partitions

#vgdisplay -v vg00|more
It will show you free space in volume group (PE x PE size) and all other information you need.
Since you said you are new to Unix You can try increasing /var by SAM. you may have to see this file system is not contigous.
By providing solutions I am helping myself
Ted McLean
Occasional Advisor

Re: Resizing Partitions

Thanks for a prompt reply,

Now I am wondering do I have to reduce another partition before I extend the /var partition? Also is there perhaps a command that would list what physical drives I have installed and their partition tables?

Thanks
James A. Donovan
Honored Contributor

Re: Resizing Partitions

As SS stated, use the vgdisplay command to see how much room you have for growth in the vg00 volume group. Look at the 'Free PE' line.

Free PE * PE Size = total amount of unallocated space.
Remember, wherever you go, there you are...
Ted McLean
Occasional Advisor

Re: Resizing Partitions

Are you saying I can do the whole process using SAM and not deal with the command line? If so that would be great due to the fact that I sometimes get uncomfortable screwing with filesystems through the command line and a nice GUI is always helpful :). Keep in mind there is important company info on this computer.

Thanks,
Ted
SS_6
Valued Contributor

Re: Resizing Partitions

Before issue any command to increas it online , first check online JFS than, for example if you increase it to 2GB
#lvextend -L 2000 /dev/vg00/lvolA
# fsadm -F vxfs -b 2000M /var
vgdisplay -v vg00 will give you all information about all logival volumes and disks under vg00. You may further use lvdisplay -v /dev/vgoo/lvol** to get more information about particular logical volume.
Do man on vgdisplay or lvdisplay.
By providing solutions I am helping myself
Michael Tully
Honored Contributor

Re: Resizing Partitions

First why not try to reduce the size of the existing old patches that may already can be removed.

# cleanup -n -c 1

Have a read of the man page first.

In answer to your second question, you may wish to look at resizing the whole /dev/vg00 volume group. The best way to do this is by creating an ignite backup (make recovery). If you need an update, you can get it here:
http://www.software.hp.com/products/IUX/download.html

Use 'ioscan -fnkC disk' to see what LUN's are on your server.
Use the output of 'vgdisplay -v' to determine which LUN's are used.
You can also use 'pvdisplay /dev/dsk/cXtYdZ (from ioscan) to see also.
Anyone for a Mutiny ?
Ted McLean
Occasional Advisor

Re: Resizing Partitions

How do I boot in single-user mode?
Michael Tully
Honored Contributor

Re: Resizing Partitions


To boot into single user mode.

From the console
# shutdown -r -y 0

SYstem will restart
Interrupt the system at the opportunity where it says 10 seconds to interrupt.

System will stop the the 'BCH' menu.
Choose 'boot from primary'
when the questions says:
interact with ISL say 'y'

ISL> hpux -is
The system will be in single user mode.

Please make sure you have enough disk space before attempting to do the filesystem extension.
Anyone for a Mutiny ?
SS_6
Valued Contributor

Re: Resizing Partitions

See SAM options to do it and always prepare for backout plan if do any changes in system. Take backup(make_recovery,and all other backups)and prepare.
By providing solutions I am helping myself