i have 4x 1TB WD RED drives in raid 10 zfs pool
and i want to remove two of them (the older)...
so /dev/sda and /dev/sdb which should be ata-WDC_WD10EFRX-68PJCN0_WD-WCC4J2021886-part2 and ata-WDC_WD10EFRX-68JCSN0_WD-WMC1U6546808-part2 how can it safely be done please? thank you...
Code:
root@pve-klenova:~# zpool status
pool: rpool
state: ONLINE
scan: resilvered 29.2G in 1h16m with 0 errors on Sun Dec 10 15:01:57 2017
config:
NAME STATE READ WRITE CKSUM
rpool ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
ata-WDC_WD10EFRX-68PJCN0_WD-WCC4J2021886-part2 ONLINE 0 0 0
ata-WDC_WD10EFRX-68JCSN0_WD-WMC1U6546808-part2 ONLINE 0 0 0
mirror-1 ONLINE 0 0 0
ata-WDC_WD10EFRX-68FYTN0_WD-WCC4J2AK75T9 ONLINE 0 0 0
ata-WDC_WD10EFRX-68FYTN0_WD-WCC4J1JE0SFR ONLINE 0 0 0
errors: No known data errors
pool: vmdata
state: ONLINE
scan: none requested
config:
NAME STATE READ WRITE CKSUM
vmdata ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
ata-WDC_WD4002FYYZ-01B7CB1_K3GN7LYL ONLINE 0 0 0
ata-WDC_WD4002FYYZ-01B7CB1_K7GAE87L ONLINE 0 0 0
errors: No known data errors
Code:
root@pve-klenova:~# ls -lh /dev/disk/by-id/
total 0
lrwxrwxrwx 1 root root 9 Dec 21 18:43 ata-WDC_WD10EFRX-68FYTN0_WD-WCC4J1JE0SFR -> ../../sdd
lrwxrwxrwx 1 root root 10 Dec 21 18:43 ata-WDC_WD10EFRX-68FYTN0_WD-WCC4J1JE0SFR-part1 -> ../../sdd1
lrwxrwxrwx 1 root root 10 Dec 21 18:43 ata-WDC_WD10EFRX-68FYTN0_WD-WCC4J1JE0SFR-part9 -> ../../sdd9
lrwxrwxrwx 1 root root 9 Dec 21 18:43 ata-WDC_WD10EFRX-68FYTN0_WD-WCC4J2AK75T9 -> ../../sdc
lrwxrwxrwx 1 root root 10 Dec 21 18:43 ata-WDC_WD10EFRX-68FYTN0_WD-WCC4J2AK75T9-part1 -> ../../sdc1
lrwxrwxrwx 1 root root 10 Dec 21 18:43 ata-WDC_WD10EFRX-68FYTN0_WD-WCC4J2AK75T9-part9 -> ../../sdc9
lrwxrwxrwx 1 root root 9 Dec 21 18:43 ata-WDC_WD10EFRX-68JCSN0_WD-WMC1U6546808 -> ../../sdb
lrwxrwxrwx 1 root root 10 Dec 21 18:43 ata-WDC_WD10EFRX-68JCSN0_WD-WMC1U6546808-part1 -> ../../sdb1
lrwxrwxrwx 1 root root 10 Dec 21 18:43 ata-WDC_WD10EFRX-68JCSN0_WD-WMC1U6546808-part2 -> ../../sdb2
lrwxrwxrwx 1 root root 10 Dec 21 18:43 ata-WDC_WD10EFRX-68JCSN0_WD-WMC1U6546808-part9 -> ../../sdb9
lrwxrwxrwx 1 root root 9 Dec 21 18:43 ata-WDC_WD10EFRX-68PJCN0_WD-WCC4J2021886 -> ../../sda
lrwxrwxrwx 1 root root 10 Dec 21 18:43 ata-WDC_WD10EFRX-68PJCN0_WD-WCC4J2021886-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Dec 21 18:43 ata-WDC_WD10EFRX-68PJCN0_WD-WCC4J2021886-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Dec 21 18:43 ata-WDC_WD10EFRX-68PJCN0_WD-WCC4J2021886-part9 -> ../../sda9
lrwxrwxrwx 1 root root 9 Dec 21 18:43 ata-WDC_WD4002FYYZ-01B7CB1_K3GN7LYL -> ../../sde
lrwxrwxrwx 1 root root 10 Dec 21 18:43 ata-WDC_WD4002FYYZ-01B7CB1_K3GN7LYL-part1 -> ../../sde1
lrwxrwxrwx 1 root root 10 Dec 21 18:43 ata-WDC_WD4002FYYZ-01B7CB1_K3GN7LYL-part9 -> ../../sde9
lrwxrwxrwx 1 root root 9 Dec 21 18:43 ata-WDC_WD4002FYYZ-01B7CB1_K7GAE87L -> ../../sdf
lrwxrwxrwx 1 root root 10 Dec 21 18:43 ata-WDC_WD4002FYYZ-01B7CB1_K7GAE87L-part1 -> ../../sdf1
lrwxrwxrwx 1 root root 10 Dec 21 18:43 ata-WDC_WD4002FYYZ-01B7CB1_K7GAE87L-part9 -> ../../sdf9
lrwxrwxrwx 1 root root 9 Dec 21 18:43 ata-WDC_WD7500BPKT-80PK4T0_WD-WXA1A23M9532 -> ../../sdg
lrwxrwxrwx 1 root root 10 Dec 21 18:43 ata-WDC_WD7500BPKT-80PK4T0_WD-WXA1A23M9532-part1 -> ../../sdg1
lrwxrwxrwx 1 root root 10 Dec 21 18:43 ata-WDC_WD7500BPKT-80PK4T0_WD-WXA1A23M9532-part2 -> ../../sdg2
lrwxrwxrwx 1 root root 9 Dec 21 18:43 wwn-0x5000cca25cc933fe -> ../../sde
lrwxrwxrwx 1 root root 10 Dec 21 18:43 wwn-0x5000cca25cc933fe-part1 -> ../../sde1
lrwxrwxrwx 1 root root 10 Dec 21 18:43 wwn-0x5000cca25cc933fe-part9 -> ../../sde9
lrwxrwxrwx 1 root root 9 Dec 21 18:43 wwn-0x5000cca269c4bd82 -> ../../sdf
lrwxrwxrwx 1 root root 10 Dec 21 18:43 wwn-0x5000cca269c4bd82-part1 -> ../../sdf1
lrwxrwxrwx 1 root root 10 Dec 21 18:43 wwn-0x5000cca269c4bd82-part9 -> ../../sdf9
lrwxrwxrwx 1 root root 9 Dec 21 18:43 wwn-0x50014ee20cb14f8a -> ../../sdc
lrwxrwxrwx 1 root root 10 Dec 21 18:43 wwn-0x50014ee20cb14f8a-part1 -> ../../sdc1
lrwxrwxrwx 1 root root 10 Dec 21 18:43 wwn-0x50014ee20cb14f8a-part9 -> ../../sdc9
lrwxrwxrwx 1 root root 9 Dec 21 18:43 wwn-0x50014ee25f04dc16 -> ../../sda
lrwxrwxrwx 1 root root 10 Dec 21 18:43 wwn-0x50014ee25f04dc16-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Dec 21 18:43 wwn-0x50014ee25f04dc16-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Dec 21 18:43 wwn-0x50014ee25f04dc16-part9 -> ../../sda9
lrwxrwxrwx 1 root root 9 Dec 21 18:43 wwn-0x50014ee261fd68b6 -> ../../sdd
lrwxrwxrwx 1 root root 10 Dec 21 18:43 wwn-0x50014ee261fd68b6-part1 -> ../../sdd1
lrwxrwxrwx 1 root root 10 Dec 21 18:43 wwn-0x50014ee261fd68b6-part9 -> ../../sdd9
lrwxrwxrwx 1 root root 9 Dec 21 18:43 wwn-0x50014ee602bd2b00 -> ../../sdb
lrwxrwxrwx 1 root root 10 Dec 21 18:43 wwn-0x50014ee602bd2b00-part1 -> ../../sdb1
lrwxrwxrwx 1 root root 10 Dec 21 18:43 wwn-0x50014ee602bd2b00-part2 -> ../../sdb2
lrwxrwxrwx 1 root root 10 Dec 21 18:43 wwn-0x50014ee602bd2b00-part9 -> ../../sdb9
lrwxrwxrwx 1 root root 9 Dec 21 18:43 wwn-0x50014ee6035e1da0 -> ../../sdg
lrwxrwxrwx 1 root root 10 Dec 21 18:43 wwn-0x50014ee6035e1da0-part1 -> ../../sdg1
lrwxrwxrwx 1 root root 10 Dec 21 18:43 wwn-0x50014ee6035e1da0-part2 -> ../../sdg2
and i want to remove two of them (the older)...
Code:
root@pve-klenova:~# smartctl /dev/sda -a | grep Power
9 Power_On_Hours 0x0032 062 062 000 Old_age Always - 28441
12 Power_Cycle_Count 0x0032 100 100 000 Old_age Always - 168
192 Power-Off_Retract_Count 0x0032 200 200 000 Old_age Always - 123
root@pve-klenova:~# smartctl /dev/sdb -a | grep Power
9 Power_On_Hours 0x0032 039 039 000 Old_age Always - 44885
12 Power_Cycle_Count 0x0032 100 100 000 Old_age Always - 332
192 Power-Off_Retract_Count 0x0032 200 200 000 Old_age Always - 249
root@pve-klenova:~# smartctl /dev/sdc -a | grep Power
9 Power_On_Hours 0x0032 097 097 000 Old_age Always - 2215
12 Power_Cycle_Count 0x0032 100 100 000 Old_age Always - 36
192 Power-Off_Retract_Count 0x0032 200 200 000 Old_age Always - 28
root@pve-klenova:~# smartctl /dev/sdd -a | grep Power
9 Power_On_Hours 0x0032 097 097 000 Old_age Always - 2239
12 Power_Cycle_Count 0x0032 100 100 000 Old_age Always - 37
192 Power-Off_Retract_Count 0x0032 200 200 000 Old_age Always - 28
so /dev/sda and /dev/sdb which should be ata-WDC_WD10EFRX-68PJCN0_WD-WCC4J2021886-part2 and ata-WDC_WD10EFRX-68JCSN0_WD-WMC1U6546808-part2 how can it safely be done please? thank you...
Last edited: