1 |
On 2020-03-19, n952162 wrote: |
2 |
|
3 |
> On 2020-03-19 09:36, n952162 wrote: |
4 |
>> On 2020-03-19 09:33, Neil Bothwick wrote: |
5 |
>>> On Thu, 19 Mar 2020 08:17:58 +0100, n952162 wrote: |
6 |
>>> |
7 |
>>>> A couple of years back, I bought these drives to install RAID on them, |
8 |
>>>> but gave up on that. Now, I've decided to do "manual" RAID, but I'm |
9 |
>>>> wondering if the fact that the two drives have the same UUID is causing |
10 |
>>>> whoever it is who sets up /dev/disk (I'm still trying to find that |
11 |
>>>> culprit) is croaking on two different devices with the same UUID. |
12 |
>>> udev creates /dev |
13 |
>>> |
14 |
>>>> Where is the UUID determined? I'd presumed that it was derived from |
15 |
>>>> some characteristics of the drive, determined by the device controller, |
16 |
>>>> but now I'm wondering if my initial RAID configuration set some |
17 |
>>>> drive-internal variable to be identical? |
18 |
>>>> |
19 |
>>>> And, how does one /*reset*/ it? |
20 |
>>> tune2fs -U [UUID] /dev/sdX |
21 |
>>> |
22 |
>>> UUID can be either a string in the standard format or the word random. |
23 |
>>> |
24 |
>>> |
25 |
>> |
26 |
>> Cool! I missed that about the "random" keyword. |
27 |
>> |
28 |
>> |
29 |
> I changed the UUID of all the partitions of the second drive and now all |
30 |
> my devices are linked to in /dev/disk/by-uuid. I still have |
31 |
> no/dev/disk/by-label, though. Also, my swap file on a mounted drive |
32 |
> wasn't mounted, which was my original problem ;-( |
33 |
|
34 |
Any chance the "swap" service is what you need here? |
35 |
|
36 |
/etc/conf.d/swap has examples for different setups - it seems you'd need |
37 |
this service and the line rc_need="localmount" |
38 |
|
39 |
-- |
40 |
Nuno Silva |