Skip to content
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

kvm-test: add support for SCSI disk without multipathing (useful for IMSM) #2160

Merged
merged 2 commits into from
Feb 17, 2025

Conversation

ogayot
Copy link
Member

@ogayot ogayot commented Feb 14, 2025

If the guest supports it (plucky does but noble does not), we can simulate IMSM RAID devices by using one (or more) SCSI disks.

In the guest, you can create an IMSM RAID 0 using:

IMSM_NO_PLATFORM=1 mdadm --create /dev/md/imsm0 -n 1 --metadata=imsm /dev/sda
IMSM_NO_PLATFORM=1 mdadm --create /dev/md/raid0_1 -n 1 --level 0 /dev/md/imsm0

We already supported SCSI disks but only for multipathing.

RAID 1 is also possible but we need to add support for multiple disks (see #1523)

IMSM_NO_PLATFORM=1 mdadm --create /dev/md/imsm0 -n 2 --metadata=imsm /dev/sda /dev/sdb
IMSM_NO_PLATFORM=1 mdadm --create /dev/md/raid1_1 -n 2 --level 1 /dev/md/imsm0

@ogayot ogayot force-pushed the kvm-test+scsi branch 2 times, most recently from 8646900 to 2b77461 Compare February 17, 2025 09:16
…IMSM)

If the guest supports it (plucky does but noble does not), we can simulate IMSM
RAID devices by using one (or more) SCSI disks.

In the guest, you can create an IMSM RAID 0 using:

  # IMSM_NO_PLATFORM=1 mdadm --create /dev/md/imsm0 -n 1 --metadata=imsm /dev/sda --force
  # IMSM_NO_PLATFORM=1 mdadm --create /dev/md/raid0_1 -n 1 --level 0 /dev/md/imsm0 --force

Or a RAID 1 using:

  # IMSM_NO_PLATFORM=1 mdadm --create /dev/md/imsm0 -n 2 --metadata=imsm /dev/sda /dev/sdb
  # IMSM_NO_PLATFORM=1 mdadm --create /dev/md/raid1_1 -n 2 --level 1 /dev/md/imsm0

We already supported SCSI disks but only for multipathing.

Signed-off-by: Olivier Gayot <[email protected]>
@ogayot ogayot merged commit 954e39f into canonical:main Feb 17, 2025
10 checks passed
@ogayot ogayot deleted the kvm-test+scsi branch February 17, 2025 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants