• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1232
  • Last Modified:

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?
0
richgaz
Asked:
richgaz
  • 2
  • 2
1 Solution
 
richgazAuthor Commented:
Oh one more thing when i change it how can i reread the fstab without a reboot?
0
 
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:
Thank you thats what I figured
0
 
Darshan_JadavCommented:
Thanks :-)
0

Featured Post

Configuration Guide and Best Practices

Read the guide to learn how to orchestrate Data ONTAP, create application-consistent backups and enable fast recovery from NetApp storage snapshots. Version 9.5 also contains performance and scalability enhancements to meet the needs of the largest enterprise environments.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now