-
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
vdev_id: multi-lun disks & slot num zero pad #16603
vdev_id: multi-lun disks & slot num zero pad #16603
Conversation
Please squash commits and add a |
Signed-off-by: Matthew Heller <[email protected]>
22f5bb6
to
0c6e1aa
Compare
Add ability to generate disk names that contain both a slot number and a lun number in order to support multi-actuator SAS hard drives with multiple luns. Also add the ability to zero pad slot numbers to a desired digit length for easier sorting. Signed-off-by: Matthew Heller <[email protected]>
0c6e1aa
to
144c1e5
Compare
I see the zloop CI check is failing in some test with interrupting raidz expansion reflow. Any thoughts? I wouldn't have thought my changes would be anywhere near the code paths that are failing. I know raidz expansion reflow is a new feature, is there any chance this PR isn't the cause? https://github.com/openzfs/zfs/actions/runs/11234698822/job/31248072312?pr=16603
|
@hellermf right, that failure is definitely unrelated. We've still got a few of those which the CI occasionally hits. |
Add ability to generate disk names that contain both a slot number and a lun number in order to support multi-actuator SAS hard drives with multiple luns. Also add the ability to zero pad slot numbers to a desired digit length for easier sorting. Reviewed-by: Tony Hutter <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Matthew Heller <[email protected]> Closes openzfs#16603
Add ability to generate disk names that contain both a slot number and a lun number in order to support multi-actuator SAS hard drives with multiple luns. Also add the ability to zero pad slot numbers to a desired digit length for easier sorting.
Motivation and Context
I manage many servers with ZFS pools comprised of dozens of Seagate Mach.2 dual-actuator SAS hard drives. These drives have two SCSI LUNs per physical drive, one per actuator, each giving access to half the storage capacity of the physical drive. Without these changes I can only configure vdev_id.conf to generate slot number based aliases for the first LUN of each drive, only half the capacity.
Description
This PR only introduces minor changes to the vdev_id script and associated documentation in the vdev_id.conf man page.
The first change is to add the option of generating disk names that include both a slot number and a lun number, this feature in enabled by adding one more value, 'bay_lun' to the list of values accepted by the 'slot' setting for vdev_id.conf.
The second little change is to add the option of requesting that disk names generated pad the slot number component to a specific number of digits using leading zeros. This is activated by a new 'zpad_slot' setting for vdev_id.conf whose value is the desired length, "zpad 3" could generate disk001, disk002, ...etc.
How Has This Been Tested?
I have RHEL 8 and Ubuntu 22.04 servers with dual-actuator SAS disks that have been using these changes for a couple years. I have not tested this for any other use cases but I figured it was time I offered to contribute my changes back to the community in case this enhancement was applicable to others.
Types of changes
Checklist:
Signed-off-by
.