Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Apr 2024 10:21:14 -0400
From:      mike tancsa <mike@sentex.net>
To:        FreeBSD-STABLE Mailing List <freebsd-stable@freebsd.org>
Subject:   Re: zfs boot error on mirrored drive
Message-ID:  <a3e7dec1-d805-4eff-95a2-ad7d6b0db261@sentex.net>
In-Reply-To: <0c069bca-b512-457b-8934-66b859f449db@sentex.net>
References:  <82761f2b-475f-43ab-b045-95c60c330db7@sentex.net> <d17afa19-f563-450e-ac95-11c1d152e5fb@quip.cz> <0c069bca-b512-457b-8934-66b859f449db@sentex.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On 4/18/2024 10:09 AM, mike tancsa wrote:
> On 4/18/2024 10:04 AM, Miroslav Lachman wrote:
>> I am not a ZFS expert but can this be stored in a 
>> /etc/zfs/zpool.cache? (or in a different path, I remember zpool.cache 
>> was stored somewhere else in older versions of FreeBSD, maybe 
>> /boot/zfs/zpool.cache)
>> You can try to delete zpool.cache (just rename so you can move it 
>> back), import and export should re-create it.
>>
> I dont have one in /etc just in /boot/zfs.  Doing a strings on that 
> file, I dont see reference to zbackup1 however, just the real pool, 
> zroot. So strange. I am guessing its stored somewhere specifically on 
> the individual drives?
>
OK a little further.  Looking at the output of zdb -l /dev/ada0 I see 
LABEL 1 has the old info where as zdb -l /dev/ada1 only shows the active 
pool zroot. So I guess the question is how do I get rid of LABEL 1 on 
ada0. I guess I could offline the disk, do a full zpool-labelclear on 
/dev/ada0 and then "replace" ada0p3 with ada0p3.  But I wonder if there 
is a more surgical way to do it ?

  zdb -l /dev/ada0
failed to unpack label 0
------------------------------------
LABEL 1
------------------------------------
     version: 5000
     name: 'zbackup1'
     state: 0
     txg: 37258100
     pool_guid: 5819795054093255811
     hostid: 2940363587
     hostname: 'otherhost.sentex.ca'
     top_guid: 15407571356201067876
     guid: 7177971506633653196
     hole_array[0]: 1
     vdev_children: 3
     vdev_tree:
         type: 'raidz'
         id: 2
         guid: 15407571356201067876
         nparity: 2
         metaslab_array: 115
         metaslab_shift: 36
         ashift: 9
         asize: 12002364751872
         is_log: 0
         create_txg: 263935
         children[0]:
             type: 'disk'
             id: 0
             guid: 9271219886945262566
             path: '/dev/da5'
             phys_path: '/dev/diskid/DISK-%20%20%20%20%20WD-WCC1P1023355'
             whole_disk: 1
             DTL: 618
             create_txg: 263935
         children[1]:
             type: 'disk'
             id: 1
             guid: 8131984913529158308
             path: '/dev/mfisyspd8'
             phys_path: '/dev/diskid/DISK-%20%20%20%20%20WD-WMAWP0126093'
             whole_disk: 1
             DTL: 617
             create_txg: 263935
         children[2]:
             type: 'disk'
             id: 2
             guid: 10328589068509663454
             path: '/dev/mfisyspd7'
             phys_path: '/dev/diskid/DISK-%20%20%20%20%20WD-WMAWP0079293'
             whole_disk: 1
             DTL: 616
             create_txg: 263935
         children[3]:
             type: 'disk'
             id: 3
             guid: 3414086086163178196
             path: '/dev/mfisyspd6'
             phys_path: '/dev/diskid/DISK-%20%20%20%20%20WD-WMAUR0331605'
             whole_disk: 1
             DTL: 615
             create_txg: 263935
         children[4]:
             type: 'disk'
             id: 4
             guid: 7177971506633653196
             path: '/dev/mfisyspd9'
             phys_path: '/dev/diskid/DISK-%20%20%20%20%20WD-WMAUR0387259'
             whole_disk: 1
             DTL: 614
             create_txg: 263935
         children[5]:
             type: 'disk'
             id: 5
             guid: 17460231907795801757
             path: '/dev/da8p1'
             whole_disk: 1
             not_present: 1
             DTL: 262356
             create_txg: 263935
     features_for_read:
         com.delphix:hole_birth
         com.delphix:embedded_data
     labels = 1
------------------------------------
LABEL 2
------------------------------------
     version: 5000
     name: 'zroot'
     state: 0
     txg: 61126347
     pool_guid: 13987985424735542345
     errata: 0
     hostname: ''
     top_guid: 17259639802746798684
     guid: 18413289395104510392
     vdev_children: 1
     vdev_tree:
         type: 'mirror'
         id: 0
         guid: 17259639802746798684
         metaslab_array: 34
         metaslab_shift: 34
         ashift: 12
         asize: 1978918240256
         is_log: 0
         create_txg: 4
         children[0]:
             type: 'disk'
             id: 0
             guid: 18413289395104510392
             path: '/dev/ada0p3'
             phys_path: 
'id1,enc@n3061686369656d30/type@0/slot@1/elmdesc@Slot_00/p3'
             whole_disk: 1
             DTL: 110
             create_txg: 4
         children[1]:
             type: 'disk'
             id: 1
             guid: 9245256067651064428
             path: '/dev/ada1p3'
             phys_path: 
'id1,enc@n3061686369656d30/type@0/slot@2/elmdesc@Slot_01/p3'
             whole_disk: 1
             DTL: 4403
             create_txg: 4
     features_for_read:
         com.delphix:hole_birth
         com.delphix:embedded_data
     labels = 2 3





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?a3e7dec1-d805-4eff-95a2-ad7d6b0db261>