Operating System - HP-UX
1847856 Members
2596 Online
104021 Solutions
New Discussion

Re: creating additional device swap

 
SOLVED
Go to solution
Brent Hardesty
Advisor

creating additional device swap

My question comes when creating the logical volume. Can you please explain to me why I want to turn bad block allocation off for device swap? From my current understanding, you can leave it on for device swap that will be used as reserve swap. Maybe I dont fully understand bad block allocation. Thanks for any insight you can provide. Should I turn bad block allocation off when adding device swap?

Brent
6 REPLIES 6
harry d brown jr
Honored Contributor

Re: creating additional device swap

because you really want swap to be contiguous. It will deal with bad spots itself, like through a kernel panic - just kidding.
Live Free or Die
harry d brown jr
Honored Contributor
Solution

Re: creating additional device swap

Opps, Yes you should turn bad block allocation off for device swap. Of course, filesystem swap might be a better use of disk, depending upon the availablility - the more free disk = device swap, not enough disk = filesystem swap (of course with performance penalities).
Live Free or Die
Brent Hardesty
Advisor

Re: creating additional device swap

One more question. What would be the outcome if you created device swap with bad block allocation turned on?
harry d brown jr
Honored Contributor

Re: creating additional device swap

Well if swap used it, and then a bad spot came along, and swap tried to reference that portion of disk that was bad, and the data was moved elsewhere, it wouldn't know where to go get it.
Live Free or Die
Brent Hardesty
Advisor

Re: creating additional device swap

Simple enough!!!!

Thx for the time and help!

Brent
Sridhar Bhaskarla
Honored Contributor

Re: creating additional device swap

If you turn on bad block relocation, then the LVM will allot special storage at the end of the disk to handle bad blocks. swap should be contiguous. So,with bad block relocation on, disk errors may confuse paging activity which may result serious problems like system hanging, crash etc.,

-Sri
You may be disappointed if you fail, but you are doomed if you don't try