Replace disk in ZFS Pool

Oanh

Member
Apr 12, 2020
20
0
21
53
Please bear with me as someone else setup my machine and I am trying to do these changes myself :( :
I had two 8TB drives mirrored as "pool1"
NAME STATE READ WRITE CKSUM
pool1 ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
ata-WDC_WD80EMAZ-00M9AA0_VAGDUWBL ONLINE 0 0 0
ata-WDC_WD80EMAZ-00M9AA0_VAGLGALL ONLINE 0 0 0

One disk failed after a power outage (ata-WDC_WD80EMAZ-00M9AA0_VAGLGALL)

It will be replaced via RMA and I have removed the drive (it was shucked from an external enclosure)

I have researched on the internet about replacing the drive (https://zfsonlinux.org/msg/ZFS-8000-4J/ and https://docs.oracle.com/cd/E19253-01/819-5461/gazgd/index.html)

In both examples they have the name of the drive listed, I do not because I have physically removed the drive)
This is what I see now when I run pool status:
pool: pool1
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://zfsonlinux.org/msg/ZFS-8000-4J
scan: scrub repaired 0B in 1 days 02:28:45 with 0 errors on Mon Apr 13 02:52:46 2020
config:

NAME STATE READ WRITE CKSUM
pool1 DEGRADED 0 0 0
mirror-0 DEGRADED 0 0 0
ata-WDC_WD80EMAZ-00M9AA0_VAGDUWBL ONLINE 0 0 0
1200958216758885009 UNAVAIL 0 0 0 was /dev/disk/by-id/ata-WDC_WD80EMAZ-00M9AA0_VAGLGALL-part1

errors: No known data errors

pool: rpool
state: ONLINE
scan: scrub repaired 0B in 0 days 00:13:36 with 0 errors on Sun Apr 12 00:37:38 2020
config:

NAME STATE READ WRITE CKSUM
rpool ONLINE 0 0 0
ata-WDC_WDS100T2B0A-00SM50_20036E808189-part3 ONLINE 0 0 0

errors: No known data errors

Can I use the command "# zpool replace test c0t0d1" and replace "c0t0d1" with "ata-WDC_WD80EMAZ-00M9AA0_VAGLGALL" (as that was the defective drive...?)

Thx for any advice, help or suggestions.
 
You can do it in two ways:

Code:
 zpool replace pool1 1200958216758885009 <new disk>

Or, ou would just use the new disk and attach it to the mirror-0 vdev like this:

Code:
zpool attach pool1 ata-WDC_WD80EMAZ-00M9AA0_VAGDUWBL <new disk>
zpool detach pool1 1200958216758885009

You will need to query the disk's ID from /dev/disk/by-id before and use that as <new disk>
 
You can do it in two ways:

Code:
 zpool replace pool1 1200958216758885009 <new disk>

Or, ou would just use the new disk and attach it to the mirror-0 vdev like this:

Code:
zpool attach pool1 ata-WDC_WD80EMAZ-00M9AA0_VAGDUWBL <new disk>
zpool detach pool1 1200958216758885009

You will need to query the disk's ID from /dev/disk/by-id before and use that as <new disk>
Ah, ok
I think I understand.
The <new disk> is actually the serial number.
2 questions
1) What is the easiest way to get the <new disk> info
2) Which method would you reccomend?
 
As I said, you connect the new drive and watch syslog whre you can watch the drive being incorporated into the system. Then you simply perform a ls -l on the /dev/disk/by-id folder and get your new drive's mapping. Since your faulted drive is still mentioned in the zpool, I'd first go with the replace option.
 
Thanks again.
I am a total newb when it comes to Linux, so thanks for explaining it simply
 
Do you need some more help? If yes, please post the out put of

Code:
 ls -l /dev/disk/by-id


using CODE-Tags and I will try to help you to get it right.
 
Do you need some more help? If yes, please post the out put of

Code:
 ls -l /dev/disk/by-id


using CODE-Tags and I will try to help you to get it right.

Thank you for your offer.
I may take you up on it if I run into any difficulties.

I should receive the new drive in 2-3 days.

Will keep you posted.
 
Thank you for your offer.
I may take you up on it if I run into any difficulties.

I should receive the new drive in 2-3 days.

Will keep you posted.
This was the output for the disk-id:
Code:
lrwxrwxrwx 1 root root  9 Apr 29 10:10 ata-WDC_WD80EMAZ-00M9AA0_VAGDUWBL -> ../../sdb
lrwxrwxrwx 1 root root 10 Apr 29 10:10 ata-WDC_WD80EMAZ-00M9AA0_VAGDUWBL-part1 -> ../../sdb1
lrwxrwxrwx 1 root root 10 Apr 29 10:10 ata-WDC_WD80EMAZ-00M9AA0_VAGDUWBL-part9 -> ../../sdb9
lrwxrwxrwx 1 root root  9 Apr 29 10:10 ata-WDC_WD80EZAZ-11TDBA0_7SJR8P1U -> ../../sdc
lrwxrwxrwx 1 root root 10 Apr 29 10:10 ata-WDC_WD80EZAZ-11TDBA0_7SJR8P1U-part1 -> ../../sdc1
lrwxrwxrwx 1 root root  9 Apr 29 10:10 ata-WDC_WDS100T2B0A-00SM50_20036E808189 -> ../../sda
lrwxrwxrwx 1 root root 10 Apr 29 10:10 ata-WDC_WDS100T2B0A-00SM50_20036E808189-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Apr 29 10:10 ata-WDC_WDS100T2B0A-00SM50_20036E808189-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Apr 29 10:10 ata-WDC_WDS100T2B0A-00SM50_20036E808189-part3 -> ../../sda3
lrwxrwxrwx 1 root root  9 Apr 29 10:10 wwn-0x5000cca099c5d59d -> ../../sdb
lrwxrwxrwx 1 root root 10 Apr 29 10:10 wwn-0x5000cca099c5d59d-part1 -> ../../sdb1
lrwxrwxrwx 1 root root 10 Apr 29 10:10 wwn-0x5000cca099c5d59d-part9 -> ../../sdb9
lrwxrwxrwx 1 root root  9 Apr 29 10:10 wwn-0x5000cca252e64fc0 -> ../../sdc
lrwxrwxrwx 1 root root 10 Apr 29 10:10 wwn-0x5000cca252e64fc0-part1 -> ../../sdc1
lrwxrwxrwx 1 root root  9 Apr 29 10:10 wwn-0x5001b448b17f98d6 -> ../../sda
lrwxrwxrwx 1 root root 10 Apr 29 10:10 wwn-0x5001b448b17f98d6-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Apr 29 10:10 wwn-0x5001b448b17f98d6-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Apr 29 10:10 wwn-0x5001b448b17f98d6-part3 -> ../../sda3

I had to use the -f command as the drive was in exfat format

Code:
zpool replace pool1 1200958216758885009 ata-WDC_WD80EZAZ-11TDBA0_7SJR8P1U -f


NEW DRIVE INFO BELOW:

Code:
=== START OF INFORMATION SECTION ===
Model Family:     WDC HGST Ultrastar He10
Device Model:     WDC WD80EZAZ-11TDBA0
Serial Number:    7SJR8P1U
LU WWN Device Id: 5 000cca 252e64fc0
Firmware Version: 83.H0A83
User Capacity:    8,001,563,222,016 bytes [8.00 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    5400 rpm
Form Factor:      3.5 inches
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ACS-2, ATA8-ACS T13/1699-D revision 4
SATA Version is:  SATA 3.2, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Wed Apr 29 10:11:21 2020 +07
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x000b   100   100   016    Pre-fail  Always       -       0
  2 Throughput_Performance  0x0004   100   100   054    Old_age   Offline      -       0
  3 Spin_Up_Time            0x0007   100   100   024    Pre-fail  Always       -       0
  4 Start_Stop_Count        0x0012   100   100   000    Old_age   Always       -       7
  5 Reallocated_Sector_Ct   0x0033   100   100   005    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x000a   100   100   067    Old_age   Always       -       0
  8 Seek_Time_Performance   0x0004   100   100   020    Old_age   Offline      -       0
  9 Power_On_Hours          0x0012   100   100   000    Old_age   Always       -       1
10 Spin_Retry_Count        0x0012   100   100   060    Old_age   Always       -       0
12 Power_Cycle_Count       0x0032   100   100   000    Old_age   Always       -       6
22 Helium_Level            0x0023   100   100   025    Pre-fail  Always       -       100
192 Power-Off_Retract_Count 0x0032   100   100   000    Old_age   Always       -       7
193 Load_Cycle_Count        0x0012   100   100   000    Old_age   Always       -       7
194 Temperature_Celsius     0x0002   240   240   000    Old_age   Always       -       27 (Min/Max 25/42)
196 Reallocated_Event_Count 0x0032   100   100   000    Old_age   Always       -       0
197 Current_Pending_Sector  0x0022   100   100   000    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0008   100   100   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x000a   200   200   000    Old_age   Always       -       0

SMART Error Log Version: 1
No Errors Logged

EXISTING REPLACEMENT DRIVE BELOW:

Code:
=== START OF INFORMATION SECTION ===
Model Family:     WDC HGST Ultrastar He10
Device Model:     WDC WD80EMAZ-00M9AA0
Serial Number:    VAGDUWBL
LU WWN Device Id: 5 000cca 099c5d59d
Firmware Version: 81.00A81
User Capacity:    8,001,563,222,016 bytes [8.00 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    5400 rpm
Form Factor:      3.5 inches
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ACS-2, ATA8-ACS T13/1699-D revision 4
SATA Version is:  SATA 3.2, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Wed Apr 29 10:22:56 2020 +07
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x000b   100   100   016    Pre-fail  Always       -       0
  2 Throughput_Performance  0x0004   128   128   054    Old_age   Offline      -       108
  3 Spin_Up_Time            0x0007   168   168   024    Pre-fail  Always       -       458 (Average 506)
  4 Start_Stop_Count        0x0012   100   100   000    Old_age   Always       -       179
  5 Reallocated_Sector_Ct   0x0033   100   100   005    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x000a   100   100   067    Old_age   Always       -       0
  8 Seek_Time_Performance   0x0004   128   128   020    Old_age   Offline      -       18
  9 Power_On_Hours          0x0012   100   100   000    Old_age   Always       -       1396
10 Spin_Retry_Count        0x0012   100   100   060    Old_age   Always       -       0
12 Power_Cycle_Count       0x0032   100   100   000    Old_age   Always       -       171
192 Power-Off_Retract_Count 0x0032   100   100   000    Old_age   Always       -       260
193 Load_Cycle_Count        0x0012   100   100   000    Old_age   Always       -       260
194 Temperature_Celsius     0x0002   175   175   000    Old_age   Always       -       37 (Min/Max 24/52)
196 Reallocated_Event_Count 0x0032   100   100   000    Old_age   Always       -       0
197 Current_Pending_Sector  0x0022   100   100   000    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0008   100   100   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x000a   200   200   000    Old_age   Always       -       0

SMART Error Log Version: 1
No Errors Logged

Resilvering now (11 hours to go)

The only thing I cannot seem to locate is the cache on either drive ...
Not sure if they are CMR or SMR

Code:
root@myserver:~# hdparm -i /dev/sdc

/dev/sdc:

Model=WDC WD80EZAZ-11TDBA0, FwRev=83.H0A83, SerialNo=7SJR8P1U
Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs }
RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=56
BuffType=DualPortCache, BuffSize=unknown, MaxMultSect=16, MultSect=off
CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=15628053168
IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
PIO modes:  pio0 pio1 pio2 pio3 pio4
DMA modes:  mdma0 mdma1 mdma2
UDMA modes: udma0 udma1 udma2 udma3 udma4 udma5 *udma6
AdvancedPM=yes: disabled (255) WriteCache=enabled
Drive conforms to: unknown:  ATA/ATAPI-2,3,4,5,6,7

* signifies the current active mode

Not sure why it says "BuffSize=unknown"

Ideas or thoughts on how to find out...?
 
Last edited:
i'm on the same problem , this is really awfull and painfull to manage !

Disk are /dev/sdx
But promox use /dev/disk/by-id ...
And zfs use another label .... another idea for adding another layer ?
KISS ?


Code:
root@tankster2:~# zpool status  zPool1
  pool: zPool1
state: DEGRADED
status: One or more devices has been taken offline by the administrator.
        Sufficient replicas exist for the pool to continue functioning in a
        degraded state.
action: Online the device using 'zpool online' or replace the device with
        'zpool replace'.
  scan: resilvered 2.02M in 0 days 00:00:01 with 0 errors on Wed May  6 22:59:36 2020
config:

        NAME                        STATE     READ WRITE CKSUM
        zPool1                      DEGRADED     0     0     0
          raidz2-0                  DEGRADED     0     0     0
            wwn-0x50014ee2b016fa00  ONLINE       0     0     0
            7341065840658800339     OFFLINE      0     0     0  was /dev/sdd1
            wwn-0x50014ee25ac093fc  ONLINE       0     0     0
            wwn-0x50014ee0acf5b9c1  ONLINE       0     0     0

errors: No known data errors
 
Can we really REALLY know which hard drive is used or not by promox, linux and ZFS ?

Code:
root@node2:~# ls -lah /dev/disk/by-id
total 0
drwxr-xr-x 2 root root 940 May  6 23:42 .
drwxr-xr-x 8 root root 160 May  6 23:32 ..
lrwxrwxrwx 1 root root   9 May  6 23:32 ata-KINGSTON_SA400S37120G_50026B73804CA118 -> ../../sda
lrwxrwxrwx 1 root root  10 May  6 23:32 ata-KINGSTON_SA400S37120G_50026B73804CA118-part1 -> ../../sda1
lrwxrwxrwx 1 root root  10 May  6 23:32 ata-KINGSTON_SA400S37120G_50026B73804CA118-part2 -> ../../sda2
lrwxrwxrwx 1 root root  10 May  6 23:32 ata-KINGSTON_SA400S37120G_50026B73804CA118-part3 -> ../../sda3
lrwxrwxrwx 1 root root   9 May  6 23:32 ata-ST3500514NS_9WJ0CVHG -> ../../sdb
lrwxrwxrwx 1 root root   9 May  6 23:42 ata-WD1003FBYX-12_WCAW33744054 -> ../../sde
lrwxrwxrwx 1 root root  10 May  6 23:42 ata-WD1003FBYX-12_WCAW33744054-part1 -> ../../sde1
lrwxrwxrwx 1 root root  10 May  6 23:42 ata-WD1003FBYX-12_WCAW33744054-part9 -> ../../sde9
lrwxrwxrwx 1 root root   9 May  6 23:32 ata-WDC_WD1002FBYS-02A6B0_WD-WMATV7766898 -> ../../sdg
lrwxrwxrwx 1 root root   9 May  6 23:32 ata-WDC_WD1002FBYS-02A6B0_WD-WMATV7766956 -> ../../sdf
lrwxrwxrwx 1 root root  10 May  6 23:32 ata-WDC_WD1002FBYS-02A6B0_WD-WMATV7766956-part1 -> ../../sdf1
lrwxrwxrwx 1 root root  10 May  6 23:32 ata-WDC_WD1002FBYS-02A6B0_WD-WMATV7766956-part9 -> ../../sdf9
lrwxrwxrwx 1 root root   9 May  6 23:32 ata-WDC_WD1003FBYX-01Y7B0_WD-WCAW30691450 -> ../../sdh
lrwxrwxrwx 1 root root   9 May  6 23:32 ata-WDC_WD1003FBYX-01Y7B0_WD-WCAW30711590 -> ../../sdd
lrwxrwxrwx 1 root root  10 May  6 23:32 ata-WDC_WD1003FBYX-01Y7B0_WD-WCAW30711590-part1 -> ../../sdd1
lrwxrwxrwx 1 root root  10 May  6 23:32 ata-WDC_WD1003FBYX-01Y7B0_WD-WCAW30711590-part9 -> ../../sdd9
lrwxrwxrwx 1 root root   9 May  6 23:32 ata-WDC_WD1003FBYX-01Y7B0_WD-WCAW30753056 -> ../../sdc
lrwxrwxrwx 1 root root  10 May  6 23:32 ata-WDC_WD1003FBYX-01Y7B0_WD-WCAW30753056-part1 -> ../../sdc1
lrwxrwxrwx 1 root root  10 May  6 23:32 ata-WDC_WD1003FBYX-01Y7B0_WD-WCAW30753056-part9 -> ../../sdc9
lrwxrwxrwx 1 root root  10 May  6 23:32 dm-name-pve-root -> ../../dm-1
lrwxrwxrwx 1 root root  10 May  6 23:32 dm-name-pve-swap -> ../../dm-0
lrwxrwxrwx 1 root root  10 May  6 23:32 dm-name-pve-vm--104--disk--0 -> ../../dm-6
lrwxrwxrwx 1 root root  10 May  6 23:32 dm-uuid-LVM-vmy9Em183Q6CYlf0ssoA3tEprNVCXf1n0lp3h5fTLuHmc5DNuVwqe0X7XWALl3xL -> ../../dm-1
lrwxrwxrwx 1 root root  10 May  6 23:32 dm-uuid-LVM-vmy9Em183Q6CYlf0ssoA3tEprNVCXf1n0w7chCXdGIn2dcKpX5Dk4RMz753k9VpG -> ../../dm-6
lrwxrwxrwx 1 root root  10 May  6 23:32 dm-uuid-LVM-vmy9Em183Q6CYlf0ssoA3tEprNVCXf1ndyeEFVZWDXQAXS68ofP3JVIEvMKi0k4i -> ../../dm-0
lrwxrwxrwx 1 root root  10 May  6 23:32 lvm-pv-uuid-klwPfH-skjR-8kuy-CFmg-Lv1j-tRUH-pUkerM -> ../../sda3
lrwxrwxrwx 1 root root   9 May  6 23:32 wwn-0x5000c500270af7ba -> ../../sdb
lrwxrwxrwx 1 root root   9 May  6 23:32 wwn-0x50014ee0acf5b8a6 -> ../../sdg
lrwxrwxrwx 1 root root   9 May  6 23:32 wwn-0x50014ee0acf5b9c1 -> ../../sdf
lrwxrwxrwx 1 root root  10 May  6 23:32 wwn-0x50014ee0acf5b9c1-part1 -> ../../sdf1
lrwxrwxrwx 1 root root  10 May  6 23:32 wwn-0x50014ee0acf5b9c1-part9 -> ../../sdf9
lrwxrwxrwx 1 root root   9 May  6 23:42 wwn-0x50014ee207182cd1 -> ../../sde
lrwxrwxrwx 1 root root  10 May  6 23:42 wwn-0x50014ee207182cd1-part1 -> ../../sde1
lrwxrwxrwx 1 root root  10 May  6 23:42 wwn-0x50014ee207182cd1-part9 -> ../../sde9
lrwxrwxrwx 1 root root   9 May  6 23:32 wwn-0x50014ee25ac093fc -> ../../sdd
lrwxrwxrwx 1 root root  10 May  6 23:32 wwn-0x50014ee25ac093fc-part1 -> ../../sdd1
lrwxrwxrwx 1 root root  10 May  6 23:32 wwn-0x50014ee25ac093fc-part9 -> ../../sdd9
lrwxrwxrwx 1 root root   9 May  6 23:32 wwn-0x50014ee2b016309a -> ../../sdh
lrwxrwxrwx 1 root root   9 May  6 23:32 wwn-0x50014ee2b016fa00 -> ../../sdc
lrwxrwxrwx 1 root root  10 May  6 23:32 wwn-0x50014ee2b016fa00-part1 -> ../../sdc1
lrwxrwxrwx 1 root root  10 May  6 23:32 wwn-0x50014ee2b016fa00-part9 -> ../../sdc9
lrwxrwxrwx 1 root root   9 May  6 23:32 wwn-0x502b2a201d1c1b1a -> ../../sda
lrwxrwxrwx 1 root root  10 May  6 23:32 wwn-0x502b2a201d1c1b1a-part1 -> ../../sda1
lrwxrwxrwx 1 root root  10 May  6 23:32 wwn-0x502b2a201d1c1b1a-part2 -> ../../sda2
lrwxrwxrwx 1 root root  10 May  6 23:32 wwn-0x502b2a201d1c1b1a-part3 -> ../../sda3
 
Last edited:
Can we really REALLY know which hard drive is used or not by promox, linux and ZFS ?

Code:
root@node2:~# ls -lah /dev/disk/by-id
total 0
drwxr-xr-x 2 root root 940 May  6 23:42 .
drwxr-xr-x 8 root root 160 May  6 23:32 ..
lrwxrwxrwx 1 root root   9 May  6 23:32 ata-KINGSTON_SA400S37120G_50026B73804CA118 -> ../../sda
lrwxrwxrwx 1 root root  10 May  6 23:32 ata-KINGSTON_SA400S37120G_50026B73804CA118-part1 -> ../../sda1
lrwxrwxrwx 1 root root  10 May  6 23:32 ata-KINGSTON_SA400S37120G_50026B73804CA118-part2 -> ../../sda2
lrwxrwxrwx 1 root root  10 May  6 23:32 ata-KINGSTON_SA400S37120G_50026B73804CA118-part3 -> ../../sda3
lrwxrwxrwx 1 root root   9 May  6 23:32 ata-ST3500514NS_9WJ0CVHG -> ../../sdb
lrwxrwxrwx 1 root root   9 May  6 23:42 ata-WD1003FBYX-12_WCAW33744054 -> ../../sde
lrwxrwxrwx 1 root root  10 May  6 23:42 ata-WD1003FBYX-12_WCAW33744054-part1 -> ../../sde1
lrwxrwxrwx 1 root root  10 May  6 23:42 ata-WD1003FBYX-12_WCAW33744054-part9 -> ../../sde9
lrwxrwxrwx 1 root root   9 May  6 23:32 ata-WDC_WD1002FBYS-02A6B0_WD-WMATV7766898 -> ../../sdg
lrwxrwxrwx 1 root root   9 May  6 23:32 ata-WDC_WD1002FBYS-02A6B0_WD-WMATV7766956 -> ../../sdf
lrwxrwxrwx 1 root root  10 May  6 23:32 ata-WDC_WD1002FBYS-02A6B0_WD-WMATV7766956-part1 -> ../../sdf1
lrwxrwxrwx 1 root root  10 May  6 23:32 ata-WDC_WD1002FBYS-02A6B0_WD-WMATV7766956-part9 -> ../../sdf9
lrwxrwxrwx 1 root root   9 May  6 23:32 ata-WDC_WD1003FBYX-01Y7B0_WD-WCAW30691450 -> ../../sdh
lrwxrwxrwx 1 root root   9 May  6 23:32 ata-WDC_WD1003FBYX-01Y7B0_WD-WCAW30711590 -> ../../sdd
lrwxrwxrwx 1 root root  10 May  6 23:32 ata-WDC_WD1003FBYX-01Y7B0_WD-WCAW30711590-part1 -> ../../sdd1
lrwxrwxrwx 1 root root  10 May  6 23:32 ata-WDC_WD1003FBYX-01Y7B0_WD-WCAW30711590-part9 -> ../../sdd9
lrwxrwxrwx 1 root root   9 May  6 23:32 ata-WDC_WD1003FBYX-01Y7B0_WD-WCAW30753056 -> ../../sdc
lrwxrwxrwx 1 root root  10 May  6 23:32 ata-WDC_WD1003FBYX-01Y7B0_WD-WCAW30753056-part1 -> ../../sdc1
lrwxrwxrwx 1 root root  10 May  6 23:32 ata-WDC_WD1003FBYX-01Y7B0_WD-WCAW30753056-part9 -> ../../sdc9
lrwxrwxrwx 1 root root  10 May  6 23:32 dm-name-pve-root -> ../../dm-1
lrwxrwxrwx 1 root root  10 May  6 23:32 dm-name-pve-swap -> ../../dm-0
lrwxrwxrwx 1 root root  10 May  6 23:32 dm-name-pve-vm--104--disk--0 -> ../../dm-6
lrwxrwxrwx 1 root root  10 May  6 23:32 dm-uuid-LVM-vmy9Em183Q6CYlf0ssoA3tEprNVCXf1n0lp3h5fTLuHmc5DNuVwqe0X7XWALl3xL -> ../../dm-1
lrwxrwxrwx 1 root root  10 May  6 23:32 dm-uuid-LVM-vmy9Em183Q6CYlf0ssoA3tEprNVCXf1n0w7chCXdGIn2dcKpX5Dk4RMz753k9VpG -> ../../dm-6
lrwxrwxrwx 1 root root  10 May  6 23:32 dm-uuid-LVM-vmy9Em183Q6CYlf0ssoA3tEprNVCXf1ndyeEFVZWDXQAXS68ofP3JVIEvMKi0k4i -> ../../dm-0
lrwxrwxrwx 1 root root  10 May  6 23:32 lvm-pv-uuid-klwPfH-skjR-8kuy-CFmg-Lv1j-tRUH-pUkerM -> ../../sda3
lrwxrwxrwx 1 root root   9 May  6 23:32 wwn-0x5000c500270af7ba -> ../../sdb
lrwxrwxrwx 1 root root   9 May  6 23:32 wwn-0x50014ee0acf5b8a6 -> ../../sdg
lrwxrwxrwx 1 root root   9 May  6 23:32 wwn-0x50014ee0acf5b9c1 -> ../../sdf
lrwxrwxrwx 1 root root  10 May  6 23:32 wwn-0x50014ee0acf5b9c1-part1 -> ../../sdf1
lrwxrwxrwx 1 root root  10 May  6 23:32 wwn-0x50014ee0acf5b9c1-part9 -> ../../sdf9
lrwxrwxrwx 1 root root   9 May  6 23:42 wwn-0x50014ee207182cd1 -> ../../sde
lrwxrwxrwx 1 root root  10 May  6 23:42 wwn-0x50014ee207182cd1-part1 -> ../../sde1
lrwxrwxrwx 1 root root  10 May  6 23:42 wwn-0x50014ee207182cd1-part9 -> ../../sde9
lrwxrwxrwx 1 root root   9 May  6 23:32 wwn-0x50014ee25ac093fc -> ../../sdd
lrwxrwxrwx 1 root root  10 May  6 23:32 wwn-0x50014ee25ac093fc-part1 -> ../../sdd1
lrwxrwxrwx 1 root root  10 May  6 23:32 wwn-0x50014ee25ac093fc-part9 -> ../../sdd9
lrwxrwxrwx 1 root root   9 May  6 23:32 wwn-0x50014ee2b016309a -> ../../sdh
lrwxrwxrwx 1 root root   9 May  6 23:32 wwn-0x50014ee2b016fa00 -> ../../sdc
lrwxrwxrwx 1 root root  10 May  6 23:32 wwn-0x50014ee2b016fa00-part1 -> ../../sdc1
lrwxrwxrwx 1 root root  10 May  6 23:32 wwn-0x50014ee2b016fa00-part9 -> ../../sdc9
lrwxrwxrwx 1 root root   9 May  6 23:32 wwn-0x502b2a201d1c1b1a -> ../../sda
lrwxrwxrwx 1 root root  10 May  6 23:32 wwn-0x502b2a201d1c1b1a-part1 -> ../../sda1
lrwxrwxrwx 1 root root  10 May  6 23:32 wwn-0x502b2a201d1c1b1a-part2 -> ../../sda2
lrwxrwxrwx 1 root root  10 May  6 23:32 wwn-0x502b2a201d1c1b1a-part3 -> ../../sda3

Run this command
Code:
ls -l /dev/disk/by-id

Do not use
Code:
ls -lah  /dev/disk/by-id

Then simply find your new (replaced) drive letter (in my example it was sdc)
So disk/by-id (for me) was: ata-WDC_WD80EZAZ-11TDBA0_7SJR8P1U

So I used this command:
Code:
zpool replace pool1 1200958216758885009 ata-WDC_WD80EZAZ-11TDBA0_7SJR8P1U -f

In your case you would use:
Code:
zpool replace zpool1 7341065840658800339 <INSERT DISK/BY-ID HERE>
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!