Operating System - HP-UX
1837450 Members
3677 Online
110117 Solutions
New Discussion

recovery for /usr on ux box rx2660

 
SOLVED
Go to solution
salrab
Occasional Advisor

recovery for /usr on ux box rx2660

Hi there, By mistake just deleted /usr volume on my ux box rx2660, didn’t restart the system, need to recovery it back from recovery ignite. I can’t find success for listing
# tar –tv /dev/rmt/0m on recovery disk. Please advice in this matter.
# ioscan -fnC tape
Class I H/W Path Driver S/W State H/W Type Description
===========================================================tape 0 0/4/1/1.3.0 stape CLAIMED DEVICE HP C7438A
/dev/rmt/0m /dev/rmt/c2t3d0BESTn
/dev/rmt/0mb /dev/rmt/c2t3d0BESTnb
/dev/rmt/0mn /dev/rmt/c2t3d0DDS
/dev/rmt/0mnb /dev/rmt/c2t3d0DDSb
/dev/rmt/c2t3d0BEST /dev/rmt/c2t3d0DDSn
/dev/rmt/c2t3d0BESTb /dev/rmt/c2t3d0DDSnb
# mt -t /dev/rmt/0m fsf 1
# tar xvf /dev/rmt/0mn usr
Tar: blocksize = 1
directory checksum error
10 REPLIES 10
salrab
Occasional Advisor

Re: recovery for /usr on ux box rx2660

Please advice more if there is no harm, can I restore /usr from another UX box that is rx2620, OS version 11i ver2 is same but the problem box rx2660 model differ? regards
Steven Schweda
Honored Contributor
Solution

Re: recovery for /usr on ux box rx2660

> mt -t /dev/rmt/0m fsf 1

Is that a no-rewind tape device? Forward
spacing won't help much if you rewind right
after you do it.

"tar tfv [...]" might be helpful, too, to see
what the "tar xf [...]" will wreck.
Torsten.
Acclaimed Contributor

Re: recovery for /usr on ux box rx2660

Look at this (check the contents):

# mt -f /dev/rmt/_mn rew
# mt -f /dev/rmt/_mn fsf 22
# tar -tvf /dev/rmt/_mn

Note "22", because it is an Integtrity.



IMHO it is better to boot from the tape and restore the complete backup.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
salrab
Occasional Advisor

Re: recovery for /usr on ux box rx2660

Yes you are right, I cant rewind the tape.. means tape drive is set as no-rewind option.


# mt -t /dev/rmt/0m fsf 22 (drive light blinks)
# mt -t /dev/rmt/0m rew (drive do nothing)

Please guide more to set as rewind. So then I can recover lost volume. best regards
Torsten.
Acclaimed Contributor

Re: recovery for /usr on ux box rx2660

Read more carefully!!!

"0mn" - not only "0m"!

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
salrab
Occasional Advisor

Re: recovery for /usr on ux box rx2660

Thanks for clearing.
# mt -f /dev/rmt/0mn rew (Drive do nothing)
also for
# mt -f /dev/rmt/0mnb rew (Drive do nothing)
regards
Torsten.
Acclaimed Contributor

Re: recovery for /usr on ux box rx2660

# mt -f /dev/rmt/0mn rew (Drive do nothing)


rew means rewind - if it is at the beginning (well, it is!), doing nothing is expected!

However, consider to boot from the tape and restore everything!

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
salrab
Occasional Advisor

Re: recovery for /usr on ux box rx2660

Please advice more if there is no harm, can I restore /usr from another UX box that is rx2620, OS version 11i ver2 is same for hoth but the problem box rx2660 model differ? regards
Torsten.
Acclaimed Contributor

Re: recovery for /usr on ux box rx2660

I would not do this. You are not sure if both systems are exactly the same (IMHO they are not!).

Restore the complete backup - good luck!

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Sandeep_Chaudhary
Trusted Contributor

Re: recovery for /usr on ux box rx2660

After doing steps provided by "Torsten"
it should work.