Operating System - HP-UX
1748029 Members
5339 Online
108757 Solutions
New Discussion юеВ

Re: Accidently deleted some of /usr !!!!

 
SOLVED
Go to solution
Brad Marks
Super Advisor

Accidently deleted some of /usr !!!!

Yes, I did a rm -r * when on /usr (I was trying for /usr/old).
I don't usually back up /usr because I do a 'make_tape_recovery -I -x inc_entire=vg00' which includes the 'important' directories under /usr.

How can I resurrect /usr form this ignite tape?

Help!
Thanks!
-Brad
It's not impossible -- it'll just cost more...
7 REPLIES 7
James R. Ferguson
Acclaimed Contributor
Solution

Re: Accidently deleted some of /usr !!!!

Hi Brad:

Assuming a PA-RISC system, do:

# cd /
# mt -f /dev/rmt/0mn fsf 1
# tar -xvf /dev/rmt/0m ./usr

If your system is an Integrity one use:

# mt -f /dev/rmt/0mn fsf 22

Regards!

...JRF...
Brad Marks
Super Advisor

Re: Accidently deleted some of /usr !!!!

James,
Yes, it's a RISC system. I'm giving you 10 points because I'm desperate! I'm hopeful this will work.
Thank you very much!
-Brad
It's not impossible -- it'll just cost more...
Brad Marks
Super Advisor

Re: Accidently deleted some of /usr !!!!

I did the tar, but it didn't restore anything. I'm trying the command again, this time without the leading period (./usr vs. /usr).
Eek!
Brad
It's not impossible -- it'll just cost more...
James R. Ferguson
Acclaimed Contributor

Re: Accidently deleted some of /usr !!!!

Hi (again) Brad:

Sorry, I believe its "usr" without any leading slash or dot:

# tar -xvf /dev/rmt/0m usr

Of course, you can verify the tape contents with:

# tar -tvf /dev/rmt/0m | more

Regards!

...JRF...
Brad Marks
Super Advisor

Re: Accidently deleted some of /usr !!!!

Thanks, James.
I'll try that. I also found a backup of vg00 and vg01 which /usr should be on.
I'll post my success when it happens!
-Brad
It's not impossible -- it'll just cost more...
Brad Marks
Super Advisor

Re: Accidently deleted some of /usr !!!!

That worked and /usr was restored from the tape. Thanks!
The lp spooler wouldn't work, so I had to reboot. Everything is going along swimmingly now.
Thank you all for being here!
-Brad
It's not impossible -- it'll just cost more...
Brad Marks
Super Advisor

Re: Accidently deleted some of /usr !!!!

Everything is fine thanks to you guys!
It's not impossible -- it'll just cost more...