Linux SWAP Priority

Posted on 2005-04-26
Last Modified: 2013-12-15
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?
Question by:richgaz

    Author Comment

    Oh one more thing when i change it how can i reread the fstab without a reboot?
    LVL 2

    Accepted Solution

    /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


    Author Comment

    Thank you thats what I figured
    LVL 2

    Expert Comment

    Thanks :-)

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Currently, there is not an RPM package available under the RHEL/Fedora/CentOS distributions that gives you a quick and easy way to allow PHP to interface with Oracle. As a result, I have included a set of instructions on how to do this with minimal …
    SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
    Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
    Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now