1758847 Members
2867 Online
108876 Solutions
New Discussion юеВ

Re: Extending /opt

 
SOLVED
Go to solution
Alex_17
Frequent Advisor

Extending /opt

Hi,

is it completely necessary to be in single-user to extend /opt filesystem??

Thanks in advance.

Alex.
6 REPLIES 6
harry d brown jr
Honored Contributor

Re: Extending /opt

If you don't have online-jfs, then yes. Although, if you needed space for a new piece of software, you could create another lvol and mount it as a subdirectory of /opt.
Live Free or Die
eran maor
Honored Contributor

Re: Extending /opt

Hi

the reason that the best think is to increase the /opt in a single user mode is because most of the software have open file in /opt .

you can use online-jfs in you have it install
you can also use the command :
fuser to see which process have open file in this file system .

but the easier way is to do it in a single user mode .

if it very imporent not to shutdown the system it will be the best way to install online jfs
that will able you t oincrease it without shutdowning the system .

love computers
Victor BERRIDGE
Honored Contributor
Solution

Re: Extending /opt

Hi,
Absolutely?.. NO, your main concern is more can you avoid other users to try to use /opt?
I have to do so on some box that dont have onlineJfs... without onlineJFS you will have to stop users to use /opt, use fuser to see what is still stopping you to unmount /opt...
maybe you will have to fuser -ku ...
then you can go ahead


Good luck

Victor
Christopher McCray_1
Honored Contributor

Re: Extending /opt

I'm afraid so because at run level 3 (where systems normally run at) /opt is used internally by the OS and applications (doing an fuser -c /opt will show them). You will have to boot into single-user mode . Sorry
Chris
It wasn't me!!!!
Magdi KAMAL
Respected Contributor

Re: Extending /opt

Hi,

Bring everybody out from /opt
#fuser -cu /opt
#umount /opt
#lvextend
#extendfs

And you got it.

Magdi
Randy Gibson
Occasional Contributor

Re: Extending /opt

Thanks all -

Single user mode
fuser -cu
kill rpcd process
extendfs

WORKED LIKE A CHAMP ----