1 |
On 2020-03-04 10:10, Michael wrote: |
2 |
> On Wednesday, 4 March 2020 08:09:45 GMT n952162 wrote: |
3 |
>> Hi, |
4 |
>> |
5 |
>> I have 3 swap devices and files. At boot, it seems indeterminate which |
6 |
>> ones get "mounted" (as swap areas). |
7 |
>> |
8 |
>> Does anyone have an idea why they're not all mounted? |
9 |
>> |
10 |
>> Here are the swap lines from my fstab: |
11 |
>> |
12 |
>> #LABEL=swap none swap sw 0 0 |
13 |
>> |
14 |
>> /dev/disk/by-id/ata-TOSHIBA_DT01ACA300_xxxxxxxx-part1 none swap |
15 |
>> sw,pri=10 0 0 |
16 |
>> |
17 |
>> /swap none swap sw,pri=5 0 0 |
18 |
>> |
19 |
>> /lcl/WDC_WD20EFRX-68EUZN0_WD-yyyyyyyyyy/1/swap none swap |
20 |
>> sw,pri=1 0 0 |
21 |
>> |
22 |
> The second entry is missing the device you intend to mount. |
23 |
> |
24 |
> When you list the first and third devices do you see anything wrong with them? |
25 |
> |
26 |
> When you try to enable them manually with 'swapon -v' what do you get? |
27 |
> |
28 |
> PS. If any of these swap block devices are actually files within a fs make |
29 |
> sure you first fill them up with dd, because files with holes in them could |
30 |
> fail to be enabled. Also some fs (btrfs?) are not good candidates for having |
31 |
> swap files on them, if they move data around with cow. |
32 |
|
33 |
|
34 |
The second and third entries are files, created with dd(1), from |
35 |
/dev/zeros, as shown on the mkswap(8) man page. No word in |
36 |
/var/log/messages for non-mounted swaps. |