- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Directory is missing
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-23-2008 05:01 AM
09-23-2008 05:01 AM
Some of the important directory is missing on hp-ux box. As I am having a root privilege, How could find out who has deleted those folder?
And Is it possible to take back of this folder now?
Thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2008 05:06 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2008 05:08 AM
09-23-2008 05:08 AM
Re: Directory is missing
if you know when it's deleted check logins with last -R and check IP's. if you have backup or ignite-backup you can recover. if these files are binaries, libraries etc you can copy files from an identical server.
Kenan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2008 05:08 AM
09-23-2008 05:08 AM
Re: Directory is missing
> How could find out who has deleted those folder?
The word is "directory" in UNIX. You might examine any scripts that you recently modified. There are safe ways to code and their are unsafe ways. Of course, the damage may have been done at the command line. You could try examining your shell history.
> And Is it possible to take back of this folder now?
Without knowing what was deleted, the answer varies. Was it just a directory? (then recreate it). Was a directory and its files deleted? (then a good backup may be appropriate to restore (partially)). Does it really matter? (then maybe this is a good lesson).
UNIX (and LINUX) isn't that other operating system. There is no "recycle bin". UNIX is designed to do whatever you tell it to do without fuss.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2008 05:17 AM
09-23-2008 05:17 AM
Re: Directory is missing
ioscan -fnC disk
?
If you have a bad disc, I hope you have a good backup.
Mark Syder (like the drink but spelt different)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2008 05:29 AM
09-23-2008 05:29 AM
Re: Directory is missing
Which directory got deleted? Is it a system directory OR data? Check the history of commands, may be accidentally deleted the files or wrong command.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2008 05:44 AM
09-23-2008 05:44 AM
Re: Directory is missing
When I issue the command last -R, it response that, pid exceeds MAXPID: wtmp file corrupted.
I tried this in root user.
I remeber the folder name. Is not a system directory, Its a data only. But I dont know where I have to check the backup of this folder. I am not sure abt ignite backup.
Please help me out..
Thank you..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2008 05:49 AM
09-23-2008 05:49 AM
Re: Directory is missing
Have restore from last good backup is the only way to restore if it is really missing. If directories or deleted by some script then history also won't be able to provide the details.
Just to confirm ensure it is not NFS mount and unmounted by someone.
Thanks.
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2008 05:51 AM
09-23-2008 05:51 AM
Re: Directory is missing
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2008 08:22 AM
09-23-2008 08:22 AM
Re: Directory is missing
if it was part of a database structure, then your going to have to recover the db to the last consistent backup. if it was simply "storage space" for documents, then it might not matter at all.
if it was system config information, then it needs to come off a backup tape.
without information as to what was actually stored there, its all just a guess.
you *do* have backups, right?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2008 09:01 AM
09-23-2008 09:01 AM
Re: Directory is missing
This type of problem is common where too many new users (who is new to unix) are there, Most of the time I found those missing directories are not removed from the system, those directory has been moved from their original location.
So better check with find command, I hope you will find those missing directory here is the command
#cd /
#find / -name missingdirectory â print | more
Best of luck
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2008 03:15 AM
09-24-2008 03:15 AM
Re: Directory is missing
I could not find out those directorys. The directory contains the installable files for MQ application.
So, I took back of those directory from other server and checked in current server. Its working fine.
How do I check who deleted those directorys. Is there any command?
Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2008 03:24 AM
09-24-2008 03:24 AM
Re: Directory is missing
If auditing is enable then you can do very easy way other wise you have to go users home directory and grep rm in .sh_history this may help you.
# grep rm .sh_history
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2008 03:50 AM
09-24-2008 03:50 AM
Re: Directory is missing
check also the permissions of the directory in which the lost directory was.
Change permissions, so no user can delete files or sub-directories.
You can also check the Trash-directories of your users.
It's in
Well, with the find command from '/' these directories will be checked too.
Do a 'grep rm
so the first '*' is for all users.
Volkmar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2008 09:58 AM
09-24-2008 09:58 AM
Re: Directory is missing
I could see the directory was deleted by some one. found that using the command 'grep rm
Thanks,
Ram
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2008 10:28 AM
09-24-2008 10:28 AM
Re: Directory is missing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2008 07:12 PM
09-24-2008 07:12 PM
Re: Directory is missing
Congrets for recovered Valuable Data and Putting Point as per you accessment also.
Regards,
Gokul Chandola
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2008 09:05 PM
09-24-2008 09:05 PM
Re: Directory is missing
If the directory that contains that directory isn't modified that often you can use "ll -d parent-directory" to see the time of last deletion/addition.