You are not logged in.

#1 2024-05-01 08:02:24

fmc000
Member
Registered: 2020-05-12
Posts: 57

ZFS - zpool disk naming

My root zpool is like this:

$ zpool status -v
  pool: rpool
 state: ONLINE
config:

        NAME         STATE     READ WRITE CKSUM
        rpool        ONLINE       0     0     0
          nvme0n1p2  ONLINE       0     0     0

errors: No known data errors
$ 

I booted my system with a archiso with zfs enabled and imported the pool with:

$ zpool import -d /dev/disk/by-id/

and the disk inside the pool showed up as

nvme-eui.002538d331af0f4b-part2

as expected. Then I rebooted normally and the disk is now showing as nvme0n1p2 as before.

Is there a way to make the by-id naming persistent? Am I missing something?


Linux user since 1996. Currently running Arch on an I7 11th gen laptop with root on zfs with continuous snapshots and replication.

Offline

#2 2024-05-01 14:36:14

gromit
Package Maintainer (PM)
From: Germany
Registered: 2024-02-10
Posts: 23
Website

Re: ZFS - zpool disk naming

Can't you reimport the pool by ID from the actual host?
https://wiki.archlinux.org/title/ZFS#Im … ated_by_id

Offline

#3 2024-05-02 06:17:44

fmc000
Member
Registered: 2020-05-12
Posts: 57

Re: ZFS - zpool disk naming

That's exactly what I did, I have only one laptop... I must do it while running from an ISO because it's my root pool and that's what I did.


Linux user since 1996. Currently running Arch on an I7 11th gen laptop with root on zfs with continuous snapshots and replication.

Offline

Board footer

Powered by FluxBB