CasaOS icon indicating copy to clipboard operation
CasaOS copied to clipboard

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

Open interkelstar opened this issue 1 year ago • 11 comments

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:

  • Storage widget doesn't show system partition Health\Space as it used to in 0.4.4-2. Instead it shows some non-existing partition of 918,77gb (i don't have such, I have 931gb only) with used space of 753gb (also strange number cause 815gb is used actually)
  • sda3 is not shown as available for storage creation
  • efi and boot are available and i can even format\remove them from ui which doesn't seem right

interkelstar avatar Nov 28 '23 12:11 interkelstar

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.

LinkLeong avatar Nov 29 '23 08:11 LinkLeong

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?

interkelstar avatar Nov 29 '23 13:11 interkelstar

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.

LinkLeong avatar Dec 12 '23 10:12 LinkLeong

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)

interkelstar avatar Dec 12 '23 16:12 interkelstar

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 avatar Dec 15 '23 09:12 raller1028

image

raller1028 avatar Dec 15 '23 09:12 raller1028

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 avatar Dec 15 '23 09:12 raller1028

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

raller1028 avatar Dec 15 '23 09:12 raller1028

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 /

tejedor1967 avatar Jan 17 '24 11:01 tejedor1967

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.

AndreaDiNapoli avatar Jan 19 '24 15:01 AndreaDiNapoli

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.

aiamk avatar Jan 24 '24 23:01 aiamk