Hello Guest, if you are reading this it means you have not registered yet. Please take a second, Click here to register, and in a few simple steps you will be able to enjoy our community and use our OpenViX support section.
Results 1 to 15 of 34

Thread: Manually Creating a Swapfile

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    pooface's Avatar
    Title
    V.I.P
    Join Date
    Jun 2010
    Posts
    9,731
    Thanks
    1,904
    Thanked 4,791 Times in 1,951 Posts

    Manually Creating a Swapfile

    I've seen a few people asking how to create a swap file for pli image, vti image etc... Have already posted these instructions somewhere on the forum, but putting them in a new thread to hopefully make it easier for people to fine

    Anyway, this is what you should do (worked for me).

    First off, telnet in to the box using your favourite telnet programme.

    Then, type the following command (after count, enter the size of file you want. In example below, it is a 128mb swap - 1024 x 128 = 131072):

    Code:
    dd if=/dev/zero of=/media/usb/swapfile bs=1024 count=131072
    Then, set up a linux swap area:

    Code:
    mkswap /media/usb/swapfile
    Now, to activate the swap space immediately, type:

    Code:
    swapon /media/usb/swapfile
    Now, activate the swap file to load when the vu duo loads, we need to edit the fstab file. To do this, type the following command to edit the fstab file:

    Code:
    vi /etc/fstab
    Add the following line to the file:

    Code:
    /media/usb/swapfile  swap                 swap       defaults              0 0
    Now, when the box restarts, the swap file should automatically be enabled...

    To verify that it has worked correctly, type the following command in a telnet session:

    Code:
    free
    This should give you some information similar to below:

    Code:
                  total         used         free       shared      buffers
      Mem:       140848       135964         4884            0          564
     Swap:       131064         1848       129216
    Total:       271912       137812       134100

  2. The Following 14 Users Say Thank You to pooface For This Useful Post:

    + Show/Hide list of the thanked

    bugaloo41 (13-04-13),cmsdloma (23-03-22),dave_uk (27-09-15),DrProzac (19-07-10),Messi (07-11-10),rolexru (19-07-10),Sicilian (18-07-10),skratch (11-10-13),SLOTH (18-07-10),ToMaJo (03-02-12)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.