On 2020-03-19, n952162 wrote:

> On 2020-03-19 09:36, n952162 wrote:
>> On 2020-03-19 09:33, Neil Bothwick wrote:
>>> On Thu, 19 Mar 2020 08:17:58 +0100, n952162 wrote:
>>>
>>>> A couple of years back, I bought these drives to install RAID on them,
>>>> but gave up on that.  Now, I've decided to do "manual" RAID, but I'm
>>>> wondering if the fact that the two drives have the same UUID is causing
>>>> whoever it is who sets up /dev/disk (I'm still trying to find that
>>>> culprit) is croaking on two different devices with the same UUID.
>>> udev creates /dev
>>>
>>>> Where is the UUID determined?  I'd presumed that it was derived from
>>>> some characteristics of the drive, determined by the device controller,
>>>> but now I'm wondering if my initial RAID configuration set some
>>>> drive-internal variable to be identical?
>>>>
>>>> And, how does one /*reset*/ it?
>>> tune2fs -U [UUID] /dev/sdX
>>>
>>> UUID can be either a string in the standard format or the word random.
>>>
>>>
>>
>> Cool!  I missed that about the "random" keyword.
>>
>>
> I changed the UUID of all the partitions of the second drive and now all
> my devices are linked to in /dev/disk/by-uuid. I still have
> no/dev/disk/by-label, though.  Also, my swap file on a mounted drive
> wasn't mounted, which was my original problem  ;-(

Any chance the "swap" service is what you need here?

/etc/conf.d/swap has examples for different setups - it seems you'd need
this service and the line rc_need="localmount"

-- 
Nuno Silva


Reply via email to