1847587 Members
4247 Online
110265 Solutions
New Discussion

Recovery of /stand

 
SOLVED
Go to solution
Bravo_1
Advisor

Recovery of /stand

Hi,

I accidentally deleted the /stand logical volume and with the fbackup tape I recovered the filesystem. However, after I rebooted, the os was not able to find /stand/vmunix.

What other configurations need to be done other than recreate the logical volume and recovering the filesystem?

Thanks in advance!
7 REPLIES 7
Bill Hassell
Honored Contributor
Solution

Re: Recovery of /stand

Nothing needs to be done after you recover /stand. HOWEVER, if you un-mounted /stand, it would appear to have disappeared but it is still there. Use mount to restore it. If however you removed the /stand directory then restored /stand, the directory will be created in the / directory and the boot ROMs cannot see the / directory. To fix this, you would have to put the files back into the correct directory. Unfortunately, the system can't bootup. Your only choice would be to attach a temporary disk, install a minimum version of HP-UX and then import the old disks to fix the problem. Otherwise, you'll need to use your Ignite backup tape to restore the system.


Bill Hassell, sysadmin
A. Clay Stephenson
Acclaimed Contributor

Re: Recovery of /stand

Your big mistake was not carefully examining /stand after restoring it. While you might have restored /stand, you might not have played by all the rules (and I'll assume this is a PA-RISC box):

/stand must be located on the first LVOL. It must have a contiguous allocation policy. It must be an hfs filesystem. If you don't meet all of these requirements then the box ain't gonna boot.

You will need to restore from Ignite or install this disk in another box and rebuild/restore /stand from backup.
If it ain't broke, I can fix that.
Bravo_1
Advisor

Re: Recovery of /stand

I did restore the /stand with the name lvol1(does it work in this case?). I also configure it to be contiguous allocation and as a hfs filesystem.

A. Clay Stephenson
Acclaimed Contributor

Re: Recovery of /stand

Simply giving it the name 'lvol1' is not sufficient; it must be the first LVOL on the disk meaning that Logical Extent 0 of this LVOL must also be Physical Extent 0 of the boot volume. In fact, the LVOL could be /dev/vg00/lvoldummy and it would work equally well as long as this were the first LVOL.
If it ain't broke, I can fix that.
Geoff Wild
Honored Contributor

Re: Recovery of /stand

You need to create it like so:

lvcreate -l 1 -m 1 -r n -C y -s y -n lvol1 /dev/vg00
lvextend -L SIZEINMB /dev/vg00/lvol1
newfs -Fhfs /dev/vg00/rlvol1
mount /stand

Then do your restore...

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Bravo_1
Advisor

Re: Recovery of /stand

Thanks guys for giving me a clearer picture. In the end I guess the safest way is to use the make rec and restore as a clean system.

Regards
Saurav_1
Valued Contributor

Re: Recovery of /stand

Hello,

There is a OLD policy, You would have heard about it.

root,boot,swap are contiguous on root disk. If you deleted /stand which is boot. You cannot create it on the same location. So you have to restore the OS from Ignite or reinstall.

Thanks,