1756996 Members
2264 Online
108858 Solutions
New Discussion юеВ

Extending File Systems

 
SOLVED
Go to solution
Andre Franklin
Advisor

Extending File Systems

I have extended my logical volumes on vg00 and would like to extend my critical file systems. I do not currently have OnlineJFS so do not have a way to change (Ex. /opt) without un-mounting the files system. How do I unmount /opt so I can extend the file system?
15 REPLIES 15
Burak Topal
Frequent Advisor
Solution

Re: Extending File Systems


First kill all processes related to /opt filesystem;

fuser -k /opt

unmount filesystem;

umount /opt


lvextend -L /dev/vg00/lvol*
extendfs -F vxfs /dev/vg00/rlvol*

Andre Franklin
Advisor

Re: Extending File Systems

Will the following command:

extendfs -F vxfs /dev/vg00/rlvol*

fill the logical volume?
singh sanjeev
Trusted Contributor

Re: Extending File Systems

!!!i think u have to boot ur system in single user mode then doing ...extnedfs.
Sanjeev Singh
Andre Franklin
Advisor

Re: Extending File Systems

When I perform

fuser -k /home

I get this:

/home:

But the file system is still mounted.
Pete Randall
Outstanding Contributor

Re: Extending File Systems

It's not that you have to be in single user mode, it's just that it is pretty much impossible to unmount /opt without going to single user mode.

Your question: will extendfs "fill the logical volume?". If I understand what you are asking, yes, it will make all the space allocated to that logical volume available in the file system (/opt in this case).


Pete

Pete
AnthonySN
Respected Contributor

Re: Extending File Systems

you have to boot into single user mode to unmount /opt or /home.

fuser -k /home
will not umount /home
you have to do
umount /home
and then as mentioned above
lvextend -L /dev/vg00/lvolname
extendfs -F vxfs /dev/vg00/rlvolname

check the lvol name by doing bdf
Andre Franklin
Advisor

Re: Extending File Systems

When I perform the umount command I get:
umount cannot unmount /dev/vg00/lovl* : Device busy
umount: return error 1
Pete Randall
Outstanding Contributor

Re: Extending File Systems

Which is why it was suggested that you will have to boot into single user mode. The /opt file system is always busy and the only way to get it unbusy and unmounted is to never mount it in the first place: single user mode.


Pete

Pete
Andre Franklin
Advisor

Re: Extending File Systems

I am in single user mode as well.