HomeSoftware Heritage

(MODULES-10039) Use "zpool status -P" on Linux

Description

(MODULES-10039) Use "zpool status -P" on Linux

Use "zpool status -P" instead of "zpool status" on Linux. This allows
usage of e.g. LVs, LUKS-devices etc. with ZOL. Also currently only way
(?) to use an L2ARC ("<dev> [...] cache <l2arc-dev>").

Otherwise result in errors like: Error: zpool disk can't be
changed. should be ["/dev/mapper/cryptdevice cache
/dev/rootvg/l2arc"], currently is ["cryptdevice cache l2arc"] (while
the creation worked!)

Changing the devices to their short names ("cryptdevice" and "l2arc")
will fix the above error, but fails to actually create the zpool (as
there are no "/dev/cryptdevice" and "/dev/l2arc").

Details

Provenance
Gunnar "Nick" Bluth <gunnar.bluth@pro-open.de>Authored on Oct 25 2019, 2:02 PM
Gabriel Nagy <gabriel.nagy@puppet.com>Committed on Oct 25 2019, 2:02 PM
ardumontPushed on Apr 20 2022, 11:24 AM
Parents
R257:4e1d055ece08: (MODULES-8823) Add support for overlay option in zfs
Branches
Unknown
Tags
Unknown

Event Timeline