IceWhaleTech / CasaOS

CasaOS - A simple, easy-to-use, elegant open-source Personal Cloud system.
https://casaos.io
Apache License 2.0
26.37k stars 1.44k forks source link

[Bug] Storage shows strange data after upgrading to 0.4.4-3 from 0.4.4-2 #1532

Open interkelstar opened 1 year ago

interkelstar commented 1 year ago

So in my configuration I have two drives, system 120gb and 1tb mounted through usb. When I was on 0.4.4-2 Stirage section showed me system drive capacity and health, while usb section showed my attached hdd. I didn't create storage using CasaOS capabilities, just used usb as is. But after upgrade to 0.4.4-3 storage section started to show some ambigious data, some non-existent volume.

image image image image

So problems I see here:

LinkLeong commented 1 year ago

I'm sorry to have troubled you. It's true that there's been an adjustment in this area, before it was a totalization of all data, but now it's a calculation of supported devices. We will continue to follow up on this issue, and would appreciate it if you could run lsblk -o name,tran,subsystems and post it to help us troubleshoot the problem.

interkelstar commented 1 year ago

Sure here it is

NAME                      TRAN   SUBSYSTEMS
loop0                            block
loop1                            block
loop2                            block
loop3                            block
loop4                            block
sda                       sata   block:scsi:pci
├─sda1                           block:scsi:pci
├─sda2                           block:scsi:pci
└─sda3                           block:scsi:pci
  └─ubuntu--vg-ubuntu--lv        block
sdb                       usb    block:scsi:usb:pci
└─sdb2                           block:scsi:usb:pci

now it's a calculation of supported devices

does that mean that my internal drive (sda drive and its sda3 partition on which my root in mounted) is not treated as supported?

Even if so, wouldn't it be useful to see you used\free space of \ at least somewhere?

LinkLeong commented 11 months ago

NAS storage space display is normal, efi and boot is the system partition, the current lvm problem, not yet arrived at the solution, so boot and efi will still display.

interkelstar commented 11 months ago

If NAS storage space display is normal why is it different on the 3rd screen? (both "Storage" and "106X" are the same sdb2 NAS drive, but as you can see the total and used numbers differs a lot)

raller1028 commented 11 months ago

image image

You can see here that there is an sda1, and the capacity displayed by lsblk is 111.8G, but the total size is only 109.5G. This is because the total size is obtained through lsblk /dev/sda1 -O -J.

raller1028 commented 11 months ago

image

raller1028 commented 11 months ago

The USB drive is mounted using udevil, and the values are taken from lsblk, which may differ from the values obtained in the Storage Manager.

raller1028 commented 11 months ago

@interkelstar Can you check sdb1 with command lsblk /dev/sdb1 -O -J

tejedor1967 commented 10 months ago

Same problem here. Ubuntu Server with LVM. The Storage Manager shows EFI (in /dev/dba1) and BOOT (in /dev/sda2) but ignores the /dev/sda3 where / is mounted.

My lsblk:

NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS loop0 7:0 0 63,4M 1 loop /snap/core20/1974 loop1 7:1 0 111,9M 1 loop /snap/lxd/24322 loop2 7:2 0 53,3M 1 loop /snap/snapd/19457 sda 8:0 0 476,9G 0 disk ├─sda1 8:1 0 1G 0 part /boot/efi ├─sda2 8:2 0 2G 0 part /boot └─sda3 8:3 0 473,9G 0 part └─ubuntu--vg-ubuntu--lv 253:0 0 473,9G 0 lvm /

AndreaDiNapoli commented 10 months ago

Same problem here. Ubuntu Server with LVM. The Storage Manager shows EFI (in /dev/dba1) and BOOT (in /dev/sda2) but ignores the /dev/sda3 where / is mounted.

My lsblk:

NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS loop0 7:0 0 63,4M 1 loop /snap/core20/1974 loop1 7:1 0 111,9M 1 loop /snap/lxd/24322 loop2 7:2 0 53,3M 1 loop /snap/snapd/19457 sda 8:0 0 476,9G 0 disk ├─sda1 8:1 0 1G 0 part /boot/efi ├─sda2 8:2 0 2G 0 part /boot └─sda3 8:3 0 473,9G 0 part └─ubuntu--vg-ubuntu--lv 253:0 0 473,9G 0 lvm /

I've got the exactly same problem, and I'm also on Ubuntu Server with LVM.

aiamk commented 10 months ago

Same problem here. Ubuntu Server with LVM. The Storage Manager shows EFI (in /dev/dba1) and BOOT (in /dev/sda2) but ignores the /dev/sda3 where / is mounted. My lsblk: NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS loop0 7:0 0 63,4M 1 loop /snap/core20/1974 loop1 7:1 0 111,9M 1 loop /snap/lxd/24322 loop2 7:2 0 53,3M 1 loop /snap/snapd/19457 sda 8:0 0 476,9G 0 disk ├─sda1 8:1 0 1G 0 part /boot/efi ├─sda2 8:2 0 2G 0 part /boot └─sda3 8:3 0 473,9G 0 part └─ubuntu--vg-ubuntu--lv 253:0 0 473,9G 0 lvm /

I've got the exactly same problem, and I'm also on Ubuntu Server with LVM.

same issue and besides that it show fully used and there are 20GB free when i checked in the shell.