1 |
Yes, everything mounts when I explicitly say swapon -a. No problems in |
2 |
/var/log/messages. |
3 |
|
4 |
Here's the output of swapon -sv: |
5 |
|
6 |
# swapon -sv |
7 |
Filename Type Size Used Priority |
8 |
/swap file 6291452 0 5 |
9 |
/dev/sdb1 partition 1099772 776 10 |
10 |
/lcl/WDC_WD20EFRX-68EUZN0_WD-yyyyyyyy/1/swap file 3071996 |
11 |
0 1 |
12 |
|
13 |
On 2020-03-04 10:43, Michael wrote: |
14 |
> On Wednesday, 4 March 2020 09:24:31 GMT n952162 wrote: |
15 |
>> On 2020-03-04 10:10, Michael wrote: |
16 |
>>> On Wednesday, 4 March 2020 08:09:45 GMT n952162 wrote: |
17 |
>>>> Hi, |
18 |
>>>> |
19 |
>>>> I have 3 swap devices and files. At boot, it seems indeterminate which |
20 |
>>>> ones get "mounted" (as swap areas). |
21 |
>>>> |
22 |
>>>> Does anyone have an idea why they're not all mounted? |
23 |
>>>> |
24 |
>>>> Here are the swap lines from my fstab: |
25 |
>>>> |
26 |
>>>> #LABEL=swap none swap sw 0 0 |
27 |
>>>> |
28 |
>>>> /dev/disk/by-id/ata-TOSHIBA_DT01ACA300_xxxxxxxx-part1 none swap |
29 |
>>>> |
30 |
>>>> sw,pri=10 0 0 |
31 |
>>>> |
32 |
>>>> /swap none swap sw,pri=5 0 0 |
33 |
>>>> |
34 |
>>>> /lcl/WDC_WD20EFRX-68EUZN0_WD-yyyyyyyyyy/1/swap none swap |
35 |
>>>> sw,pri=1 0 0 |
36 |
>>> The second entry is missing the device you intend to mount. |
37 |
>>> |
38 |
>>> When you list the first and third devices do you see anything wrong with |
39 |
>>> them? |
40 |
>>> |
41 |
>>> When you try to enable them manually with 'swapon -v' what do you get? |
42 |
>>> |
43 |
>>> PS. If any of these swap block devices are actually files within a fs make |
44 |
>>> sure you first fill them up with dd, because files with holes in them |
45 |
>>> could |
46 |
>>> fail to be enabled. Also some fs (btrfs?) are not good candidates for |
47 |
>>> having swap files on them, if they move data around with cow. |
48 |
>> The second and third entries are files, created with dd(1), from |
49 |
>> /dev/zeros, as shown on the mkswap(8) man page. No word in |
50 |
>> /var/log/messages for non-mounted swaps. |
51 |
> I assume you have run something like this: |
52 |
> |
53 |
> dd if=/dev/zero of=/swap bs=4096 count=xxxxxxxx |
54 |
> mkswap -c -f -L moreswap /swap |
55 |
> swapon -v -o pri=5 /swap |
56 |
> |
57 |
> When you run 'swapon -v /swap' does it enable it? Is dmesg happy? |
58 |
> |