Public bug reported: Problem:
After executing "rescan-scsi-bus.sh -a -r" on Ubuntu 22.04 VM installed with image OS/Linux/Ubuntu/22.04/20220326/jammy-live-server-amd64.iso in ESXi, all non loop devices were removed, and system crashed. 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--vg-ubuntu--lv 253:0 0 19.2G 0 lvm / 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-amd64.iso daily build 26/Mar/2022 in ESXi 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 └─ubuntu--vg-ubuntu--lv 253:0 0 19.2G 0 lvm / 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. ** Affects: ubuntu Importance: Undecided Status: Confirmed ** Summary changed: - 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 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1966860 Title: hit issue with script rescan-scsi-bus.sh in VM with image ubuntu 22.04 live server running in ESXi To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+bug/1966860/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs