1 |
Incidentally, in order to debug that, I set the /etc/rc.conf *rc_logger* |
2 |
variable to YES: |
3 |
|
4 |
rc_logger="YES" |
5 |
|
6 |
I'm not sure why that's not the default, as it appears to be on ubuntu, |
7 |
assuming that similar-seeming functionality really is similar. |
8 |
|
9 |
|
10 |
|
11 |
On 2020-03-18 19:35, n952162 wrote: |
12 |
> |
13 |
> Okay, after many hours of investigation and experimentation, I finally |
14 |
> figured this out. |
15 |
> |
16 |
> For many years now, I have written my /etc/fstab using the |
17 |
> /dev/disk/by-id directory, because I think it's easier to keep track |
18 |
> of the names there - it's the only way to do it symbolically. |
19 |
> |
20 |
> It's always struck me that nobody else does that and I've wondered |
21 |
> why... now I know... |
22 |
> |
23 |
> It turns out, that, now, on my computer, those names aren't set up |
24 |
> yet. The "missing" devices caused the localmounts service to fail - |
25 |
> partially or fully, randomly - including for the swaps. |
26 |
> |
27 |
> When I go through the nasty process of using blkid(8) and specifying |
28 |
> the *UUID=* device name in fstab, then the problem goes away. |
29 |
> |
30 |
> |
31 |
> |
32 |
> On 2020-03-17 13:37, n952162 wrote: |
33 |
>> |
34 |
>> There's new information on this, and new questions... |
35 |
>> |
36 |
>> I discovered that not only are my swaps not mounted, but the other |
37 |
>> filesystems listed in /etc/fstab aren't, either. |
38 |
>> |
39 |
>> These are, apparently, mounted by the localmount RC service. |
40 |
>> |
41 |
>> Its status is *started*. But if I /restart/ it, then my fstab |
42 |
>> filesystems get mounted. |
43 |
>> |
44 |
>> Question: /etc/init.d/localhost says: |
45 |
>> |
46 |
>> description="Mounts disks and swap according to /etc/fstab." |
47 |
>> |
48 |
>> but I can't see where that script mounts swaps. Is the description |
49 |
>> obsolete? |
50 |
>> |
51 |
>> Question 2: how can one see the output from the RC "e-trace" |
52 |
>> statements (e.g. ebegin/eend)? |
53 |
>> |
54 |
>> I don't find it in /var/log/* |
55 |
>> |
56 |
>> |
57 |
>> On 2020-03-04 09:09, n952162 wrote: |
58 |
>>> Hi, |
59 |
>>> |
60 |
>>> I have 3 swap devices and files. At boot, it seems indeterminate |
61 |
>>> which ones get "mounted" (as swap areas). |
62 |
>>> |
63 |
>>> Does anyone have an idea why they're not all mounted? |
64 |
>>> |
65 |
>>> Here are the swap lines from my fstab: |
66 |
>>> |
67 |
>>> #LABEL=swap none swap sw 0 0 |
68 |
>>> |
69 |
>>> /dev/disk/by-id/ata-TOSHIBA_DT01ACA300_xxxxxxxx-part1 none |
70 |
>>> swap sw,pri=10 0 0 |
71 |
>>> |
72 |
>>> /swap none swap sw,pri=5 0 0 |
73 |
>>> |
74 |
>>> /lcl/WDC_WD20EFRX-68EUZN0_WD-yyyyyyyyyy/1/swap none swap |
75 |
>>> sw,pri=1 0 0 |
76 |
>>> |