- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- someone created a /var/adm filesystem
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
03-10-2003 03:21 PM
03-10-2003 03:21 PM
I have a developer was filling up /var .. so they decided to create a /var/adm file system. So now everything in /var/adm is gone. They did it though sam.
How can I get it back ?
And what will break.
Thanks
Richard
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2003 03:23 PM
03-10-2003 03:23 PM
Re: someone created a /var/adm filesystem
Richard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2003 03:27 PM
03-10-2003 03:27 PM
Re: someone created a /var/adm filesystem
P.S. You also lost your syslogs, shutdownlogs, sulogs, btmp, etc. This was "state of the art" dumb.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2003 03:35 PM
03-10-2003 03:35 PM
Re: someone created a /var/adm filesystem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2003 03:38 PM
03-10-2003 03:38 PM
Re: someone created a /var/adm filesystem
Thanks for your blunt and always answer. As far as who gave them root access .. the question really is why root access was never taken away. As much as I have tried and tried and preached and preached about it .. i am talking to deaf ears. ONE DAY something will happened and everything will start to listen.
Anyways..
I didnt know what to do here so I just deleted the lvol they created. And to my surpise everything was there.
All the files .. everything was there.
Now the question is why did this work?
Richard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2003 03:39 PM
03-10-2003 03:39 PM
SolutionNow: 1) Never give root to someone 2) Always have a backup.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2003 03:39 PM
03-10-2003 03:39 PM
Re: someone created a /var/adm filesystem
If you have a filesystem mount point that contains files and directories - and subsequently you mount another file system on top of it, I believe you'll find that the underlying stuff is still there. umount the file system (e.g. umount /var/adm) and see what happens.
-C
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2003 03:45 PM
03-10-2003 03:45 PM
Re: someone created a /var/adm filesystem
This techniques gives a whole new meaning to hidden file ;-).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2003 03:51 PM
03-10-2003 03:51 PM
Re: someone created a /var/adm filesystem
Thanks,
I awarded 10 points for an actull fix to the issue.
Chris. I was meaning to award you another 8 points for the explaination. But I got click crazy here. IOU - 3 points
You know .. no one here was really worried about /var/adm not being there. I dont think they really understand what goes on in there. I qoute someone: " its only log files"
Richard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2003 04:32 PM
03-10-2003 04:32 PM
Re: someone created a /var/adm filesystem
I would simply change the root password and tell no one what it is. Unfortunately, sysadmin wannabe's would think you are being obtuse...so run, don't walk to the tape supplies and start a full backup. At the same time, download the latest version of Ignite/UX and run make_tape_recovery after the full backup is done.
Repeat for every machine that you might get blamed for..
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2003 04:47 PM
03-10-2003 04:47 PM
Re: someone created a /var/adm filesystem
I did think about leaving it broken. But when would it be noticed? Maybe when someone tries to install or remove something?
As far as me being attributed for no back ups. I have made big stides in that. I have been able to purchase 10 tape drives and do back ups on "critical servers". And this server did not fall into that catergory. So it would noe have fallen on my lap.. it just falls on my lap when people mess up. And all I can do is try to fix what is broken.
lol .. you know I did try your suggestion about root passwords. Once I did do that. And I even have some servers that no one but me knows the root password. When I first started working here everyone and their grandma logged in as root. Slowley but surley that habbit is getting broken. There were people who complained and complained about root login. But it seems to be one server at a time. Most of the really crutial everyone does not have the root password. And root login with telnet is disabled. We are slowly moving towards no root login.
Richard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2003 05:23 PM
03-10-2003 05:23 PM
Re: someone created a /var/adm filesystem
Well now you might be knowing the need for having a full backup handy.
One more thing, If you mount any filesystem on a mount point having files, it is not deleted. It just becomes unaccessable. If you just unmount the fs, you can see the files back. So no need to panic for this, unless the original fs is removed.
Well as already suggested, in your case of /var/adm, you have to boot into single user mode to copy the files from /var/adm to new fs to avoid the file in use problems.
Regards
Srini.