Operating System - HP-UX
1832920 Members
3066 Online
110048 Solutions
New Discussion

Re: swapconf: no primary swap configured

 
SOLVED
Go to solution
Mayank_1
New Member

swapconf: no primary swap configured

Hello all!


We've got a strange problem here. Well, it's self invited ofcourse due to sheer accident. Anyhow, the baseline is, I forgot to
lvlnboot and set up the primary swap before rebootting :( It was a mistake.. had been a long day, so please don't flame me!


my question is: while in ISL , I believe there is a "-a" option in the hpux bootstrap command which can pass the kernel config for swap, boot console or root. Can anybody tell me how i can user this param to enable swap space at startup.

a few important observations:
disk is c0t5d0
swap is /dev/vg00/lvol2 in the lvm config


Thank you.

Mayank
10 REPLIES 10
Phil Daws_2
Regular Advisor

Re: swapconf: no primary swap configured

hpux -aS
Vincent Farrugia
Honored Contributor

Re: swapconf: no primary swap configured

Hello,

you have to type:

hpux -aS (device_path)

This is used to override default devices in the kernel. you can specify root, console, swap or dump.

HTH,
Vince
Tape Drives RULE!!!
Mayank_1
New Member

Re: swapconf: no primary swap configured

Phil, Vince:

Thanx for replying. I do know about the syntax. My real problem is what exactly is "devicefile". is it /dev/vg00/lvol6 ?
Vincent Farrugia
Honored Contributor

Re: swapconf: no primary swap configured

Hello again,

Basically it is the hardware path of the harddisk.

An example might me 44.5.0;0.

Do a sea to check the hardware path of the harddisk you wish.

HTH,
Vince
Tape Drives RULE!!!
Santosh Nair_1
Honored Contributor

Re: swapconf: no primary swap configured

This is only a guess, but I would say that its looking for the hardware path to the swap device. E.g. I would try:

hpux -aS (;2)

i.e. swap is on section 2 of the boot disk. But his is just a guess.

-Santosh
Life is what's happening while you're busy making other plans
Wim Rombauts
Honored Contributor
Solution

Re: swapconf: no primary swap configured

Hello there,

I see that nobody is really sure about the device path untill now. Don't try and guess because you could overwrite your root filesystem.

Therfor, another way to solve this : Do you have your install & recovery media ? If so, you can boot from it, and choose the option to start a recovery shell. From there, you can choose the option to "chroot to LVM disk" (option "c" I have on my documentation, then option "x" and follow the instructions). From that point on, you can activate your root volumegroup (vgchange -a y /dev/vg???) and then run lvlnboot -s /dev/vg??/??? to configure your swap.

It's a longer procedure, but it's a little more sure to do no harm.
Steven Gillard_2
Honored Contributor

Re: swapconf: no primary swap configured

My suggestion is to boot into maintenance mode, perform the lvlnboot command, then reboot normally. ie:

ISL> hpux -lm
:
# vgchange -a y /dev/vg00
# lvlnboot -s /dev/vg00
# reboot

Regards,
Steve
Mayank_1
New Member

Re: swapconf: no primary swap configured

first of all, thank you all folks for replying.

and here is the status: As Win notes, nobody is really sure and whatever guesses i've tried have not worked. a google search on this problem took me here:
http://aa11.cjb.net/hpux_admin/2001/03/0269.html
on this page Martin says:

Thanks to Tripathi Ashish, Donald Manley, Hari, Jean Borowczyk, Vinay and
Wolf-Dietrich (I hope I 'm not missing anyone).

Almost all agree (and it 's true!) that my problem was not doing :

lvlnboot -b /dev/vg00/lvol1
lvlnboot -s /dev/vg00/lvol2
lvlnboot -d /dev/vg00/lvol2
lvlnboot -r /dev/vg00/lvol3

before the reboot. To solve it, Hari proposed interrupting the boot,
interact with the IPL and entering LVM maintenance mode by issuing: hpux -lm
but, at least in my case, it didn 't work: it made a panic and nothing more.


Finally, the solution was to boot from the installation CD, option 2 (Run a
Recovery Shell), then "Troubleshoot a non booting HP-UX" and there,
selecting option "c" (Reinstall the LIF). You must provide the hardware path
of the boot disk.

After that, the server did booted en maintenance mode (-lm). I 've done the
lvlboot stuff and the system came back to like.

Many thanks,

Martin



However, I do not have the install media. I am wondering if Ignite-UX could be any use?

Can ignite ux give me a recovery shell?

I am reading the manuals as i ask, so yes i am doing the homework (rtfm) as i seek help

once again, thanks
-mayank

Vincent Farrugia
Honored Contributor

Re: swapconf: no primary swap configured

Hello,

No, Ignite won't run a recovery shell. You need the install media for that.

Sorry,
Vince
Tape Drives RULE!!!
Nikki Holland
New Member

Re: swapconf: no primary swap configured

I have got the same problem after I ignited the server using my igite tape. the ignite restore finished successfully, but when it boots up it complains of the swap space not configured and it crashs..