hello i have 2xhdd in raid1 (mirror) zfs in proxmox. one hdd was gone, replace with new one, now i have
and
/sdb is the new one, how to add it safely to the zpoll and resilver? i have important data on sda and dont want to make any mistake, PLEASE help me providing step by step...
Code:
root@pve-klenova:~# fdisk -l
Disk /dev/sda: 3,7 TiB, 4000787030016 bytes, 7814037168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 1665524D-C367-4A45-828F-AAACB25FDEFD
Device Start End Sectors Size Type
/dev/sda1 34 2047 2014 1007K BIOS boot
/dev/sda2 2048 7814020749 7814018702 3,7T Solaris /usr & Apple ZFS
/dev/sda9 7814020750 7814037134 16385 8M Solaris reserved 1
Disk /dev/sdb: 3,7 TiB, 4000787030016 bytes, 7814037168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/zd0: 8 GiB, 8589934592 bytes, 16777216 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/zd16: 10 GiB, 10737418240 bytes, 20971520 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 8192 bytes
I/O size (minimum/optimal): 8192 bytes / 8192 bytes
Disklabel type: dos
Disk identifier: 0x644c7a42
Device Boot Start End Sectors Size Id Type
/dev/zd16p1 * 2048 19922943 19920896 9,5G 83 Linux
/dev/zd16p2 19924990 20969471 1044482 510M 5 Extended
/dev/zd16p5 19924992 20969471 1044480 510M 82 Linux swap / Solaris
Partition 2 does not start on physical sector boundary.
Disk /dev/zd32: 100 GiB, 107374182400 bytes, 209715200 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 8192 bytes
I/O size (minimum/optimal): 8192 bytes / 8192 bytes
Disklabel type: dos
Disk identifier: 0x294acf2e
Device Boot Start End Sectors Size Id Type
/dev/zd32p1 2048 209715199 209713152 100G 83 Linux
Code:
root@pve-klenova:~# ls -lh /dev/disk/by-id/
total 0
lrwxrwxrwx 1 root root 9 dec 5 10:51 ata-WDC_WD4002FYYZ-01B7CB1_K3GN7LYL -> ../../sda
lrwxrwxrwx 1 root root 10 dec 5 10:51 ata-WDC_WD4002FYYZ-01B7CB1_K3GN7LYL-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 dec 5 10:51 ata-WDC_WD4002FYYZ-01B7CB1_K3GN7LYL-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 dec 5 10:51 ata-WDC_WD4002FYYZ-01B7CB1_K3GN7LYL-part9 -> ../../sda9
lrwxrwxrwx 1 root root 9 dec 5 10:51 ata-WDC_WD4002FYYZ-01B7CB1_K7JVZ45T -> ../../sdb
lrwxrwxrwx 1 root root 9 dec 5 10:51 wwn-0x5000cca25cc933fe -> ../../sda
lrwxrwxrwx 1 root root 10 dec 5 10:51 wwn-0x5000cca25cc933fe-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 dec 5 10:51 wwn-0x5000cca25cc933fe-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 dec 5 10:51 wwn-0x5000cca25cc933fe-part9 -> ../../sda9
lrwxrwxrwx 1 root root 9 dec 5 10:51 wwn-0x5000cca269e871c7 -> ../../sdb
and
Code:
root@pve-klenova:~# zpool status -v
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://zfsonlinux.org/msg/ZFS-8000-4J
scan: resilvered 144G in 2h10m with 0 errors on Wed Sep 19 20:45:26 2018
config:
NAME STATE READ WRITE CKSUM
rpool DEGRADED 0 0 0
mirror-0 DEGRADED 0 0 0
wwn-0x5000cca25cc933fe-part2 ONLINE 0 0 0
12706416511818272176 UNAVAIL 0 0 0 was /dev/disk/by-id/wwn-0x5000cca269c4bd82-part2
errors: No known data errors
/sdb is the new one, how to add it safely to the zpoll and resilver? i have important data on sda and dont want to make any mistake, PLEASE help me providing step by step...
Last edited: