I created a zpool where I used the disk ID names from
. This works fine, however I recently read about the vdev_id.conf file. I created my own
where I could create disk aliases for the slots where the disks are in, so I have my disks now accessible through
and so on. This is very convenient, because with the ID notation it can become difficult to find out in which slot a specific disk is, but with the vdev file it is much easier.
So I would like to change my zpool to use my own device names. I read that this is possible with
followed by
So I tried to do that. But when I exported my zpool called "tank", it appeared that Proxmox immediately re-imported it. Because when I tried to use "zpool import", the pool was already imported, still using the old disk names.
I have a few containers, having their disks as subvolumes in my tank, and I also have the VM images in a Proxmox storage, also on that tank. Of course I had the VMs and containers stopped before I did the export!
So what is the right way to export a zpool in such a configuration?
Do I need to stop some Proxmox services before I can proceed? It looks like someone automatically imports my pool after I have exported it, without my interaction. On one hand this is awesome, but in this particular situation it is not so handy.
Code:
/dev/disk/by-id
Code:
vdev_id.conf
Code:
/dev/disk/by-vdev/slot0
So I would like to change my zpool to use my own device names. I read that this is possible with
Code:
zpool export tank
Code:
zpool import tank -d /dev/disk/by-vdev
So I tried to do that. But when I exported my zpool called "tank", it appeared that Proxmox immediately re-imported it. Because when I tried to use "zpool import", the pool was already imported, still using the old disk names.
I have a few containers, having their disks as subvolumes in my tank, and I also have the VM images in a Proxmox storage, also on that tank. Of course I had the VMs and containers stopped before I did the export!
So what is the right way to export a zpool in such a configuration?
Do I need to stop some Proxmox services before I can proceed? It looks like someone automatically imports my pool after I have exported it, without my interaction. On one hand this is awesome, but in this particular situation it is not so handy.