- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- what if .. you deleted home dir ?
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
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-29-2001 08:13 AM
03-29-2001 08:13 AM
So here is my first question. What would happened if you deleted your home dir? And all the users in the dir? How would you fix that?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2001 08:16 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2001 08:21 AM
03-29-2001 08:21 AM
Re: what if .. you deleted home dir ?
Good backups are a must. Testing your backups to make sure you can restore from them is another must.
Look at Ignite/UX if you haven't already. Use make_tape_recovery to do a backup of your root VG.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2001 08:23 AM
03-29-2001 08:23 AM
Re: what if .. you deleted home dir ?
Dont throw tommatos at me !!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2001 08:27 AM
03-29-2001 08:27 AM
Re: what if .. you deleted home dir ?
You have GOT to have a backup of some sort. Otherwise, if you lose something important, like home directories, or the /etc/passwd file or /etc/group file, then you are SCREWED.
If you have a tape drive on the machine, then there are tools built into HP-UX that you can use. Ignite/UX and fbackup being the two most commonly used.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2001 08:41 AM
03-29-2001 08:41 AM
Re: what if .. you deleted home dir ?
Backups are only good when you need them. They're insurance policies against disaster. Even with redundant hardware (mirrored and RAID disks), high-availability clusters (MC/ServiceGuard), etc. mistakes will happen, including ones made by you. Removing a file or a directory means its gone! A mirrored disk simply means its gone in two places.
In addition, you need to guard against the malicious attack from the disgrunteled employee.
You should periodically test your backups. After all, the worse time to find out that you can read a tape is when you really need it.
Patrick's pointer to Ignite is very well taken. This is the fastest and easist way to restore your operating system to a functional state. Take a look at the Ignite web page for software and docuementation. Take a look (search) through this forum for pointers on 'make_recovery' [now, 'make_tape_recovery'].
An excellent tool for small system backups and for ad hoc backups is 'fbackup' and 'frecover'. These tools are designed to allow backups on running systems. Files that are in use, but not actively changing during the moments that fbackup is copying them, will be backed up to tape. If a file changes, it will be automatically retried
Take a look at the man pages for 'fbackup' and 'frecover'. Search this forum, too for a multitude of threads on the same.
http://www.software.hp.com/products/IUX/index.html
Regards, and welcome!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2001 08:55 AM
03-29-2001 08:55 AM
Re: what if .. you deleted home dir ?
Always, always, always, always have a recent backup. Not only should you have a recent backup, but you should have multiple versions of recent backups. Daily's, weekly, monthly's, yearly's. You never know when someone's going to delete something and you need to restore.
But you're question was what if there was no backup and someone delted their home directory.
Besides losing data in the home directory you're not that our of luck. You'll have to recreate the home directories. To do this, print out the /etc/passwd file. Start recreating the home directories from this printout. Next you'll have to recreate the profiles. Copy /etc/skel/* into the home directoris. This will allow the users to log in again. If you have a special profile, say for an oracle user, then you'll have to recreate it from scratch. Hope this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2001 08:58 AM
03-29-2001 08:58 AM
Re: what if .. you deleted home dir ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2001 09:02 AM
03-29-2001 09:02 AM
Re: what if .. you deleted home dir ?
Hope someone answers.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2001 09:15 AM
03-29-2001 09:15 AM
Re: what if .. you deleted home dir ?
Yes, one way to test your backup strategy is to remove a file and then restore it from backup. Essentially you are testing both your familarity with the process and you are spot-checking the health of your tapes.
BTW, don't forget to clean tape drives, track how many times tapes are used, and discard old tapes after, say 75-100 uses.
Ideally, if you have a development server, you could Ignite it using your production server's Ignite recovery tape; restore all your production application data; and verify that you ended up with a functional business system.
Another "nice" thing to do with your backup tapes is to get a tape directory after the backup and check it to make sure you backed-up what you intended to do.
'frecover' will generate this for you to a file that you can review (see the man pages). With 'tar', you can redirect the tape directory to a file of your choice.
Your questions are good ones. You're thinking on the right track!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2001 10:01 AM
03-29-2001 10:01 AM
Re: what if .. you deleted home dir ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2001 06:36 AM
03-30-2001 06:36 AM
Re: what if .. you deleted home dir ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2001 06:58 AM
03-30-2001 06:58 AM
Re: what if .. you deleted home dir ?
We use make_recovery -vAC -d /dev/rmt/0m to back up everything on the production terminal servers. Since these servers don't change much, we use the tape to restore any machine that has had a failure.
The other servers are backed up with Omniback.
The DNS servers, I just keep a tar backup of /etc/hosts and the /usr/local/domain directory. I can restore a server fairly quickly with just these files. The tar backup for all DNS machines is stored on all these machines so if any one of them fails, I can get the backup from one that is still living.
I run 15 DNS machines all around the world.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2001 08:47 AM
03-30-2001 08:47 AM
Re: what if .. you deleted home dir ?
It's really about disaster recovery on different levels. If a user deletes their resume it's really not critical to the business. It might be a disaster to them, low level to you. If production data is lost it can be devastating to a business, and your career if you were responsible for the backups.
There are many ways to backup your data - fbackup, tar, cpio, dump, OmniBack and other packages. Use make_recovery to protect the OS.
There really is not a "standard" way to handle this. It depends on your system and environment. Does your data change often? If so, back it up often. Is the data static? You don't need to back it up as often. Many variables.
Since you started this thread with the possibility of /home being deleted, it brings me back to the disaster recovery and resume issues menioned earlier. If you have your resume on the system it likely would be in your home directory. As Tim said keep it up to date and remember the first item of a good disaster recovery plan is the off-site resume. It's protected.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2001 05:02 PM
03-30-2001 05:02 PM
Re: what if .. you deleted home dir ?
Is is all they said???