1833568 Members
3415 Online
110061 Solutions
New Discussion

second swap..

 
SOLVED
Go to solution
mark.M
Frequent Advisor

second swap..

i don't know following...please
1.:/> swapinfo -atm
Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 2048 0 2048 0% 0 - 1 /dev/vg00/lvol2
dev 8000 0 8000 0% 0 - 1 /dev/vg00/sec_swap
original swap is dev/vg00/lvol2 and add swap is /dev/vg00/sec_swap. pri values equal is "1".
is normal value?

2. cat /etc/fstab
/dev/vg00/sec_swap ... swap pri=1 0 2
add swap id record fstab. "swap pri=1 0 2"
normal value?
3.
uniedu01:/> lvdisplay /dev/vg00/sec_swap
--- Logical volumes ---
LV Name /dev/vg00/sec_swap
VG Name /dev/vg00
LV Permission read/write
LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 8000
Current LE 2000
Allocated PE 2000
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation strict
IO Timeout (Seconds) default
is normal configration?
5 REPLIES 5
Devender Khatana
Honored Contributor
Solution

Re: second swap..

Hi,

Everything except your lvol's reallocation not set to off is normal. LVOL used for swap should be created by following command which is not done.

#lvcreate -C y -r n -L xxxx /dev/vgyy

HTH,
Devender
Impossible itself mentions "I m possible"
Rajeev  Shukla
Honored Contributor

Re: second swap..

Also your allocation policy should be strict/contiguous which gets created when used -C option in lvcreate
mark.M
Frequent Advisor

Re: second swap..

i know -C y is contiguous allocate options.
i know is only primary must -C options, second swap is must used not -C options.
my think bad??

=====================================
/dev/vg00/sec_swap ... swap pri=1 0 2
=====================================
waat is mean "... swap pri=1 0 2" ??
... and 1 0 2 ???
Devender Khatana
Honored Contributor

Re: second swap..

Hi,

These are priority for the swap LVOL & mount options as defined for any other logical volume in /etc/fstab.

It is always recommended to have all swap spaces to be contiguous all it is not mendatory.


HTH,
Devender
Impossible itself mentions "I m possible"
Devesh Pant_1
Esteemed Contributor

Re: second swap..

One more point I wanted to bring up was the mirror copies. If you have the secondary swap on an array it is fine. But if it is on a local disk, you might consider having it mirrored like the primary swap.
if so add a
-m 1
to the lvcreate command.
if not, you are fine as it is.

thanks
Devesh