1833019 Members
2540 Online
110049 Solutions
New Discussion

Re: fuser or something

 
SOLVED
Go to solution
Scott Frye_1
Super Advisor

fuser or something

I am trying to make my /u filesystem able to receive "largefiles". I'm trying it in sam and it is telling me it can't because the filesystem is busy. Can I do a 'fuser' or something to see what is using /u. To my knowledge, nothing should be at this time.

Thanks

Scott
10 REPLIES 10
David Child_1
Honored Contributor
Solution

Re: fuser or something

Try fuser -cu /u

Make sure you are not in there or it will pick that up.

David
Dave Hutton
Honored Contributor

Re: fuser or something

Sure, you can fuser -u /filesystem or if you want to kill the fuser -k /filesystem.
root # fuser -u /root
/root: 29086c(root) 29132c(root) 29084c(root) 29131c(root) 29125c(root) 29130c(root) 21899c(root) 29133c(root) 29059c(root) 29128c(root) 29134c(root)

Another tool that would probably tell you is lsof, but typically isn't on all servers.

Todd McDaniel_1
Honored Contributor

Re: fuser or something

If you have advanced JFS features...use the command line.

fsadm -F vxfs -o largefiles /mount/point
Unix, the other white meat.
Scott Frye_1
Super Advisor

Re: fuser or something

All I get is:

#fuser -cu /u
/u:
Dave Hutton
Honored Contributor

Re: fuser or something

Try it fuser -u /dev/vgxx/lvolxx, is there anything else on that lvol?

Scott Frye_1
Super Advisor

Re: fuser or something

nothing

#fuser -u /dev/vg01/lvu
/dev/vg01/lvu:
Scott Frye_1
Super Advisor

Re: fuser or something

The only consideration is we also have a filesystem called /u/hcdist. We have been able to change /u/hcdist to largfiles.
Dave Hutton
Honored Contributor

Re: fuser or something

That command will work against lvols. Ignore my question though, obviously you can only mount 1 lvol per mount point. I think, I had vg's on my mind.

Dave


David Child_1
Honored Contributor

Re: fuser or something

Scott, You would first have to unmount /h/hcdist before you can unmount /h. Unless you have online JFS you will need to unmount it before this can be set. You may have to do this on the command line:

umount /h/hcdist
umount /h
fsadm -F vxfs -o largefiles /dev/vgxx/lvxx (the LV for /h).

Make sure /etc/fstab has the 'largefiles' option, then
mount /h
mount /h/hcdist

fuser may list no processes using it, but if another file system is mounted on top you won't be able to unmount.

David
Scott Frye_1
Super Advisor

Re: fuser or something

Got it. The fact that we had another filesystem that shared /u was the problem. We umounted /u/hcdist, then were able to modify /u. Thanks for all your input.