Operating System - HP-UX
1826344 Members
4387 Online
109692 Solutions
New Discussion

Re: HP-UX11iv3 -- How to extend / file system

 
shashi kanth
Super Advisor

HP-UX11iv3 -- How to extend / file system

#lvextend -L 5000 /dev/vg00/lvol3
Warning: rounding up logical volume size to extent boundary at size "5008" MB.
lvextend: Not enough free physical extents available.
Logical volume "/dev/vg00/lvol3" could not be extended.
Failure possibly caused by contiguous allocation policy.
Failure possibly caused by strict allocation policy


I tried this command even in the single user mode.

How i extend / file system in HP-UX 11Iv3?


Thanks.
6 REPLIES 6
Anshumali
Esteemed Contributor

Re: HP-UX11iv3 -- How to extend / file system

Never tried on 11.31 but i hope it should be similar to 11.11

Ignite Backup
downtime
Restore-modify the size of / while restore.
Release to business

Anshu
Dreams are not which you see while sleeping, Dreams are which doesnt allow you to sleep while you are chasing for them!!
shashi kanth
Super Advisor

Re: HP-UX11iv3 -- How to extend / file system

Please can you explain with commands ? Forget about backup.
Bill Hassell
Honored Contributor

Re: HP-UX11iv3 -- How to extend / file system

lvol3 is usually the root filesystem. It cannot be extended because it must remain contiguous. lvol4 follows lvol3 so it can't be extended. There are two ways to solve this:

1. As mentioned, use the Ignite/UX program to backup your vg00 volume, then restore it by increasing the size for /.

2. (usually the simplest) Remove all the junk files and directories that are in /. The / directory is static, that is, it does not grow at all unless bad mistakes have been made. Fix the mistakes and the requirement goes away.

To find mistakes in the / filesystem, use this command:

du -kx / | sort -rn | head -20

Then post the results and we can tell you what to fix.


Bill Hassell, sysadmin
Deepak Kr
Respected Contributor

Re: HP-UX11iv3 -- How to extend / file system

yes, bill is absolutely correct.

/(root), swap and /stand file system are always contiguous so cannot be operated like others for extension.

Best fix as of now is you find out big size files (backup or old copies) and move them to some other FS....remember ---Dont move OS files critical to run OS.

apart from du you can also use find

find / -xdev -type f -size +100000 -exec ll -rt {} \;

"There is always some scope for improvement"
shashi kanth
Super Advisor

Re: HP-UX11iv3 -- How to extend / file system

I have removed some files.

Thank you.
Steven E. Protter
Exalted Contributor

Re: HP-UX11iv3 -- How to extend / file system

Shalom,

Make an ignite make_tape_recovery or make_net_recovery backup.

Restore the system.

Intervene when prompted to change file system sizes.

However, as I'm sure Bill has noted, there really should not be a need to put any real files on root. Therefore I would hunt around and find out what is taking the space and try avoid the expansion exercise.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com