In caso di errore ZFS Raid-Z2, è necessario creare un nuovo pool ma manca una porta SAS. Posso scollegare un'unità da Raid-Z2?
Ho un pool Raid-Z2 con unità da 6 * 4 TB. Tutte le unità hanno un tempo di esecuzione di poco più di 40.000 ore. Ora sembrano tutti degradanti allo stesso tempo. Il pool è danneggiato e tutte le unità vengono contrassegnate come danneggiate con troppi errori. Ma fortunatamente nessun dato perso al momento.
NAME STATE READ WRITE CKSUM
File DEGRADED 0 0 0
raidz2-0 DEGRADED 0 0 0
sda DEGRADED 0 0 0 too many errors
sdb DEGRADED 0 0 0 too many errors
sdc DEGRADED 0 0 0 too many errors
sdd DEGRADED 0 0 0 too many errors
sde DEGRADED 0 0 0 too many errors
sdf DEGRADED 0 0 0 too many errors
Vorrei costruire un nuovo pool con unità Raid-Z1 e 3 * 6 TB poiché non ho bisogno di tutto lo spazio come nel pool originale. Il mio problema è che il vecchio pool ha 6 unità e il mio pool ne avrà 3, ma il mio controller SAS ha solo 8 porte. Quindi vorrei scollegare un disco dal mio pool Raid-Z2, collegare le mie 3 nuove unità e creare un nuovo pool con loro e quindi salvare i miei dati copiandoli nel nuovo pool prima che il vecchio pool fallisca.
È possibile? Il mio pensiero è che il vecchio pool dovrebbe funzionare con un disco mancante. Ma quando ho provato a disconnettere un disco non sono riuscito ad accedere ai dati nel vecchio pool.
Qualcuno sa come risolvere questo problema?
Stato Zpool -v:
pool: File
state: DEGRADED
status: One or more devices has experienced an unrecoverable error. An
attempt was made to correct the error. Applications are unaffected.
action: Determine if the device needs to be replaced, and clear the errors
using 'zpool clear' or replace the device with 'zpool replace'.
see: http://zfsonlinux.org/msg/ZFS-8000-9P
scan: resilvered 6.82G in 0 days 00:04:00 with 0 errors on Sun Aug 23 21:21:15 2020
config:
NAME STATE READ WRITE CKSUM
File DEGRADED 0 0 0
raidz2-0 DEGRADED 0 0 0
sda DEGRADED 0 0 0 too many errors
sdb DEGRADED 0 0 0 too many errors
sdc DEGRADED 0 0 0 too many errors
sdd DEGRADED 0 0 0 too many errors
sde DEGRADED 0 0 0 too many errors
sdf DEGRADED 0 0 0 too many errors
errors: No known data errors
Tutti i dischi riportano lo stato SMART ok:
smartctl -H /dev/sda
smartctl 7.1 2019-12-30 r5022 [x86_64-linux-5.4.55-1-pve] (local build)
Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF READ SMART DATA SECTION ===
SMART Health Status: OK
syslog sembra vuoto:
root@boxvm:/var/log# cat syslog | grep sda
root@boxvm:/var/log#
Anche l'output di dmesg sembra a posto:
dmesg | grep sda
[ 8.997624] sd 1:0:0:0: [sda] Enabling DIF Type 2 protection
[ 8.998488] sd 1:0:0:0: [sda] 7814037168 512-byte logical blocks: (4.00 TB/3.64 TiB)
[ 8.998847] sd 1:0:0:0: [sda] Write Protect is off
[ 8.998848] sd 1:0:0:0: [sda] Mode Sense: df 00 10 08
[ 8.999540] sd 1:0:0:0: [sda] Write cache: disabled, read cache: enabled, supports DPO and FUA
[ 9.093385] sda: sda1 sda9
[ 9.096819] sd 1:0:0:0: [sda] Attached SCSI disk
dmesg | grep sdb
[ 8.997642] sd 1:0:1:0: [sdb] Enabling DIF Type 2 protection
[ 8.998467] sd 1:0:1:0: [sdb] 7814037168 512-byte logical blocks: (4.00 TB/3.64 TiB)
[ 8.998828] sd 1:0:1:0: [sdb] Write Protect is off
[ 8.998830] sd 1:0:1:0: [sdb] Mode Sense: df 00 10 08
[ 8.999524] sd 1:0:1:0: [sdb] Write cache: disabled, read cache: enabled, supports DPO and FUA
[ 9.087056] sdb: sdb1 sdb9
[ 9.090465] sd 1:0:1:0: [sdb] Attached SCSI disk
dmesg | grep sdc
[ 8.997812] sd 1:0:2:0: [sdc] Enabling DIF Type 2 protection
[ 8.998639] sd 1:0:2:0: [sdc] 7814037168 512-byte logical blocks: (4.00 TB/3.64 TiB)
[ 8.998998] sd 1:0:2:0: [sdc] Write Protect is off
[ 8.998999] sd 1:0:2:0: [sdc] Mode Sense: df 00 10 08
[ 8.999692] sd 1:0:2:0: [sdc] Write cache: disabled, read cache: enabled, supports DPO and FUA
[ 9.084259] sdc: sdc1 sdc9
[ 9.088030] sd 1:0:2:0: [sdc] Attached SCSI disk
dmesg | grep sdd
[ 8.997932] sd 1:0:3:0: [sdd] Enabling DIF Type 2 protection
[ 8.998761] sd 1:0:3:0: [sdd] 7814037168 512-byte logical blocks: (4.00 TB/3.64 TiB)
[ 8.999120] sd 1:0:3:0: [sdd] Write Protect is off
[ 8.999121] sd 1:0:3:0: [sdd] Mode Sense: df 00 10 08
[ 8.999818] sd 1:0:3:0: [sdd] Write cache: disabled, read cache: enabled, supports DPO and FUA
[ 9.103840] sdd: sdd1 sdd9
[ 9.107482] sd 1:0:3:0: [sdd] Attached SCSI disk
dmesg | grep sde
[ 8.998017] sd 1:0:4:0: [sde] Enabling DIF Type 2 protection
[ 8.998839] sd 1:0:4:0: [sde] 7814037168 512-byte logical blocks: (4.00 TB/3.64 TiB)
[ 8.999234] sd 1:0:4:0: [sde] Write Protect is off
[ 8.999235] sd 1:0:4:0: [sde] Mode Sense: df 00 10 08
[ 8.999933] sd 1:0:4:0: [sde] Write cache: disabled, read cache: enabled, supports DPO and FUA
[ 9.088282] sde: sde1 sde9
[ 9.091665] sd 1:0:4:0: [sde] Attached SCSI disk
dmesg | grep sdf
[ 8.998247] sd 1:0:5:0: [sdf] Enabling DIF Type 2 protection
[ 8.999076] sd 1:0:5:0: [sdf] 7814037168 512-byte logical blocks: (4.00 TB/3.64 TiB)
[ 8.999435] sd 1:0:5:0: [sdf] Write Protect is off
[ 8.999436] sd 1:0:5:0: [sdf] Mode Sense: df 00 10 08
[ 9.000136] sd 1:0:5:0: [sdf] Write cache: disabled, read cache: enabled, supports DPO and FUA
[ 9.090609] sdf: sdf1 sdf9
[ 9.094235] sd 1:0:5:0: [sdf] Attached SCSI disk
dmesg per il controller SAS
root@boxvm:/var/log# dmesg | grep mpt2
[ 1.151805] mpt2sas_cm0: 64 BIT PCI BUS DMA ADDRESSING SUPPORTED, total mem (65793672 kB)
[ 1.200012] mpt2sas_cm0: CurrentHostPageSize is 0: Setting default host page size to 4k
[ 1.200023] mpt2sas_cm0: MSI-X vectors supported: 1
[ 1.200024] mpt2sas_cm0: 0 1
[ 1.200098] mpt2sas_cm0: High IOPs queues : disabled
[ 1.200099] mpt2sas0-msix0: PCI-MSI-X enabled: IRQ 51
[ 1.200100] mpt2sas_cm0: iomem(0x00000000fc740000), mapped(0x00000000629d5dd1), size(65536)
[ 1.200101] mpt2sas_cm0: ioport(0x000000000000d000), size(256)
[ 1.254826] mpt2sas_cm0: CurrentHostPageSize is 0: Setting default host page size to 4k
[ 1.281681] mpt2sas_cm0: scatter gather: sge_in_main_msg(1), sge_per_chain(9), sge_per_io(128), chains_per_io(15)
[ 1.281746] mpt2sas_cm0: request pool(0x0000000074c49e3e) - dma(0xfcd700000): depth(3492), frame_size(128), pool_size(436 kB)
[ 1.289333] mpt2sas_cm0: sense pool(0x00000000693be9f4)- dma(0xfcba00000): depth(3367),element_size(96), pool_size(315 kB)
[ 1.289400] mpt2sas_cm0: config page(0x00000000f6926acf) - dma(0xfcb9ad000): size(512)
[ 1.289401] mpt2sas_cm0: Allocated physical memory: size(1687 kB)
[ 1.289401] mpt2sas_cm0: Current Controller Queue Depth(3364),Max Controller Queue Depth(3432)
[ 1.289402] mpt2sas_cm0: Scatter Gather Elements per IO(128)
[ 1.333780] mpt2sas_cm0: LSISAS2008: FWVersion(20.00.07.00), ChipRevision(0x03), BiosVersion(00.00.00.00)
[ 1.333781] mpt2sas_cm0: Protocol=(Initiator,Target), Capabilities=(TLR,EEDP,Snapshot Buffer,Diag Trace Buffer,Task Set Full,NCQ)
[ 1.334527] mpt2sas_cm0: sending port enable !!
[ 2.861790] mpt2sas_cm0: host_add: handle(0x0001), sas_addr(0x590b11c0155b3300), phys(8)
[ 8.996385] mpt2sas_cm0: port enable: SUCCESS
Risposte
Se il tuo pool sta già fallendo, degradarlo ulteriormente è una pessima idea. Se tutti i tuoi dischi presentano errori insieme, è molto probabile che tu abbia un controller guasto o un alimentatore guasto, piuttosto che dischi guasti.
Faresti bene a investire in un controller aggiuntivo per appendere i dischi sostitutivi come primo passaggio.