1833052 Members
2503 Online
110049 Solutions
New Discussion

increase logical volume

 
SOLVED
Go to solution
szhiyong
Frequent Advisor

increase logical volume

Hi,

I tried to use SAM to increase one logical volume, but I got the error message "the device is busy". I think it is because the directory need to unmount. But I try " umount /usr2", I still got "device busy" error.

Would someone help me to solve this problem?

Thanks a lot for your help.

Zhiong
My life is now asking and learning, I wish It can change into replying and discussing
9 REPLIES 9
Olivier LEGRAND
Frequent Advisor
Solution

Re: increase logical volume

Hi,

Use the "fuser -u /usr2 " to know who is working on this file system.

Regards
Vijeesh CTK
Trusted Contributor

Re: increase logical volume

hi,


do a fuser -cu /usr1 to find otu what processes are using that file systems. kill all the processes.

either by

fuser -ku /usr1 or
kill processes one by one

this will help u

Vijeesh CTK
Corthouts Carlo
Valued Contributor

Re: increase logical volume

Hi,

First you need to unmount the filesystem, but if anyone is working on any of the files located under this filesystem you will
receive the device is busy error message.

fuser will not always show you what process or user is working on /usr2 but maybe you should try lsof which will show you all open files under this directory.

Best is to install online jfs and get a license to use it. This will help you reduce downtime for the users and the system and you can perform almost all actions online while the filesystem is mounted.

Robin Wakefield
Honored Contributor

Re: increase logical volume

Hi Zhiong,

Add the "-c" option since it is a mount-point:

fuser -c /usr2

otherwise it won't necessarily pick up all processes that have files open within the filesystem.

Rgds, Robin
Trond Haugen
Honored Contributor

Re: increase logical volume

It is only if you have OnlineJFS (Advanced VxFS) that you don't have to umount the filesystem.

Trond
Regards,
Trond Haugen
LinkedIn
Sanjay_6
Honored Contributor

Re: increase logical volume

Hi,

Try this,

fuser -cu /mount_point

This will list the user and the processes using the mount point. To kill all the processes or users,

fuser -ck /usr2

Check for the list of processes/users using this mount point once again. IF no process is listed, you should be able to unmount the filesystem. If there is a process you cannot kill, reboot of the system looks like your only choice.

Hope this helps.

Regds
K.Vijayaragavan.
Respected Contributor

Re: increase logical volume

fuser -ku /usr2 to kill all the process running on this filssystem.

If you are not having online jfs then better to goto single user mode and do it.

you can either use sam or "lvextend and extendfs" combinations to acomplish the same.

-K.vijay
"Let us fine tune our knowledge together"
Roger Baptiste
Honored Contributor

Re: increase logical volume

hi,

if you have Adv JFS installed, you don't need to unmount filesystem.

Manually, you can extend the fs as

lvextend -L size /dev/vgx/lvy
SIZE=size*1024
fsadm -b SIZE /mtpoint


Otherwise, unmount the filesystem after doing
fuser -cu
fuser -cuk (to kill the processes using the filesystem. Be sure before you do this).

-raj
Take it easy.
szhiyong
Frequent Advisor

Re: increase logical volume

Hi,All,

Thanks a lot for all your help. I really appreciated it.
I just solved this problem because of these good suggestion.

Have a good day.

Zhiyong
My life is now asking and learning, I wish It can change into replying and discussing