Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ZFS - zpool status shows dev instead of partlabel
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
chrisk2305
Tux's lil' helper
Tux's lil' helper


Joined: 05 Sep 2007
Posts: 110

PostPosted: Mon Jul 09, 2018 2:41 pm    Post subject: ZFS - zpool status shows dev instead of partlabel Reply with quote

Hi,

I have recently built a new ZFS pool and used partlabels on my paritions to do so. After the creation "zpool status" showed me all me partitons as "partlabels" but after a reboot most (not all!) partitons are shown as /dev/sdX instead of the partlabel.

Code:

config:

        NAME                  STATE     READ WRITE CKSUM
        data1                 DEGRADED     0     0     0
          raidz2-0            DEGRADED     0     0     0
            sda1              ONLINE       0     0     0
            sdb1              ONLINE       0     0     0
            sdc1              ONLINE       0     0     0
            sdd1              ONLINE       0     0     0
            data1-6           ONLINE       0     0     5
            /tmp/data1-2.img  OFFLINE      0     0     0
        logs
          mirror-1            ONLINE       0     0     0
            sdk1              ONLINE       0     0     0
            sdj1              ONLINE       0     0     0
        cache
          data1-cache1        ONLINE       0     0     0
          data1-cache2        ONLINE       0     0     0

errors: No known data errors


here are my partlabels:

Code:

lrwxrwxrwx 1 root root 15 Jul  7 12:18 boot -> ../../nvme1n1p2
lrwxrwxrwx 1 root root 10 Jul  7 12:18 data1-1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Jul  7 12:18 data1-3 -> ../../sdb1
lrwxrwxrwx 1 root root 10 Jul  7 12:18 data1-4 -> ../../sdc1
lrwxrwxrwx 1 root root 10 Jul  7 12:18 data1-5 -> ../../sdd1
lrwxrwxrwx 1 root root 10 Jul  7 12:18 data1-6 -> ../../sde1
lrwxrwxrwx 1 root root 10 Jul  7 12:20 data1-cache1 -> ../../sdk2
lrwxrwxrwx 1 root root 10 Jul  7 12:18 data1-cache2 -> ../../sdj2
lrwxrwxrwx 1 root root 10 Jul  7 12:20 data1-log1 -> ../../sdk1
lrwxrwxrwx 1 root root 10 Jul  7 12:18 data1-log2 -> ../../sdj1
lrwxrwxrwx 1 root root 15 Jul  7 12:18 grub -> ../../nvme1n1p1
lrwxrwxrwx 1 root root 15 Jul  7 13:06 primary -> ../../nvme0n1p1
lrwxrwxrwx 1 root root 15 Jul  7 12:18 rootfs -> ../../nvme1n1p4
lrwxrwxrwx 1 root root 15 Jul  7 12:18 swap -> ../../nvme1n1p3


Do you have any ideas how I can convince "zpool status" to use my partlabels instead of the device path?

Thanks in advance!

Chris
Back to top
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5934

PostPosted: Mon Jul 09, 2018 6:48 pm    Post subject: Reply with quote

You'll have to import the pool with "-d /dev/disk/by-partlabel" and rebuild your /etc/zfs/zpool.cache if you use one (and subsequently your initrd).
_________________
Neddyseagoon wrote:
The problem with leaving is that you can only do it once and it reduces your influence.

banned from #gentoo since sept 2017
Back to top
View user's profile Send private message
chrisk2305
Tux's lil' helper
Tux's lil' helper


Joined: 05 Sep 2007
Posts: 110

PostPosted: Tue Jul 10, 2018 5:36 am    Post subject: Reply with quote

thank you, will give it a shot!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum