Operating System - HP-UX
1833996 Members
2839 Online
110063 Solutions
New Discussion

using link for space issues.

 
terrytapp
Advisor

using link for space issues.

here is what is the bdf output.
/dev/vg00/lvol6 3072000 1918714 1084703 64% /opt

/dev/vg00/lvol10 3584000 285320 3103089 8% /opt/tools

/opt/tools is not used much but we have lots of space on that. we need to install a s/w on /opt and it requires about 1GB space. Can i install that s/w (so that it is accessible from /opt but the actual s/w shd reside in /opt/tools), i think this can be done by soft link. Can someone please help so that we could get rid of the space problem?

Thanks

Terry
6 REPLIES 6
Mridul Shrivastava
Honored Contributor

Re: using link for space issues.

There is no issue in selcting the target location as /opt/tools. However I would recommend to increase the /opt and it can be done online if you have online JFS. By this way new sysadmin will not have any issues in locating the software installed.

You can check the free PEs in /usr/sbin/vgdisplay vg00 output and then u can plan for lvextend. followed by fsadm command to increase the filesystem size.
Time has a wonderful way of weeding out the trivial
Jeeshan
Honored Contributor

Re: using link for space issues.

though /opt/tools is a part of /opt, but it has a seperate file system. if you install software in /opt/tools, then size of it will increase. otherway, if you install software in /opt, then only this file system will increase.

software installation using swinstall, will analyze the disk space also. check in the commands or options provided by swinstall. swinstall will shows you the options, this a sam like tools.
a warrior never quits
Dennis Handly
Acclaimed Contributor

Re: using link for space issues.

Yes, a softlink should work fine. You'll need to create it before you install your software.
If the installation procedure removes the whole tree before starting, you may have to move the tree to /opt/tools and add a softlink after.
Rasheed Tamton
Honored Contributor

Re: using link for space issues.

vgdisplay vg00|grep "Free PE"
vgdisplay vg00|grep Size

Multiplying the results of Free PE with Size would give you the Free Space (MB) left in vg00. If it is reasonable size, then as Mridhul said, you can increase the /opt online if you have Online JFS installed.

Otherwise, a soft link would do, if you want to get it from the /opt itself.

cd /opt/tools
mkdir newapp (give the correct dir name)

ln -s /opt/tools/newapp /opt/newapp (here also give the correct dir name)

cd /opt/newapp
bdf . (current file system will show /opt/tools)

Regards.
terrytapp
Advisor

Re: using link for space issues.

Thanks. no space in vg00 and no online JFS, hence the concern.

Thanks

Terry
Rasheed Tamton
Honored Contributor

Re: using link for space issues.

Possible ways:

Use the softlink as above

or

one of this:

Total size of lvol10 is 3.4GB
used 278MB
Free 3.4GB

Depending on the contents on /opt/tools, either you can
remove the lvol10 and give all the space to /opt or
reduce the /opt/tools to 2GB and give the other 1.5 GB to /opt. Unmounting the file systems are required for this.

What version of HP-UX you are using.

Regards,
Rasheed Tamton.