Linux SWAP Priority

Running Linux on a Z/Seires and I want to use a small swap disk (in virtual) and I nned it to have a higher priority than the other SWAP default is set to pri=42.  WHat are the values for pri= in the /etc/fstab which will make one swap preferred over the other?
richgazAsked:
Who is Participating?
 
Darshan_JadavCommented:
/sbin/swapon [-v] [-p priority]  priority is a value between 0 and 32767, being 0 as lowest

Add pri=value to the option field of /etc/fstab for use with swapon -a.

just run the command swapon to the swap partion, u dont need reboot for SWAP to take effectz

0
 
richgazAuthor Commented:
Oh one more thing when i change it how can i reread the fstab without a reboot?
0
 
richgazAuthor Commented:
Thank you thats what I figured
0
 
Darshan_JadavCommented:
Thanks :-)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.