Docker Containers crash (seemingly) randomly

CookiesMonster

Dabbler
Joined
Mar 15, 2021
Messages
19
sdb and sdb1 are showing up now (see photo). I'm on Step 4 of your steps. It's asking for "First Sector". I'm not sure what that means. You mentioned the partition size but I just wanted to be sure.

I created the partition of 16GB (see photo). According to your step 6, which is mkswap -L RANCHER_SWAP /dev/sdb1, except I don't have an sdb1. The one I just created is sdb19 (see photo).

Is this the one I should be calling out?
 

Attachments

  • 2021-03-18 SWAP Partition Creation.jpg
    2021-03-18 SWAP Partition Creation.jpg
    177.5 KB · Views: 149
  • 2021-03-18 Device List.jpg
    2021-03-18 Device List.jpg
    314.5 KB · Views: 148

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
Ah, you got it wrong. Run the fdisk again, and use partition number 1 instead of 19. The start and stops can be the same.
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
Did you run the mkswap already? If so, yes, you can run the ros config set.
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
Done. How do I check to know it worked?

If you run fdisk /dev/sdb, and then p inside fdisk, this will display the partition table. If partition 1 shows Linux swap as the type, you're good.
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
After you create the mount, restart the VM. When it's back up, run free -m or swapon -s to see if you have swap active.
 

CookiesMonster

Dabbler
Joined
Mar 15, 2021
Messages
19
If you run fdisk /dev/sdb, and then p inside fdisk, this will display the partition table. If partition 1 shows Linux swap as the type, you're good.

Here is the output of fdisk /dev/sdb, then p

I don't see anything about it being a SWAP partition.
 

Attachments

  • 2021-03-18 SDB Still now fixed.jpg
    2021-03-18 SDB Still now fixed.jpg
    65.7 KB · Views: 148

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
Run the mkswap again.
 

CookiesMonster

Dabbler
Joined
Mar 15, 2021
Messages
19
I still get the same output after I ran the mkswap line again.

I noticed in your Step 4 you say "Type n to create a new partition. In your case, you want 19, a Linux swap partition. "

I never saw a prompt to set something to "19".

Was that some value I was supposed to set?
 

Attachments

  • 2021-03-18 Same Output.jpg
    2021-03-18 Same Output.jpg
    89.4 KB · Views: 147

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
Sorry. In fdisk, use option t to change the type of partition 1. Select partition 1, and then use type 19 for Linux swap.
 

CookiesMonster

Dabbler
Joined
Mar 15, 2021
Messages
19
I think that fixed the partition type (see photo).

Now I restart the VM and use free -m or swapon -s to see if swap is active?
 

Attachments

  • 2021-03-18 Linux Swap Worked.jpg
    2021-03-18 Linux Swap Worked.jpg
    58.5 KB · Views: 138

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
First, mkswap again to make sure. Then ros config export to make sure the mount is in place. Then you can restart the VM.
 

CookiesMonster

Dabbler
Joined
Mar 15, 2021
Messages
19
Here's what I get from ros config export .

Does this look OK?
 

Attachments

  • 2021-03-18 ROS Export.jpg
    2021-03-18 ROS Export.jpg
    85.5 KB · Views: 138

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
Yes, that looks good.
 
Top