Re: help recovering from stupid 'rm' trick
- From: "steven_nospam at Yahoo! Canada" <steven_nospam@xxxxxxxx>
- Date: 24 Apr 2006 14:08:02 -0700
No need to lecture...ESC-K can be your friend as well as your foe. And
most of us learn this the hard way.
You can try using the mksysb to restore missing files. I believe they
are on file 3 in tar format, unless that has changed in AIX 5. As long
as your tape drive control commands are still working, you could try
retrieving the files from the tape, but I am not sure whether it will
recover properly:
# cd /
# tctl -f /dev/rmt0 rewind
# tctl -f /dev/rmt0.1 fsf 3
# tar -xvf /dev/rmt0
Of course, after doing this, the true test is whether a reboot works.
So make sure you back up your data and applications and work from
today, try the reboot and then if it fails, I'd just restore from the
mksysb the "proper" way.
Another thing you could try is (if you have two AIX servers on same rev
O/S), check the other server and compare the files in the areas that
were likely clobbered.
If you do a find command (using ls not rm pls!) on the other working
server, you may see which directories were affected (since the find
probably deleted based on sequential Inode numbers and they may be the
same on both servers if the same AIX CDROM was used to install both
originally...)
Steve
.
- Follow-Ups:
- Re: help recovering from stupid 'rm' trick
- From: Tim Wunder
- Re: help recovering from stupid 'rm' trick
- References:
- help recovering from stupid 'rm' trick
- From: Tim Wunder
- help recovering from stupid 'rm' trick
- Prev by Date: Re: help recovering from stupid 'rm' trick
- Next by Date: Re: System Dump size seems excessive
- Previous by thread: Re: help recovering from stupid 'rm' trick
- Next by thread: Re: help recovering from stupid 'rm' trick
- Index(es):
Relevant Pages
|