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 ...
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| 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! |
| |||
| 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. |
| |||
| 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 |