-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Detect iSCSI in the zpool cmd vdev media script #12206
Conversation
Signed-off-by: Don Brady <don.brady@delphix.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pending tests
vpd_pg83="/sys/block/$device/device/vpd_pg83" | ||
if [ -f "$vpd_pg83" ]; then | ||
if grep -q --binary "iqn." "$vpd_pg83"; then | ||
MEDIA="iscsi" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since iscsi is the transport protocol, would it make sense to append iscsi
to the disk type, like iscsi-hdd
or iscsi-ssd
? (I have not used iscsi so this may be a dumb question).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think the iSCSI protocol exposes the backend device type. But I'll try an experiment with both backends to see if we can see it. If so then a hybrid might make sense.
Reviewed-by: Serapheim Dimitropoulos <serapheim@delphix.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Tony Hutter <hutter2@llnl.gov> Reviewed-by: Tony Nguyen <tony.nguyen@delphix.com> Signed-off-by: Don Brady <don.brady@delphix.com> Closes openzfs#12206
Reviewed-by: Serapheim Dimitropoulos <serapheim@delphix.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Tony Hutter <hutter2@llnl.gov> Reviewed-by: Tony Nguyen <tony.nguyen@delphix.com> Signed-off-by: Don Brady <don.brady@delphix.com> Closes openzfs#12206
Motivation and Context
In the
zpool status
command, the-c media
option shows whether a vdev is a file, hdd, or ssd. It would be nice to also support iSCSI devices as a media type.Description
Added support to the
media
script to detect if a device is iSCSI.How Has This Been Tested?
manually tested with a pool comprised of iSCSI devices. Here are two example runs with the new detection:
Types of changes
Checklist:
Signed-off-by
.