Operating System - HP-UX
1836096 Members
2317 Online
110089 Solutions
New Discussion

Problem; moving vmunix from /stand to any other directory.

 
SOLVED
Go to solution
hakan Güleç
Occasional Advisor

Problem; moving vmunix from /stand to any other directory.

Hi,
Accidentaly (my guy said) moved vmunix and .prev from /stand to /info (this is other fs) to open place from /.
And now we can not open HPUX 10.20.
Is there any method to boot OS from any dir other than /stand? We try ISL>hpux but not satisfy.
Any comment? (thanks)
16 REPLIES 16
steven Burgess_2
Honored Contributor

Re: Problem; moving vmunix from /stand to any other directory.

Hi

You can just make a new copy of the kernel
or move the old kernel back to /stand

Here are the steps to rebuild / ammend kernel parameters

Make a copy of the original

#cp /(dir)/vmunix /stand/vmunix.prev
#cp /stand/system /system/system.old

created the new editable file

#cd /stand/build
/usr/lbin/sysadmin/system_prep -s system

If you wish to make any changes

#vi system

make the new untried kernel (which will be called /stand/build/vm_test

#/usr/sbin/mk_kernel

Now put the kernel ito the right place to have it loaded at boot time

#mv vmunix_test ../vmunix
#mv system ..

He is an excellent link to configurable parameters also

http://docs.hp.com/hpux/onlinedocs/os/KCparams.OverviewAll.html

Regards

Steve

take your time and think things through
steven Burgess_2
Honored Contributor

Re: Problem; moving vmunix from /stand to any other directory.

Have you got an ignite tape, you can boot from that

interrupt the log in process

boot alternate

can specify device , if not will default to
/dev/rmt/0m

take your time and think things through
steven Burgess_2
Honored Contributor

Re: Problem; moving vmunix from /stand to any other directory.

Also you could try

from the ISL>

ISL> hpux (0;)/(wherever you kernel is)
take your time and think things through
hakan Güleç
Occasional Advisor

Re: Problem; moving vmunix from /stand to any other directory.

Hi,
We are not opening the system now.
it gives error as "can not open /stand/vmunix"
we are on ISL>.
any comment?
But I know vmunix is on /info.
hakan Güleç
Occasional Advisor

Re: Problem; moving vmunix from /stand to any other directory.

ISL> hpux /stand/vmunix command says
not such file or directory.
when I search the info with "hpux ll /info
it gives nothing. Because it is in a filesystem other than root.
Do we have any chance to mount this fs from ISL?
thanks.
steven Burgess_2
Honored Contributor

Re: Problem; moving vmunix from /stand to any other directory.

What about booting from a recovery shell

Boot from a recovery tape, as normal. Once the system starts booting from the recovery tape, you will be asked to interupt the boot sequence again, hit the return key and you will be presented with a menu

Follow the menu to run a recovery shell

If you choose to run a recovery shell you will get the next prompt

would you like to start networking at this time?(n)

You will then have a cut down version of unix from the tape, with /sbin, /usr, /dev, /stand, /var and /tmp plus a few others. You may then be able to locate you kernel and move it back to /stand

take your time and think things through
steven Burgess_2
Honored Contributor

Re: Problem; moving vmunix from /stand to any other directory.

If you do get the recovery shell, you will have to load the required commands

ie

loadfile ls
loadfile cp
loadfile mv

take your time and think things through
Steven Sim Kok Leong
Honored Contributor
Solution

Re: Problem; moving vmunix from /stand to any other directory.

Hi,

Follow the instructions in this document to run a recovery shell:

http://us-support.external.hp.com/cki/bin/doc.pl/sid=2e3a56e617dd2dedb5/screen=ckiDisplayDocument?docId=200000047869320

Once you are in the recovery shell with the appropriate settings configured (indicated in the document), you can mount /info and /stand, then move vmunix back from /info to /stand.

Hope this helps. Regards.

Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com
John Bolene
Honored Contributor

Re: Problem; moving vmunix from /stand to any other directory.

You can boot from CD and then get to /stand. If you moved the file to another directory that is not mounted, you will have to either mount them or recover the lv.

/stand is a special place that the disk kernel is found and should never be moved to anywhere else as you found out.
It is always a good day when you are launching rockets! http://tripolioklahoma.org, Mostly Missiles http://mostlymissiles.com
Roger Baptiste
Honored Contributor

Re: Problem; moving vmunix from /stand to any other directory.


Hi,

hpux but not satisfy.>

No. But no need to panic. You can still
boot the system and move the vmunix file to its original location of /stand.

Locate the Support CD and boot from it.
Then, run the recovery shell from the support CD boot menu options. FOllowing further instructions as mentioned in the link below, you should be able to get into the system.
Once you get in, use mv command to move the precious vmunix file to /stand and then reboot the system.
http://us-support3.external.hp.com/cki/bin/doc.pl/sid=fcb183b006eeb40464/screen=ckiDisplayDocument?docId=200000047869320

HTH
raj
Take it easy.
Jason VanDerMark
Trusted Contributor

Re: Problem; moving vmunix from /stand to any other directory.

Hmmm, I was thinking about this problem and I had a thought. You could only boot from a kernel not in /stand if the filesystem(we will call it /bob) were an HFS one correct? If the filesystem were HFS you shouldn't have any problems booting from it and then you could move it over to /stand once the system was booted up. Am I correct in this thinking or not?

Regards,
Jason V.
Tie two birds together, eventhough they have four wings, they cannot fly.
Sanjay_6
Honored Contributor

Re: Problem; moving vmunix from /stand to any other directory.

Hi,

at the isl prompt try,

ISL> hpux (;0)/info/vmunix

Hope this helps.

Regds
Kelli Ward
Trusted Contributor

Re: Problem; moving vmunix from /stand to any other directory.

Hi,
You should be able to boot HP-UX from ISL> by typing:
hpux -i3 /info/vmunix (or -is for single-user state) (-i3 is a typical default run level. Also, you may need use mount -a to gain full access to your file system if LVM)
You can then move the kernel back and reboot.
Good luck.
Kel
The more I learn, the more I realize how much more I have to learn. Isn't it GREAT!
Wodisch
Honored Contributor

Re: Problem; moving vmunix from /stand to any other directory.

Hello hakan,

you only have to choices, now:
1) boot from install CD and have it copy a new kernel to your boot file system. Then boot from there (single-user) and copy the original kernel back to "/stand". Reboot again.
2) boot from install CD and get a "recovery shell". Mount the "/info" file system manually, and copy the original kernel back. Unmount "/info" and exit the recovery shell. Reboot.

HTH,
Wodisch
Sridhar Bhaskarla
Honored Contributor

Re: Problem; moving vmunix from /stand to any other directory.

I guess you might have already recovered your system. If not, there is no need to panic. Check out this document

http://docs.hp.com/hpux/onlinedocs/B3782-90732/B3782-90732.html

Look for chapter 4 "HP-UX System Recovery"

and click on Expert Recovery Using the core media.

and proceed from there.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
hakan Güleç
Occasional Advisor

Re: Problem; moving vmunix from /stand to any other directory.

Hi all,
The problem has been solved only by support media and recovery.
ISL>hpux /info/vmunix or any other method did not work.
Thanks everybody .
hakan.