Unix Technical Forum

Test 222 Question

This is a discussion on Test 222 Question within the AIX Operating System forums, part of the Unix Operating Systems category; --> Q: The df command indicates that a filesystem is full, however, the du command indicates that not all space ...


Go Back   Unix Technical Forum > Unix Operating Systems > AIX Operating System

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-05-2008, 09:29 AM
dawaves@gmail.com
 
Posts: n/a
Default Test 222 Question

Q: The df command indicates that a filesystem is full, however, the du
command indicates that not all space is allocated. How would the system
administraor isolate the discrepancy?

1. Use the fuser command to identify deleted but open files.
2. Use the ipcs command to view orphan shared memory segments.
3. Use the defrag command to determine if the filesystem is fragmented.
4. USe the topas command to identify processes using the most system
resoruces.

I think the answer is fuser and if so, how can you have a deleted file
and still have it open? Is it still in Memory, is that why it could be
open?

Thanks!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-05-2008, 09:29 AM
sol gongola
 
Posts: n/a
Default Re: Test 222 Question

dawaves@gmail.com wrote:
> Q: The df command indicates that a filesystem is full, however, the du
> command indicates that not all space is allocated. How would the system
> administraor isolate the discrepancy?
>
> 1. Use the fuser command to identify deleted but open files.
> 2. Use the ipcs command to view orphan shared memory segments.
> 3. Use the defrag command to determine if the filesystem is fragmented.
> 4. USe the topas command to identify processes using the most system
> resoruces.
>
> I think the answer is fuser and if so, how can you have a deleted file
> and still have it open? Is it still in Memory, is that why it could be
> open?
>
> Thanks!
>

It is possible to delete a file that is still kept open by a user.
Even though the directory entry for a file is gone, file file isn't.
Once the user closes the file, the disk space is released.



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-05-2008, 09:29 AM
dawaves@gmail.com
 
Posts: n/a
Default Re: Test 222 Question

So answer #1 would be the correct answer b/c fuser can see what files
are still open in that directory right?

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-05-2008, 09:29 AM
Dan Foster
 
Posts: n/a
Default Re: Test 222 Question

In article <1147196388.933146.104020@v46g2000cwv.googlegroups .com>, dawaves@gmail.com <dawaves@gmail.com> wrote:
> So answer #1 would be the correct answer b/c fuser can see what files
> are still open in that directory right?


You got it. lsof would also be a good alternative, but it's not a
bundled AIX tool so it won't show up as a test answer option.

-Dan
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-05-2008, 09:29 AM
dawaves@gmail.com
 
Posts: n/a
Default Re: Test 222 Question

Thanks!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:35 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com