unavail rpool SSD

Robkd4

Member
Jan 7, 2021
20
2
8
44
Hi all,

have a fresh installed pve on a SSD Mirror pool, but degraded. How can i remove the missing drive and re add?
Code:
# zpool status -x
  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: https://openzfs.github.io/openzfs-docs/msg/ZFS-8000-4J
config:

        NAME                                        STATE     READ WRITE CKSUM
        rpool                                       DEGRADED     0     0     0
          mirror-0                                  DEGRADED     0     0     0
            2733430748360847942                     UNAVAIL      0     0     0  was /dev/disk/by-id/ata-SSD_1642403003004074-part3
            ata-SSD_1642403003004585-part3  ONLINE       0     0     0

errors: No known data errors

device can be found

Code:
# ls -alh /dev/disk/by-id/
total 0
drwxr-xr-x 2 root root 1.1K Nov  9 15:29 .
drwxr-xr-x 9 root root  180 Nov  9 14:29 ..
lrwxrwxrwx 1 root root    9 Nov  9 14:29 ata-SSD_1642403003004074 -> ../../sda
lrwxrwxrwx 1 root root   10 Nov  9 14:29 ata-SSD_1642403003004074-part1 -> ../../sda1
lrwxrwxrwx 1 root root   10 Nov  9 14:29 ata-SSD_1642403003004074-part2 -> ../../sda2
lrwxrwxrwx 1 root root   10 Nov  9 14:29 ata-SSD_1642403003004074-part3 -> ../../sda3
lrwxrwxrwx 1 root root    9 Nov  9 15:29 ata-SSD_1642403003004585 -> ../../sdb
lrwxrwxrwx 1 root root   10 Nov  9 15:29 ata-SSD_1642403003004585-part1 -> ../../sdb1
lrwxrwxrwx 1 root root   10 Nov  9 15:29 ata-SSD_1642403003004585-part2 -> ../../sdb2
lrwxrwxrwx 1 root root   10 Nov  9 15:29 ata-SSD_1642403003004585-part3 -> ../../sdb3
lrwxrwxrwx 1 root root    9 Nov  9 15:14 ata-SAMSUNG_MZ7L3960HCJR-00A07_S662NN0X305617 -> ../../sdg
lrwxrwxrwx 1 root root   10 Nov  9 15:14 ata-SAMSUNG_MZ7L3960HCJR-00A07_S662NN0X305617-part1 -> ../../sdg1
lrwxrwxrwx 1 root root   10 Nov  9 15:14 ata-SAMSUNG_MZ7L3960HCJR-00A07_S662NN0X305617-part9 -> ../../sdg9

thx a lot and cheers
 
Best way is to have a spare slot disk usable on your host.
If present, you cannot use "zpool replace"
But, the safely use of them is with zpool offline mode.
 
Best way is to have a spare slot disk usable on your host.
If present, you cannot use "zpool replace"
On a boot zfs mirror (/raidz*) a "zpool replace" (iO for option pools) alone and even a spare disk alone would NOT do the full job (works only for part3), see link by leesteken !!
 
Last edited:
thx a lot for all your answers,

but just rebuild from scratch. cleaned all the drives with wipefs created new pools and now all looks fine.

cheers
 
zpool detach rpool 2733430748360847942

The create a new partition table:
sgdisk /dev/disk/by-id/ata-SSD_1642403003004585 -R </dev/disk/by-id/new-device>

Create a uniq UUID of the device:
sgdisk -G </dev/disk/by-id/new-device>

zpool attach rpool ata-SSD_1642403003004585-part3 </dev/disk/by-id/new-device-part3>
 

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!