Received: from mail-ot1-x332.google.com (mail-ot1-x332.google.com [IPv6:2607:f8b0:4864:20::332]) by gbr-app-1.alpinelinux.org (Postfix) with ESMTPS id 4D60A221C87 for <~alpine/users@lists.alpinelinux.org>; Fri, 18 Nov 2022 20:45:25 +0000 (UTC) Received: by mail-ot1-x332.google.com with SMTP id p27-20020a056830319b00b0066d7a348e20so3779559ots.8 for <~alpine/users@lists.alpinelinux.org>; Fri, 18 Nov 2022 12:45:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=unixium.com; s=burph; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=VHCzDKJde+zFaT48ErxCXnX9PSjSfG896l+PN0G1QMg=; b=nnX+Q80h3Hslo8QOYSXJlYaRnJFSYXm6e5oVpRwm7d5Q+VDBl4TPJP/pWe36hHjYna pOwz3Ej587JwE9F4zQX8/Gav7Vk4ZX1+ubVEOe4dUsCbuX6UisApMiGkVQ/nBM8h8HlX 948BAb4PD2mrbf1kbzif3foIaMapJFkucU/W/UKnpGMNU9B+L7so+0w9C3vvaaeuwIMy ytPcJ4NFwSJUBnJluUZ/FMU4eBrABdBg9snZ28chmvTH+OMzyQ79nlCPpr0gT59KtDkg tgJgYntbSq07Jxd55poVqsPlgCKFsoQPtzn1nbl939PpwB1vt6u32CXaQGXv+7lNjv5K Px6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=VHCzDKJde+zFaT48ErxCXnX9PSjSfG896l+PN0G1QMg=; b=uhFThWrQFiKNPneMaj4EZsEJAv5iPXU0Mf4oVYKxHQ1gqexlovKkQx/1018UUcOamh HzSatywRQLov/Q+CRYkVTdLtzHPr3fKnjPg6anNNRGVr4l5Ae0OzS9uh/v1ke2kFu3OV Scr6txNxcHfeB8+g8GCkX0Hk5c3mKJ9PgIESSwMr5rtPwdlkjrYQBA4iEaB42LuMSnpV ++U9RmEC6ZPZoKy37keFuZc6zZ9R4/Jc775NY4Epm72v4Po3fYSrcqSlie0QXs2S3x1p 3ID0tFOn8mZZgll0asirf8r3hxZzOrR5Ne39lHPJkxx9uICRJKTu6GxNkhPU8fdfJNQd J+aQ== X-Gm-Message-State: ANoB5pk82oAfL6GrGYiiJkVVtb3K0LENAEcaTrfgzhYisouUec0wpo9V qtvoj1I5VCHCw/Kxtl63i/MhLgGH4jN7r1RKhM3l6ACU48w= X-Google-Smtp-Source: AA0mqf5ZiR8NH8FBuiAmujZVufWRkoVc39hwClnMS0Xe4Y2naQdiejotZNrAYFEitii/n3S7iHHhi0oAb7w3mIC9cIM= X-Received: by 2002:a9d:6244:0:b0:66c:e574:8a6b with SMTP id i4-20020a9d6244000000b0066ce5748a6bmr4587694otk.183.1668804321810; Fri, 18 Nov 2022 12:45:21 -0800 (PST) MIME-Version: 1.0 From: "spamtrap-w00t+gobbledegook@unixium.com" Date: Fri, 18 Nov 2022 14:45:11 -0600 Message-ID: Subject: disk/by-uuid not getting setup To: ~alpine/users@lists.alpinelinux.org Content-Type: text/plain; charset="UTF-8" Hi, The request: This seems basic, but I can't figure out: How do I get Alpine to setup the UUIDs for each partition in my ZFS array at boot [so I can rebuild the pool by partition UUID]? Some background: On a previous linux server, which suffered permanent failure, I had a zfs pool called "nas_storage". Each disk in the pool has it's own partition (partion 1) that was a member in the pool. So /dev/sd[abcde]1 is a member in the pool. Experience having the drives get re-ordered after a reboot told me to make sure the pool was constructed using partition UUIDs. This is where my problem lies. The problem: On booting Alpine (on a Raspberry Pi 4B booting from a USB drive), I can see all the drives by their letter designation /dev/sd[abcdef], as well as their partitions (e.g. /dev/sdf1, /dev/sdf2/, /dev/sdf3). However, only the boot drive gets it's corresponding disk/by-uuid links setup. The usb drive array does not. I can import and use the zfs pool using zfs import -af nas_storage, but the pool gets build using drive letter (i.e. /dev/sd[abcde]1). This will eventually fail when /dev/sda1 becomes /dev/sdf1 because of boot randomness. Of course, if I use cfdisk, I can get the UUIDs of each partition for /dev/sd[abcde]1, and manually link the UUIDs of each partition in /dev/disk/by-uuid to it's /dev/sd[abcde]1 counterpart, and then usezfs import -d /dev/disk/by-uuid to successfully import the zfs pool. Thank you, Thom