Skip to content

Instantly share code, notes, and snippets.

@joseivanlopez
Last active February 23, 2026 13:08
Show Gist options
  • Select an option

  • Save joseivanlopez/cfbb88f860ca3e10dc59a7b133c26c8a to your computer and use it in GitHub Desktop.

Select an option

Save joseivanlopez/cfbb88f860ca3e10dc59a7b133c26c8a to your computer and use it in GitHub Desktop.

System

{
  zfcp: {
    allowLunScan: true,
    controllers: [
      {
        channel: "0.0.0100",
        active: true,
        lunScan: true,
        wwpns: ["0x500507630300c562", ...]
      }
    ],
    devices: [
      {
        channel: "",
        wwpn: "",
        lun: "",
        deviceName: "",
        active: true
      }
    ]
  }
}

Config

{
  zfcp: {
    devices: [
      {
        channel: "",
        wwpn: "",
        lun: "",
        active: true
      }
    ]
  }
}
  • A controller cannot be deactivated.
  • Activating a device from a controller with autoscan implies to activate all de devices from that controller.
  • A device from a controller with autoscan cannot be dactivated.

Questions

  • Remove the "locked" concept? If we want to keep the currently connected entries, then we need to add them to the config. Otherwise there is no way to disconnect a locked device.
  • Add "active" property and only disconnect a device if active = false.

{
  zfcp: {
    allowLunScan: true,
    controllers: [
      {
        channel: "0.0.0100",
        active: true,
        lunScan: true,
        wwpns: [
          {
            wwpn: "0x332323",
            luns: ["222", "333"]
          }
        ]
      }
    ],
    devices: [
      {
        channel: "",
        wwpn: "",
        lun: "",
        deviceName: "",
      }
    ]
  }
}

Config

{
  zfcp: {
    controllers: ["0.0.211"],
    devices: [
      {
        channel: "",
        wwpn: "",
        lun: "",
        active: true
      }
    ]
  }
}
  • Probe: find wwpns and luns for activated controllers?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment