Hello,
I have a problem with an external USB-SSD-disk that I cannot explain myself and need some advice.
I host an actual PVE (8.2.7 )with an Proxmox Backup Server as a priviledged LXC (no. 119) installed for Backups.
I have an external USB M.2 case with a SSD inside for backups.
This external disk is formatted EXT4.
I have set pct set 119 -mp0 /mnt/backupssd/,mp=/mnt/backup as a mount point for USB-SSD in PBS LXC.
When I start my backup routine PBS LXC is stopped and in storage of the general hosts overview the configured PBS storage is deactivated.
I connect the USB-SSD disk to host (without errors).
Then I mount the USB-SSD disk on host:
mount -t ext4 /dev/disk/by-id/usb-ASMT_ASM2364_1904D2804106-0:0-part1 /mnt/backupssd/
I start PBS LXC and on PVE (general overview) I activate PBS storage.
I now can see my old backups and do my new backups -> everything working fine (Tasks OK).
Afterwards I stop PBS LXC via shutdown command in shell.
Then I deactivate PBS storage in general overview.
Then I umount the USB-SSD on PVE host: umount /mnt/backupssd/
lsblk shows no mount of USB-HDD /dev/sda + /dev/sda1 (EXT4 partition)
BUT when I now (or after a couple of minutes) disconnect the USB-SSD physically of PVE host I receive following error according to: dmesg -T on PVE host.
...
[Wed Nov 6 19:24:40 2024] EXT4-fs (dm-11): unmounting filesystem b0c4fa9b-e133-4f50-a622-d37be1693c3c.
[Wed Nov 6 19:25:29 2024] EXT4-fs (sda1): unmounting filesystem b0150557-4985-41b6-8500-f8ee2055ef11.
[Wed Nov 6 19:26:02 2024] usb 2-1: USB disconnect, device number 2
[Wed Nov 6 19:26:02 2024] sd 0:0:0:0: [sda] Synchronizing SCSI cache
[Wed Nov 6 19:26:02 2024] sd 0:0:0:0: [sda] Synchronize Cache(10) failed: Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK
How on earth can I prevent that there is still a "SCSI cache" when I unplug the unmounted USB-SSD?
As far as I know I do not have any lazy features activated for USB-SSD? Where to check?
The PBS LXC root-disk is started with "lazytime" (because it sits itself on an internal SSD) but the LXC is completely shutdown when I unplug USB-SSD and it is the root-disk not the mount-point of USB-SSD in PBS LXC. The mount point in LXC of USB-HDD has NO mount option configured: /mnt/backupssd,mp=/mnt/backup
EDIT:
1. The error happens with various USB-casings
2. The error happens when I mount USB-SSD with "-o sync" option
I have a problem with an external USB-SSD-disk that I cannot explain myself and need some advice.
I host an actual PVE (8.2.7 )with an Proxmox Backup Server as a priviledged LXC (no. 119) installed for Backups.
I have an external USB M.2 case with a SSD inside for backups.
This external disk is formatted EXT4.
I have set pct set 119 -mp0 /mnt/backupssd/,mp=/mnt/backup as a mount point for USB-SSD in PBS LXC.
When I start my backup routine PBS LXC is stopped and in storage of the general hosts overview the configured PBS storage is deactivated.
I connect the USB-SSD disk to host (without errors).
Then I mount the USB-SSD disk on host:
mount -t ext4 /dev/disk/by-id/usb-ASMT_ASM2364_1904D2804106-0:0-part1 /mnt/backupssd/
I start PBS LXC and on PVE (general overview) I activate PBS storage.
I now can see my old backups and do my new backups -> everything working fine (Tasks OK).
Afterwards I stop PBS LXC via shutdown command in shell.
Then I deactivate PBS storage in general overview.
Then I umount the USB-SSD on PVE host: umount /mnt/backupssd/
lsblk shows no mount of USB-HDD /dev/sda + /dev/sda1 (EXT4 partition)
BUT when I now (or after a couple of minutes) disconnect the USB-SSD physically of PVE host I receive following error according to: dmesg -T on PVE host.
...
[Wed Nov 6 19:24:40 2024] EXT4-fs (dm-11): unmounting filesystem b0c4fa9b-e133-4f50-a622-d37be1693c3c.
[Wed Nov 6 19:25:29 2024] EXT4-fs (sda1): unmounting filesystem b0150557-4985-41b6-8500-f8ee2055ef11.
[Wed Nov 6 19:26:02 2024] usb 2-1: USB disconnect, device number 2
[Wed Nov 6 19:26:02 2024] sd 0:0:0:0: [sda] Synchronizing SCSI cache
[Wed Nov 6 19:26:02 2024] sd 0:0:0:0: [sda] Synchronize Cache(10) failed: Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK
How on earth can I prevent that there is still a "SCSI cache" when I unplug the unmounted USB-SSD?
As far as I know I do not have any lazy features activated for USB-SSD? Where to check?
The PBS LXC root-disk is started with "lazytime" (because it sits itself on an internal SSD) but the LXC is completely shutdown when I unplug USB-SSD and it is the root-disk not the mount-point of USB-SSD in PBS LXC. The mount point in LXC of USB-HDD has NO mount option configured: /mnt/backupssd,mp=/mnt/backup
EDIT:
1. The error happens with various USB-casings
2. The error happens when I mount USB-SSD with "-o sync" option
Last edited: