Jump to content

zpool rename device

Below is one of my mirrored pools.  Is there a way to just change the 'sdb' device to the by-id format?

 

config:

        NAME                                  STATE     READ WRITE CKSUM
        store1                                ONLINE       0     0     0
          mirror-0                            ONLINE       0     0     0
            sdb                               ONLINE       0     0     8
            ata-ST8000NM000A-2KE101_WSD6WJ7H  ONLINE       0     0     8

 

$ ls -l /dev/disk/by-id | grep sdb
lrwxrwxrwx 1 root root  9 Jan 19 19:27 ata-ST8000NM000A-2KE101_WSD734E2 -> ../../sdb

 

Thanks,

Greg

Link to comment
Share on other sites

Link to post
Share on other sites

Easiest Ive found is to try exporting the pool and reimporting the pool and see if that works.

 

But I should be fine the way it is, so I woudln't worry.

 

You should also be able to detach the second drive from the mirror, then readd it using the uuid.

Link to comment
Share on other sites

Link to post
Share on other sites

36 minutes ago, Electronics Wizardy said:

Easiest Ive found is to try exporting the pool and reimporting the pool and see if that works.

 

But I should be fine the way it is, so I woudln't worry.

 

This, when you're importing it be sure to specify by-id. eg.

sudo zpool export store-1
sudo zpool import -d /dev/disk/by-id store-1
Spoiler

Desktop: Ryzen9 5950X | ASUS ROG Crosshair VIII Hero (Wifi) | EVGA RTX 3080Ti FTW3 | 32GB (2x16GB) Corsair Dominator Platinum RGB Pro 3600Mhz | EKWB EK-AIO 360D-RGB | EKWB EK-Vardar RGB Fans | 1TB Samsung 980 Pro, 4TB Samsung 980 Pro | Corsair 5000D Airflow | Corsair HX850 Platinum PSU | Asus ROG 42" OLED PG42UQ + LG 32" 32GK850G Monitor | Roccat Vulcan TKL Pro Keyboard | Logitech G Pro X Superlight  | MicroLab Solo 7C Speakers | Audio-Technica ATH-M50xBT2 LE Headphones | TC-Helicon GoXLR | Audio-Technica AT2035 | LTT Desk Mat | XBOX-X Controller | Windows 11 Pro

 

Spoiler

Server: Fractal Design Define R6 | Ryzen 3950x | ASRock X570 Taichi | EVGA GTX1070 FTW | 64GB (4x16GB) Corsair Vengeance LPX 3000Mhz | Corsair RM850v2 PSU | Fractal S36 Triple AIO + 4 Additional Venturi 120mm Fans | 14 x 20TB Seagate Exos X22 20TB | 500GB Aorus Gen4 NVMe | 2 x 2TB Samsung 970 Evo Plus NVMe | LSI 9211-8i HBA

 

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×