1826451 Members
3917 Online
109692 Solutions
New Discussion

/opt

 
John Ramsay_1
Occasional Advisor

/opt

I increased my /opt but I still can't install mazilla. The Disk space analysis shows only 93k available but the vol is 1100 meg. This is a new load so I'm wondering where did the disk space go and why did the disk analysis not change even though I increased it by 300 megs?
17 REPLIES 17
Pete Randall
Outstanding Contributor

Re: /opt

John,

It sounds like you may have done an lvextend to increase the size of the "container" without doing an extendfs to increase the size of the actual contents.


Pete

Pete
Elmar P. Kolkman
Honored Contributor

Re: /opt

What does bdf say about /opt ?
Every problem has at least one solution. Only some solutions are harder to find.
DIPAK KUMAR ROY
Frequent Advisor

Re: /opt

How you increased the filesystem by 300MB ?
Did you only increased the logical volume using lvextend ?

Thanks
Helen French
Honored Contributor

Re: /opt

What's the output of 'bdf'. How did you extend /opt? Did you forget to do 'fsadm' or 'extendfs' ?
Life is a promise, fulfill it!
John Ramsay_1
Occasional Advisor

Re: /opt

Tell me more about extendfs...It looks like that is my problem
Sanjay_6
Honored Contributor

Re: /opt

Hi,

Did you do a extendfs or fsadm -b after you did the lvextend.

If you have online jfs use "fsadm -b" to extend the size after lvextend. If not then you have unmount the filesystem, do a extendfs and then remount it.

Hope this helps.

Regds
John Ramsay_1
Occasional Advisor

Re: /opt

what is the actual command line?
Robert-Jan Goossens
Honored Contributor

Re: /opt

Hi,

Did you extend your filesystem like this example ?

# lvextend -L XXX /dev/vg00/lvolX

# extendfs /dev/vg00/rlvolx

# bdf

HTH,
Robert-Jan
Paula J Frazer-Campbell
Honored Contributor

Re: /opt

John

man man

also :-
man extendfs


Paula
If you can spell SysAdmin then you is one - anon
Jeff Schussele
Honored Contributor

Re: /opt

Hi John,

It would be like

fsadm -F vxfs -b 1100M /opt

NOTE the M after the 1100 - designates 1100 MB to the command. Must have OnLine JFS to do this.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
DIPAK KUMAR ROY
Frequent Advisor

Re: /opt

If you have online JFS use this command to extend the filesystem:

fsadm -F vxfs -b /opt

If you don't have online JFS, then you need to increase the filesystem in single user mode. Use "extendfs -F vxfs /dev/vg00/rlvol6"

Note: I assumed the filesystem is vxfs and /dev/vg00/lvol6 is mounted to /opt

Thanks
Helen French
Honored Contributor

Re: /opt

Try this:

# extendfs -F fs_type /dev/vgXX/rlvol?

If you had extended /dev/vg00/lvol7 and if that uses a vxfs file system, then try this command:

# extendfs -F vxfs /dev/vg00/rlvol7
Life is a promise, fulfill it!
Pete Randall
Outstanding Contributor

Re: /opt

John,

From "man extendfs":


umount /dev/vg00/lvol1

lvextend -L larger_size /dev/vg00/lvol1

extendfs -F hfs /dev/vg00/rlvol1

mount /dev/vg00/lvol1 mount_directory


Note that, in order to run this, you'll need to unmount the file system and, in order to do that, you'll need to go to single user mode (reboot, interrupt, interact with ISL, enter "hp-ux -is"), unless, of course you have OnlineJFS installed and can run fsadm against the mounted file system.


Pete

Pete
Sanjay_6
Honored Contributor

Re: /opt

Hi,

The command line for using fsadm if you have onlineJFS is,

fsadm -b size_in_1k_blocks /mount_point

Size in 1k blocks is : size_in_mb * 1024

Get the size in mb using lvdisplay command.

Hope this helps.

Regds
melvyn burnard
Honored Contributor

Re: /opt

You may also wish to visit the site to look at some of hte manuals for HP-UX:
http://docs.hp.com/
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
DIPAK KUMAR ROY
Frequent Advisor

Re: /opt

Oops.. some correction..

If you have online JFS use this command to extend the filesystem:

fsadm -F vxfs -b /opt

If you don't have online JFS, then you need to increase the filesystem in single user mode. Use "extendfs -F vxfs /dev/vg00/rlvol6"

Note: I assumed the filesystem is vxfs and /dev/vg00/lvol6 is mounted to /opt

Thanks
Geoff Wild
Honored Contributor

Re: /opt

Or, like this:

lvextend -L 1100 /dev/vg00/lvol6

fsadm -F vxfs -b 1100M /opt

or, if no online jfs:

umount /opt
lvextend -L 1100 /dev/vg00/lvol6
extendfs -F vxfs /dev/vg00/rlvol6
mount /opt

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.