Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

fuser on a filesystem that is not mounted

Status
Not open for further replies.

KPKIND

Technical User
Sep 8, 2003
130
IN
Hi,

Can someone let me know what will be the output of running a fuser -c command on a filesystem that is not mounted.
On one of my server, in the rootvg there is an LV called lv00 which has an associated fs called images. I was trying make a copy of this lv on to another disk, but it was copying with some stale partitions on the new disk.So I thought of unmounting the filesystem and then running and mklvcopy. So ran fuser cmd to see who is using the filesystem, it has given the same output as if you run the fuser command on / (fuser -c /)

I was confused.

Any light is very much appreciated

TIA
KPKIND
 
I was confused.

I am confused :)

If the filesystem is offline, then no user process can access it, so why are you running it ?

Alex
 
if your FS /images is unmounted, then running fuser -c / and fuser -c /images is the same thing: report open file in filesystem containing "/" or "/images" is equivalent.

With an unmounted FS "/images", the directory /images 'steps back' into the "/" filesystem.

BTW - stale partitions have got nothing to do with open files - it is because a disk has gone bad, or a mirrored copy has not been synchronized yet. Try syncvg -l lv00 to sync any stale PPs if that is still possible. If syncvg complains about not being able to fully synchronize all PPs, then you are stuck with that. That being the case, I suggest you go get your backup tapes out of the safe...

If you are very lucky and all the stale PPs contain empty blocks, then it may be possible to recover: tar the filesystem and untar it in a new one. Or make a new fs "/images_new" (same size at least as "/images") and issue

mount /images
mount /images_new
cd /images
cp -pr * /images_new # note: also look for hidden files!
cp -pr .[a-z]* .[A-Z]* /images_new
cd /
unmount /images
unmount /images_new
chfs -m /images_bad /images # keep old one until absolutely sure that is no longer needed
chfs -m /images /images_new
mount /images


HTH,

p5wizard
 
Thanks p5Wizard,

Even before you said I have tried creating a new fs and copying things from corrupted lv, but while copying I have some errors which said cannot get information on the file so and so.. which shows that there were files in the disk region which has gone bad. So now I am trying to get my backup tapes out, as the mirror copy of this lv also some stale PP's

Anyway thank you very much for the info

TIA
KPKIND
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top