Able to import zpool by id, but not by name

InfiniteBen

New Member
Feb 17, 2023
2
0
1
Not really sure what's going on here, but I figured it's weird enough behavior to report. I've been trying to rename my zpool for a couple days now. Whenever I tried to import the zpool after exporting it, It would "dissapear" from the list of importable pools.

```
root@lordran:/etc/systemd/system# zpool export graveyard-0
root@lordran:/etc/systemd/system# zpool import
pool: graveyard-0
id: 1478417917094675172
state: ONLINE
action: The pool can be imported using its name or numeric identifier.
config:

graveyard-0 ONLINE
mirror-0 ONLINE
ata-Samsung_SSD_870_EVO_1TB_S6PTNM0T615660R ONLINE
ata-Samsung_SSD_870_EVO_1TB_S6PTNM0T615654A ONLINE
root@lordran:/etc/systemd/system# zpool import
no pools available to import
```

Attached is an straced version of what happens when import is called.
Anyway, I noticed that the action said that it could be imported using its name or its identifier, so I tried the identifier...and *that* worked. At a complete loss for why, or who I should report it to. There are a fair number of people on these forums that have had issues with zfs renaming over the years, so I figured I'd start here. To be clear, the problem is *solved*-ish.

```
root@lordran:/etc/systemd/system# zpool export graveyard-0
root@lordran:/etc/systemd/system# zpool import
pool: graveyard-0
id: 1478417917094675172
state: ONLINE
action: The pool can be imported using its name or numeric identifier.
config:

graveyard-0 ONLINE
mirror-0 ONLINE
ata-Samsung_SSD_870_EVO_1TB_S6PTNM0T615660R ONLINE
ata-Samsung_SSD_870_EVO_1TB_S6PTNM0T615654A ONLINE
root@lordran:/etc/systemd/system# zpool import
pool: graveyard-0
id: 1478417917094675172
state: ONLINE
action: The pool can be imported using its name or numeric identifier.
config:

graveyard-0 ONLINE
mirror-0 ONLINE
ata-Samsung_SSD_870_EVO_1TB_S6PTNM0T615660R ONLINE
ata-Samsung_SSD_870_EVO_1TB_S6PTNM0T615654A ONLINE
root@lordran:/etc/systemd/system# zpool import 1478417917094675172
```
 

Attachments

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!