1753900 Members
7591 Online
108809 Solutions
New Discussion юеВ

Re: primary swap problem

 
SOLVED
Go to solution

primary swap problem

hi experts

pls tell me ,if the primary swap is corrupted or not available whether the system can boot up

if possible in which run level i have to boot

then how to set right the primary swap
7 REPLIES 7
Steven E. Protter
Exalted Contributor
Solution

Re: primary swap problem

Shalom,

Most likely your system would boot up, but it would run poorly if at all.

The only thing you would be able to do is configure swap.

I would use sam in your shoes.

or:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=806309

This problem is why I go against convention and mirror swap when possible. I want the system to keep running normally if one of the swap disks or mirrors goes offline.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Steven E. Protter
Exalted Contributor

Re: primary swap problem

Sorry for breaking up my post

http://docs.hp.com/en/B2355-90691/index.html
Better doc.

Feel free to penalize me on points for fuzzy thinking(incomplete post).

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Ajitkumar Rane
Trusted Contributor

Re: primary swap problem

Anith,


Yes the system can boot up provided the pseudo swap is enabled, which by default is, remember the kernel parameter swapmem_on.

Otherwise as per my knowledge the system should have atleast one device swap area available when the system boots.

So if pseudo swap is disabled in the kernel and if no device swap is available then the system should not boot.


Hope you assign points as you get your doubts clear. :-)

Rgds,

Ajit
Amidsts difficulties lie opportunities
Ajitkumar Rane
Trusted Contributor

Re: primary swap problem

Anith,


Yes the system can boot up provided the pseudo swap is enabled, which by default is, remember the kernel parameter swapmem_on.

Otherwise as per my knowledge the system should have atleast one device swap area available when the system boots.

So if pseudo swap is disabled in the kernel and if no device swap is available then the system should not boot.

Sorry not sure if you can boot the system in maintenance mode at all as the primary swap is on the boot disk itself.

When you say swap is corruptefd I assume the disk got bad blocks, so to set right you need to replace the disk and reinstall/ignite.

Hope you assign points as you get your doubts clear. :-)

Rgds,

Ajit
Amidsts difficulties lie opportunities
Ajitkumar Rane
Trusted Contributor

Re: primary swap problem

Oops 2 replies, hit the submit button and then the stop X button as i realised u had couple of questions, sorry ignore my first reply.

Rgds

Ajit
:-(
Amidsts difficulties lie opportunities

Re: primary swap problem

thanks for your valuable replys

with regard

Anith
Bill Hassell
Honored Contributor

Re: primary swap problem

The swap contents are undefined as you boot up so it can't be corrupted. Now if you mean that the disk has errors when accessing areas in the lvol, then yes, the system will at least boot up. BUT: any attempt to page out to a bad spot, or use of memory mapped files in an area where the swap area has a defect will immediately cause a system crash. You can be sure that booting into single user mode will not require touching the swap area. Otherwise, it is difficult to guess what applications may need to use swap space.


Bill Hassell, sysadmin