- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- missing files
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2008 04:28 AM
09-29-2008 04:28 AM
missing files
I have had a very strange problem on a server running 11.11, files are going missing mostly from /usr/bin and /opt. I'm then having to recovery the machine using ignite and a backup tool. This weekend is the second time it's happen over the last six weeks. Apart from someone deleting the files which is always a possibility but I hope unlikely.
This weekend files such as cat, bdf, ll, vi, more and serveral others were missing from /usr/bin
Also all the contents /opt/hpservices/lib were missing and all the files apart from the links were missing from /opt/dce/bin
The problems comes to light following a reboot of the server.
Any ideas what might be happening would be most welcome.
Thanks
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2008 04:38 AM
09-29-2008 04:38 AM
Re: missing files
Check the history file if somebody removed the file unknowingly using rm as root user.
Also check if any script doing that in the background.
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2008 04:42 AM
09-29-2008 04:42 AM
Re: missing files
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2008 04:54 AM
09-29-2008 04:54 AM
Re: missing files
A properly configured system isn't going to allow a non-root user to remove files from directories like '/usr/bin' and //opt'. Given that, if you have any scripts that you run as the root user, you might want to look at those scripts for 'rm' commands.
Pay attention to any script that assumes a change directory operation works and/or assumes that variables are always defined. For example:
# cd ${SOMEPATH}
# rm ${LIST_OF_FILES}
Scripts like this should have :
# set -u
...to expose undefined variables
Too, make sure you trap 'cd' failures, like:
# cd SOMEPATH || { exit 1; }
The 'root' user should always have a HOME directory that isn't just '/'. Either '/root' or '/home/root' are appropriate. In this way, as simple 'cd' or 'cd ${SOMEPATH}' [when "SOMEPATH" isn't defined] doesn't leave you sitting in '/' when you don't want to be!
This all said, i would run :
# swverify \*
...to help expose the extent of your damage. You may have to rebuild your server from a good Ignite backup if the damage is severe.
Regards!
...JRF...
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2008 05:32 AM
09-29-2008 05:32 AM
Re: missing files
The one thing which is bothering me is the randomness of the files which are missing and also their doesn't seem to be a pattern.
Somtimes serveral files from /usr/bin directory and other instances all the files from the directory are missing. But in the /opt/dce/bin directory the binaries we missing but the symbolic links remain untouched? Could this be an inode issue?
Only vg00 seems to be effect the application SAN filesystems are okay
thanks
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2008 05:38 AM
09-29-2008 05:38 AM
Re: missing files
> The one thing which is bothering me is the randomness of the files which are missing and also their doesn't seem to be a pattern.
You might look for a 'find' command gone wrong.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2008 09:47 PM
09-29-2008 09:47 PM
Re: missing files
You forgot some descriptive words "horribly horribly wrong". :-)