Show the encryption state of zfcp-attached LUNs
![]()
lsluns -a shows the encryption state of the attached LUNs.
Note: Running lsluns -a causes extra SAN traffic for each attached LUN.
lsluns syntax
Filter the listing by specifying one or more FCP device bus-IDs, target port WWPNs, or both.
Where:
- -a or --active
- shows the encryption state of the attached LUNs. Encrypted devices are indicated
with a bracketed
Ximmediately after the LUN number. - -c <device_bus_id> or --ccw=<device_bus_id>
- filters LUNs by one or more adapters with the specified FCP device-bus IDs. When used in
conjunction with
−p, only those LUNs are listed that also satisfy at least one of the−pconstraints. - -p <wwpn> or --port=<wwpn>
- filters LUNs by one or more target ports with the specified WWPNs. When used in conjunction with
−c, only those LUNs are listed that also satisfy at least one of the−cconstraints. - -v or --version
- displays version information and exits.
- -h or --help
- displays an overview of the syntax. To view the man page, enter man lsluns.
Examples
- This example shows
the encryption status of attached LUNs:
# lsluns -a adapter = 0.0.3c02 port = 0x500507630300c562 lun = 0x401040a200000000(X) /dev/sg0 Disk IBM:2107900 lun = 0x401040a300000000 /dev/sg1 Disk IBM:2107900 ... port = 0x500507630303c562 ... adapter = 0.0.593a ...The(X)after the LUN number indicates that the device is encrypted.