Operating System - HP-UX
1755744 Members
3068 Online
108837 Solutions
New Discussion юеВ

Re: mirroring primary swap space lvol2?

 
SOLVED
Go to solution
John Guster
Trusted Contributor

mirroring primary swap space lvol2?

A typical HP-UX system has lvol1 as /stand, lvol2 as primary swap space, lvol3 as /. One will add more RAM once device swapping kicks off to keep good performance. But before that happens, the device swap space serves as "reservation" to satisfy the requirement of launching a process, that is it is not really being used in terms of I/O. To save disk space, configure lvol2 as none mirrored while mirroring rest of lvols in vg00. Is it a good practice? will mirrored lvol2 as swap space helps performance?
5 REPLIES 5
Steven E. Protter
Exalted Contributor
Solution

Re: mirroring primary swap space lvol2?

Shalom,

No, mirring lvol2 will not help performance. It will make the system somewhat more reliable in the event of a disk failure, but many people advocate not mirroring swap because it can introduce problems.

I generally will mirror it for reliability concerns. Performance is not an issue in this decision.

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
Pete Randall
Outstanding Contributor

Re: mirroring primary swap space lvol2?

No swap, no system. Absolutely swap should be mirrored.


Pete

Pete
A. Clay Stephenson
Acclaimed Contributor

Re: mirroring primary swap space lvol2?

If swap space is not being then them mirroring will have zero performance impact although mirroring in this context generally degrades performance but if you are swapping to any significant degree performance is so bad that the additional degradation due to the extra mirror write is insignificant. However, it is state-of-the-art stupid not to mirror every swap space for the simple reason that a disk failure will not crash the system nor will it require a shutdown to replace the failed disk. Even if the swap space is not being used, the system can and probably will crash when a swapspace becomes unavailable.
If it ain't broke, I can fix that.
Torsten.
Acclaimed Contributor

Re: mirroring primary swap space lvol2?

IMHO this is NOT a good practice.

If your disk with the swap on crash, your machine will crash too. If you try to boot from alternate, there is no swap space!
You will have 2 problems now.

Consider to mirror all LVOLs!

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!   
John Guster
Trusted Contributor

Re: mirroring primary swap space lvol2?

It is crystal clear that no swap space no running system. One wants a H/A system, lvol2 swap space ought to be mirrored. Thanks for everyone's discussion.