Re: help recovering from stupid 'rm' trick



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

.



Relevant Pages

  • Re: AIX reboots
    ... AIX certainly doesn't need to be rebooted. ... maintenance slot to ensure that we can do what we need to. ... be simplest to reboot the server but that isn't actually required. ... AIX reboots I have a procedural question regarding rebooting AIX production servers. ...
    (AIX-L)
  • Re: JCIFS18_15_5D
    ... a Cisco wireless network where we searched for the PC names but did ... remember that the issued went away after we rebooted the servers. ... that this is a naming convention used by some OS or service. ... And ofcourse you should reboot the servers after installing ...
    (microsoft.public.windows.server.general)
  • Re: ML for AIX 5.1
    ... (running PSSP 3.4 and 3.5). ... got other nodes still on AIX 433 and PSSP 3.2/3.4, ... on a few DB servers with inadequate memory. ... being by just adding more paging space and doing a bit of tuning. ...
    (AIX-L)
  • Re: Migrating to AIX 5.2
    ... (Only four servers in total at the moment.) ... New to AIX? ... Subject: Migrating to AIX 5.2 ... I'd recommend 5.2 ML6 with: ...
    (AIX-L)
  • Re: Weird ADO failure/crash behaviour
    ... which managed nearly 18 months uptime in a single stretch - ... that when I was using Windows NT SP6a, ... Thursday invariably it needed a reboot. ... Servers are all HP Netservers and Compaq ML ...
    (microsoft.public.data.ado)