should I offline the second disk, reformat it online it and use replace to resilver it ?

On 1/2/23 17:25, Marc Lobelle wrote:
Verify says:

format> verify
Warning: Primary label on disk appears to be different from
current label.
illegal block address: -5672illegal block address: -5670illegal block address: -5668illegal block address: -5666illegal block address: -5664Warning: Could not read backup labels.

Warning: Check the current partitioning and 'label' the disk or use the
         'backup' command.

Primary label contents:

Volume name = <        >
ascii name  = <DEFAULT cyl 5203 alt 2 hd 255 sec 63>
pcyl        = 5205
ncyl        = 5203
acyl        =    2
bcyl        =    0
nhead       =  255
nsect       =   63
Part      Tag    Flag     Cylinders        Size            Blocks
  0 unassigned    wm       0               0 (0/0/0)           0
  1 unassigned    wm       0               0 (0/0/0)           0
  2     backup    wu       0 - 5202       39.86GB    (5203/0/0) 83586195
  3 unassigned    wm       0               0 (0/0/0)           0
  4 unassigned    wm       0               0 (0/0/0)           0
  5 unassigned    wm       0               0 (0/0/0)           0
  6 unassigned    wm       0               0 (0/0/0)           0
  7 unassigned    wm       0               0 (0/0/0)           0
  8       boot    wu       0 -    0        7.84MB    (1/0/0) 16065
  9 alternates    wm       1 -    2       15.69MB    (2/0/0) 32130

On 1/2/23 17:13, Toomas Soome via openindiana-discuss wrote:

On 2. Jan 2023, at 18:11, Marc Lobelle <marc.lobe...@uclouvain.be> wrote:

Hi Toomas,

Format says this What should I change ?

           Total disk size is 58369 cylinders
              Cylinder size is 16065 (512 byte) blocks

Cylinders
       Partition   Status    Type       Start   End Length %
       =====  ====    ==       ====  ====   ====     ===
           1                         EFI               0 58368 58369    100

this one is all good.

What does format ->  verify report?

rgds,
toomas

On 1/2/23 12:49, Toomas Soome via openindiana-discuss wrote:
Since you are using MBR+VTOC, make sure your new disk has Solaris2 partition (100%). You can check by running format, select the disk, then enter ‘fdisk'.

rgds,
toomas

On 2. Jan 2023, at 13:45, Marc Lobelle <marc.lobe...@uclouvain.be> wrote:

Hello,

First, Best wished for 2023 to everybody !

I tried to add a second 480Gb disk to my rpool (different manufacturer and slightly larger)

Below is what I did, but apparently there is a problem and the case (adding a mirror disk) is not discussed in https://illumos.org/msg/ZFS-8000-4J/

Anybody has an idea on how to solve this issue ? I did not yet installgrub on the new disk because I fear it would make things worse.

Thanks

Marc

ml@spitfire:/home/ml# zpool status rpool
   pool: rpool
  state: ONLINE
   scan: scrub repaired 0 in 0 days 00:05:41 with 0 errors on Wed Dec 28 16:43:12 2022
config:

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

errors: No known data errors
ml@spitfire:/home/ml# format
Searching for disks...done


AVAILABLE DISK SELECTIONS:
        0. c5d0 <Samsung SSD 870 QVO 4TB=S5STNF0T406608A-S5STNF0T406608A-0001-3.64TB>
           /pci@0,0/pci-ide@1f,2/ide@0/cmdk@0,0
        1. c6d0 <Samsung SSD 870 QVO 4TB=S5STNF0T406604J-S5STNF0T406604J-0001-3.64TB>
           /pci@0,0/pci-ide@1f,2/ide@1/cmdk@0,0
        2. c7d0 <Unknown-Unknown-0001 cyl 58366 alt 2 hd 255 sec 63>
           /pci@0,0/pci-ide@1f,5/ide@0/cmdk@0,0
        3. c8d0 <Unknown-Unknown-0001 cyl 58367 alt 2 hd 255 sec 63>
           /pci@0,0/pci-ide@1f,5/ide@1/cmdk@0,0
Specify disk (enter its number): ^C
ml@spitfire:/home/ml# prtvtoc /dev/rdsk/c7d0s0
* /dev/rdsk/c7d0s0 partition map
*
* Dimensions:
*         512 bytes/sector
*          63 sectors/track
*         255 tracks/cylinder
*       16065 sectors/cylinder
*       58368 cylinders
*       58366 accessible cylinders
*   937681920 sectors
*   937649790 accessible sectors
*
* Flags:
*   1: unmountable
*  10: read-only
*
* Unallocated space:
*         First       Sector      Last
*         Sector       Count      Sector
*             0       16065       16064
*
*                            First       Sector      Last
* Partition  Tag  Flags      Sector       Count Sector  Mount Directory
        0      2    00        16065   937633725 937649789
        2      5    01            0   937649790 937649789
        8      1    01            0       16065 16064
ml@spitfire:/home/ml# prtvtoc /dev/rdsk/c7d0s0|fmthard -s - /dev/rdsk/c8d0s0
fmthard: Partition 2 specifies the full disk and is not equal
full size of disk.  The full disk capacity is 937665855 sectors.
fmthard:  New volume table of contents now in place.
ml@spitfire:/home/ml# zpool attach -f rpool c7d0s0 c8d0s0
Make sure to wait until resilver is done before rebooting.
ml@spitfire:/home/ml# zpool status rpool
   pool: rpool
  state: ONLINE
status: One or more devices is currently being resilvered.  The pool will
         continue to function, possibly in a degraded state.
action: Wait for the resilver to complete.
   scan: resilver in progress since Mon Jan  2 11:59:05 2023
         56,4G scanned at 2,56G/s, 909M issued at 41,3M/s, 56,4G total
         910M resilvered, 1,57% done, 0 days 00:22:55 to go
config:

         NAME        STATE     READ WRITE CKSUM
         rpool       ONLINE       0     0     0
           mirror-0  ONLINE       0     0     0
             c7d0s0  ONLINE       0     0     0
             c8d0s0  ONLINE       0     0     0 (resilvering)

errors: No known data errors
ml@spitfire:/home/ml# zpool status rpool
   pool: rpool
  state: DEGRADED
status: One or more devices could not be used because the label is missing or
         invalid.  Sufficient replicas exist for the pool to continue
         functioning in a degraded state.
action: Replace the device using 'zpool replace'.
    see: http://illumos.org/msg/ZFS-8000-4J
   scan: resilvered 34,6G in 0 days 00:06:23 with 0 errors on Mon Jan  2 12:05:28 2023
config:

         NAME        STATE     READ WRITE CKSUM
         rpool       DEGRADED     0     0     0
           mirror-0  DEGRADED     0     0     0
             c7d0s0  ONLINE       0     0     0
             c8d0s0  UNAVAIL      0 57,4K     0  corrupted data

errors: No known data errors
ml@spitfire:/home/ml#


_______________________________________________
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss
_______________________________________________
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss
_______________________________________________
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss

_______________________________________________
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss

_______________________________________________
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss

Reply via email to