Page 1 of 1

Can't replace drive

PostPosted: Wed Jul 19, 2023 6:18 am
by apio
Hi!

Link from https://openzfsonwindows.org/ brought me here. Excuse me if it is wrong.
I need help from people who knows. Help me please...

I installed OpenZFS on Windows 10 Professional. And it works.
I try to replace drive in pool. And i can't do it...
Code: Select all
C:\Program Files\OpenZFS On Windows>zpool version
zfswin-2.1.6rc2
zfs-kmod-zfswin-2.1.6rc2


Code: Select all
C:\Program Files\OpenZFS On Windows>zpool status tank1.
  pool: tank1
 state: DEGRADED
status: One or more devices could not be opened.  Sufficient replicas exist for
<------>the pool to continue functioning in a degraded state.
action: Attach the missing device and online it using 'zpool online'.
   see: https://openzfs.github.io/openzfs-docs/msg/ZFS-8000-2Q
  scan: scrub canceled on Fri Jul 14 12:37:39 2023
config:

<------>NAME                     STATE     READ WRITE CKSUM
<------>tank1                    DEGRADED     0     0     0
<------>  raidz1-0               DEGRADED     0     0     0
<------>    2060540238760788214  UNAVAIL      0     0     0  was /dev/physicaldrive6
<------>    physicaldrive7       ONLINE       0     0     0
<------>    physicaldrive8       ONLINE       0     0     0
<------>    physicaldrive9       ONLINE       0     0     0

errors: No known data errors


Code: Select all
C:\Program Files\OpenZFS On Windows>zpool replace -f tank1 2060540238760788214 \\.\PHYSICALDRIVE6
cannot label 'PHYSICALDRIVE6': try using parted(8) and then provide a specific slice: -2


Code: Select all
C:\Program Files\OpenZFS On Windows>zpool labelclear -f \\.\PHYSICALDRIVE6
failed to clear label for \\.\PHYSICALDRIVE6.
C:\Program Files\OpenZFS On Windows>wmic diskdrive list brief
Caption                              DeviceID             Model                                Partitions  Size
LSI MegaRAID 8408E SCSI Disk Device  \\.\PHYSICALDRIVE2   LSI MegaRAID 8408E SCSI Disk Device  2           1999837002240
LSI MegaRAID 8408E SCSI Disk Device  \\.\PHYSICALDRIVE5   LSI MegaRAID 8408E SCSI Disk Device  2           1999837002240
WDC WD10EFRX-68PJCN0                 \\.\PHYSICALDRIVE9   WDC WD10EFRX-68PJCN0                 2           1000202273280
WDC WD10EURX-63FH1Y0                 \\.\PHYSICALDRIVE7   WDC WD10EURX-63FH1Y0                 2           1000202273280
LSI MegaRAID 8408E SCSI Disk Device  \\.\PHYSICALDRIVE1   LSI MegaRAID 8408E SCSI Disk Device  2           1999837002240
WDC WD30EURX-63T0FY0                 \\.\PHYSICALDRIVE6   WDC WD30EURX-63T0FY0                 0           3000590369280
INTEL SSDSC2KG480G8                  \\.\PHYSICALDRIVE10  INTEL SSDSC2KG480G8                  3           480101368320
LSI MegaRAID 8408E SCSI Disk Device  \\.\PHYSICALDRIVE4   LSI MegaRAID 8408E SCSI Disk Device  2           1999837002240
LSI MegaRAID 8408E SCSI Disk Device  \\.\PHYSICALDRIVE0   LSI MegaRAID 8408E SCSI Disk Device  2           1999837002240
WDC WD10EURX-63FH1Y0                 \\.\PHYSICALDRIVE8   WDC WD10EURX-63FH1Y0                 2           1000202273280
LSI MegaRAID 8408E SCSI Disk Device  \\.\PHYSICALDRIVE3   LSI MegaRAID 8408E SCSI Disk Device  2           1999837002240


What am I doing wrong?
I haven't any important data in this pool and i can do any experiments on it.

Re: Can't replace drive

PostPosted: Wed Jul 26, 2023 1:44 am
by apio
I solved my problem - I remove Windows and install Linux. :-)

Re: Can't replace drive

PostPosted: Tue Aug 15, 2023 3:28 pm
by lundman
This would have been perfect to post here: https://github.com/openzfsonwindows/openzfs/issues

In theory it should just be "PHYSICALDRIVE6" without //./ but I don't know if I have tried replace yet.