hit issue with script rescan-scsi-bus.sh in VM with image ubuntu 22.04 live server running in ESXi
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
sg3-utils (Ubuntu) |
Triaged
|
Undecided
|
Unassigned |
Bug Description
Problem:
After executing "rescan-scsi-bus.sh -a -r" on Ubuntu 22.04 VM installed with image OS/Linux/
sg3-utils version is 1.46-1.
root@ubuntu:~# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
loop0 7:0 0 43.6M 1 loop /snap/snapd/14978
loop1 7:1 0 78.1M 1 loop /snap/lxd/22525
loop2 7:2 0 61.9M 1 loop /snap/core20/1361
sda 8:0 0 40G 0 disk
├─sda1 8:1 0 1M 0 part
├─sda2 8:2 0 1.5G 0 part /boot
└─sda3 8:3 0 38.5G 0 part
└─ubuntu-
sr0 11:0 1 1024M 0 rom
sr1 11:1 1 1024M 0 rom
root@ubuntu:~# dpkg -l | grep sg3-utils
ii sg3-utils 1.46-1 amd64 utilities for devices using the SCSI command set
ii sg3-utils-udev 1.46-1 all utilities for devices using the SCSI command set (udev rules)
root@ubuntu:~# rescan-scsi-bus.sh -a -r
Syncing file systems
Scanning SCSI subsystem for new devices and remove devices that have disappeared
Scanning host 0 for SCSI target IDs 0
1
2
3
4
5
6
.....
two device(s) removed.
...
root@ubuntu:~# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
loop0 7:0 0 43.6M 1 loop /snap/snapd/14978
loop1 7:1 0 78.1M 1 loop /snap/lxd/22525
loop2 7:2 0 61.9M 1 loop /snap/core20/1361
Steps:
1) create VM with LSI Logic Parallel Disk and install guest OS jammy-desktop-
2) finish installation and reboot VM
3) exec command "lsblk" in VM:
root@ubuntu:~# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
loop0 7:0 0 43.6M 1 loop /snap/snapd/14978
loop1 7:1 0 78.1M 1 loop /snap/lxd/22525
loop2 7:2 0 61.9M 1 loop /snap/core20/1361
sda 8:0 0 40G 0 disk
├─sda1 8:1 0 1M 0 part
├─sda2 8:2 0 1.5G 0 part /boot
└─sda3 8:3 0 38.5G 0 part
sr0 11:0 1 1024M 0 rom
sr1 11:1 1 1024M 0 rom
4) execute command "rescan-scsi-bus.sh -a -r" in VM and then "lsblk":
root@ubuntu:~# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
loop0 7:0 0 43.6M 1 loop /snap/snapd/14978
loop1 7:1 0 78.1M 1 loop /snap/lxd/22525
loop2 7:2 0 61.9M 1 loop /snap/core20/1361
Issue: For step 4, we find the non loop disks are removed including the boot disk sda.
summary: |
- hit issue with script rescan-scsi-bus.sh in ubuntu 22.04 live server + hit issue with script rescan-scsi-bus.sh in VM with image ubuntu 22.04 + live server running in ESXi |
affects: | ubuntu → sg3-utils (Ubuntu) |
Status changed to 'Confirmed' because the bug affects multiple users.