Join the community today
Register Now

VPS problem, missing swap or other problem

Discussion in 'Install & Upgrades or Pre-Install Questions' started by adamus007p, Sep 24, 2019.

  1. adamus007p

    adamus007p Member

    378
    19
    18
    Feb 8, 2019
    Ratings:
    +38
    Local Time:
    5:13 PM
    Hello.
    I was resizing my VPS using a boot cd partition magic. Resize of partition is ok. Problem is with swap which i missing now or maybe there is other problems e.g with hardware or access. Maybe it is not related to swap, but to network storage.

    I use VPS and network storage.

    How to mount/add swap partition?

    root@host1:~# fdisk -l Disk /dev/sda: 80 GiB, 85899345920 bytes, 167772160 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0x5d052558

    Device Boot Start End Sectors Size Id Type /dev/sda1 * 2048 150992895 150990848 72G 83 Linux /dev/sda2 150992896 167772159 16779264 8G 5 Extended /dev/sda5 150994944 167770111 16775168 8G 82 Linux swap / Solaris

    root@host1:~# free -m total used free shared buff/cache available Mem: 7987 1895 1804 211 4287 5628 Swap: 0 0 0

    GUI show only local storage and real memory, there is no virtual memory.

    How to add it?

    addictionally in syslog I see:

    Sep 20 06:26:39 host1 systemd[1]: dev-disk-by\x2duuid-22ca957a\x2d750d\x2d4add\x2d9dc8\x2daa29a451f8db.device: Job dev-disk-by\x2duuid-22ca957a\x2d750d\x2d4add\x2d9dc8\x2daa29a451f8db.device/start timed out. Sep 20 06:26:39 host1 systemd[1]: Timed out waiting for device dev-disk-by\x2duuid-22ca957a\x2d750d\x2d4add\x2d9dc8\x2daa29a451f8db.device. Sep 20 06:26:39 host1 systemd[1]: Dependency failed for /dev/disk/by-uuid/22ca957a-750d-4add-9dc8-aa29a451f8db. Sep 20 06:26:39 host1 systemd[1]: dev-disk-by\x2duuid-22ca957a\x2d750d\x2d4add\x2d9dc8\x2daa29a451f8db.swap: Job dev-disk-by\x2duuid-22ca957a\x2d750d\x2d4add\x2d9dc8\x2daa29a451f8db.swap/start failed with result 'dependency'. Sep 20 06:26:39 host1 systemd[1]: dev-disk-by\x2duuid-22ca957a\x2d750d\x2d4add\x2d9dc8\x2daa29a451f8db.device: Job dev-disk-by\x2duuid-22ca957a\x2d750d\x2d4add\x2d9dc8\x2daa29a451f8db.device/start failed with result 'timeout'.

    i think it is related to missing virtual memory.


    Can you help me how to fix the problem?
     
  2. eva2000

    eva2000 Administrator Staff Member

    59,286
    12,509
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,141
    Local Time:
    1:13 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    For posting command output/logs to retain formatting, use CODE/CODEB bbcode tags. How to use forum BBCODE code tags :)

    Is this with Centmin Mod already installed ? Or you resizing CentOS BEFORE installing Centmin Mod ?

    Why resize VPS partitions ?? Most VPS when properly configured have just one whole / partition so don't need resizing partitions. It's best way to have VPSes configured as one whole / partition.